Heist Pipeline

Execution

Phase 5 — Parallel implementation by Workers using Test-Driven Development and budget tracking.

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

Purpose: Implement the Contract. Code is written here — and only here in the Heist Pipeline.

Process

  1. Assign Workers — The Underboss dispatches work packages to Worker subagents
  2. TDD per package — Each Worker follows gangsta:drill-tdd (Red-Green-Refactor)
  3. Respect budgets — Track resource consumption against estimated budgets
  4. Implement per Contract — Code matches the specification, not the other way around
  5. Report completion — Workers submit completed work for review
  6. Collect budget reports — Document actual resource consumption vs. estimates

Test-Driven Development

During Execution, all implementation follows the Red-Green-Refactor cycle:

  1. Red — Write a failing test that defines the desired behavior
  2. Green — Write the minimum code to make the test pass
  3. Refactor — Improve the code while keeping all tests green
No code without a test. Every feature, every fix, every change starts with a test. This isn't a preference — it's the drill (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:

Don't just change the code.Omerta Law #5: Spec is Law. If the code contradicts the spec:
  1. Stop implementation
  2. Propose a Contract revision (with reasoning)
  3. Get Don approval for the revision
  4. 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

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

Previous: Resource Development ← | Next: The Delivery →