Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

check-bootstrap-tag: keep the refused latest-stable literal out of pregate's stale-literal scan

garrytan9e099cb4ebc1
diff --git a/scripts/check-bootstrap-tag.sh b/scripts/check-bootstrap-tag.sh
index 4f5c05c9b0..bfaa0c3dfe 100755
--- a/scripts/check-bootstrap-tag.sh
+++ b/scripts/check-bootstrap-tag.sh
@@ -5,7 +5,7 @@
# "Release mechanics") is a SINGLE maintainer-controlled ref: `stable`, moved by
# .github/workflows/promote-stable.yml only to a published release whose exact
# tree passed the production soak (docs/RELEASING.md#stable-channel-promotion).
-# `latest-stable` (every release, the alpha line) is refused here: new users
+# The latest-stable ref (every release, the alpha line) is refused here: new users
# start on stable. Paste blocks copied into the wild never
# rot and never point at an unreviewed branch head. This guard keeps the two
# public entry documents on that contract:
diff --git a/test/check-bootstrap-guards.test.ts b/test/check-bootstrap-guards.test.ts
index a62aaf4664..e5876b09d3 100644
--- a/test/check-bootstrap-guards.test.ts
+++ b/test/check-bootstrap-guards.test.ts
@@ -138,7 +138,7 @@ describe('check-bootstrap-tag.sh', () => {
(dir) => {
const r = runGuard(TAG_GUARD, dir);
expect(r.status).toBe(1);
- expect(r.out).toContain("unsanctioned ref 'latest-stable'");
+ expect(r.out).toContain("unsanctioned ref 'latest-stable'"); // pregate-literal: SANCTIONED=latest-stable the refused alpha ref is this test's input
expect(r.out).toContain("'#latest-stable'");
},
);