Repository navigation
feat(org): v1.6.0 audit catches governance drift, exempt list, tests (#59) - #68
Merged
enricopiovesan merged 1 commit intoNov 20, 2026
Merged
Conversation
…59) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
Contributor
Author
Fallback review (Decision 133, fresh context)Checked at Rubric
Defects: none blocking. Non-blocking notes
|
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.
Summary
The governance part of #59. The org audit now catches the drift #59 lists, skips exempt and archived repos, and has tests. It also fixes a bug that meant the audit almost never failed. Once merged this ships as v1.6.0; each consuming repo then fixes its own drift and pins v1.6.0 in its own PR.
Governing Spec
no-spec-needed (governance compliance; the rules are in
docs/ai-agent-hardening.md)Project Item
Refs #59 (Project 1, In Progress,
agent:claude, claimed withclaim.sh).What Changed
scripts/org/audit_compliance.shgains five columns per repo:.governance-versionequals the latest stable release tag (highestvX.Y.Zbysort -V; release candidates ignored; no tag at all exits 2 instead of passing);AGENTS.mdexists and points atCLAUDE.md;CLAUDE.mdis at most 6 KB (6144 bytes);CLAUDE.md,AGENTS.mdor.specify/memory/constitution.md. A version counts only when it follows "governance" or.githubin the same sentence, so product pins (Traverse v0.10.0), Rust 1.95, IP addresses and issue refs (.github#57) are not flagged;###principle heading withconstitution.mdis a copy. Measured on the live org: traverse's file shares 6 of 7; reference-apps' repo-specific constitution and registry's pointer share 0.$(check ...), so the failure count was lost in the subshell and only the ruleset column could fail the job. Cells are now computed in the current shell.scripts/org/audit_exempt.txt(new):weekly-demos,demo-repositoryandsilver-pancake-demo-repository, each with its reason (maintainer decisions on [Task]: Close governance drift across repos and extend the org audit to catch it #59). The audit lists them under "Exempt repos".rollout_governance.sh's default repo list skips exempt and archived repos too.scripts/org/audit_compliance_test.sh(new): 18 checks with a stubbedghserving a fixture tree, including a deliberately stale.governance-version; runs as theaudit-testsjob.AGENTS.mdno longer names a governance version;.governance-version→ v1.6.0;docs/runbook.mddocuments the checks; CHANGELOG 1.6.0.Live run (before any repo fixes, against v1.5.0)
This matches #59's list exactly, with no other repos flagged.
Validation
bash scripts/org/audit_compliance_test.sh: 18/18 pass.bash scripts/org/audit_compliance.shagainst the live org: table above. It exits 1, as it should while drift remains.🤖 Generated with Claude Code