Repository navigation
docs: the consumer-documentation rules name ConsumerPinGuard - #867
Merged
Merged
Conversation
…eeps install lines on the snapshot's release tag Closes #802
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.
📝 Description
What does this PR do?
#802 asks for a guard that keeps the pinned CLI version in install instructions on
spec/SNAPSHOT.md's release tag, leaves observation notes alone, and is named in the canon. That guard already exists:ConsumerPinGuard, a Tools repository gate since #476 (2026-10-18). It covers:npm install -g @opencode/cli@<version>and "at the pin (v<version>)" mention inREADME.md,docs/guide/and.github/ISSUE_TEMPLATE/;server-versionplaceholder.Its tests already prove the stale-line failure and the preserved history versions. No document named it, so this PR adds the one canon bullet that was missing. It goes in
docs/engineering/documentation.md§ Consumer documentation, besideSnippetCompileGuard.The bullet says where the guard runs: a Tools test that runs with every change CI treats as code, a pin refresh among them, but not with a Markdown-only change.
The issue named
quality-gates.md. That file has no list of documentation checks: the one existing documentation guard is named indocumentation.md, so the bullet goes there and no second home is created.Related Issue(s):
🔄 Type of Change
🎯 Protocol & API Surface
🧪 Testing
The issue's done-when, proven on the real tree at this branch's base:
ConsumerPinGuard_Should_Keep_Consumer_Pins_Aligned_With_The_Snapshotpasses.README.md:100changed tonpm install -g @opencode/cli@2.2.6, it fails withREADME.md:100: consumer pin 2.2.6; expected 2.3.0.> Verified on \@opencode/cli@2.2.6`.appended todocs/guide/getting-started.md, it still passes.Observed onandMeasured on` notes cannot match the guard's patterns either; an independent Grok review walked that.✅ Completion Gate
quality-gates.mdrequires no local check📚 Documentation
docs/engineering/documentation.md); noCHANGELOG.mdentry, nothing a consumer sees🔍 Additional Notes
The sibling
SnippetCompileGuardbullet says "compiles in CI" with the same Markdown-only gap. It is left as it is here and can follow in its own change.