From 8146fef640479f22781ce371547d13166a0836fd Mon Sep 17 00:00:00 2001 From: arlophoenix Date: Fri, 23 Oct 2026 07:19:52 +1300 Subject: [PATCH] fix(pregate): keep the POLICY_SOURCE_UNAVAILABLE summary's pin-files wording The added '(or .gstack/pregate.json)' broke describeRefusal's rewrite to 'the reviewed pin files cannot be read', which pregate-wtree-refusal pins. Co-Authored-By: Claude Opus 5.5 --- lib/result-codes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/result-codes.ts b/lib/result-codes.ts index 9b168aa71..b22e5f4ac 100644 --- a/lib/result-codes.ts +++ b/lib/result-codes.ts @@ -165,7 +165,7 @@ export const RESULT_CODES = { // C-stamp (plan C1, C2, C3, C5, C7): ship policy, restamp, tree receipt, ship receipt. POLICY_SOURCE_UNAVAILABLE: { anchor: 'policy-source-unavailable', - summary: 'policy source unavailable: origin/ is not a resolvable commit, or a pin file committed on it cannot be read, so the reviewed .gstack/ship-policy.json (or .gstack/pregate.json) cannot be read', + summary: 'policy source unavailable: origin/ is not a resolvable commit, or a pin file committed on it cannot be read, so the reviewed .gstack/ship-policy.json cannot be read', fix: 'git fetch origin --depth=1 (the working-tree copy is never used silently)', }, POLICY_INVALID: {