Repository navigation
fix(skills): advance the release ledger at the cut so shipped revisions freeze - #10483
Conversation
…ns freeze #10340 made the released-skill registry a function of the committed ledger instead of a git tag walk, and #10460 reverted the cut step that advances that ledger because it violated the #9119 contract (a version-only cut must not regenerate or stage the content-addressed skill artifacts). Both were right; the result is a ledger that never advances. generate-skill-bundle-manifest.mjs:390 derives releasedCount solely from release-mapping.json and :461 assigns a changed skill releaseRevision = releasedCount + 1, while :518 protects only committedReleasedCounts[name] — so index releasedCount is unprotected. A tag ships that tail revision, nothing records it, and the next skill change rebuilds the same revision number over different bytes. Installs carrying the shipped digest then match no snapshot and degrade to unrecognized, which cannot be updated. Restore the advance in a form the #9119 contract can keep enforcing: --release now verifies that current-manifest.json and snapshot-registry.json already match the ref being tagged, appends the mapping row, and writes only release-mapping.json. The cut stages just that file, so it still cannot move a content-addressed artifact — the failure #9119 guarded against — and now fails loudly instead of recording a revision the tag does not ship. The contract test is narrowed to match: it asserts the cut runs --release (never --write) and stages exactly package.json and release-mapping.json.
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThe skill bundle generator now selectively verifies and writes content-addressed artifacts and release mappings. Release cuts invoke it for the target version and stage the resulting release mapping with 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…open The narrowed contract test anchored its `git add` scan to line start and only inspected staged paths, so three ways to reintroduce #9119 stayed green: a `git add` chained after `&&`, a write that never calls `git add` at all, and `pnpm run generate:skill-bundle-manifest` — the package.json alias for `--write`, which the hyphenated ban never matched. That last one also passed the pre-#10460 assertions, so it was never covered. Drop the anchor, require every `resources/skills` mention in the step to be exactly what is staged, and ban the alias and `commit -a`. Comments are stripped first so prose cannot trip a ban. Verified each bypass fails and the real workflow passes.
…erator Verifying the content-addressed artifacts is the only new way the cut can block, and it fails inside a step named "Bump package.json and tag" with a lint-shaped message. That names the files and the command but not the two things the operator needs: the regeneration has to land on main, and the cut is safe to re-run afterwards. Say so. Also pin down why assertReleasedHistoryPreserved takes the pre-append mapping. It pairs with artifacts.releasedSnapshotCounts, which seeding fixed before the row existed; handing it the post-append mapping makes every cut throw "Released snapshot history is incomplete", which points at tag fetching rather than the real cause. Nothing enforces the pairing.
Round-2 review defeated the previous gate twice, both proved by running the full contract file green with #9119 reintroduced. Every step in the cut job shares one workspace and one index, but the contract test only inspected `Bump package.json and tag`. A step inserted earlier could run --write and `git add resources/skills`, and the bump step's own commit swept it into the version commit and the tag. Assert job-wide instead: only the bump step may name the directory, and no step may regenerate under either the flag or its package.json alias. That lives in the generator suite because the contract file is at its max-lines cap. Two regexes were also evadable. The mention scan required a trailing slash, so a path held in a variable was invisible; it now matches the directory itself. The `commit -a` ban matched nothing at all — `commit\s` ate the only separator, so `-a`, `-am`, and `--all` all survived while only a trailing `-a` was caught. `--allow-empty` stays allowed.
…mitting Round-3 review defeated the job-wide grep three ways, each proved by running both test files green with #9119 reintroduced into the tagged commit: an `env:` block holding `--write` and `resources/skills`, a composite action whose steps the workflow never spells out, and plain shell concatenation (`root=resources; leaf=skills`). Grepping shell source for path literals is inherently evadable, and the previous fix only relocated round-2's variable-indirection hole one step over. Move the invariant to where it cannot be dodged: immediately before committing, the cut diffs its own index and refuses anything that is not package.json or the release-mapping row. That does not care which step staged what, or how the path was spelled. The workflow grep stays as a cheap tripwire for literal spellings, now paired with a positive assertion that the index guard exists and precedes the commit — indirection cannot hide a missing guard. Mention matching dedupes and trims quotes, since the guard names the row a second time.
`grep -vx` treats its patterns as regexes, so the `.` in `package.json` matched any character: a staged `packageXjson` or a `resources/skills/release-mappingXjson` was silently accepted by the index guard. Verified both slip through `-vx` and are caught by `-vxF`. Exercised the guard against a legitimate cut, an empty index, a staged content-addressed artifact, paths containing a space and a non-ASCII character (git quotes the latter, so it fails closed), and a staged deletion. Only the two allowed paths pass.
…ists The positive assertion pinned the guard's shape and its position before the commit, but not its effect: replacing `exit 1` with `:` left both test files green while the cut logged the error and shipped the artifact anyway. That is the same failure this whole gate keeps having — asserting the shape of a defense rather than what it does. Pin the abort too. Verified the neutered guard now fails the suite.
…lags Two holes in the guards this PR added, both in the same shape-not-effect class the previous commit was meant to close. The abort assertion's lazy match was not scoped to the guard's own block, so it could borrow an `exit 1` from any later `if ... fi` in the step. Degrading the guard to a warning while adding a plausible HEAD precondition left every test green. Stop the match at the guard's `fi`. The `commit -a` ban only matched when `a` led the flag cluster, so `-vam`, `-va`, `-qam` and `-sam` all survived. That matters more than it looks: `commit -a` stages at commit time, after the index guard has already inspected a clean index, so it is the one way to defeat that guard. Match `a` anywhere in a short-flag cluster; `--allow-empty` and `--amend` stay allowed. Verified both mutants now fail.
The index guard asserted the wrong thing. `git commit` has a family of forms that commit the working tree rather than the index — `-a`, `-i`, `--only`, and a bare pathspec — so a rogue earlier step could leave regenerated artifacts unstaged and any of those forms would carry them into the tagged commit while the guard saw a clean index and passed. Reproduced end to end: `git commit -i resources` put current-manifest.json and snapshot-registry.json in the tag with all gates green, and `--only resources` additionally dropped package.json from the tag. Banning those flags one by one is the same enumeration game the earlier rounds kept losing. Assert the outcome instead: after committing and before tagging, diff-tree HEAD and refuse anything that is not package.json or the release-mapping row. That is indifferent to which step staged what and to how the commit was spelled. Verified the whole family is now blocked (-i, --only, -a, -am, -vam, pathspec, and an alias expanding to `commit -i`), that a stock commit and an --allow-empty re-cut still pass, and that deleting, neutering, un-anchoring, or relocating the guard each fails the suite.
Plain `git diff-tree` prints nothing for a merge commit, so the guard would have passed silently instead of failing closed — the one direction that matters on a release path. `-m --first-parent` reports the diff against the first parent; verified byte-identical output for an ordinary commit and still empty for the `--allow-empty` re-cut, so nothing else changes. Not reachable today (nothing in the cut job creates a merge, and npm version has no lifecycle hooks defined), but the failure mode is a guard that looks like it ran. Pin the flags in the assertion too, so neither dropping -m nor slipping in a `--diff-filter` can weaken it without failing the suite.
…ns freeze (stablyai#10483) * fix(skills): advance the release ledger at the cut so shipped revisions freeze stablyai#10340 made the released-skill registry a function of the committed ledger instead of a git tag walk, and stablyai#10460 reverted the cut step that advances that ledger because it violated the stablyai#9119 contract (a version-only cut must not regenerate or stage the content-addressed skill artifacts). Both were right; the result is a ledger that never advances. generate-skill-bundle-manifest.mjs:390 derives releasedCount solely from release-mapping.json and :461 assigns a changed skill releaseRevision = releasedCount + 1, while :518 protects only committedReleasedCounts[name] — so index releasedCount is unprotected. A tag ships that tail revision, nothing records it, and the next skill change rebuilds the same revision number over different bytes. Installs carrying the shipped digest then match no snapshot and degrade to unrecognized, which cannot be updated. Restore the advance in a form the stablyai#9119 contract can keep enforcing: --release now verifies that current-manifest.json and snapshot-registry.json already match the ref being tagged, appends the mapping row, and writes only release-mapping.json. The cut stages just that file, so it still cannot move a content-addressed artifact — the failure stablyai#9119 guarded against — and now fails loudly instead of recording a revision the tag does not ship. The contract test is narrowed to match: it asserts the cut runs --release (never --write) and stages exactly package.json and release-mapping.json. * test(release-cut): close the staging bypasses the narrowed gate left open The narrowed contract test anchored its `git add` scan to line start and only inspected staged paths, so three ways to reintroduce stablyai#9119 stayed green: a `git add` chained after `&&`, a write that never calls `git add` at all, and `pnpm run generate:skill-bundle-manifest` — the package.json alias for `--write`, which the hyphenated ban never matched. That last one also passed the pre-stablyai#10460 assertions, so it was never covered. Drop the anchor, require every `resources/skills` mention in the step to be exactly what is staged, and ban the alias and `commit -a`. Comments are stripped first so prose cannot trip a ban. Verified each bypass fails and the real workflow passes. * fix(release-cut): make the new provenance failure actionable to an operator Verifying the content-addressed artifacts is the only new way the cut can block, and it fails inside a step named "Bump package.json and tag" with a lint-shaped message. That names the files and the command but not the two things the operator needs: the regeneration has to land on main, and the cut is safe to re-run afterwards. Say so. Also pin down why assertReleasedHistoryPreserved takes the pre-append mapping. It pairs with artifacts.releasedSnapshotCounts, which seeding fixed before the row existed; handing it the post-append mapping makes every cut throw "Released snapshot history is incomplete", which points at tag fetching rather than the real cause. Nothing enforces the pairing. * test(release-cut): gate the whole cut job, not just the bump step Round-2 review defeated the previous gate twice, both proved by running the full contract file green with stablyai#9119 reintroduced. Every step in the cut job shares one workspace and one index, but the contract test only inspected `Bump package.json and tag`. A step inserted earlier could run --write and `git add resources/skills`, and the bump step's own commit swept it into the version commit and the tag. Assert job-wide instead: only the bump step may name the directory, and no step may regenerate under either the flag or its package.json alias. That lives in the generator suite because the contract file is at its max-lines cap. Two regexes were also evadable. The mention scan required a trailing slash, so a path held in a variable was invisible; it now matches the directory itself. The `commit -a` ban matched nothing at all — `commit\s` ate the only separator, so `-a`, `-am`, and `--all` all survived while only a trailing `-a` was caught. `--allow-empty` stays allowed. * fix(release-cut): assert the index, not the workflow text, before committing Round-3 review defeated the job-wide grep three ways, each proved by running both test files green with stablyai#9119 reintroduced into the tagged commit: an `env:` block holding `--write` and `resources/skills`, a composite action whose steps the workflow never spells out, and plain shell concatenation (`root=resources; leaf=skills`). Grepping shell source for path literals is inherently evadable, and the previous fix only relocated round-2's variable-indirection hole one step over. Move the invariant to where it cannot be dodged: immediately before committing, the cut diffs its own index and refuses anything that is not package.json or the release-mapping row. That does not care which step staged what, or how the path was spelled. The workflow grep stays as a cheap tripwire for literal spellings, now paired with a positive assertion that the index guard exists and precedes the commit — indirection cannot hide a missing guard. Mention matching dedupes and trims quotes, since the guard names the row a second time. * fix(release-cut): match the staged-path allowlist literally `grep -vx` treats its patterns as regexes, so the `.` in `package.json` matched any character: a staged `packageXjson` or a `resources/skills/release-mappingXjson` was silently accepted by the index guard. Verified both slip through `-vx` and are caught by `-vxF`. Exercised the guard against a legitimate cut, an empty index, a staged content-addressed artifact, paths containing a space and a non-ASCII character (git quotes the latter, so it fails closed), and a staged deletion. Only the two allowed paths pass. * test(release-cut): assert the index guard aborts, not just that it exists The positive assertion pinned the guard's shape and its position before the commit, but not its effect: replacing `exit 1` with `:` left both test files green while the cut logged the error and shipped the artifact anyway. That is the same failure this whole gate keeps having — asserting the shape of a defense rather than what it does. Pin the abort too. Verified the neutered guard now fails the suite. * test(release-cut): scope the abort check and catch clustered commit flags Two holes in the guards this PR added, both in the same shape-not-effect class the previous commit was meant to close. The abort assertion's lazy match was not scoped to the guard's own block, so it could borrow an `exit 1` from any later `if ... fi` in the step. Degrading the guard to a warning while adding a plausible HEAD precondition left every test green. Stop the match at the guard's `fi`. The `commit -a` ban only matched when `a` led the flag cluster, so `-vam`, `-va`, `-qam` and `-sam` all survived. That matters more than it looks: `commit -a` stages at commit time, after the index guard has already inspected a clean index, so it is the one way to defeat that guard. Match `a` anywhere in a short-flag cluster; `--allow-empty` and `--amend` stay allowed. Verified both mutants now fail. * fix(release-cut): validate the commit, not the index, before tagging The index guard asserted the wrong thing. `git commit` has a family of forms that commit the working tree rather than the index — `-a`, `-i`, `--only`, and a bare pathspec — so a rogue earlier step could leave regenerated artifacts unstaged and any of those forms would carry them into the tagged commit while the guard saw a clean index and passed. Reproduced end to end: `git commit -i resources` put current-manifest.json and snapshot-registry.json in the tag with all gates green, and `--only resources` additionally dropped package.json from the tag. Banning those flags one by one is the same enumeration game the earlier rounds kept losing. Assert the outcome instead: after committing and before tagging, diff-tree HEAD and refuse anything that is not package.json or the release-mapping row. That is indifferent to which step staged what and to how the commit was spelled. Verified the whole family is now blocked (-i, --only, -a, -am, -vam, pathspec, and an alias expanding to `commit -i`), that a stock commit and an --allow-empty re-cut still pass, and that deleting, neutering, un-anchoring, or relocating the guard each fails the suite. * fix(release-cut): make the commit guard fail closed on a merge commit Plain `git diff-tree` prints nothing for a merge commit, so the guard would have passed silently instead of failing closed — the one direction that matters on a release path. `-m --first-parent` reports the diff against the first parent; verified byte-identical output for an ordinary commit and still empty for the `--allow-empty` re-cut, so nothing else changes. Not reachable today (nothing in the cut job creates a merge, and npm version has no lifecycle hooks defined), but the failure mode is a guard that looks like it ran. Pin the flags in the assertion too, so neither dropping -m nor slipping in a `--diff-filter` can weaken it without failing the suite.
Summary
The skill release ledger never advances, so the second skill content change after any release silently orphans every install of the first one.
config/scripts/generate-skill-bundle-manifest.mjs::390—releasedCountcomes solely fromresources/skills/release-mapping.json.:461— a changed skill getsreleaseRevision = releasedCount + 1, i.e. array indexreleasedCount.:518—protectedCount = committedReleasedCounts[name], so indexreleasedCountis unprotected.That unprotected tail is correct while it is unreleased. It stops being correct the moment a tag ships it, and nothing records that it shipped:
--releaseadvance at the cut.cc1ad064d7): a version-only cut must not rungenerate-skill-bundle-manifestor stageresources/skills. Its own message says "This leaves fix(skills): decouple skill-manifest verify from local git tags #10340 semantically incomplete and that must not be dropped."So today: a tag ships skill X at revision N; the mapping still names N-1 as the max released revision; the next content change re-derives revision N over different bytes. Every install carrying the digest the tag actually shipped matches no known snapshot, reads as unrecognized / needs-attention, and the update command cannot deliver.
v1.4.156 itself is clean — all 9 registry tails currently equal their mapped counts. Corruption lands on the second change after the cut.
Fix
Restore the ledger advance in a form the #9119 contract can keep enforcing, rather than one that has to be exempted from it.
--releaseis now provenance-only (generate-skill-bundle-manifest.mjs):current-manifest.jsonandsnapshot-registry.jsonalready match the ref being tagged — the cut proves it is not regenerating them.appendReleaseRow: v-prefix strip, dedupe, re-cut overwrite).release-mapping.json.writeArtifacts/verifyArtifactstake a path set;--writeand plain verify keep all three.release-cut.ymlruns that step and stages exactlypackage.json resources/skills/release-mapping.json.The contract test is narrowed, not deleted — it asserts the cut runs
--release, that everyresources/skillsmention in the bump step is exactly what gets staged, and that the staged set is['package.json', 'resources/skills/release-mapping.json']. A companion job-wide test asserts no step anywhere in the cut job regenerates the artifacts. See Contract-gate hardening below.Why this is safe where #10340 was not
#10340 ran the full
writeArtifactsand staged the wholeresources/skillsdirectory, so a version-only cut could rewrite content-addressed artifacts — exactly the regression #9119 fixed. The invariant is now enforced by the script itself, not by workflow convention: the release path can only write the provenance file, and it aborts before writing anything if the manifest or registry disagree with the ref.#9119's stated harm was that version bumps made committed artifacts stale on every open branch, and dragged the
resources/skills-filtered update-roundtrip matrix onto unrelated PRs. Neither recurs here: the mapping is passed through from the committed file rather than re-derived, so an open branch that rebases onto the cut still verifies clean, and the roundtrip matrix triggers onpush: main— the cut's own commit, not unrelated PRs.Screenshots
No visual change.
Testing
pnpm lint—oxlint config/scripts/cleanpnpm typecheck— cleanpnpm test—config/scriptssuite: 53 files, 420 passed / 4 skippedpnpm build— not run; no runtime/bundled code changedTwo new tests in
generate-skill-bundle-manifest.test.mjsdrive the real CLI inside a throwaway tree (the script resolves its repo root from its own location, so a copy runs against a syntheticskills/demo; nothing touchesresources/skills):records a release without regenerating the content-addressed artifacts— asserts the row is appended, the manifest and registry are byte-identical afterwards, and a--releaseover unregenerated skill bytes fails withGenerated skill artifacts are staleand writes nothing.freezes a revision once a release records it, and only until then— an unreleased tail may be re-derived over new bytes; once--releasenames revision 1, the next change appends revision 2 and revision 1 stays byte-identical.Correction to an earlier revision of this description, which called the second test "the tail-reuse regression test." It is not. With only
generate-skill-bundle-manifest.mjsreverted toorigin/mainand both new tests kept, that test passes —--releaseandappendReleaseRowalready exist on main, because #10460 reverted only the two workflow lines and deliberately left the script implementation in place. It is a characterization test of pre-existing script behavior; its assertions are non-vacuous (they die under a targeted mutation), but it does not fail without this PR. The thing actually missing in production was the workflow never invoking--release, and that is gated solely by the contract test inpackage-electron-runtime-contract.test.mjs.Mutation results (each reverted afterwards):
generate-skill-bundle-manifest.mjstoorigin/main, keep new testsGenerated skill artifacts are staleassertion; test 2 passesrelease-cut.ymlexpected -1 to be greater than 216)--releaseThe last row is not a coverage gap but is worth stating plainly: with the verification guard in place,
verifyArtifactshas already established that both content-addressed files serialize byte-identically, so rewriting them is a no-op. The "writes onlyrelease-mapping.json" narrowing is redundant defense-in-depth that no test can kill. If the verification guard is ever weakened, that narrowing silently becomes load-bearing and unprotected.Contract-gate hardening
Closing this took four rounds of adversarial review, and the first three fixes were all wrong in the same way. Every mutation below was confirmed to reintroduce #9119 while the test suite stayed green, then confirmed to fail after the fix.
git addchained after&&(invisible to a regex anchored to line start); a write reachingresources/skillswith nogit addat all; andpnpm run generate:skill-bundle-manifest, thepackage.jsonalias for--write, whose colon form never matched the banned hyphenated name. That last one also passed the pre-ci(release-cut): restore the skill-independent version commit #10460 assertions, so it predates this PR.commit -aban matched nothing at all —commit\sconsumed the only separator.env:block holding--writeandresources/skills; a compositeuses:action whose steps the workflow never spells out; and plain concatenation (root=resources; leaf=skills).Round 3 is the load-bearing lesson: grepping shell source for path literals is inherently evadable, and each fix had only relocated the previous hole. So the invariant moved to where it cannot be dodged. Round 6 then showed the first attempt at that still asserted the wrong thing — it validated the index, but
git commit -a/-i/--only/<pathspec>commits the working tree, so a rogue step could leave regenerated artifacts unstaged andgit commit -i resourceswould carry them into the tag with every gate green (--only resourcesadditionally droppedpackage.jsonfrom the tag). Enumerating those flags is the same losing game, so the guard now asserts the outcome — after committing and before tagging:It uses
-m --first-parentbecause plaindiff-treeprints nothing for a merge commit, which would make the guard pass silently — the one direction that matters here. It is indifferent to which step staged what and to how the commit was spelled. Verified blocking the whole family —-i,--only,-a,-am,-vam, a bare pathspec, and an alias expanding tocommit -i— while a stock commit and an--allow-emptyre-cut still pass. Round 4 caught that the originalgrep -vxmatched patterns as regexes, so the.inpackage.jsonadmitted a stagedpackageXjson;-Ffixes it. The guard also fails closed on paths with spaces or non-ASCII characters (git quotes those) and on staged deletions.The workflow grep survives as a cheap tripwire for literal spellings, now paired with positive assertions that the index guard exists, precedes the commit, and actually aborts — indirection can hide a path, but it cannot hide a missing guard. That last assertion came from round 4: replacing the guard's
exit 1with:had left every test green while the cut logged the error and shipped the artifact anyway — the same shape-not-effect mistake the earlier rounds kept making. Round 5 then found two holes in those very guards: the abort check could borrow anexit 1from a laterif ... fiin the same step, and thecommit -aban only matched whenaled the flag cluster, so-vam/-va/-qamsurvived. That second one is the sharper of the two —commit -astages at commit time, after the index guard has inspected a clean index, making it the one way to defeat layer 1. Both are fixed and their mutants verified failing. The job-wide test lives in the generator suite because the contract file sits at its hard 600-linemax-linescap, which is never raised or disabled.Knowingly accepted:
stagedPathsstill fails on a line-continuation, agit add --separator, or a trailing comment on the staging line, and the static tripwire still cannot see env-var or composite-action indirection. Both are fail-closed or backstopped by the runtime guard.AI Review Report
Reviewed with two independent Opus subagents (correctness/regression and test-verification) plus direct verification. Checked: the whole
main()control flow, argument-parsing edge cases, ordering of verify-before-append, thepathsrefactor's effect on everyday lint, workflow retry/idempotency, and scope.Confirmed clean:
--release ""and a missing operand both throw at:633, soreleaseVersion !== nulland the truthy checks cannot disagree.--release/--write/verify paths are git-free — working-tree hashing is pure Nodesha1;readGitBlobs/releaseTagsare reachable only from--rebuild-from-tags. The cut needs nogithistory and nopnpm install.--releaseappended one row, leftcurrent-manifest.jsonandsnapshot-registry.jsonbyte-identical (proved bygit hash-objectbefore/after), was idempotent on a second run, and exited 1 against unregenerated bytes. A second change then produced revision 37 with revision 36 frozen; without the row, revision 36 was rebuilt over different bytes. The specific digests quoted in an earlier revision of this description are functions of the reviewer's own probe edit and are not independently reproducible; the revision numbers, file-touch set, idempotency, and exit codes all are.Cross-platform: the changed contract assertions are pure string parsing over YAML and are platform-independent. The generator changes add no platform-dependent behavior — no new path handling, shell invocation, or keyboard/UI surface. The new generator tests still have the macOS-only caveat noted under Notes.
Security Audit
No new input handling, command execution, path construction, auth, secrets, or IPC surface. The one new execution point is a
nodeinvocation in the release-cut workflow whose only argument is$VERSION, already validated upstream by the version/tag-collision logic; it is passed as a singleexecFileSync-style argv element by the shell, not interpolated into a shell string. The script writes to a fixed path derived from its own location. The contract-test changes are read-only parsing.--releasereduces privilege relative to #10340: the release path can now write exactly one file.Notes
Residual risk
snapshot-registry.json, the merge is clean (mapping from main, registry from the branch) and plain verify passes on the result — the ledger then says revision N = digest B while the tag shipped digest A. Reproduced end to end in a synthetic repo, and also reproduced againstorigin/main's script, so this PR does not introduce it; it fixes the sequential case and leaves this one. Scheduled RC cuts make the window non-rare. A real fix needs the shipped digest recorded in the mapping row so the mismatch is detectable, which is a schema change and a separate PR.resources/skillson main is out of sync withskills/,--releasenow fails the cut instead of silently regenerating. That state means PR lint was already red; a blocked release beats a corrupt ledger row, but it is a new way for the cut to fail.push_main != true), the row exists at the tag but never lands on main, so that release's revision can still be rebuilt later. Pre-existing and unchanged.resources/skills/release-mapping.json, matching thepush: maintrigger ofskill-update-roundtrip.yml. fix(skills): decouple bundled skill artifacts from the release train #9119's concern was that matrix landing on unrelated PRs; this only affects the cut's own commit on main.isToleratedReleaseMappingPrefixbecomes near-vestigial on the committed path (it still guards--rebuild-from-tags). Left in place — removing it is a separate concern.Static-only — not executed here
release-cut.ymljob itself has not run. Its shape is asserted only by parsing the YAML (step order, staged paths,Setup Node.jsbeforeBump package.json and tag), plus the confirmation that the script imports onlynode:*built-ins and shells out togitonly on the--rebuild-from-tagspath.realpathbecause Node resolves the entry point through symlinks (/var→/private/varon macOS), which is a no-op elsewhere.