harness-drift-from-history
What it does
This skill runs a new audit of a harness, compares it with the most recent saved audit and reports how much it has drifted. It is for teams who check their AI harnesses regularly for unexpected change.
When to use it
- βWhen you want to know whether a harness has changed since its last audit.
- βWhen a weekly audit has run and you want to see whether anything drifted.
- βWhen you want an alert if the change passes a set threshold.
Skill link
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-drift-from-history/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHas my harness drifted since the last audit? Alert me if it moved too far.β
5 new skills a week. 1 minute to read.
How it works
The skill picks the most recent stored audit record, optionally skipping very recent ones, runs a fresh audit and compares the two. It returns a drift report and can alert when similarity falls below the threshold you set.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
The natural ops question after running oia-audit weekly is "did anything drift?" Before this skill, the answer required a three-step sequence:
npx ruflo metaharness audit-list --format json # β pick a key by hand
npx ruflo metaharness oia-audit --format json > /tmp/curr.json
npx ruflo metaharness audit-trend \
--baseline-key <picked-key> --current /tmp/curr.json \
--alert-on-distance-below 0.95
This skill collapses it into one command:
npx ruflo metaharness drift-from-history --threshold 0.95
What it does
- Lists records from
metaharness-auditnamespace via audit-list.mjs - Picks the most recent record by
startedAt(or--baseline-since 7dskips anything newer than 7 days) - Runs a fresh
oia-auditagainst the current path - Diffs the two via audit-trend, applying
--alert-on-distance-below ${threshold} - Returns the structured drift report
Architectural constraint inheritance (ADR-150)
| Constraint | How drift-from-history satisfies it |
|---|---|
| Removable | Pure subprocess composition over existing scripts β no new @metaharness/* import |
| Optional | If oia-audit reports degraded:true, this skill exits 3 with a degraded payload |
| Graceful | Empty audit history β exit 2 with hint to seed it; never crashes |
| CI-gate | Smoke step 17z16 anchors the dispatcher entry + subcommand listing |
Exit codes
- 0 β similarity β₯ threshold (or threshold not crossed)
- 1 β drift detected: similarity < threshold (alert fired)
- 2 β config error (no history, audit-list failed)
- 3 β upstream metaharness absent (degraded payload returned)
Example
$ npx ruflo metaharness drift-from-history --threshold 0.95
# drift-from-history
Baseline: audit-2026-06-16T22-58-47-840Z
Current: 2026-06-16T23:05:02.231Z
Structural similarity: 1 (near-identical)
Distance: 0
β similarity β₯ 0.95 β OK
Implementation
FAQ
What does the threshold do?
It sets the similarity level below which the skill raises an alert. The example in the source uses 0.95.
What if there is no earlier audit?
The skill exits with a hint to create one first, rather than failing.
Does it change the harness?
No. It only runs audits and compares their results.
Details
Original description by the author
One-command drift detection: run a fresh metaharness audit, diff it against the latest stored audit by ADR-152 similarity, and alert when the distance crosses `--threshold`. Use when checking whether a harness has drifted since its last audit.
repo: ruvnet/ruflo
Popularity
- GitHub stars
- 81k
- Ranking position
- #1646
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
agent-adaptive-coordinator
81kHelps your agent split and rebalance a group of AI agents as the workload changes, choosing a layout that fits the task.
agent-agent
81kTeaches your agent to turn a big goal into an ordered plan of actions, and to replan when conditions change.
agent-agentic-payments
81kHelps your agent manage spending mandates for AI shopping, with spend caps, time windows, merchant rules and signed approvals.
agent-analyze-code-quality
81kHelps your agent review code for quality, finding code smells, technical debt and refactoring ideas without changing the files.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.