fix(copilot): sync .github/copilot-instructions.md + bats parity (SDD-005)#62
Merged
Merged
Conversation
…-005) AUDIT-003 detected drift: PR #60 (AI-019) added a "Model Tier" subsection to ai/copilot/copilot-instructions.md but missed .github/copilot-instructions.md. GitHub Copilot reading the dotfiles repo therefore did NOT see the model-tier policy that every other agent reads. Same drift class as BUG-001 (#40) and BUG-002 (#47): mirror files that must move together silently diverge when an editor touches only one. Changes: * .github/copilot-instructions.md: append the Model Tier section; align pointer-banner fallback wording ("from the current repo"). ai/copilot/copilot-instructions.md untouched (canonical source). * tests/docs-drift.bats: new file with 5 cases. Parity rule: stripping blockquote lines (`^> `) from both files must yield byte-identical content. Sub-rule: both files must contain a `## Model Tier` section + AGENTS.md reference in the banner. CI fails loud on future drift. Tests: 650/650 bats green (was 645; +5 from docs-drift.bats). Spec: specs/SDD-005-github-copilot-instructions-sync/.
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
Closes a real drift detected by AUDIT-003: PR #60 (AI-019) added a "Model Tier" subsection to
ai/copilot/copilot-instructions.mdbut missed.github/copilot-instructions.md. GitHub Copilot reading the dotfiles repo did NOT see the model-tier policy that every other agent reads.Same drift class as BUG-001 (#40) and BUG-002 (#47) — mirror files that must move together silently diverge when an editor touches only one.
SDD checklist
SDD-005-github-copilot-instructions-syncin11-tasks.md)specs/SDD-005-github-copilot-instructions-sync/in this PRproposal.mdfilled (Why / What / AC / Risks)tasks.mdin TDD orderverification.mdfilled with evidenceSDD skip rationale
Test plan
bats tests/*.bats→ 650/650 pass (was 645; +5 from newtests/docs-drift.bats)bats tests/docs-drift.bats→ 5/5 green:## Model Tierheaderdiff: only the pointer-banner reference form differs (markdown link vs plain — by design per file deploy context)Out of scope
.github/copilot-instructions.mdfromai/copilot/...(a pre-commit hook). Bats parity check is sufficient enforcement; generation adds complexity without proportional benefit.ai/copilot/copilot-instructions.md(canonical source). Drift flows canonical → mirror, not back.Promotion candidate
The verification.md flags a lesson worth promoting to
90-lessons.md:Three repeats so far (BUG-001 / BUG-002 / AI-019). Generic prevention rule.
Companion audit artifact
30-architecture/audit-003-docs-drift.md(vault) is the audit that surfaced this finding.