Skip to content
Skillpedia
Deploy & cloud (DevOps)81k Β· #1646

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.md

Copy 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

Use this skill to help me: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-metaharness/skills/harness-drift-from-history/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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

  1. Lists records from metaharness-audit namespace via audit-list.mjs
  2. Picks the most recent record by startedAt (or --baseline-since 7d skips anything newer than 7 days)
  3. Runs a fresh oia-audit against the current path
  4. Diffs the two via audit-trend, applying --alert-on-distance-below ${threshold}
  5. 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

scripts/drift-from-history.mjs

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills