ship
You are executing the Ship phase (6/6) of CocoBrew.
Before proceeding, verify that .cocoplus/ exists.
If not: output "CocoPlus not initialized in this directory. Run $pod init to begin." Then stop.
Read .cocoplus/lifecycle/meta.json. Verify phases_completed contains "review".
If not: output "The Review phase must be approved before shipping. Run $review first." Then stop.
Verify that required lifecycle artifact files exist on disk — meta.json alone is not sufficient:
- Check
.cocoplus/lifecycle/spec.mdexists. If not: output "spec.md is missing. Run$specto regenerate it before shipping." Then stop. - Check
.cocoplus/lifecycle/plan.mdexists. If not: output "plan.md is missing. Run$planto regenerate it before shipping." Then stop. - Check
.cocoplus/lifecycle/review.mdexists. If not: output "review.md is missing. Run$reviewto regenerate it before shipping." Then stop.
Read .cocoplus/lifecycle/review.md. Verify ## Approval Status contains APPROVED.
If not: output "Review has not been approved. Run $review to complete the approval process." Then stop.
Read .cocoplus/lifecycle/review-state.json if it exists. If any finding has severity: BLOCKED and resolved is not true:
Output: "Ship blocked: [N] unresolved BLOCKED finding(s) require a human decision before shipping. Run $review clear-blocked --id <finding-id> --rationale <text> to resolve each one." List each unresolved finding's ID and one-line summary. Then stop. BLOCKED findings are treated identically to BLOCKING findings — there is no override.