Heist Pipeline
Laundering
Phase 6 — Verification, integration, and Ledger update. Clean production-ready code.
Laundering
Phase 6 of the Heist Pipeline
Verification and integration. The Consigliere reviews all deliverables against the Contract, the code is integrated, and The Ledger is updated with insights and fails. The output is clean, production-ready code.
Skill: gangsta:launderingSkill type: Flexible — verification adapts to project complexity
Purpose: Ensure the final product matches the Contract, is properly integrated, and that lessons learned are preserved for future Heists.
Process
- Consigliere review — Architectural advisor reviews all code against the Contract
- Integration testing — Verify all components work together correctly
- Acceptance verification — Check each acceptance criterion from the Contract
- Ledger update — Record insights (what worked) and fails (what didn't)
- Constitution amendments — Propose new rules based on lessons learned
- Final delivery — Clean, verified, production-ready code
Consigliere Review
The Consigliere (gangsta:the-consigliere) provides an impartial architectural review:
- Code quality — Does the implementation follow established patterns?
- Security — Are there vulnerabilities or security concerns?
- Performance — Are there bottlenecks or inefficiencies?
- Contract compliance — Does the code match the signed specification?
- Test coverage — Are edge cases covered?
Ledger Update
This is when institutional memory is captured:
Insights
- Successful patterns that should be reused
- Non-obvious approaches that worked well
- Domain knowledge the Don shared during the Heist
Fails
- Approaches that caused rework or confusion
- Mistakes that should not be repeated
- Process inefficiencies discovered
Constitution
- New rules proposed based on this Heist's experience
- Amendments to existing rules
- Project-specific conventions to formalize
Output: Clean Delivery
The final output of a Heist is:
- Production-ready code — Verified against the Contract
- Complete test suite — Proving all acceptance criteria are met
- Updated Ledger — Insights, fails, and constitution amendments
- Heist archive — Complete documentation in
docs/gangsta/
Phase Gate
GATE: Heist Complete
The Don verifies all acceptance criteria are met, the Consigliere review is satisfactory, the Ledger has been updated, and integration tests pass. The Don declares the Heist complete — the final stamp of approval that the feature is delivered.
What Happens After a Heist
Once the Don declares the Heist complete:
- Archive — All Heist documentation remains in
docs/gangsta/for future reference - Ledger persists — Insights, fails, and constitution rules are available for future sessions
- Clean slate — The next feature starts a fresh Heist cycle
- Carry-forward — New Heists can reference previous dossiers and contracts
Checklist Before Declaring Complete
- All acceptance criteria met
- Consigliere review completed
- Integration tests passing
- Ledger updated with insights
- Ledger updated with fails
- Constitution amendments proposed (if any)
- Don declares Heist complete