Loading...
Loading...
Sign, verify, and track fix-marker regressions over time using a deterministic Ed25519 witness manifest. Works in any project — clone the toolkit, run init, register fixes, regen on each release.
npx skill4agent add ruvnet/ruflo witness.github/workflows/v3-ci.ymlwitness-verifyplugins/ruflo-core/scripts/witness/init.mjswitness-fixes.jsonregen.mjs# One-time bootstrap — creates verification.md.json,
# verification-history.jsonl, and witness-fixes.json template
node plugins/ruflo-core/scripts/witness/init.mjs --root .
# Edit witness-fixes.json: add { id, desc, file, marker } per fix.
# A "marker" is a distinctive substring that MUST appear in `file`
# while the fix is present. If someone reverts the fix, the marker
# disappears and `verify` reports it as `regressed`.
# Regenerate the manifest (signs with Ed25519 from current gitCommit)
npm i @noble/ed25519
node plugins/ruflo-core/scripts/witness/regen.mjs \
--manifest verification.md.json \
--history verification-history.jsonl \
--fixes witness-fixes.json
# Verify markers are present in the live tree
node plugins/ruflo-core/scripts/witness/verify.mjs \
--manifest verification.md.json# Latest snapshot vs. previous
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl summary
# For each currently-regressed fix, find the commit that introduced it
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl regressions
# Status timeline for a specific fix
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl timeline --id F1
# Machine-readable for CI
node plugins/ruflo-core/scripts/witness/history.mjs \
--history verification-history.jsonl summary --jsonsummaryverification.md.jsonregen.mjs'function''import'grep--historyverification.md.jsonverification-history.jsonlscripts/witness/lib.mjsscripts/witness/regen.mjsscripts/witness/history.mjsscripts/witness/init.mjsscripts/witness/verify.mjsv3-ci.ymlwitness-verifypublish| Failure | Cause |
|---|---|
| manifest hand-edited; re-run regen |
| a documented fix lost its marker since issuance |
| a cited dist file no longer exists; rebuild or remove the entry |