[{"data":1,"prerenderedAt":450},["ShallowReactive",2],{"navigation_docs":3,"-heist-pipeline-the-hit":125,"-heist-pipeline-the-hit-surround":445},[4,28,62,94,100],{"title":5,"path":6,"stem":7,"children":8,"order":11,"icon":27},"Getting Started","/getting-started","1.getting-started/index",[9,12,17,22],{"title":10,"path":6,"stem":7,"order":11},"What is Gangsta?",1,{"title":13,"path":14,"stem":15,"order":16},"Installation","/getting-started/installation","1.getting-started/installation",2,{"title":18,"path":19,"stem":20,"order":21},"Quickstart — Your First Heist","/getting-started/quickstart","1.getting-started/quickstart",3,{"title":23,"path":24,"stem":25,"order":26},"The 1% Rule","/getting-started/the-1-percent-rule","1.getting-started/the-1-percent-rule",4,"i-lucide-rocket",{"title":29,"path":30,"stem":31,"children":32,"order":11,"icon":61},"Core Concepts","/core-concepts","2.core-concepts/index",[33,34,39,43,48,52,56],{"title":29,"path":30,"stem":31,"order":11},{"title":35,"path":36,"stem":37,"order":38},"Intent Routing","/core-concepts/intent-routing","2.core-concepts/intent-routing",5,{"title":40,"path":41,"stem":42,"order":26},"Omerta — The Five Laws","/core-concepts/omerta","2.core-concepts/omerta",{"title":44,"path":45,"stem":46,"order":47},"Spec-Driven Development","/core-concepts/spec-driven-dev","2.core-concepts/spec-driven-dev",7,{"title":49,"path":50,"stem":51,"order":16},"The Borgata Hierarchy","/core-concepts/the-borgata","2.core-concepts/the-borgata",{"title":53,"path":54,"stem":55,"order":21},"The Heist Pipeline","/core-concepts/the-heist","2.core-concepts/the-heist",{"title":57,"path":58,"stem":59,"order":60},"The Ledger","/core-concepts/the-ledger","2.core-concepts/the-ledger",6,"i-lucide-brain",{"title":63,"icon":64,"path":65,"stem":66,"children":67},"Heist Pipeline","i-lucide-workflow","/heist-pipeline","3.heist-pipeline",[68,70,74,78,82,86,90],{"title":53,"path":65,"stem":69,"order":11},"3.heist-pipeline/index",{"title":71,"path":72,"stem":73,"order":16},"Reconnaissance","/heist-pipeline/reconnaissance","3.heist-pipeline/1.reconnaissance",{"title":75,"path":76,"stem":77,"order":21},"The Grilling","/heist-pipeline/the-grilling","3.heist-pipeline/2.the-grilling",{"title":79,"path":80,"stem":81,"order":26},"The Sit-Down","/heist-pipeline/the-sit-down","3.heist-pipeline/3.the-sit-down",{"title":83,"path":84,"stem":85,"order":38},"Resource Development","/heist-pipeline/resource-development","3.heist-pipeline/4.resource-development",{"title":87,"path":88,"stem":89,"order":60},"The Hit","/heist-pipeline/the-hit","3.heist-pipeline/5.the-hit",{"title":91,"path":92,"stem":93,"order":47},"Laundering","/heist-pipeline/laundering","3.heist-pipeline/6.laundering",{"title":95,"path":96,"stem":97,"children":98},"Skills Reference","/skills","4.skills/index",[99],{"title":95,"path":96,"stem":97},{"title":101,"icon":102,"path":103,"stem":104,"children":105},"Advanced","i-lucide-zap","/advanced","5.advanced",[106,109,113,117,121],{"title":107,"path":103,"stem":108,"order":11},"Advanced Topics","5.advanced/index",{"title":110,"path":111,"stem":112,"order":26},"Checkpoint Recovery","/advanced/checkpoint-recovery","5.advanced/checkpoint-recovery",{"title":114,"path":115,"stem":116,"order":38},"Contributing","/advanced/contributing","5.advanced/contributing",{"title":118,"path":119,"stem":120,"order":16},"Writing Custom Skills","/advanced/custom-skills","5.advanced/custom-skills",{"title":122,"path":123,"stem":124,"order":21},"Multi-Agent Patterns","/advanced/multi-agent-patterns","5.advanced/multi-agent-patterns",{"id":126,"title":87,"body":127,"description":438,"extension":439,"links":440,"meta":441,"navigation":442,"path":88,"seo":443,"stem":89,"__hash__":444},"docs/3.heist-pipeline/5.the-hit.md",{"type":128,"value":129,"toc":428},"minimark",[130,134,141,144,158,167,172,216,220,223,243,254,258,261,282,286,289,326,329,333,336,362,366,370,374,418],[131,132,87],"h1",{"id":133},"the-hit",[135,136,137],"p",{},[138,139,140],"strong",{},"Phase 5 of the Heist Pipeline",[135,142,143],{},"Execution. Soldiers implement the War Plan, writing code that fulfills the Contract. Each task follows Test-Driven Development within its tribute budget.",[135,145,146,149,150,154,157],{},[138,147,148],{},"Skill:"," ",[151,152,153],"code",{},"gangsta:the-hit",[138,155,156],{},"Skill type:"," Rigid — TDD discipline and tribute tracking are non-negotiable",[159,160,163,166],"callout",{"icon":161,"type":162},"i-lucide-crosshair","info",[138,164,165],{},"Purpose:"," Implement the Contract. Code is written here — and only here in the Heist Pipeline.",[168,169,171],"h2",{"id":170},"process","Process",[173,174,175,182,192,198,204,210],"ol",{},[176,177,178,181],"li",{},[138,179,180],{},"Assign Soldiers"," — The Underboss dispatches work packages to Soldier subagents",[176,183,184,187,188,191],{},[138,185,186],{},"TDD per package"," — Each Soldier follows ",[151,189,190],{},"gangsta:drill-tdd"," (Red-Green-Refactor)",[176,193,194,197],{},[138,195,196],{},"Respect tributes"," — Track resource consumption against estimated budgets",[176,199,200,203],{},[138,201,202],{},"Implement per Contract"," — Code matches the specification, not the other way around",[176,205,206,209],{},[138,207,208],{},"Report completion"," — Soldiers submit completed work for review",[176,211,212,215],{},[138,213,214],{},"Collect tributes"," — Document actual resource consumption vs. estimates",[168,217,219],{"id":218},"test-driven-development","Test-Driven Development",[135,221,222],{},"During The Hit, all implementation follows the Red-Green-Refactor cycle:",[173,224,225,231,237],{},[176,226,227,230],{},[138,228,229],{},"Red"," — Write a failing test that defines the desired behavior",[176,232,233,236],{},[138,234,235],{},"Green"," — Write the minimum code to make the test pass",[176,238,239,242],{},[138,240,241],{},"Refactor"," — Improve the code while keeping all tests green",[159,244,247,250,251,253],{"icon":245,"type":246},"i-lucide-test-tubes","warning",[138,248,249],{},"No code without a test."," Every feature, every fix, every change starts with a test. This isn't a preference — it's the drill (",[151,252,190],{},").",[168,255,257],{"id":256},"tribute-tracking","Tribute Tracking",[135,259,260],{},"Each work package has a tribute (budget) estimated during Resource Development. During The Hit:",[262,263,264,270,276],"ul",{},[176,265,266,269],{},[138,267,268],{},"Within budget"," — Task completed within estimate ✅",[176,271,272,275],{},[138,273,274],{},"Over budget"," — Task consumed more resources than estimated ⚠️",[176,277,278,281],{},[138,279,280],{},"Flagged"," — Over-budget tasks must report to the Don for review",[168,283,285],{"id":284},"spec-deviations","Spec Deviations",[135,287,288],{},"If implementation reveals that the Contract is wrong:",[159,290,293,298,301],{"icon":291,"type":292},"i-lucide-file-warning","danger",[135,294,295],{},[138,296,297],{},"Don't just change the code.",[135,299,300],{},"Omerta Law #5: Spec is Law. If the code contradicts the spec:",[173,302,303,308,314,320],{},[176,304,305],{},[138,306,307],{},"Stop implementation",[176,309,310,313],{},[138,311,312],{},"Propose a Contract revision"," (with reasoning)",[176,315,316,319],{},[138,317,318],{},"Get Don approval"," for the revision",[176,321,322,325],{},[138,323,324],{},"Resume implementation"," under the revised spec",[135,327,328],{},"This ensures every design change is intentional and tracked — not accidental drift.",[168,330,332],{"id":331},"output","Output",[135,334,335],{},"The Hit produces:",[262,337,338,344,350,356],{},[176,339,340,343],{},[138,341,342],{},"Implemented code"," — Fulfilling the Contract",[176,345,346,349],{},[138,347,348],{},"Test suite"," — Proving the implementation works",[176,351,352,355],{},[138,353,354],{},"Tribute report"," — Actual vs. estimated resource consumption",[176,357,358,361],{},[138,359,360],{},"Spec deviations"," — Any Contract revisions that were needed",[168,363,365],{"id":364},"phase-gate","Phase Gate",[364,367,369],{"title":368},"GATE: Completion Approved","The Don must review all deliverables. Verify code matches the Contract, all tests pass, tribute reports are reviewed for over-budget items, and any spec deviations are documented. Only approve when all tasks are complete and verified.",[168,371,373],{"id":372},"checklist-before-proceeding","Checklist Before Proceeding",[262,375,378,388,394,400,406,412],{"className":376},[377],"contains-task-list",[176,379,382,387],{"className":380},[381],"task-list-item",[383,384],"input",{"disabled":385,"type":386},true,"checkbox"," All work packages implemented",[176,389,391,393],{"className":390},[381],[383,392],{"disabled":385,"type":386}," All tests passing (Red-Green-Refactor followed)",[176,395,397,399],{"className":396},[381],[383,398],{"disabled":385,"type":386}," Code matches Contract (no unauthorized spec deviations)",[176,401,403,405],{"className":402},[381],[383,404],{"disabled":385,"type":386}," Tribute reports submitted",[176,407,409,411],{"className":408},[381],[383,410],{"disabled":385,"type":386}," Any spec deviations documented and approved",[176,413,415,417],{"className":414},[381],[383,416],{"disabled":385,"type":386}," Don approves completion",[135,419,420,424,425],{},[421,422,423],"a",{"href":84},"Previous: Resource Development ←"," | ",[421,426,427],{"href":92},"Next: Laundering →",{"title":429,"searchDepth":16,"depth":16,"links":430},"",[431,432,433,434,435,436,437],{"id":170,"depth":16,"text":171},{"id":218,"depth":16,"text":219},{"id":256,"depth":16,"text":257},{"id":284,"depth":16,"text":285},{"id":331,"depth":16,"text":332},{"id":364,"depth":16,"text":365},{"id":372,"depth":16,"text":373},"Phase 5 — Parallel execution by Soldiers using Test-Driven Development and tribute tracking.","md",null,{},{"order":60},{"title":87,"description":438},"OgsuFPHm8X2hhqJkSePNPAKZqeKxedBzgbmbRHWeGIA",[446,448],{"title":83,"path":84,"stem":85,"description":447,"order":38,"children":-1},"Phase 4 — Decompose the Contract into work packages and allocate territories.",{"title":91,"path":92,"stem":93,"description":449,"order":47,"children":-1},"Phase 6 — Verification, integration, and Ledger update. Clean production-ready code.",1776282626914]