Skip to content

check-rule-copies: pin the reuse rung as an invariant - #281

Merged
DietrichGebert merged 1 commit into
DietrichGebert:mainfrom
Rafaelpta:pin-reuse-rung
Jul 9, 2026
Merged

DietrichGebert merged 1 commit into
DietrichGebert:mainfrom
Rafaelpta:pin-reuse-rung

Conversation

@Rafaelpta

Copy link
Copy Markdown
Contributor

The reuse rung added in #253 ("Already in this codebase? Reuse it, don't re-write it.") is load-bearing now, but it is not in the INVARIANTS list in check-rule-copies.js. So a future reword could silently drop it from SKILL.md or AGENTS.md without tripping the check.

This pins it with the substring "in this codebase" (present in both files' rung 2), the same way the safety carve-outs are pinned. Check still passes (9 invariants).

The reuse rung added in DietrichGebert#253 ("Already in this codebase? Reuse it, don't
re-write it.") is load-bearing now, but it was not in the INVARIANTS list,
so a future reword could silently drop it from SKILL.md or AGENTS.md without
tripping the check. Pin it with the substring "in this codebase", present in
both files' rung 2, the same way the safety carve-outs are pinned.
@DietrichGebert
DietrichGebert merged commit bbace73 into DietrichGebert:main Jul 9, 2026
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.

2 participants