This file is the mandatory bootstrap governance surface for coding agents working in this repository. It is intentionally compact. The detailed rules that used to live here have been preserved in docs/agent-rules/ so new sessions do not pay the full context cost up front.
- Read this file.
- Read docs/agent-rules/INDEX.md.
- Read docs/agent-rules/05-non-negotiable-checklist.md.
- Detect repository root, active branch, and worktree state.
- Reject implementation from the
devormaincheckout unless the user explicitly overrides that rule. - If GitHub hierarchy metadata is needed and
.specfact/backlog/github_hierarchy_cache.mdis missing or stale, refresh it withpython scripts/sync_github_hierarchy_cache.py. - Load any additional rule files required by the applicability matrix in docs/agent-rules/INDEX.md before implementation.
- Direct system and developer instructions
- Explicit user override where repository governance allows it
- This file
- docs/agent-rules/05-non-negotiable-checklist.md
- Other selected files under
docs/agent-rules/ - Change-local OpenSpec artifacts and workflow notes
- Work in a git worktree unless the user explicitly overrides that rule.
- Do not implement from the
devormaincheckout by default. - Treat a provided OpenSpec change id as candidate scope, not automatic permission to proceed.
- Verify the selected change against current repository reality and dependency state before implementation.
- Do not auto-refine stale or ambiguous changes without the user.
- Perform
spec -> tests -> failing evidence -> code -> passing evidencein that order for behavior changes. - Require public GitHub metadata completeness before implementation when linked issue workflow applies: parent, labels, project assignment, blockers, and blocked-by relationships.
- If a linked GitHub issue is already
in progress, pause and ask for clarification before implementation. - Run the required verification and quality gates for the touched scope before finalization.
- Fix SpecFact code review findings, including warnings, unless a rare explicit exception is documented.
- Treat the clean-code compliance gate as mandatory: the review surface enforces
naming,kiss,yagni,dry, andsolidcategories and blocks regressions. - Enforce module signatures and version bumps when signed module assets or manifests are affected.
- Finalize completed OpenSpec changes with
openspec archive <change-id>(see docs/agent-rules/40-openspec-and-tdd.md); do not manually move change folders underopenspec/changes/archive/.
This public modules repository does not depend on a sibling internal wiki checkout for change design. Shared design and governance context lives in the paired public specfact-cli repository and the active OpenSpec artifacts in this repo. When a modules change is explicitly paired with a core change, review both public change folders before widening scope or redefining shared workflow semantics.
- docs/agent-rules/INDEX.md
- docs/agent-rules/05-non-negotiable-checklist.md
- docs/agent-rules/10-session-bootstrap.md
- docs/agent-rules/20-repository-context.md
- docs/agent-rules/30-worktrees-and-branching.md
- docs/agent-rules/40-openspec-and-tdd.md
- docs/agent-rules/50-quality-gates-and-review.md
- docs/agent-rules/60-github-change-governance.md
- docs/agent-rules/70-release-commit-and-docs.md
- docs/agent-rules/80-current-guidance-catalog.md
Detailed guidance was moved by reference, not removed. If a rule seems missing here, consult the canonical rule docs before assuming the instruction was dropped.