regression-witness

Installation
SKILL.md

Regression Witness

Protects fixes that would otherwise rot. The problem it solves: unit tests verify code paths, but a refactor that deletes a load-bearing line of a documented fix can pass every test and still break the fix. Two gates from ruflo's verification/ directory, ported to Python:

  1. Witness manifest — every documented fix records a SHA-256 file fingerprint plus a marker substring that must remain present. The manifest is Ed25519-signed with a key derived from the git commit, so anyone holding the commit can re-derive the pubkey and verify. A temporal history (append-only JSONL) bisects when a regression was introduced.
  2. Baseline audit gate — for countable violation classes (lint suppressions, TODO density, missing test coverage markers, etc.), a monotone-decreasing baseline that fails CI if the count rises. Supports --update-baseline for deliberate increases.

When to Use

  • A project has documented, load-bearing fixes you want to survive refactors
  • You want CI to block a release when a fix's load-bearing code is deleted
  • You need to know which commit window reintroduced a regression, fast
  • You want a ratchet on a violation count that should only ever go down

Don't use for: greenfield code with no history of silent regressions, or as a substitute for actually testing behavior. A witness proves presence of code, not correctness. The ruflo docs say it plainly: it attests that the fix's code is still there, not that it still works.

Layout

Installs
1
GitHub Stars
11
First Seen
14 days ago