[{"data":1,"prerenderedAt":473},["ShallowReactive",2],{"navigation_docs":3,"-core-concepts-the-ledger":129,"-core-concepts-the-ledger-surround":468},[4,28,62,94,100,125],{"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,"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",{"title":126,"path":127,"stem":128,"order":60},"Glossary","/glossary","6.glossary",{"id":130,"title":57,"body":131,"description":461,"extension":462,"links":463,"meta":464,"navigation":465,"path":58,"seo":466,"stem":59,"__hash__":467},"docs/2.core-concepts/the-ledger.md",{"type":132,"value":133,"toc":447},"minimark",[134,138,142,167,172,177,180,185,206,210,213,217,232,236,239,243,258,262,268,278,282,285,289,296,300,303,327,331,334,411,415,418],[135,136,57],"h1",{"id":137},"the-ledger",[139,140,141],"p",{},"The Ledger is Gangsta Agents' institutional memory. It persists across sessions, ensuring that lessons learned aren't lost when your AI session ends.",[143,144,147,158],"callout",{"icon":145,"type":146},"i-lucide-book-open","info",[139,148,149,153,154],{},[150,151,152],"strong",{},"Invocation:"," ",[155,156,157],"code",{},"gangsta:the-ledger",[139,159,160,153,163,166],{},[150,161,162],{},"Location:",[155,164,165],{},"docs/gangsta/"," in your project root",[168,169,171],"h2",{"id":170},"what-the-ledger-contains","What the Ledger Contains",[173,174,176],"h3",{"id":175},"insights","Insights",[139,178,179],{},"Successful patterns, non-obvious approaches, and domain knowledge worth preserving.",[139,181,182],{},[150,183,184],{},"Examples:",[186,187,188,192,203],"ul",{},[189,190,191],"li",{},"\"The payment gateway requires idempotency keys for all POST requests\"",[189,193,194,195,198,199,202],{},"\"React Query's ",[155,196,197],{},"useSuspenseQuery"," works better than ",[155,200,201],{},"useQuery"," for this project's SSR setup\"",[189,204,205],{},"\"The database migration system doesn't support column renames — always add + remove instead\"",[173,207,209],{"id":208},"fails","Fails",[139,211,212],{},"Documented mistakes — approaches that caused rework, confusion, or wasted effort.",[139,214,215],{},[150,216,184],{},[186,218,219,226,229],{},[189,220,221,222,225],{},"\"Don't use ",[155,223,224],{},"any"," in TypeScript configs — it bypasses the type checker in ways that aren't obvious\"",[189,227,228],{},"\"The external API rate-limits to 100 req/min, not 1000 as the docs claim\"",[189,230,231],{},"\"Running tests in parallel on this project causes flaky failures due to shared database state\"",[173,233,235],{"id":234},"constitution","Constitution",[139,237,238],{},"Accumulated rules that the team has agreed upon — project-specific extensions of Omerta.",[139,240,241],{},[150,242,184],{},[186,244,245,248,255],{},[189,246,247],{},"\"All database queries must use the QueryBuilder, never raw SQL\"",[189,249,250,251,254],{},"\"Feature flags must be in the ",[155,252,253],{},"config/features.yml"," file, not hardcoded\"",[189,256,257],{},"\"Every PR must include a test for the happy path and at least one error path\"",[168,259,261],{"id":260},"file-structure","File Structure",[139,263,264,265,267],{},"The Ledger lives in your project at ",[155,266,165],{},":",[269,270,275],"pre",{"className":271,"code":273,"language":274},[272],"language-text","docs/gangsta/\n├── insights/\n│   └── 2026-04-15-payment-idempotency.md\n├── fails/\n│   └── 2026-04-10-parallel-test-flakiness.md\n├── constitution/\n│   └── rules.md\n└── {heist-name}/\n    ├── checkpoints/\n    │   ├── 01-reconnaissance.md\n    │   ├── 02-the-grilling.md\n    │   └── ...\n    ├── recon/\n    │   └── 2026-04-15-recon-dossier.md\n    ├── specs/\n    │   └── 2026-04-15-contract.md\n    └── plans/\n        └── 2026-04-15-execution-plan.md\n","text",[155,276,273],{"__ignoreMap":277},"",[168,279,281],{"id":280},"when-to-write-to-the-ledger","When to Write to the Ledger",[139,283,284],{},"The Ledger is updated during two key moments:",[173,286,288],{"id":287},"during-the-delivery","During The Delivery",[139,290,291,292,295],{},"The final Heist phase (",[155,293,294],{},"gangsta:laundering",") includes a Ledger update step. The Consigliere reviews what worked, what failed, and what rules should be added to the constitution.",[173,297,299],{"id":298},"during-conversations","During Conversations",[139,301,302],{},"After any significant exchange outside a Heist — if the Don shares domain knowledge or if an approach is discovered that's worth preserving — offer to write a Ledger entry:",[143,304,306,316],{"icon":305,"type":146},"i-lucide-pen-line",[139,307,308,311,312],{},[150,309,310],{},"Protocol:"," After the exchange resolves, ask once: ",[313,314,315],"em",{},"\"Worth saving to the Ledger as an insight or fail?\"",[186,317,318,321,324],{},[189,319,320],{},"If yes: write the entry using the Ledger format",[189,322,323],{},"If no: drop it — never ask again for the same topic in the same session",[189,325,326],{},"Never write a Ledger entry without explicit Don approval",[168,328,330],{"id":329},"proactive-memory-capture","Proactive Memory Capture",[139,332,333],{},"Gangsta Agents encourages proactive memory capture:",[335,336,337,350],"table",{},[338,339,340],"thead",{},[341,342,343,347],"tr",{},[344,345,346],"th",{},"Situation",[344,348,349],{},"Action",[351,352,353,365,374,383,393,402],"tbody",{},[341,354,355,359],{},[356,357,358],"td",{},"Non-obvious approach discovered",[356,360,361,362],{},"Offer to save as ",[150,363,364],{},"Insight",[341,366,367,370],{},[356,368,369],{},"Don shares domain knowledge",[356,371,361,372],{},[150,373,364],{},[341,375,376,379],{},[356,377,378],{},"Creative solution to a constraint",[356,380,361,381],{},[150,382,364],{},[341,384,385,388],{},[356,386,387],{},"Don rejects an approach",[356,389,361,390],{},[150,391,392],{},"Fail",[341,394,395,398],{},[356,396,397],{},"Approach causes rework",[356,399,361,400],{},[150,401,392],{},[341,403,404,407],{},[356,405,406],{},"Repeated mistake pattern",[356,408,361,409],{},[150,410,392],{},[168,412,414],{"id":413},"why-the-ledger-matters","Why the Ledger Matters",[139,416,417],{},"Without institutional memory, every session starts from zero. The Ledger ensures:",[186,419,420,426,432,438],{},[189,421,422,425],{},[150,423,424],{},"Insights compound"," — Successful patterns are reused, not rediscovered",[189,427,428,431],{},[150,429,430],{},"Fails aren't repeated"," — Documented mistakes prevent future waste",[189,433,434,437],{},[150,435,436],{},"Constitution grows"," — Project-specific rules accumulate over time",[189,439,440,443,444,446],{},[150,441,442],{},"New sessions are informed"," — Any agent can read ",[155,445,165],{}," and understand the project's history",{"title":277,"searchDepth":16,"depth":16,"links":448},[449,454,455,459,460],{"id":170,"depth":16,"text":171,"children":450},[451,452,453],{"id":175,"depth":21,"text":176},{"id":208,"depth":21,"text":209},{"id":234,"depth":21,"text":235},{"id":260,"depth":16,"text":261},{"id":280,"depth":16,"text":281,"children":456},[457,458],{"id":287,"depth":21,"text":288},{"id":298,"depth":21,"text":299},{"id":329,"depth":16,"text":330},{"id":413,"depth":16,"text":414},"Gangsta Agents' institutional memory — insights, fails, and constitution rules that persist across sessions.","md",null,{},{"order":60},{"title":57,"description":461},"RZpFVhOHrBj1lE-lEvsOs87qkRNSLEy7IFblkHlCf-o",[469,471],{"title":53,"path":54,"stem":55,"description":470,"order":21,"children":-1},"The 6-phase development cycle that every feature goes through in Gangsta Agents.",{"title":53,"path":65,"stem":69,"description":472,"order":11,"children":-1},"The 6-phase development cycle — from reconnaissance to the delivery.",1776673362218]