PR & Release Safety Verification
Evaluate reversibility across 8 dimensions, verify CI status, and release SemVer tags safely with automated rollback readiness.
The Problem
Rushing releases without checking reversibility (e.g., destructive database migrations, external third-party API mutations) leads to prolonged downtime when bugs emerge in production.
Who It Is For
Release managers, operations engineers, and full-stack developers shipping production tags.
Prerequisites & Tools
- Git remote configured
- Automated CI/CD pipeline (GitHub Actions, GitLab CI)
| Tool / Command | Type | Role in Tutorial |
|---|---|---|
| acquire_release_lock | mcp | Prevent concurrent overlapping releases |
| perform_release | mcp | Execute release script and record release notes |
| record_deployment | mcp | Log deployment evidence, version, and health status |
Example Task Contract
Exact start_task payload representing this workflow in DevWorkflow local-first governance.
{
"description": "Release patch version v2.1.2 with verified CI pipeline and post-deploy health check",
"type": "other",
"plan": [
"Verify working tree is clean and all tests pass",
"Run npm run release:patch to bump SemVer and generate changelog",
"Monitor GitHub Actions CI runner on bw-tools",
"Verify live production deployment answers HTTP 200"
],
"definitionOfDone": [
"SemVer tag created and pushed to origin",
"CI/CD build and secret scan pipelines pass green",
"Production website serves new release version"
]
}Step-by-Step Tutorial Workflow
Follow these sequential actions with validated copyable commands and expected outputs.
Evaluate 8 Reversibility Dimensions
Before tagging, assess source revert, build artifact, DB schema, data recovery, and side effects.
// Reversibility Assessment:
// - Source code revert: REVERSIBLE (clean git revert)
// - Build artifact: REVERSIBLE (atomic swap)
// - Database schema: REVERSIBLE (additive column, default null)
// Classification: REVERSIBLECheck Ready to Commit
Verify clean working tree, passed tests, and completed Definition of Done criteria.
// AI Tool Call: check_ready_to_commit
{}
// Result: Ready to commit. 0 open DoD items.Release SemVer Tag & Push
Bump version via conventional commiter and push tag to origin to trigger CI/CD deployment.
npm run release:patchGenerating v2.1.2 from HEAD
✔ bumping version in package.json from 3.1.2 to 3.1.3
✔ outputting changes to CHANGELOG.md
✅ Release v2.1.2 complete; annotated tag verified on origin.Verification Steps
Verify that your work genuinely satisfies the task contract before closing.