Skip to content

feat(evolution): three-layer defense against doc-codebase drift#16

Merged
SamPlvs merged 1 commit into
mainfrom
claude/interesting-driscoll
Apr 10, 2026
Merged

feat(evolution): three-layer defense against doc-codebase drift#16
SamPlvs merged 1 commit into
mainfrom
claude/interesting-driscoll

Conversation

@SamPlvs
Copy link
Copy Markdown
Owner

@SamPlvs SamPlvs commented Apr 10, 2026

Add automated documentation consistency validation with enforcement hooks. When the 17th agent (Research Scout) was added, 10+ files had stale counts, version numbers, and model tiers. Root cause: CLAUDE.md cascade protocol existed as text but had zero enforcement.

Layer 1 — scripts/validate-docs.sh:
7 programmatic checks (agent count, names, commands, version, tiers,
tests, setup.sh literal). Runs in <2s. Exits non-zero on failure.

Layer 2 — Claude Code hooks (.claude/settings.json):
PreToolUse on git commit: blocks if validation fails
PostToolUse on Write|Edit: cascade reminders for trigger files
Stop: checks for uncommitted changes in trigger paths

Layer 3 — Documentation:
CLAUDE.md cascade protocol replaced with file-to-file mappings
PR-005 added to PRIORS.md (missing_rule → enforcement)
commit command updated with validation step

Also fixes:

  • Agent count 16→17 across 10 files (Research Scout was undocumented)
  • Version 1.0.0→1.0.1 in pyproject.toml and init.py
  • Test badge 295→298, setup checks 11→10
  • Command count 23→24 in STATE.md
  • Model Builder and Backend Engineer tiers: "Sonnet/Opus"→"Opus"
  • Research Scout added to specs/agents.md roster (feat: ZO e2e validated — wrapper fix, README, MNIST project complete #7), phase-in renumbered
  • PRD.md: 6 launch→7 launch, 10→11 project delivery agents

Add automated documentation consistency validation with enforcement hooks.
When the 17th agent (Research Scout) was added, 10+ files had stale counts,
version numbers, and model tiers. Root cause: CLAUDE.md cascade protocol
existed as text but had zero enforcement.

Layer 1 — scripts/validate-docs.sh:
  7 programmatic checks (agent count, names, commands, version, tiers,
  tests, setup.sh literal). Runs in <2s. Exits non-zero on failure.

Layer 2 — Claude Code hooks (.claude/settings.json):
  PreToolUse on git commit: blocks if validation fails
  PostToolUse on Write|Edit: cascade reminders for trigger files
  Stop: checks for uncommitted changes in trigger paths

Layer 3 — Documentation:
  CLAUDE.md cascade protocol replaced with file-to-file mappings
  PR-005 added to PRIORS.md (missing_rule → enforcement)
  commit command updated with validation step

Also fixes:
  - Agent count 16→17 across 10 files (Research Scout was undocumented)
  - Version 1.0.0→1.0.1 in pyproject.toml and __init__.py
  - Test badge 295→298, setup checks 11→10
  - Command count 23→24 in STATE.md
  - Model Builder and Backend Engineer tiers: "Sonnet/Opus"→"Opus"
  - Research Scout added to specs/agents.md roster (#7), phase-in renumbered
  - PRD.md: 6 launch→7 launch, 10→11 project delivery agents

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@SamPlvs SamPlvs merged commit bde7b3b into main Apr 10, 2026
@SamPlvs SamPlvs deleted the claude/interesting-driscoll branch April 10, 2026 13:39
SamPlvs added a commit that referenced this pull request Apr 30, 2026
feat(evolution): three-layer defense against doc-codebase drift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant