v7.1.0
v7.1.0 Release Notes
What Changed
Mandatory Reuse Scan & Duplicate Prevention Gate
Added a hard-gated reuse scan protocol that runs before any new function, utility type, or class is written. The Reviewer independently re-verifies the scan, and the Architect enforces the verdict field.
Four-layer defense-in-depth:
-
Coder REUSE SCAN PROTOCOL — The Coder must semantically search
src/utils/,src/hooks/,src/tools/,src/services/for existing implementations before writing new code. ReportsREUSE_SCANin DONE output with self-audit checkbox. -
Reviewer REUSE RE-VERIFICATION — The Reviewer independently runs 3+ semantic search queries per new export.
DUPLICATION_DETECTEDcauses immediate Tier 1 CORRECTNESS rejection. Cross-checks the Coder's scan report. OutputsREUSE_RE_VERIFICATIONin verdict format. -
Slop Detector Passive Telemetry — New
checkDuplicateUtilityheuristic detects name collisions in utility directories at write/edit time. Advisory only — provides observability without blocking the pipeline. -
Architect Enforcement — The Architect's Stage B gate mandates
REUSE_RE_VERIFICATIONfield presence in reviewer verdicts. Completion checklist includes the field with semantic tuple validation (e.g.,EXPORTS_ADDEDnon-empty →REUSE_RE_VERIFICATIONmust beVERIFIEDorDUPLICATION_DETECTED).
Files Changed
src/agents/coder.ts— REUSE SCAN PROTOCOL block, REUSE_SCAN field in DONE template, SELF-AUDIT checkboxsrc/agents/reviewer.ts— REUSE RE-VERIFICATION block, REUSE_RE_VERIFICATION in verdict/output formatsrc/hooks/slop-detector.ts— DUPLICATE_UTILITY heuristic, type union extensionsrc/agents/architect.ts— Stage B enforcement, ANTI-EXEMPTION pair, completion checklistsrc/agents/coder.test.ts— 15 tests for REUSE SCAN PROTOCOLsrc/agents/reviewer.test.ts— 14 tests for REUSE RE-VERIFICATIONsrc/hooks/slop-detector.test.ts— 3 new tests for DUPLICATE_UTILITYsrc/agents/architect.commands-list.test.ts— 3 new tests for architect enforcement
Migration Steps
None. All changes are additive — no existing behavior is modified. The new gates activate automatically.
Known Caveats
- The slop detector's
checkDuplicateUtilityuses name-only collision detection (no signature analysis). False positives are possible but the heuristic is advisory-only. - The reviewer's "implements the same behavior" criterion (step 3) requires human-level judgment — semantic similarity is assessed by the LLM, not a deterministic check.