Phase 5: Finalize¶
Final quality verification and merge readiness using the finalization-orchestrator. Produces a Go/No-Go decision.
Command: /vt-c-5-finalize [--env production] [--migration]
When to use¶
After the code review in Phase 4 passes. This is the final gate before code is merged to main.
What happens¶
- Test gate verification -- Reads
.test-gate.mdand verifies:- File exists (if missing, finalization is blocked)
status: PASS(if FAIL, finalization is blocked)branchmatches the current branch (stale gates are rejected)
See Testing Procedures for the gate file format and how to generate it.
-
Version gate check -- Runs
check-finalize-versions.shto verify plugin versioning is in order:Gate State Result VERSION_GATE: PASSFinalization proceeds VERSION_GATE: WARNWarning displayed, finalization proceeds VERSION_GATE: FAILBlocked — version bump or changelog entry missing The script checks each plugin for code changes since the last release. If code changed, it requires a version bump in
registry.jsonand a corresponding CHANGELOG.md entry. To resolve a FAIL: bump the version inplugins/registry.jsonand add a changelog entry to the plugin'sCHANGELOG.md. -
Documentation build (when
docs/user-manual/exists) -- Runsmkdocs build --strictto verify the docs site builds without broken links or missing pages. Build failures block finalization. - Repo governance audit -- If
.repo-manifest.yamlexists, runs/vt-c-repo-audit --ci-modeto verify zero context bleed and LFS compliance. Fails on any context artifacts in deployable paths. - Dependency security audit -- Runs
npm auditorbundle auditto find known vulnerabilities in dependencies. - Final security scan -- Last-pass review for anything missed in Phase 4.
- Migration safety -- If database migrations are pending, checks for zero-downtime compatibility, rollback capability, and data loss risks.
- Compliance verification -- GDPR data handling, SOC2 logging, PII protection, and audit trail completeness.
- Constitution compliance (when SpecKit active) -- Verifies all constitution principles are respected and reports spec coverage percentage.
Output¶
- Finalization report with check results for each category
- Go/No-Go decision with rationale
- Rollback plan (previous version, rollback command, monitoring targets)
- Post-merge monitoring checklist
Next step¶
- If GO: Merge PR to main, then Phase 6: Operate
- If NO-GO: Fix blocking issues, then run
/vt-c-5-finalizeagain.