[{"data":1,"prerenderedAt":680},["ShallowReactive",2],{"navigation_docs":3,"-skills-hierarchy-roles-the-underboss":246,"-skills-hierarchy-roles-the-underboss-surround":675},[4,28,62,94,207,236,240],{"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 Agents?",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 Gangsta Agents Family 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},"Execution","/heist-pipeline/the-hit","3.heist-pipeline/5.the-hit",{"title":91,"path":92,"stem":93,"order":47},"The Delivery","/heist-pipeline/laundering","3.heist-pipeline/6.laundering",{"title":95,"icon":96,"path":97,"stem":98,"children":99},"Skills Reference","i-heroicons-bolt","/skills","4.skills",[100,102,138,173],{"title":95,"path":97,"stem":101,"order":11,"icon":96},"4.skills/index",{"title":103,"icon":104,"path":105,"stem":106,"children":107,"page":137},"Dev Skills","i-heroicons-wrench-screwdriver","/skills/dev-skills","4.skills/dev-skills",[108,113,117,121,125,129,133],{"title":109,"path":110,"stem":111,"order":112,"icon":96},"audit-review","/skills/dev-skills/audit-review","4.skills/dev-skills/audit-review",31,{"title":114,"path":115,"stem":116,"order":112,"icon":96},"drill-tdd","/skills/dev-skills/drill-tdd","4.skills/dev-skills/drill-tdd",{"title":118,"path":119,"stem":120,"order":112,"icon":96},"exit-strategy","/skills/dev-skills/exit-strategy","4.skills/dev-skills/exit-strategy",{"title":122,"path":123,"stem":124,"order":112,"icon":96},"interrogation-debugging","/skills/dev-skills/interrogation-debugging","4.skills/dev-skills/interrogation-debugging",{"title":126,"path":127,"stem":128,"order":112,"icon":96},"receiving-orders","/skills/dev-skills/receiving-orders","4.skills/dev-skills/receiving-orders",{"title":130,"path":131,"stem":132,"order":112,"icon":96},"safehouse-worktrees","/skills/dev-skills/safehouse-worktrees","4.skills/dev-skills/safehouse-worktrees",{"title":134,"path":135,"stem":136,"order":112,"icon":96},"sweep-verification","/skills/dev-skills/sweep-verification","4.skills/dev-skills/sweep-verification",false,{"title":139,"icon":140,"path":141,"stem":142,"children":143,"page":137},"Heist Phases","i-heroicons-academic-cap","/skills/heist-phases","4.skills/heist-phases",[144,149,154,158,163,168],{"title":145,"path":146,"stem":147,"order":148,"icon":96},"laundering","/skills/heist-phases/laundering","4.skills/heist-phases/laundering",21,{"title":150,"path":151,"stem":152,"order":153,"icon":96},"reconnaissance","/skills/heist-phases/reconnaissance","4.skills/heist-phases/reconnaissance",22,{"title":155,"path":156,"stem":157,"order":148,"icon":96},"resource-development","/skills/heist-phases/resource-development","4.skills/heist-phases/resource-development",{"title":159,"path":160,"stem":161,"order":162,"icon":96},"the-grilling","/skills/heist-phases/the-grilling","4.skills/heist-phases/the-grilling",23,{"title":164,"path":165,"stem":166,"order":167,"icon":96},"the-hit","/skills/heist-phases/the-hit","4.skills/heist-phases/the-hit",24,{"title":169,"path":170,"stem":171,"order":172,"icon":96},"the-sit-down","/skills/heist-phases/the-sit-down","4.skills/heist-phases/the-sit-down",26,{"title":174,"icon":175,"path":176,"stem":177,"children":178,"page":137},"Hierarchy Roles","i-heroicons-user-group","/skills/hierarchy-roles","4.skills/hierarchy-roles",[179,184,188,193,198,203],{"title":180,"path":181,"stem":182,"order":183,"icon":96},"omerta","/skills/hierarchy-roles/omerta","4.skills/hierarchy-roles/omerta",11,{"title":185,"path":186,"stem":187,"order":183,"icon":96},"the-capo","/skills/hierarchy-roles/the-capo","4.skills/hierarchy-roles/the-capo",{"title":189,"path":190,"stem":191,"order":192,"icon":96},"the-consigliere","/skills/hierarchy-roles/the-consigliere","4.skills/hierarchy-roles/the-consigliere",12,{"title":194,"path":195,"stem":196,"order":197,"icon":96},"the-ledger","/skills/hierarchy-roles/the-ledger","4.skills/hierarchy-roles/the-ledger",15,{"title":199,"path":200,"stem":201,"order":202,"icon":96},"the-underboss","/skills/hierarchy-roles/the-underboss","4.skills/hierarchy-roles/the-underboss",17,{"title":204,"path":205,"stem":206,"order":183,"icon":96},"using-gangsta","/skills/hierarchy-roles/using-gangsta","4.skills/hierarchy-roles/using-gangsta",{"title":208,"icon":209,"path":210,"stem":211,"children":212},"Advanced","i-lucide-zap","/advanced","5.advanced",[213,216,220,224,228,232],{"title":214,"path":210,"stem":215,"order":11},"Advanced Topics","5.advanced/index",{"title":217,"path":218,"stem":219,"order":38},"Artifacts Reference","/advanced/artifacts","5.advanced/artifacts",{"title":221,"path":222,"stem":223,"order":26},"Checkpoint Recovery","/advanced/checkpoint-recovery","5.advanced/checkpoint-recovery",{"title":225,"path":226,"stem":227,"order":38},"Contributing","/advanced/contributing","5.advanced/contributing",{"title":229,"path":230,"stem":231,"order":16},"Writing Custom Skills","/advanced/custom-skills","5.advanced/custom-skills",{"title":233,"path":234,"stem":235,"order":21},"Multi-Agent Patterns","/advanced/multi-agent-patterns","5.advanced/multi-agent-patterns",{"title":237,"path":238,"stem":239,"order":60},"Glossary","/glossary","6.glossary",{"title":241,"path":242,"stem":243,"order":244,"icon":245},"Changelog","/changelog","7.changelog",8,"i-lucide-scroll-text",{"id":247,"title":199,"body":248,"description":668,"extension":669,"links":670,"meta":671,"navigation":672,"path":200,"seo":673,"stem":201,"__hash__":674},"docs/4.skills/hierarchy-roles/the-underboss.md",{"type":249,"value":250,"toc":656},"minimark",[251,256,261,265,269,316,320,323,423,428,652],[252,253,255],"h1",{"id":254},"the-underboss-task-middleware-and-resource-manager","The Underboss: Task Middleware and Resource Manager",[257,258,260],"h2",{"id":259},"overview","Overview",[262,263,264],"p",{},"The Underboss is the COO of the Gangsta Agents Family. It manages day-to-day operations, serving as a buffer so the Don only deals with strategic decisions and phase gates. The Underboss is the primary engine of task decomposition.",[257,266,268],{"id":267},"responsibilities","Responsibilities",[270,271,272,280,286,292,298,304,310],"ol",{},[273,274,275,279],"li",{},[276,277,278],"strong",{},"Task Decomposition"," — Break the Contract into bite-sized Work Packages (2-5 minutes each)",[273,281,282,285],{},[276,283,284],{},"Territory Allocation"," — Assign Work Packages to Crew Lead domains based on file paths and concerns",[273,287,288,291],{},[276,289,290],{},"Resource Management"," — Allocate token budgets per territory, track consumption",[273,293,294,297],{},[276,295,296],{},"Phase Tracking"," — Maintain Heist phase progression, write checkpoints (Omerta Law 2)",[273,299,300,303],{},[276,301,302],{},"Status Rollup"," — Collect Reports from Crew Leads, synthesize for the Don",[273,305,306,309],{},[276,307,308],{},"Escalation Handler"," — Receive escalations from Crew Leads, decide on retry/mini-Grilling/Don involvement",[273,311,312,315],{},[276,313,314],{},"Associate Deployment"," — Deploy Associates for reconnaissance and specialized tasks",[257,317,319],{"id":318},"work-package-format","Work Package Format",[262,321,322],{},"Each Work Package given to a Crew Lead contains:",[324,325,330],"pre",{"className":326,"code":327,"language":328,"meta":329,"style":329},"language-markdown shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","## Work Package: \u003CWP-ID>\n\n**Territory:** \u003CCrew Lead domain name>\n**Contract Clause:** \u003CReference to the specific Contract section this implements>\n\n### Files\n- Create: `exact/path/to/new-file.ext`\n- Modify: `exact/path/to/existing-file.ext`\n- Test: `tests/exact/path/to/test-file.ext`\n\n### Acceptance Criteria\n1. \u003CSpecific, testable criterion from the Contract>\n2. \u003CAnother criterion>\n\n### Verification\n```bash\n\u003CExact command to verify this Work Package>\n","markdown","",[331,332,333,340,346,351,356,360,365,370,375,381,386,391,396,402,407,412,418],"code",{"__ignoreMap":329},[334,335,337],"span",{"class":336,"line":11},"line",[334,338,339],{},"## Work Package: \u003CWP-ID>\n",[334,341,342],{"class":336,"line":16},[334,343,345],{"emptyLinePlaceholder":344},true,"\n",[334,347,348],{"class":336,"line":21},[334,349,350],{},"**Territory:** \u003CCrew Lead domain name>\n",[334,352,353],{"class":336,"line":26},[334,354,355],{},"**Contract Clause:** \u003CReference to the specific Contract section this implements>\n",[334,357,358],{"class":336,"line":38},[334,359,345],{"emptyLinePlaceholder":344},[334,361,362],{"class":336,"line":60},[334,363,364],{},"### Files\n",[334,366,367],{"class":336,"line":47},[334,368,369],{},"- Create: `exact/path/to/new-file.ext`\n",[334,371,372],{"class":336,"line":244},[334,373,374],{},"- Modify: `exact/path/to/existing-file.ext`\n",[334,376,378],{"class":336,"line":377},9,[334,379,380],{},"- Test: `tests/exact/path/to/test-file.ext`\n",[334,382,384],{"class":336,"line":383},10,[334,385,345],{"emptyLinePlaceholder":344},[334,387,388],{"class":336,"line":183},[334,389,390],{},"### Acceptance Criteria\n",[334,392,393],{"class":336,"line":192},[334,394,395],{},"1. \u003CSpecific, testable criterion from the Contract>\n",[334,397,399],{"class":336,"line":398},13,[334,400,401],{},"2. \u003CAnother criterion>\n",[334,403,405],{"class":336,"line":404},14,[334,406,345],{"emptyLinePlaceholder":344},[334,408,409],{"class":336,"line":197},[334,410,411],{},"### Verification\n",[334,413,415],{"class":336,"line":414},16,[334,416,417],{},"```bash\n",[334,419,420],{"class":336,"line":202},[334,421,422],{},"\u003CExact command to verify this Work Package>\n",[424,425,427],"h3",{"id":426},"token-budget","Token Budget",[429,430,432,433,437,466,470,473,508,512,515,541,545,548,611,617,621],"estimated",{"tokens":329,"htmlFor":431,"this":329,"work":329,"package":329},[],"\n```\n",[257,434,436],{"id":435},"decomposition-process","Decomposition Process",[270,438,439,442,457,460,463],{},[273,440,441],{},"Read the Contract section by section",[273,443,444,445],{},"For each requirement, identify:\n",[446,447,448,451,454],"ul",{},[273,449,450],{},"Which files are affected (create or modify)",[273,452,453],{},"Which territory owns those files",[273,455,456],{},"What tests verify the requirement",[273,458,459],{},"Group related changes into a single Work Package if they affect the same files",[273,461,462],{},"Ensure each Work Package is independently verifiable",[273,464,465],{},"Order Work Packages: dependencies first, then parallelizable work",[257,467,469],{"id":468},"territory-definition","Territory Definition",[262,471,472],{},"When setting up Crew Leads, define territories clearly:",[324,474,476],{"className":326,"code":475,"language":328,"meta":329,"style":329},"## Territory: \u003CName>\n**Domain:** \u003CWhat this territory covers>\n**Files:** \u003CGlob patterns for owned files>\n**Conventions:** \u003CProject-specific patterns from Constitution>\n**Workers:** \u003CNumber of parallel Workers>\n**Budget:** \u003CToken allocation>\n",[331,477,478,483,488,493,498,503],{"__ignoreMap":329},[334,479,480],{"class":336,"line":11},[334,481,482],{},"## Territory: \u003CName>\n",[334,484,485],{"class":336,"line":16},[334,486,487],{},"**Domain:** \u003CWhat this territory covers>\n",[334,489,490],{"class":336,"line":21},[334,491,492],{},"**Files:** \u003CGlob patterns for owned files>\n",[334,494,495],{"class":336,"line":26},[334,496,497],{},"**Conventions:** \u003CProject-specific patterns from Constitution>\n",[334,499,500],{"class":336,"line":38},[334,501,502],{},"**Workers:** \u003CNumber of parallel Workers>\n",[334,504,505],{"class":336,"line":60},[334,506,507],{},"**Budget:** \u003CToken allocation>\n",[257,509,511],{"id":510},"escalation-protocol","Escalation Protocol",[262,513,514],{},"When a Crew Lead reports a Worker failure:",[270,516,517,523,529,535],{},[273,518,519,522],{},[276,520,521],{},"Retry once"," — Same Work Package, fresh Worker",[273,524,525,528],{},[276,526,527],{},"Analyze failure"," — Is the Contract clause ambiguous? Is the Work Package too large?",[273,530,531,534],{},[276,532,533],{},"Mini-Grilling"," — If the Contract needs revision: single-pass Devils-Advocate + Synthesizer",[273,536,537,540],{},[276,538,539],{},"Escalate to Don"," — If the issue is beyond operational scope",[257,542,544],{"id":543},"checkpoint-writing","Checkpoint Writing",[262,546,547],{},"At every phase transition, write a checkpoint (Omerta Law 2):",[324,549,551],{"className":326,"code":550,"language":328,"meta":329,"style":329},"---\nheist: \u003Cheist-name>\nphase: \u003Ccurrent-phase>\nstatus: in-progress\ntimestamp: \u003CISO 8601>\nnext-action: \u003Cwhat to do next>\nartifacts:\n  - \u003Clist of files produced>\n---\n\n## Resume Context\n\u003CWhat has been done, what remains, any blockers>\n",[331,552,553,558,563,568,573,578,583,588,593,597,601,606],{"__ignoreMap":329},[334,554,555],{"class":336,"line":11},[334,556,557],{},"---\n",[334,559,560],{"class":336,"line":16},[334,561,562],{},"heist: \u003Cheist-name>\n",[334,564,565],{"class":336,"line":21},[334,566,567],{},"phase: \u003Ccurrent-phase>\n",[334,569,570],{"class":336,"line":26},[334,571,572],{},"status: in-progress\n",[334,574,575],{"class":336,"line":38},[334,576,577],{},"timestamp: \u003CISO 8601>\n",[334,579,580],{"class":336,"line":60},[334,581,582],{},"next-action: \u003Cwhat to do next>\n",[334,584,585],{"class":336,"line":47},[334,586,587],{},"artifacts:\n",[334,589,590],{"class":336,"line":244},[334,591,592],{},"  - \u003Clist of files produced>\n",[334,594,595],{"class":336,"line":377},[334,596,557],{},[334,598,599],{"class":336,"line":383},[334,600,345],{"emptyLinePlaceholder":344},[334,602,603],{"class":336,"line":183},[334,604,605],{},"## Resume Context\n",[334,607,608],{"class":336,"line":192},[334,609,610],{},"\u003CWhat has been done, what remains, any blockers>\n",[262,612,613,614],{},"Save to: ",[331,615,616],{},"docs/gangsta/\u003Cheist-name>/checkpoints/YYYY-MM-DD-checkpoint-\u003Cphase>.md",[257,618,620],{"id":619},"omerta-compliance","Omerta Compliance",[446,622,625,634,640,646],{"className":623},[624],"contains-task-list",[273,626,629,633],{"className":627},[628],"task-list-item",[630,631],"input",{"disabled":344,"type":632},"checkbox"," Introduction Rule: All Worker communication mediated through Crew Leads",[273,635,637,639],{"className":636},[628],[630,638],{"disabled":344,"type":632}," Rule of Availability: Checkpoint written at every phase transition",[273,641,643,645],{"className":642},[628],[630,644],{"disabled":344,"type":632}," Rule of Budget: Token budgets allocated and tracked per territory",[273,647,649,651],{"className":648},[628],[630,650],{"disabled":344,"type":632}," Spec is Law: Every Work Package traces to a Contract clause",[653,654,655],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":329,"searchDepth":16,"depth":16,"links":657},[658,659,660,663,664,665,666,667],{"id":259,"depth":16,"text":260},{"id":267,"depth":16,"text":268},{"id":318,"depth":16,"text":319,"children":661},[662],{"id":426,"depth":21,"text":427},{"id":435,"depth":16,"text":436},{"id":468,"depth":16,"text":469},{"id":510,"depth":16,"text":511},{"id":543,"depth":16,"text":544},{"id":619,"depth":16,"text":620},"Use when decomposing tasks into work packages, allocating territories to crew leads, managing heist phase progression, or serving as the operational buffer between the Don and the crews","md",null,{"name":199},{"order":202,"icon":96},{"title":199,"description":668},"yY-uaMltSLfpWmbPi_uLJJgEGuahdXhDsN-6pg-4Y5I",[676,678],{"title":194,"path":195,"stem":196,"description":677,"order":197,"icon":96,"children":-1},"Use when reading or writing institutional memory — insights from successful solutions, fails from historical mistakes, and the Project Constitution that accumulates commandments and negative constraints across heists",{"title":204,"path":205,"stem":206,"description":679,"order":183,"icon":96,"children":-1},"Use when starting any conversation — establishes how to find and use Gangsta skills, enforces the 1% invocation rule, maps platform tools, and routes the Don's intent through the Gangsta Agents Family hierarchy",1793043440170]