Repository navigation
ci(release): regenerate skill manifest on version bump - #9117
Merged
Merged
Conversation
The release-cut "Bump package.json and tag" step bumped package.json but never regenerated resources/skills/current-manifest.json, so its appVersion stayed at the prior release. That drift shipped in v1.4.144-rc.1, rc.2, and rc.3 (all carried an rc.1 manifest) and turns verify:skill-bundle-manifest red on every branch after a cut, since that check runs in `pnpm lint` and the PR `verify` job. Regenerate the manifest right after `npm version` and stage resources/skills into the release commit so the bundled manifest always matches the shipped version. The generator is dependency-free (node builtins + git), so it runs without a pnpm install, and the step's fetch-depth:0 checkout supplies the tag history it reads.
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe release cut workflow now regenerates the bundled skill manifest after bumping the package version and stages both 🚥 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 |
6 tasks
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
* ci(release): regenerate skill manifest on version bump The release-cut "Bump package.json and tag" step bumped package.json but never regenerated resources/skills/current-manifest.json, so its appVersion stayed at the prior release. That drift shipped in v1.4.144-rc.1, rc.2, and rc.3 (all carried an rc.1 manifest) and turns verify:skill-bundle-manifest red on every branch after a cut, since that check runs in `pnpm lint` and the PR `verify` job. Regenerate the manifest right after `npm version` and stage resources/skills into the release commit so the bundled manifest always matches the shipped version. The generator is dependency-free (node builtins + git), so it runs without a pnpm install, and the step's fetch-depth:0 checkout supplies the tag history it reads. * test(release): guard skill manifest regeneration * test(release): require full history for skill manifest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Makes the release-cut workflow regenerate the bundled skill manifest whenever it bumps the version, so
resources/skills/current-manifest.jsoncan never again drift behindpackage.json.Why
The "Bump package.json and tag" step in
release-cut.ymlrunsnpm version …but only stagedpackage.json. It never regenerated the skill manifest, whoseappVersionis derived frompackage.json. So every cut left the committed manifest pointing at the previous release.This shipped in v1.4.144-rc.1, rc.2, and rc.3 — all three carried an
appVersion: 1.4.144-rc.1manifest against an ever-newerpackage.json. Becauseverify:skill-bundle-manifestruns insidepnpm run lintand as the.github/workflows/pr.ymlverifyjob, the stale manifest turns that check red on every branch after a cut until someone regenerates by hand (which is what #9082 did as a one-off for rc.2).Runtime impact was nil —
appVersionis a provenance label, not used for freshness classification — but the CI breakage is real and recurring.Fix
Regenerate the manifest right after
npm versionand stageresources/skillsinto the release commit:node:builtins +git), so it runs in the cut job without apnpm install(the job never installs deps).fetch-depth: 0checkout gives the generator the full tag history it reads for the release mapping (also fixes the shallow-checkoutassertReleasedHistoryPreservedfailure noted during the audit).git diff --cached --quiet/ empty-commit branch still works: on a normal cut bothpackage.jsonand the manifest change; on a re-cut of the same version it self-heals a stale manifest into the commit.Verification
Simulated the cut sequence in a worktree at current
main:verify:skill-bundle-manifestmain, post-#9082)npm version 1.4.144-rc.99(bump, no regen)node config/scripts/generate-skill-bundle-manifest.mjs --write(new step)appVersion → 1.4.144-rc.99, exit 0Workflow YAML parses cleanly. No product code changed.
Found during the v1.4.144 RC release audit — this is the root-cause fix behind the stale-manifest P1 (the per-tag symptom was patched by #9082).