release-readiness-gate
Runs the final pass/fail checklist and gives a release verdict. Use before approving any release.
- License 许可
- MIT
- 所属仓库
- vibbs/company-os
- 最近更新
- 2026-10-21
- Stars
- ★ 6
- Forks
- 2
01 前言 Front Matter
- name
- release-readiness-gate
- runtimes
- { "claude": { "argument-hint": "<feature or release name>", "user-invocable": true, "disable-model-invocation": true } }
- description
- Runs the final pass/fail checklist and gives a release verdict. Use before approving any release.
02 资源文件 1
- 参考文档bmad-skill-manifest.yaml786 B
03 SKILL.md 正文
Release Readiness Gate
Reference
- ID: S-QA-03
- Category: QA / Release
- Inputs: PRD (approved), RFC (approved), QA report, security review, tool logs
- Outputs: release readiness verdict (pass/fail with reasons)
- Used by: Orchestrator Agent, QA & Release Agent
- Tool scripts: ./tools/artifact/validate.sh, ./tools/artifact/promote.sh, ./tools/artifact/link.sh, ./tools/artifact/check-gate.sh
Purpose
Evaluate whether a feature/release meets all minimum quality bars. This is the final checkpoint before the Orchestrator approves a release. The gate produces a clear pass/fail verdict with specific reasons for any failures.
When to Use
- Engineering has completed implementation
- QA has run tests and produced a QA report
- Ops & Risk has completed security review
- Orchestrator asks "Is this ready to ship?"
Release Readiness Procedure
Step 1: Gather Required Artifacts
Collect and verify the existence of all required artifacts:
| # | Artifact | Location | Required |
|---|---|---|---|
| 1 | PRD | artifacts/prds/ | YES |
| 2 | RFC/ADR | artifacts/rfcs/ | YES |
| 3 | API Contract | (in RFC or separate) | YES (if API changes) |
| 4 | Threat Model | artifacts/security-reviews/ | YES |
| 5 | Test Plan | artifacts/test-plans/ | YES |
| 6 | QA Report | artifacts/qa-reports/ | YES |
| 7 | Launch Brief | artifacts/launch-briefs/ | NO (recommended) |
Run ./tools/artifact/check-gate.sh release <prd-path> to verify all required artifacts exist and are approved, then run ./tools/artifact/validate.sh on each artifact for structural correctness.
If any REQUIRED artifact is missing or check-gate fails: FAIL immediately.
Step 2: Evaluate Minimum Bars
Each bar is pass/fail. ALL must pass for release approval.
Bar 1: PRD Completeness
- [ ] PRD has status
approved - [ ] All acceptance criteria are present and testable
- [ ] Success metrics are defined with baselines and targets
- [ ] Scope boundaries are explicit
- Stage-aware: advisory in
ideastage.
Bar 2: Technical Design
- [ ] RFC/ADR exists and is approved
- [ ] API contract exists (if feature has API changes)
- [ ] Data model changes documented
- [ ] Migration strategy defined (if applicable)
- Stage-aware: advisory in
idea, RFC required atmvp+.
Bar 3: Security & Risk
- [ ] Threat model exists (even minimal)
- [ ] No unresolved CRITICAL or HIGH severity findings
- [ ] Dependency scan has been run (logs exist)
- [ ] Secrets scan has been run (logs exist)
- [ ] Auth model reviewed
- [ ] Security posture snapshot exists and is recent (run
/security-postureor./tools/security/posture-check.sh) - Stage-aware: minimal threat model at
mvp, full dependency/secrets scan atgrowth+.
Bar 4: Testing
- [ ] Test plan exists linked to PRD acceptance criteria
- [ ] Unit/integration tests pass
- [ ] API contract tests pass (if applicable)
- [ ] No critical test failures
- Stage-aware: basic test plan at
mvp+, contract tests atgrowth+.
Bar 5: Code Quality
- [ ] Lint passes
- [ ] No TODO/FIXME/HACK in new code (or explicitly tracked)
- [ ] Code follows conventions from
standards/coding/
Bar 6: Operational Readiness
- [ ] Logging covers key operations
- [ ] Error handling doesn't leak internal details
- [ ] Performance baselines met (if applicable)
- [ ] Rollback strategy documented in RFC
- [ ] Deployment strategy exists in
standards/ops/deployment-strategy.md(or feature-level deployment plan in RFC) - [ ] Pre-deploy checks pass (
./tools/deploy/pre-deploy.sh) - [ ] Incident runbook exists (e.g.,
standards/ops/support-runbook.mdor dedicated incident runbook) (at least for production-stage products) - Stage-aware: incident runbook at
growth+ only. Deployment strategy atmvp+.
Bar 7: Release Versioning
- [ ] App version file exists (
package.json,pyproject.toml, orVERSION) - [ ] Version follows semantic versioning (MAJOR.MINOR.PATCH)
- [ ] Version has been bumped since last release (compare against
.previous-version) - [ ]
CHANGELOG.mdhas an entry for the new version with date - [ ] Version is stage-appropriate: v0.x.x for
idea/mvp, v1.x.x+ forgrowth/scale - Stage-aware: advisory in
ideastage, enforced inmvp+. Run./tools/versioning/version-bump.sh --dry-runto preview.
Bar 8: Dogfood Report (Optional — Non-Blocking)
- [ ] Dogfood report exists in
artifacts/qa-reports/(if dogfooding was performed) - [ ] No CRITICAL severity issues in dogfood report
- [ ] All P0 user journeys passed (or failures are tracked with remediation plan)
- Note: This bar is informational by default. It reports whether dogfooding was run and what was found, but does not block release unless explicitly configured (
qa.dogfood_blocking: trueincompany.config.yaml).
Bar 9: Design Quality (Advisory in idea/mvp — Enforced in growth/scale)
- [ ] Design archetype is configured in
company.config.yaml(design.archetypeis not empty) - [ ] UX baseline patterns are implemented for all user-facing views:
- Empty states have icon + headline + description + CTA (never blank containers)
- Loading states use skeleton screens matching content layout (not centered spinners)
- Error states are inline for form fields, toast for action failures, full page for route errors
- Form validation is inline on blur (not submit-and-scroll)
- [ ] No hardcoded color hex values in component files (colors should reference design tokens/theme)
- [ ] Responsive behavior verified: sidebar collapses, tables scroll, no horizontal overflow at 320px
- [ ] Touch targets minimum 44x44px on all interactive elements
- Stage-aware: advisory in
ideaandmvpstages (reported but does not block). Enforced ingrowthandscalestages. To override for a specific release, adddesign_gate_override: trueto the PRD frontmatter.
Bar 10: AI Safety (Conditional — Only when AI features are present)
- [ ] Feature uses AI/LLM (check:
ai.llm_provideris configured AND RFC mentions AI/LLM/RAG/prompt) - [ ] Prompt injection protection documented (input validation, output filtering)
- [ ] Output guardrails specified (content filtering, response validation, fallback behavior)
- [ ] Cost guardrails defined (token budget per request, monthly budget cap, rate limiting)
- [ ] Bias/fairness assessment completed (or explicitly accepted as known risk with mitigation plan)
- [ ] PII handling in prompts documented (no PII sent to external LLM, or explicit consent + DPA in place)
- Stage-aware: advisory in
ideaandmvpstages. Enforced ingrowthandscalestages. Only triggers whenai.llm_provideris set and the RFC references AI/LLM components.
Step 3: Calculate Overall Verdict
## Release Readiness Verdict
### Summary
| Bar | Status |
|-----|--------|
| PRD Completeness | PASS / FAIL |
| Technical Design | PASS / FAIL |
| Security & Risk | PASS / FAIL |
| Testing | PASS / FAIL |
| Code Quality | PASS / FAIL |
| Operational Readiness | PASS / FAIL |
| Release Versioning | PASS / FAIL |
| Dogfood (optional) | PASS / FAIL / SKIPPED |
| Design Quality | PASS / FAIL / ADVISORY |
| AI Safety (conditional) | PASS / FAIL / ADVISORY / N/A |
### Overall: APPROVED FOR RELEASE / NOT READY
### Blocking Issues (if any)
1. [Specific issue] — assigned to [agent] — must resolve before re-evaluation
### Recommendations (non-blocking)
1. [Nice-to-have improvement]
Step 4: Handle Verdict
If APPROVED:
- Run
./tools/artifact/promote.shto promote all artifacts toapproved - Run
./tools/artifact/link.shto ensure lineage links are complete - Produce the release readiness report in
artifacts/qa-reports/ - Notify Orchestrator: "Release approved — all minimum bars passed"
If NOT READY:
- List every blocking issue with what's wrong, who fixes it, and what "fixed" looks like
- Do NOT promote any artifacts
- Notify Orchestrator: "Release blocked — [N] issues must be resolved"
Edge Cases
Expedited Release (Hotfix)
Reduced bars: bug documented, fix tested, no new security vulnerabilities. Skip full PRD, RFC, threat model.
Partial Release (Feature Flag)
All bars still apply, plus: flag is configured, kill switch works, monitoring covers flagged behavior.
Quality Checklist
- [ ] All required artifacts inventoried
- [ ] Each minimum bar evaluated with evidence
- [ ] Blocking issues are specific and assigned
- [ ] Verdict is binary (approved or not — no "mostly ready")
- [ ] Report stored with proper artifact frontmatter
- [ ] Artifact lineage links are complete
Definition of Done
A feature is "done" when ALL are true:
- PRD approved — problem validated, acceptance criteria testable, scope bounded
- RFC approved — technical design covers every AC, migration safe
- Security reviewed — threat model exists, no unresolved CRITICAL/HIGH findings
- Tests pass — test plan covers ACs, unit/integration/contract tests green
- Code quality verified — lint passes, no untracked TODOs in new code
- Operationally ready — logging covers key operations, errors don't leak internals
- Artifacts linked — lineage complete (parent/children/depends_on resolve)
- Human review complete — all artifacts promoted to
approvedthrough review lifecycle
04 同仓库更多 Skills
typo-field
Fixture skill with a misspelled top-level field.
spaced-comments
Fixture skill with comments and spaces after block keys.
crlf-comments
Fixture skill with Windows line endings.
claude-fields
Fixture skill using top-level fields Claude Code documents.
workflow-router
Maps an objective to the artifacts, stages and agents it needs. Use when deciding what happens next or which agents to involve.
weekly-review
Summarizes your week: what shipped, AI spend, support themes, security health and next priorities. Use at the end of each week.