feat(standards): add doctrine-quartet law#2
Open
rogu3bear wants to merge 1 commit into
Open
Conversation
Add a sixth V0 law, doctrine-quartet, so the workspace contract quartet (NORTH_STAR.md, ANCHOR.md, AGENTS.md, CLAUDE.md) is enforced by the standards plane instead of living only as prose. Missing quartet files become P2 findings anchored at the repo doc, with file:line evidence and a repair recommendation, so standards sprinkle down per repo and cannot drift silently. - catalog/laws.toml: register doctrine-quartet (pilot). - DocsInfo + scan_docs: track NORTH_STAR.md and ANCHOR.md alongside the existing AGENTS/CLAUDE/README/SECURITY scan. - audit_doctrine_quartet: new scanner wired into audit_repos, skipping Template/Unknown repos; requirement/expected mappings added. - repo explain: surface NORTH_STAR/ANCHOR presence. - tests: scanner fires on missing files, stays clean on a full quartet. Verified: cargo fmt --check, clippy -D warnings, 26 tests pass; live 'standards audit ~/dev --all' over 26 repos reports zero doctrine-quartet findings (forest is fully quartet-covered).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a sixth V0 law, doctrine-quartet, so the workspace contract quartet —
NORTH_STAR.md,ANCHOR.md,AGENTS.md,CLAUDE.md— is enforced by the standards plane instead of living only as prose in the workspace contract. Missing quartet files become P2 findings anchored at the repo doc, with file:line evidence and a repair recommendation. This is what lets workspace standards "sprinkle down" per repo and stops silent drift.Changes
catalog/laws.toml: registerdoctrine-quartet(pilot); added toV0_LAWS.DocsInfo+scan_docs: trackNORTH_STAR.mdandANCHOR.mdalongside the existing AGENTS/CLAUDE/README/SECURITY scan.audit_doctrine_quartet: new scanner wired intoaudit_repos, skippingTemplate/Unknownrepos;scanner_requirement_id/scanner_expectedmappings added.repo explain: surface NORTH_STAR/ANCHOR presence.Verification
cargo fmt --check✓cargo clippy --workspace --all-targets -- -D warnings✓cargo test --workspace— 26 passed ✓standards audit ~/dev --allover 26 repos: zerodoctrine-quartetfindings (forest is fully quartet-covered).Read-only over target repos; report-first, consistent with devctl V0.