Release Readiness Guardrail
Use this skill as the final pre-publish gate.
Quick Start
bash
bash agents/skills/upgrade-release-readiness-guardrail/scripts/release-readiness-gate.sh origin/main
This command runs:
- •remote-main sync check (
HEAD== latestorigin/main) - •public API gate script
- •state-manager guard script
- •tx guard smoke script
- •crypto guard smoke script
- •
npm run build - •
npm pack --dry-run - •semver sanity check vs base ref
Workflow
- •Choose base ref representing the latest released commit (tag or default branch).
- •Run
release-readiness-gate.sh <base-ref>. - •Review output artifacts in:
agents/skills/upgrade-release-readiness-guardrail/out/ - •Block release on any failure.
Output Artifacts
- •
public-api-report.md - •
public-api-report.json - •
npm-pack-dry-run.txt - •
release-gate-summary.txt
Fail Conditions
- •current commit is not exactly the latest
origin/maincommit - •public API breaking changes without major version bump
- •no version bump in
package.jsoncompared to base ref - •version bumped but missing commit subject
NPM version upgrade to <version> - •missing built entry files from pack output
- •failing state/tx/crypto gates
- •failing build or dry-run package step
Release policy reference: references/release-policy.md.