From ba8edb1d42d1bff2fc2669d6ea831b55bf256574 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sat, 29 Aug 2026 05:58:14 +0000 Subject: [PATCH] fix(build): a failed agents-digest regen fails gen-skill-docs instead of deferring the red to CI Co-Authored-By: Claude Fable 5 --- scripts/gen-skill-docs.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/gen-skill-docs.ts b/scripts/gen-skill-docs.ts index 230d3cb05..3f37a97b2 100644 --- a/scripts/gen-skill-docs.ts +++ b/scripts/gen-skill-docs.ts @@ -1158,6 +1158,9 @@ if (!DRY_RUN) { } catch (err) { const msg = err instanceof Error ? err.message : String(err); console.error(`[gen-agents-digest] FAILED: ${msg}`); + // The digest is a committed freshness-gated artifact: a local build + // that silently ships it stale defers the red to CI. Fail the build. + process.exitCode = 1; } })(); }