/features or /features run [@tag-filter] [--det-only] | RUN | Execute the deterministic layer: parse .feature files, dispatch each scenario's @requires tests, call inline helpers, aggregate verdicts. |
/features judge [@tag-filter] | JUDGE | POC shipped 2026-05-15 via Claude Code Agent SDK (no ANTHROPIC_API_KEY needed — uses existing session auth per Mr. Cobb direction). For each scenario: spawn Agent({subagent_type: 'general-purpose', prompt: scenario + evidence + verdict-format spec}). Subagent reads evidence files, decides pass/fail with specific reasoning, archives verdict JSON to .scratch/judge-runs/<timestamp>/<ref>.json. Validated on §1.0-014 (round 1: fail = caught real coverage gap; round 2 with expanded @requires: pass with paragraph of identifier-level reasoning). Per §14.3 — was deferred in v1, now in scope and unblocked. |
/features judge --drifted | JUDGE-DRIFTED | Phase 4 of build.py rewrite, shipped 2026-05-22. Re-judges ONLY scenarios that scripts/traceability/build.py flagged as drifted or unjudged. Reads .scratch/judge-drift.json, dispatches parallel subagents per scenario, writes verdicts to features/.judge-cache.json. Closes the 4-condition green gate from the 2026-05-22 doc-organization workshop. See "JUDGE-DRIFTED procedure" below. |
/features audit-archdoc | AUDIT-ARCHDOC | Shipped 2026-05-15. Invoke: elixir .claude/skills/features/scripts/audit_archdoc.exs. Three checks against features/index.html (the Stage-1 extraction snapshot): orphans (index rows with no scenario @ref), dangling refs (scenario @ref to non-existent index row), doubles (commitment referenced by >1 scenario). Exit 0 on clean audit, 1 otherwise with itemized findings. Source-of-truth note: arch doc HTML has no direct §X.Y-NNN refs — those were assigned by extractor agents during Stage-1; /features update keeps the index in sync. |
/features extract | EXTRACT | First-time extraction: dispatch subagents to (1) build commitments index, (2) write .feature files, (3) run coverage check. See references/extraction-procedure.md. |
/features update | UPDATE | Re-run extraction with diff against current features/index.html. Only mutate scenarios whose covered index entries appear in the diff. See references/iteration-procedure.md. |
/features status | STATUS | Show coverage receipt (features/index.html row count, how many are mapped, when last extracted). No execution. |