the-hit
The Hit: Execution and Parallel Coding
Overview
Workers and Crew Leads implement the Work Packages defined in the Execution Plan. Crews work simultaneously on their assigned territories, providing Reports (status updates) to the Underboss.
Trigger
Invoked after the Don approves the Execution Plan (Resource Development complete).
Process
Step 1: Underboss Distributes Work Packages
For each territory, the Underboss sends the Crew Lead:
- The territory definition
- The assigned Work Packages (ordered by dependency)
- The relevant Contract sections
- The applicable Constitution rules
Step 2: Crew Leads Dispatch Workers
Each Crew Lead (invoke gangsta:the-capo) processes their Work Packages:
-
For each independent Work Package, dispatch a Worker subagent with
subagent_type: "soldier"(do NOT use"general"or"general-purpose"— these are not valid in a Gangsta Agents installation), providing:- The Work Package brief
- The Contract clause being implemented
- Applicable Negative Constraints
- Territory conventions
-
Workers work in parallel within their territory (up to the allocated Worker count)
Step 3: TDD Enforcement
Every Worker MUST follow gangsta:drill-tdd — the full Red-Green-Refactor cycle:
- Write failing test — Based on the acceptance criteria
- Run test — Verify it fails for the right reason
- Write minimal implementation — Just enough to pass the test
- Run test — Verify it passes
- Report — Return Report to Crew Lead
A Worker that writes implementation before tests has its Report REJECTED.
Step 4: Report Collection
Each Worker returns a Report:
## Report: <WP-ID>
**Status:** success | failure | blocked
**TDD Cycle:**
- Test written: YES/NO
- Test failed first: YES/NO
- Implementation written: YES/NO
- Test passes: YES/NO
**Changes:**
- <file path>: <created/modified>
**Test Output:**
Step 5: Crew Lead Reviews Reports
The Crew Lead reviews each Report (invoke gangsta:the-capo):
- Acceptance criteria met?
- TDD cycle followed?
- Tests passing?
- Convention compliance?
Accept, reject with feedback, or escalate.
Step 6: Status Rollup
Crew Leads report territory status to the Underboss. The Underboss synthesizes for the Don:
## Heist Progress: <Heist Name>
| Territory | Completed | In Progress | Failed | Budget Used |
|-----------|-----------|-------------|--------|-------------|
| Frontend | 3/5 | 1 | 1 | 60% |
| Backend | 4/4 | 0 | 0 | 45% |
| ... | | | | |
**Overall:** <N>/<Total> Work Packages complete
Step 7: Escalation Handling
When a Worker fails:
- Crew Lead retries — Fresh Worker, same Work Package
- Crew Lead escalates to Underboss — If retry fails or Contract is ambiguous
- Underboss mini-Grilling — Single-round: Devils-Advocate attacks the proposed fix, Don weighs in, Synthesizer produces revised Contract clause
- Underboss escalates to Don — If beyond operational scope
Step 8: Completion
When all Crew Leads report territory completion:
- Underboss verifies: all Work Packages accepted, all tests passing
- Write the final checkpoint (status: completed, next-action: Proceed to Laundering)
- Immediately invoke
gangsta:laundering— do NOT ask the Don what to do next, do NOT pause, do NOT prompt for confirmation. Auto-advance is mandatory.
Checkpoint
Write checkpoint after each significant batch of Work Packages completes (not just at the end):
---
heist: <heist-name>
phase: the-hit
status: in-progress | completed
timestamp: <ISO 8601>
next-action: <Continue Hit | Proceed to Laundering (auto)>
completed-wps: [WP-001, WP-002, ...]
pending-wps: [WP-003, ...]
failed-wps: [WP-004, ...]
artifacts:
- <list of modified/created files>
---
Omerta Compliance
- Introduction Rule: Workers dispatched through Crew Leads, no direct Worker communication
- Rule of Truth: Reports include actual test output, not claims
- Rule of Budget: Token usage tracked per Worker dispatch
- Spec is Law: Every implementation traces to a Contract clause via Work Package
- Rule of Availability: Checkpoint updated after each batch
More from kucherenko/gangsta
drill-tdd
Use when implementing any feature or bugfix — enforces the Red-Green-Refactor drill with no production code allowed without a failing test first
4the-capo
Use when orchestrating workers within a specific domain territory — managing work package dispatch, reviewing reports against the contract, and reporting status to the underboss
3omerta
Use when enforcing governance guardrails during any gangsta operation — referenced as cross-cutting concern by all skills for anti-hallucination, authorization, state durability, resource management, and spec supremacy rules
3reconnaissance
Use when beginning a new heist — deploys associates to survey the target codebase, existing tests, dependencies, documentation, and the ledger to produce a reconnaissance dossier for the don's review
3the-consigliere
Use when needing impartial architectural advice, security audit, spec integrity review, or a second opinion — operates outside the chain of command with standing authority to invoke truth checks
3audit-review
Use when completing tasks, implementing major features, or before merging — dispatches the-inspector to audit the books before the job is closed
3