Home / Commands / ruvnet/ruflo

witness

Manage and verify a tamper-evident fix manifest with temporal history (ADR-103)

commandLicense: MIT Source: ruvnet/ruflo

Install

Copy this folder into your Claude Code project (needs Node.js):

curl -fsSL --create-dirs -o .claude/commands/witness.md https://raw.githubusercontent.com/ruvnet/ruflo/HEAD/plugins/ruflo-core/commands/witness.md

Or install it for every project:

curl -fsSL --create-dirs -o ~/.claude/commands/witness.md https://raw.githubusercontent.com/ruvnet/ruflo/HEAD/plugins/ruflo-core/commands/witness.md

File content

Made by its original authors and shared under MIT. We show it unchanged, with credit and a link to the source. Source ↗

---
name: witness
description: Manage and verify a tamper-evident fix manifest with temporal history (ADR-103)
argument-hint: "init|regen|verify|history|regressions [--manifest <path>] [--history <path>]"
---

$ARGUMENTS

Run the appropriate witness sub-command. Defaults assume `verification.md.json` and `verification-history.jsonl` at the project root.

```bash
# Bootstrap (one-time per project)
node plugins/ruflo-core/scripts/witness/init.mjs

# Regen + append history (each release)
node plugins/ruflo-core/scripts/witness/regen.mjs \
  --manifest verification.md.json \
  --history  verification-history.jsonl \
  --fixes    witness-fixes.json

# Verify against live tree
node plugins/ruflo-core/scripts/witness/verify.mjs --manifest verification.md.json

# Verify without dependencies or generated dist/ artifacts
node plugins/ruflo-core/scripts/witness/verify.mjs \
  --manifest verification.md.json --source-only

# Temporal queries
node plugins/ruflo-core/scripts/witness/history.mjs --history verification-history.jsonl summary
node plugins/ruflo-core/scripts/witness/history.mjs --history verification-history.jsonl regressions
node plugins/ruflo-core/scripts/witness/history.mjs --history verification-history.jsonl timeline --id <fix-id>
```

See `plugins/ruflo-core/skills/witness/SKILL.md` for the full workflow + anti-patterns.