Skip to content

docs(.github#59): constitution is a pointer plus Traverse-specific rules - #1931

Merged
enricopiovesan merged 1 commit into
mainfrom
claude/github-59-governance-drift
Nov 21, 2026
Merged

enricopiovesan merged 1 commit into
mainfrom
claude/github-59-governance-drift

Conversation

@enricopiovesan

Copy link
Copy Markdown
Collaborator

Summary

Traverse part of traverse-framework/.github#59.

  • .specify/memory/constitution.md was an 11 KB copy of the org constitution that called itself "authoritative for this repo" and named governance version 1.0.0. It is now a pointer to the org constitution plus the only two sections that existed nowhere else: Small, Verifiable v0.1 (the Traverse wording of org principle VII) and Product Constraints (core components, v0.1 non-goals, brownfield/greenfield). Neither is in specs/001-foundation-v0-1/spec.md, so they stay here, unchanged, under "Traverse-Specific Rules". Principles I–VI, the NFRs, the quality standards, the workflow and the governance section now come from the org file. The three principle titles CI checked for exist there.
  • scripts/ci/repository_checks.sh: the three greps that required the local file to restate org principles now require the pointer to traverse-framework/.github, the NFR and quality-standards references, and both Traverse-specific sections. A new check fails if org principle I is copied back in. The old full copy fails the new checks, verified locally.
  • AGENTS.md no longer writes a governance version in prose.

Not in this PR: .governance-version (v1.3.0 → v1.6.0). The repo guard stops agents editing it, so the maintainer bumps it once traverse-framework/.github#68 is released.

Governing Spec

  • 001-foundation-v0-1
  • 188-codex-agent-coordination
  • 048-semver-publishing-pipeline
  • 004-spec-alignment-gate

Project Item

traverse-framework/.github#59 (org Project 1)

Validation

  • The constitution block of repository_checks.sh passes on the new file and fails (exit 1) on the old copy from main.
  • BASE_SHA=origin/main bash scripts/ci/spec_alignment_check.sh and pr_body_check.sh pass.
  • The v1.6.0 audit reports traverse green on "no constitution copy" and "no prose versions" once merged.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@enricopiovesan enricopiovesan added the needs-review Full-CI PR waiting for an independent cross-tool review label Nov 20, 2026
@enricopiovesan

Copy link
Copy Markdown
Collaborator Author

Review (Decision 133 same-tool fallback, fresh context)

  1. Scope: pass. Matches the traverse item in [Task]: Close governance drift across repos and extend the org audit to catch it .github#59: the constitution copy becomes a pointer plus Traverse-specific rules, the prose version is gone from AGENTS.md, and the .governance-version bump is left to the maintainer as the issue says.
  2. Failure modes explicit: pass. The new guard prints an actionable error and exits 1 if org principle I is copied back. The other checks fail through set -euo pipefail on grep -q.
  3. No gate weakened: pass. The old check that the file restates principle III is replaced by checks for the pointer and both Traverse-specific headings. Principles I–VII, the NFRs, the quality standards, the workflow and the governance section are all in the org constitution.md (default branch bootstrap-governance, so the link resolves). Only scripts/ci/repository_checks.sh greps this file.
  4. Minimal change: pass. Four files. The retained sections are byte-identical apart from the heading level.
  5. Checks assert behaviour: pass. I ran bash scripts/ci/repository_checks.sh at the head SHA: exit 0. Against the old main copy, the new guard trips and the new headings are missing, so a revert would fail. All PR CI checks are green.

Defects

None blocking.

Non-blocking notes

  • A few Traverse-specific qualifiers in the old principles are not in the org text or the retained sections. Old IV: "For v0.1, implementations MAY execute locally only, but the design MUST preserve future portability to browser, edge, cloud, worker, and on-device targets." Old VI: "The runtime MUST remain a control plane…". Old NFR: security "v0.1 work MUST not block that path". They are effectively covered by specs/001-foundation-v0-1/spec.md FR-027 and QG-006/QG-007, plus the retained Small, Verifiable v0.1 section, so no enforceable rule is lost. A follow-up could add a short Portability note to the Traverse-Specific Rules if you want the wording kept verbatim.
  • scripts/ci/repository_checks.sh:403-404: Non-Functional Requirements and Enterprise Quality Standards now match only the pointer sentence, so they check for a mention rather than content. That is acceptable, since the content now lives in the org file.
  • README.md:308 still says the local constitution "mirrors" the org constitution. That is now inaccurate: it is a pointer.
  • The speckit skills (.agents/skills/speckit-analyze, speckit-plan, speckit-constitution) load .specify/memory/constitution.md for principle validation. They will now see only the pointer and need to follow the link. speckit-constitution would also try to "fill the template" and overwrite the pointer. Worth a follow-up so those skills read the org file.

@enricopiovesan
enricopiovesan merged commit 6b03f68 into main Nov 21, 2026
50 checks passed
@enricopiovesan enricopiovesan removed the needs-review Full-CI PR waiting for an independent cross-tool review label Nov 21, 2026
@enricopiovesan
enricopiovesan deleted the claude/github-59-governance-drift branch November 21, 2026 00:04
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