Repository navigation
feat: add canonical AGENTS governance adapter - #25
Merged
Merged
Conversation
We now manage eza config, as well as specify-cli. Each must have read access for chezmoi verifications to pass.
Let Spec Kit consume project governance from applicable AGENTS.md files without duplicating those rules into its constitution. Keep the fixed constitution immutable while allowing explicit Spec Kit-local overrides.
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
Add a standalone Spec Kit preset that treats applicable
AGENTS.mdfiles as canonical project governance without copying their rules. The preset installs an immutable constitution artifact and keeps optional Spec Kit-only overrides separate. Fixture-driven validation covers precedence, conflicts, missing sources, and mutation safety.Key Decisions
📜 Fixed Constitution
Replace the stock constitution template with a project-independent artifact that delegates governance to root and nested
AGENTS.mdfiles./speckit.constitutioninitializes that artifact once, preserves matching content, and blocks writes when drift is detected.🔀 Local Governance
Reserve
.specify/memory/constitution.local.mdfor explicitly requested Spec Kit additions or overrides. Local conflicts take precedence only within Spec Kit and must remain visible rather than silently replacing ordinary project rules.✅ Deterministic Validation
Add temporary fixture repositories for nested scope, conflicts, absent sources, initialization, immutability, and plan-equivalent consumption. Extend the chezmoi nono profile with read access to the managed eza and Spec Kit paths required for source-to-target validation.
🔄 Before & After
AGENTS.mdfiles remain canonical