Skip to content

docs: the consumer-documentation rules name ConsumerPinGuard - #867

Merged
Blind-Striker merged 1 commit into
masterfrom
docs/802-consumer-pin-guard
Nov 14, 2026
Merged

Blind-Striker merged 1 commit into
masterfrom
docs/802-consumer-pin-guard

Conversation

@Blind-Striker

Copy link
Copy Markdown
Collaborator

📝 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:

  • every npm install -g @opencode/cli@<version> and "at the pin (v<version>)" mention in README.md, docs/guide/ and .github/ISSUE_TEMPLATE/;
  • the issue forms' server-version placeholder.

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, beside SnippetCompileGuard.

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 in documentation.md, so the bullet goes there and no second home is created.

Related Issue(s):

🔄 Type of Change

  • 📚 Documentation update

🎯 Protocol & API Surface

  • No change to the public 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_Snapshot passes.
  • With README.md:100 changed to npm install -g @opencode/cli@2.2.6, it fails with README.md:100: consumer pin 2.2.6; expected 2.3.0.
  • With > 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

  • Markdown-only change: quality-gates.md requires no local check

📚 Documentation

  • Canon updated (docs/engineering/documentation.md); no CHANGELOG.md entry, nothing a consumer sees

🔍 Additional Notes

The sibling SnippetCompileGuard bullet says "compiles in CI" with the same Markdown-only gap. It is left as it is here and can follow in its own change.

…eeps install lines on the snapshot's release tag

Closes #802
@Blind-Striker Blind-Striker added this to the Next milestone Nov 14, 2026
@Blind-Striker
Blind-Striker added this pull request to the merge queue Nov 14, 2026
Merged via the queue into master with commit 4745255 Nov 14, 2026
13 checks passed
@Blind-Striker
Blind-Striker deleted the docs/802-consumer-pin-guard branch November 14, 2026 21:18
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.

Docs: a guard keeps the pinned CLI version in the README and guides in step with spec/SNAPSHOT.md

1 participant