Execution
Phase 5 of the Heist Pipeline
Implementation. Workers implement the Execution Plan, writing code that fulfills the Contract. Each task follows Test-Driven Development within its budget.
Skill: gangsta:the-hitSkill type: Rigid — TDD discipline and budget tracking are non-negotiable
Process
- Assign Workers — The Underboss dispatches work packages to Worker subagents
- TDD per package — Each Worker follows
gangsta:drill-tdd(Red-Green-Refactor) - Respect budgets — Track resource consumption against estimated budgets
- Implement per Contract — Code matches the specification, not the other way around
- Report completion — Workers submit completed work for review
- Collect budget reports — Document actual resource consumption vs. estimates
Test-Driven Development
During Execution, all implementation follows the Red-Green-Refactor cycle:
- Red — Write a failing test that defines the desired behavior
- Green — Write the minimum code to make the test pass
- Refactor — Improve the code while keeping all tests green
gangsta:drill-tdd).Budget Tracking
Each work package has a budget estimated during Resource Development. During Execution:
- Within budget — Task completed within estimate ✅
- Over budget — Task consumed more resources than estimated ⚠️
- Flagged — Over-budget tasks must report to the Don for review
Spec Deviations
If implementation reveals that the Contract is wrong:
- Stop implementation
- Propose a Contract revision (with reasoning)
- Get Don approval for the revision
- Resume implementation under the revised spec
This ensures every design change is intentional and tracked — not accidental drift.
Output
Execution produces:
- Implemented code — Fulfilling the Contract
- Test suite — Proving the implementation works
- Budget report — Actual vs. estimated resource consumption
- Spec deviations — Any Contract revisions that were needed
Phase Gate
Autonomous Mode
In Autonomous Mode (started via /gangsta:heist), The Hit executes after you sign the Contract with /gangsta:go. The key difference: the Don Proxy only intervenes at Worker-failure mini-Grilling. If a mini-Grilling occurs during Execution, it produces a deviation report only — the signed Contract remains byte-identical before and after. Contract amendment requires a fresh Sit-Down.
Execution auto-advances to Laundering when all Work Packages report complete. Full Autonomous Mode docs →
Checklist Before Proceeding
- All work packages implemented
- All tests passing (Red-Green-Refactor followed)
- Code matches Contract (no unauthorized spec deviations)
- Budget reports submitted
- Any spec deviations documented and approved
- Don approves completion