[{"data":1,"prerenderedAt":6692},["ShallowReactive",2],{"app-navigation_en":3,"blog-post:posts_en:/en/blog/mikeshub":99,"blog-available-locales:mikeshub":1552,"blog-navigation_en":1555,"blog-surround:posts_en:/en/blog/mikeshub":1581},[4],{"title":5,"path":6,"stem":7,"children":8,"page":98},"En","/en","en",[9],{"title":10,"path":11,"stem":12,"children":13,"page":98},"Blog","/en/blog","en/blog",[14,18,22,26,30,34,38,42,46,50,54,58,62,66,70,74,78,82,86,90,94],{"title":15,"path":16,"stem":17},"Security Practices for MCP Using JSON-RPC","/en/blog/mcp-security","en/blog/1. mcp-security",{"title":19,"path":20,"stem":21},"MikesHub internals: port ownership, reclaim, and AWP-paced Tauri","/en/blog/mikeshub","en/blog/10. mikeshub",{"title":23,"path":24,"stem":25},"Anatomy of a Mission-Critical AI System","/en/blog/anatomy-mission-critical-ai","en/blog/11. anatomy-mission-critical-ai",{"title":27,"path":28,"stem":29},"rag-factory: a Rust engine for recipe-driven RAG — cite, refuse, eval before ship","/en/blog/rag-factory","en/blog/12. rag-factory",{"title":31,"path":32,"stem":33},"Offline-verifiable attestation for consequential AI runs","/en/blog/agent-receipts-packing-slip","en/blog/13. agent-receipts-packing-slip",{"title":35,"path":36,"stem":37},"MCP Servers: Connecting AI to Real-Time Data","/en/blog/mcp-create","en/blog/2. mcp-create",{"title":39,"path":40,"stem":41},"MCP Servers: Risks of Using in Claude Desktop","/en/blog/mcp-risks","en/blog/3. mcp-risks",{"title":43,"path":44,"stem":45},"MCP Servers: Integrating LLM in E-Commerce Systems","/en/blog/mcp","en/blog/4. mcp",{"title":47,"path":48,"stem":49},"MCP Tiny Agents On-Premises: Breaking Free from Cloud Dependencies","/en/blog/mcp-tiny-agents-on-premises","en/blog/5. mcp-tiny-agents-on-premises",{"title":51,"path":52,"stem":53},"From Idea to API in 2 Days: Building Bankly with Agentic Workflows","/en/blog/overvibing","en/blog/6. overvibing",{"title":55,"path":56,"stem":57},"AI Chat, MCP Server build with Agentic Workflow Protocol for demo at Checkatrade .com","/en/blog/mcp-in-chat-demo","en/blog/8. mcp-in-chat-demo",{"title":59,"path":60,"stem":61},"MutuelleFit: contracts from a payroll-native insurance vertical","/en/blog/mutuellefit-ddd-agentic","en/blog/9. mutuellefit-ddd-agentic",{"title":63,"path":64,"stem":65},"AI Opportunities for Checkatrade considering PERN Stack","/en/blog/ai-opportunities-pern-stack","en/blog/ai-opportunities-pern-stack",{"title":67,"path":68,"stem":69},"Domain-Driven Design in Full-Stack Frameworks","/en/blog/architecture","en/blog/architecture",{"title":71,"path":72,"stem":73},"one-front, as told by git","/en/blog/building-one-front","en/blog/building-one-front",{"title":75,"path":76,"stem":77},"Commercial architecture is a chain, not a pricing page","/en/blog/commercial-architecture-chain","en/blog/commercial-architecture-chain",{"title":79,"path":80,"stem":81},"Quality: How to protect AI-powered Frontends?","/en/blog/qa-front","en/blog/qa-front",{"title":83,"path":84,"stem":85},"The Hidden Dangers of GraphQL: Security, Performance, and Complexity Risks","/en/blog/risking-with-graphql","en/blog/risking-with-graphql",{"title":87,"path":88,"stem":89},"From Zero to Hero: Scaling up to million users","/en/blog/scalability","en/blog/scalability",{"title":91,"path":92,"stem":93},"IT Consulting and Strategy","/en/blog/strategy","en/blog/strategy",{"title":95,"path":96,"stem":97},"Distributed Systems","/en/blog/systems","en/blog/systems",false,{"id":100,"title":19,"authors":101,"badge":108,"body":112,"date":1545,"description":1546,"extension":1547,"image":1548,"meta":1549,"navigation":296,"path":20,"seo":1550,"stem":21,"__hash__":1551},"posts_en/en/blog/10. mikeshub.md",[102],{"name":103,"description":104,"to":105,"avatar":106},"Michael Wybraniec","System Design, GenAI Automation & Architecture","https://www.linkedin.com/in/one-front/",{"src":107},"https://media.licdn.com/dms/image/v2/D4D03AQEGvIVcrTTS2g/profile-displayphoto-shrink_800_800/B4DZbtSf7LIEAc-/0/1747737772225?e=1753315200&v=beta&t=EOviZQkM396PoGctVjDCdlG8U3vN5UKWiIeNQ8IFUgQ",{"label":109,"color":110,"variant":111},"Systems, AWP, Spec Kit","primary","soft",{"type":113,"value":114,"toc":1536},"minimark",[115,118,156,190,201,221,243,264,274,408,452,458,539,554,563,594,611,763,778,794,826,903,920,1011,1026,1035,1051,1057,1098,1115,1200,1215,1248,1334,1351,1366,1461,1491,1500,1515,1532],[116,117],"br",{},[119,120,123],"div",{"className":121},[122],"text-justify",[124,125,126,130,131,135,136,143,144,147,148,155],"p",{},[127,128,129],"strong",{},"MikesHub"," is a Tauri 2 + React desk for waking local demos from ",[132,133,134],"code",{},"hub.yaml",": Start/Stop, Preview, links, Ports & Apps, schema, DBeaver. The interesting part is not the chrome — it is ",[127,137,138,139,142],{},"how the hub decides that ",[132,140,141],{},":5173"," belongs to you",", how it ",[127,145,146],{},"stops the wrong holder"," before Start, and how ",[127,149,150,151,154],{},"one ",[132,152,153],{},"lsof"," pass"," feeds both UI tables without melting the machine.",[119,157,159],{"className":158},[122],[124,160,161,162,165,166,169,170,173,174,177,178,181,182,185,186,189],{},"I built it with ",[127,163,164],{},"Cursor agents",", but the pacing was not chat roulette. Feature work sat under ",[127,167,168],{},"Spec Kit"," (",[132,171,172],{},"001-local-project-hub","). Day-to-day agent behaviour followed ",[127,175,176],{},"AWP"," (Agentic Workflow Protocol — ",[132,179,180],{},"agentic-sdlc/AWP.md"," on this site’s repo and sibling projects): human leads, ",[132,183,184],{},"awp update → awp commit → awp next",", ",[132,187,188],{},"commitStandard",", no invented scope. Spec Kit owns the feature contract; AWP owns how the agent is allowed to move.",[119,191,194],{"className":192},[193],"my-8",[124,195,196],{},[197,198],"img",{"alt":199,"src":200},"Ports & Apps — declared conflicts, cwd ownership, RSS","/blog/mikeshub/02-ports-ownership.png",[119,202,204],{"className":203},[122],[124,205,206],{},[207,208,209,210,213,214,185,217,220],"em",{},"Ports & Apps: enrolled ports are reserved; ownership is process ",[127,211,212],{},"cwd"," (and args). Banner shows declared conflicts (",[132,215,216],{},":3000",[132,218,219],{},":8088","). Green chips are hub-known listeners; red are conflicted or contested.",[119,222,227,234],{"className":223},[224,225,226],"flex","justify-between","items-center",[228,229,231],"h2",{"id":230},"_1-the-hard-problem-listening-mine",[127,232,233],{},"1. The hard problem: “listening” ≠ “mine”",[124,235,236],{},[237,238,240],"a",{"href":239},"#top",[127,241,242],{},"⤴",[119,244,246],{"className":245},[122],[124,247,248,249,252,253,255,256,259,260,263],{},"A TCP ",[132,250,251],{},"LISTEN"," on a declared port is necessary but not sufficient. Vite loves ",[132,254,141],{},". If another repo already holds it, marking ",[207,257,258],{},"this"," project ",[132,261,262],{},"running"," is a lie — and Preview opens the wrong app.",[119,265,267],{"className":266},[122],[124,268,269,270,273],{},"Classification is a three-state hold on each ",[132,271,272],{},"(declared_port, project_path)",":",[275,276,281],"pre",{"className":277,"code":278,"language":279,"meta":280,"style":280},"language-rust shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","// apps/hub/src-tauri/src/ports/ownership.rs\n\npub enum PortHold {\n    Free,\n    HeldByOwner,\n    Hijacked,\n}\n\npub fn processes_belong_to_project(port: &ListeningPort, project_path: &str) -> bool {\n    port.processes.iter().any(|proc| {\n        path_belongs(&proc.cwd, project_path) || path_belongs(&proc.args, project_path)\n    })\n}\n\npub fn classify_hold(live: Option\u003C&ListeningPort>, project_path: &str) -> PortHold {\n    match live {\n        None => PortHold::Free,\n        Some(row) if processes_belong_to_project(row, project_path) => PortHold::HeldByOwner,\n        Some(_) => PortHold::Hijacked,\n    }\n}\n","rust","",[132,282,283,291,298,304,310,316,322,328,333,339,345,351,357,362,367,373,379,385,391,397,403],{"__ignoreMap":280},[284,285,288],"span",{"class":286,"line":287},"line",1,[284,289,290],{},"// apps/hub/src-tauri/src/ports/ownership.rs\n",[284,292,294],{"class":286,"line":293},2,[284,295,297],{"emptyLinePlaceholder":296},true,"\n",[284,299,301],{"class":286,"line":300},3,[284,302,303],{},"pub enum PortHold {\n",[284,305,307],{"class":286,"line":306},4,[284,308,309],{},"    Free,\n",[284,311,313],{"class":286,"line":312},5,[284,314,315],{},"    HeldByOwner,\n",[284,317,319],{"class":286,"line":318},6,[284,320,321],{},"    Hijacked,\n",[284,323,325],{"class":286,"line":324},7,[284,326,327],{},"}\n",[284,329,331],{"class":286,"line":330},8,[284,332,297],{"emptyLinePlaceholder":296},[284,334,336],{"class":286,"line":335},9,[284,337,338],{},"pub fn processes_belong_to_project(port: &ListeningPort, project_path: &str) -> bool {\n",[284,340,342],{"class":286,"line":341},10,[284,343,344],{},"    port.processes.iter().any(|proc| {\n",[284,346,348],{"class":286,"line":347},11,[284,349,350],{},"        path_belongs(&proc.cwd, project_path) || path_belongs(&proc.args, project_path)\n",[284,352,354],{"class":286,"line":353},12,[284,355,356],{},"    })\n",[284,358,360],{"class":286,"line":359},13,[284,361,327],{},[284,363,365],{"class":286,"line":364},14,[284,366,297],{"emptyLinePlaceholder":296},[284,368,370],{"class":286,"line":369},15,[284,371,372],{},"pub fn classify_hold(live: Option\u003C&ListeningPort>, project_path: &str) -> PortHold {\n",[284,374,376],{"class":286,"line":375},16,[284,377,378],{},"    match live {\n",[284,380,382],{"class":286,"line":381},17,[284,383,384],{},"        None => PortHold::Free,\n",[284,386,388],{"class":286,"line":387},18,[284,389,390],{},"        Some(row) if processes_belong_to_project(row, project_path) => PortHold::HeldByOwner,\n",[284,392,394],{"class":286,"line":393},19,[284,395,396],{},"        Some(_) => PortHold::Hijacked,\n",[284,398,400],{"class":286,"line":399},20,[284,401,402],{},"    }\n",[284,404,406],{"class":286,"line":405},21,[284,407,327],{},[119,409,411],{"className":410},[122],[124,412,413,416,417,420,421,424,425,185,428,431,432,435,436,439,440,443,444,451],{},[132,414,415],{},"path_belongs"," normalises separators and accepts exact path, prefix (",[132,418,419],{},"project/…","), or args that embed the project root (common for ",[132,422,423],{},"node …/project/node_modules/…","). Infra services (",[132,426,427],{},"postgres",[132,429,430],{},"redis",", classic ",[132,433,434],{},"5432","/",[132,437,438],{},"6379",") are ",[127,441,442],{},"claimed in the UI"," but ",[127,445,446,447,450],{},"ignored for ",[132,448,449],{},"ports_live"," / Running"," — a shared DB must not make every enrolled app look up.",[119,453,455],{"className":454},[122],[124,456,457],{},"Reconcile folds that into project status:",[275,459,461],{"className":277,"code":460,"language":279,"meta":280,"style":280},"// apps/hub/src-tauri/src/ports/mod.rs — reconcile_live_status (excerpt)\n\nlet live_rows = list_system_listening(std::slice::from_ref(project)).unwrap_or_default();\nlet mut owned_live = false;\nfor service in &project.manifest.services {\n    let Some(port) = service.port else { continue };\n    if is_infra_service(service) {\n        continue;\n    }\n    let row = live_rows.iter().find(|p| p.port == port);\n    if classify_hold(row, &project.path) == PortHold::HeldByOwner {\n        owned_live = true;\n        break;\n    }\n}\nproject.ports_live = owned_live;\n",[132,462,463,468,472,477,482,487,492,497,502,506,511,516,521,526,530,534],{"__ignoreMap":280},[284,464,465],{"class":286,"line":287},[284,466,467],{},"// apps/hub/src-tauri/src/ports/mod.rs — reconcile_live_status (excerpt)\n",[284,469,470],{"class":286,"line":293},[284,471,297],{"emptyLinePlaceholder":296},[284,473,474],{"class":286,"line":300},[284,475,476],{},"let live_rows = list_system_listening(std::slice::from_ref(project)).unwrap_or_default();\n",[284,478,479],{"class":286,"line":306},[284,480,481],{},"let mut owned_live = false;\n",[284,483,484],{"class":286,"line":312},[284,485,486],{},"for service in &project.manifest.services {\n",[284,488,489],{"class":286,"line":318},[284,490,491],{},"    let Some(port) = service.port else { continue };\n",[284,493,494],{"class":286,"line":324},[284,495,496],{},"    if is_infra_service(service) {\n",[284,498,499],{"class":286,"line":330},[284,500,501],{},"        continue;\n",[284,503,504],{"class":286,"line":335},[284,505,402],{},[284,507,508],{"class":286,"line":341},[284,509,510],{},"    let row = live_rows.iter().find(|p| p.port == port);\n",[284,512,513],{"class":286,"line":347},[284,514,515],{},"    if classify_hold(row, &project.path) == PortHold::HeldByOwner {\n",[284,517,518],{"class":286,"line":353},[284,519,520],{},"        owned_live = true;\n",[284,522,523],{"class":286,"line":359},[284,524,525],{},"        break;\n",[284,527,528],{"class":286,"line":364},[284,529,402],{},[284,531,532],{"class":286,"line":369},[284,533,327],{},[284,535,536],{"class":286,"line":375},[284,537,538],{},"project.ports_live = owned_live;\n",[119,540,542,548],{"className":541},[224,225,226],[228,543,545],{"id":544},"_2-start-must-reclaim-not-politely-fail",[127,546,547],{},"2. Start must reclaim, not politely fail",[124,549,550],{},[237,551,552],{"href":239},[127,553,242],{},[119,555,557],{"className":556},[193],[124,558,559],{},[197,560],{"alt":561,"src":562},"Project workspace — Start follows hub.yaml, then reclaim","/blog/mikeshub/03-project-detail.png",[119,564,566],{"className":565},[122],[124,567,568],{},[207,569,570,571,574,575,578,579,582,583,586,587,589,590,593],{},"Multi-service vertical (",[132,572,573],{},"insurance-vertical","): UI ",[132,576,577],{},":5810",", API ",[132,580,581],{},":3810",", Postgres ",[132,584,585],{},":5433",", worker without a listen port. The sticky note is the contract: reload ",[132,588,134],{}," → stop wrong holders → ",[132,591,592],{},"scripts.start",".",[119,595,597],{"className":596},[122],[124,598,599,600,603,604,607,608,610],{},"On Start, if a reserved ",[127,601,602],{},"app"," port is ",[132,605,606],{},"Hijacked",", the hub TERMs those PIDs, invalidates the listen cache, waits briefly for the OS to release sockets, then runs ",[132,609,592],{},". Skipping infra avoids murdering a shared Postgres because your UI port was free.",[275,612,614],{"className":277,"code":613,"language":279,"meta":280,"style":280},"// apps/hub/src-tauri/src/ports/mod.rs — reclaim_mismatched_ports (core loop)\n\nfor service in &project.manifest.services {\n    let Some(port) = service.port else { continue };\n    if is_infra_service(service) {\n        continue;\n    }\n    let Some(row) = all.iter().find(|p| p.port == port) else {\n        continue;\n    };\n    if classify_hold(Some(row), &project.path) != PortHold::Hijacked {\n        continue;\n    }\n    for proc in &row.processes {\n        if !pids.contains(&proc.pid) {\n            pids.push(proc.pid);\n        }\n    }\n    notes.push(format!(\n        \"Stopped wrong holder on :{} ({}) — reserved for {} / {}\",\n        port,\n        holder_summary(row),\n        project.manifest.name,\n        service.name\n    ));\n}\n\nlistening::invalidate_listen_cache();\nlet killed = listening::kill_pids(&pids, false)?;\nstd::thread::sleep(Duration::from_millis(500));\n",[132,615,616,621,625,629,633,637,641,645,650,654,659,664,668,672,677,682,687,692,696,701,706,711,717,723,729,735,740,745,751,757],{"__ignoreMap":280},[284,617,618],{"class":286,"line":287},[284,619,620],{},"// apps/hub/src-tauri/src/ports/mod.rs — reclaim_mismatched_ports (core loop)\n",[284,622,623],{"class":286,"line":293},[284,624,297],{"emptyLinePlaceholder":296},[284,626,627],{"class":286,"line":300},[284,628,486],{},[284,630,631],{"class":286,"line":306},[284,632,491],{},[284,634,635],{"class":286,"line":312},[284,636,496],{},[284,638,639],{"class":286,"line":318},[284,640,501],{},[284,642,643],{"class":286,"line":324},[284,644,402],{},[284,646,647],{"class":286,"line":330},[284,648,649],{},"    let Some(row) = all.iter().find(|p| p.port == port) else {\n",[284,651,652],{"class":286,"line":335},[284,653,501],{},[284,655,656],{"class":286,"line":341},[284,657,658],{},"    };\n",[284,660,661],{"class":286,"line":347},[284,662,663],{},"    if classify_hold(Some(row), &project.path) != PortHold::Hijacked {\n",[284,665,666],{"class":286,"line":353},[284,667,501],{},[284,669,670],{"class":286,"line":359},[284,671,402],{},[284,673,674],{"class":286,"line":364},[284,675,676],{},"    for proc in &row.processes {\n",[284,678,679],{"class":286,"line":369},[284,680,681],{},"        if !pids.contains(&proc.pid) {\n",[284,683,684],{"class":286,"line":375},[284,685,686],{},"            pids.push(proc.pid);\n",[284,688,689],{"class":286,"line":381},[284,690,691],{},"        }\n",[284,693,694],{"class":286,"line":387},[284,695,402],{},[284,697,698],{"class":286,"line":393},[284,699,700],{},"    notes.push(format!(\n",[284,702,703],{"class":286,"line":399},[284,704,705],{},"        \"Stopped wrong holder on :{} ({}) — reserved for {} / {}\",\n",[284,707,708],{"class":286,"line":405},[284,709,710],{},"        port,\n",[284,712,714],{"class":286,"line":713},22,[284,715,716],{},"        holder_summary(row),\n",[284,718,720],{"class":286,"line":719},23,[284,721,722],{},"        project.manifest.name,\n",[284,724,726],{"class":286,"line":725},24,[284,727,728],{},"        service.name\n",[284,730,732],{"class":286,"line":731},25,[284,733,734],{},"    ));\n",[284,736,738],{"class":286,"line":737},26,[284,739,327],{},[284,741,743],{"class":286,"line":742},27,[284,744,297],{"emptyLinePlaceholder":296},[284,746,748],{"class":286,"line":747},28,[284,749,750],{},"listening::invalidate_listen_cache();\n",[284,752,754],{"class":286,"line":753},29,[284,755,756],{},"let killed = listening::kill_pids(&pids, false)?;\n",[284,758,760],{"class":286,"line":759},30,[284,761,762],{},"std::thread::sleep(Duration::from_millis(500));\n",[119,764,766,772],{"className":765},[224,225,226],[228,767,769],{"id":768},"_3-performance-one-listen-scan-many-consumers",[127,770,771],{},"3. Performance: one listen scan, many consumers",[124,773,774],{},[237,775,776],{"href":239},[127,777,242],{},[119,779,781],{"className":780},[122],[124,782,783,784,787,788,435,790,793],{},"Early Ports UI felt sticky because every tick did ",[127,785,786],{},"multiple"," ",[132,789,153],{},[132,791,792],{},"ps"," walks (per-project reconcile + dual tables + aggressive React loading thrash). The fix is boring systems work:",[795,796,797,804,812,820],"ul",{},[798,799,800,803],"li",{},[127,801,802],{},"Global listen cache"," (TTL ~4s), invalidated on kill / refresh",[798,805,806,811],{},[127,807,808],{},[132,809,810],{},"ports_snapshot",": one scan → decorate declared matches → derive service runtimes",[798,813,814,819],{},[127,815,816],{},[132,817,818],{},"projects_snapshot",": clone without re-reconciling every project",[798,821,822,823],{},"UI: soft poll (no full-panel spinner), floor ≥5s, mount ",[127,824,825],{},"cards XOR table",[275,827,829],{"className":277,"code":828,"language":279,"meta":280,"style":280},"// apps/hub/src-tauri/src/commands/ports.rs\n\npub fn ports_snapshot(state: State\u003C'_, AppState>) -> HubResult\u003CPortsSnapshot> {\n    // One listen scan (cached briefly) drives both tables — avoid double lsof/ps.\n    let projects = state.projects_snapshot();\n    let listening = ports::list_system_listening(&projects)?;\n    let services = ports::list_service_runtimes_from(&projects, &listening);\n    let total_rss_bytes = listening.iter().map(|p| p.rss_bytes).sum();\n    Ok(PortsSnapshot {\n        services,\n        listening,\n        total_rss_bytes,\n        total_rss_human: listening::format_bytes(total_rss_bytes),\n    })\n}\n",[132,830,831,836,840,845,850,855,860,865,870,875,880,885,890,895,899],{"__ignoreMap":280},[284,832,833],{"class":286,"line":287},[284,834,835],{},"// apps/hub/src-tauri/src/commands/ports.rs\n",[284,837,838],{"class":286,"line":293},[284,839,297],{"emptyLinePlaceholder":296},[284,841,842],{"class":286,"line":300},[284,843,844],{},"pub fn ports_snapshot(state: State\u003C'_, AppState>) -> HubResult\u003CPortsSnapshot> {\n",[284,846,847],{"class":286,"line":306},[284,848,849],{},"    // One listen scan (cached briefly) drives both tables — avoid double lsof/ps.\n",[284,851,852],{"class":286,"line":312},[284,853,854],{},"    let projects = state.projects_snapshot();\n",[284,856,857],{"class":286,"line":318},[284,858,859],{},"    let listening = ports::list_system_listening(&projects)?;\n",[284,861,862],{"class":286,"line":324},[284,863,864],{},"    let services = ports::list_service_runtimes_from(&projects, &listening);\n",[284,866,867],{"class":286,"line":330},[284,868,869],{},"    let total_rss_bytes = listening.iter().map(|p| p.rss_bytes).sum();\n",[284,871,872],{"class":286,"line":335},[284,873,874],{},"    Ok(PortsSnapshot {\n",[284,876,877],{"class":286,"line":341},[284,878,879],{},"        services,\n",[284,881,882],{"class":286,"line":347},[284,883,884],{},"        listening,\n",[284,886,887],{"class":286,"line":353},[284,888,889],{},"        total_rss_bytes,\n",[284,891,892],{"class":286,"line":359},[284,893,894],{},"        total_rss_human: listening::format_bytes(total_rss_bytes),\n",[284,896,897],{"class":286,"line":364},[284,898,356],{},[284,900,901],{"class":286,"line":369},[284,902,327],{},[119,904,906],{"className":905},[122],[124,907,908,909,912,913,915,916,919],{},"The scan path itself is still expensive by nature: ",[132,910,911],{},"lsof -nP -iTCP -sTCP:LISTEN",", then batch ",[132,914,792],{}," + ",[132,917,918],{},"lsof -a -d cwd -p …"," for RSS/cwd/parent. Caching is what makes polling acceptable.",[275,921,923],{"className":277,"code":922,"language":279,"meta":280,"style":280},"// apps/hub/src-tauri/src/ports/listening.rs — cache gate\n\nfn cached_or_scan() -> HubResult\u003CVec\u003CListeningPort>> {\n    {\n        let guard = LISTEN_CACHE.lock();\n        if let Some(cache) = guard.as_ref() {\n            if cache.at.elapsed() \u003C LISTEN_CACHE_TTL {\n                return Ok(cache.ports.clone());\n            }\n        }\n    }\n    let ports = scan_listening_ports()?;\n    *LISTEN_CACHE.lock() = Some(ListenCache {\n        at: Instant::now(),\n        ports: ports.clone(),\n    });\n    Ok(ports)\n}\n",[132,924,925,930,934,939,944,949,954,959,964,969,973,977,982,987,992,997,1002,1007],{"__ignoreMap":280},[284,926,927],{"class":286,"line":287},[284,928,929],{},"// apps/hub/src-tauri/src/ports/listening.rs — cache gate\n",[284,931,932],{"class":286,"line":293},[284,933,297],{"emptyLinePlaceholder":296},[284,935,936],{"class":286,"line":300},[284,937,938],{},"fn cached_or_scan() -> HubResult\u003CVec\u003CListeningPort>> {\n",[284,940,941],{"class":286,"line":306},[284,942,943],{},"    {\n",[284,945,946],{"class":286,"line":312},[284,947,948],{},"        let guard = LISTEN_CACHE.lock();\n",[284,950,951],{"class":286,"line":318},[284,952,953],{},"        if let Some(cache) = guard.as_ref() {\n",[284,955,956],{"class":286,"line":324},[284,957,958],{},"            if cache.at.elapsed() \u003C LISTEN_CACHE_TTL {\n",[284,960,961],{"class":286,"line":330},[284,962,963],{},"                return Ok(cache.ports.clone());\n",[284,965,966],{"class":286,"line":335},[284,967,968],{},"            }\n",[284,970,971],{"class":286,"line":341},[284,972,691],{},[284,974,975],{"class":286,"line":347},[284,976,402],{},[284,978,979],{"class":286,"line":353},[284,980,981],{},"    let ports = scan_listening_ports()?;\n",[284,983,984],{"class":286,"line":359},[284,985,986],{},"    *LISTEN_CACHE.lock() = Some(ListenCache {\n",[284,988,989],{"class":286,"line":364},[284,990,991],{},"        at: Instant::now(),\n",[284,993,994],{"class":286,"line":369},[284,995,996],{},"        ports: ports.clone(),\n",[284,998,999],{"class":286,"line":375},[284,1000,1001],{},"    });\n",[284,1003,1004],{"class":286,"line":381},[284,1005,1006],{},"    Ok(ports)\n",[284,1008,1009],{"class":286,"line":387},[284,1010,327],{},[119,1012,1014,1020],{"className":1013},[224,225,226],[228,1015,1017],{"id":1016},"_4-dbeaver-process-lifecycle-vs-connection-semantics",[127,1018,1019],{},"4. DBeaver: process lifecycle vs connection semantics",[124,1021,1022],{},[237,1023,1024],{"href":239},[127,1025,242],{},[119,1027,1029],{"className":1028},[193],[124,1030,1031],{},[197,1032],{"alt":1033,"src":1034},"Workspace with Database schema → DBeaver","/blog/mikeshub/01-project-workspace.png",[119,1036,1038],{"className":1037},[122],[124,1039,1040],{},[207,1041,1042,1043,1046,1047,1050],{},"Project desk for ",[132,1044,1045],{},"krishna360",": links include ",[127,1048,1049],{},"Database schema"," (ER + open DBeaver). Connection details resolve from the project’s local env files (never committed); cloud dashboard URLs stay out of screenshots.",[119,1052,1054],{"className":1053},[122],[124,1055,1056],{},"Three failure modes taught the API:",[1058,1059,1060,1069,1088],"ol",{},[798,1061,1062,1068],{},[127,1063,1064,1067],{},[132,1065,1066],{},".status()"," on the DBeaver binary"," — GUI never exits → Tauri invoke hangs forever.",[798,1070,1071,1076,1077,1080,1081,787,1084,1087],{},[127,1072,1073],{},[132,1074,1075],{},"openConsole=true"," — DBeaver’s instance server opens an SQL ",[207,1078,1079],{},"editor tab"," and ",[127,1082,1083],{},"skips",[132,1085,1086],{},"connectToDataSource"," (navigator connect).",[798,1089,1090,1093,1094,1097],{},[127,1091,1092],{},"Shared personal workspace"," — demos polluted with every other connection; the hub writes a ",[127,1095,1096],{},"project-only"," datasource file instead of reusing your personal graph.",[119,1099,1101],{"className":1100},[122],[124,1102,1103,1104,1107,1108,1111,1112,1114],{},"The path that works: write an isolated Eclipse workspace under Application Support, quit only prior MikesHub-workspace PIDs, spawn with ",[132,1105,1106],{},"-newInstance -data \u003Cws> -closeTabs -con '…|openConsole=false|connect=true|…'"," — credentials come from the project’s local env at runtime and are ",[127,1109,1110],{},"not"," embedded in ",[132,1113,134],{}," or blog assets.",[275,1116,1118],{"className":277,"code":1117,"language":279,"meta":280,"style":280},"// apps/hub/src-tauri/src/db/mod.rs — open_dbeaver (shape)\n\nlet workspace = mikeshub_dbeaver_workspace()?;\nwrite_project_only_datasource(/* id, host, user, jdbc — sole connection */)?;\n\nquit_mikeshub_dbeaver(&ws); // do not quit the user’s main DBeaver\n\nCommand::new(&bin)\n    .args([\n        \"-newInstance\",\n        \"-data\", &ws,\n        \"-closeTabs\",\n        \"-con\", &con, // openConsole=false · connect=true — no secrets in this snippet\n        \"-bringToFront\",\n    ])\n    .spawn()?; // never .status() on the GUI process\n",[132,1119,1120,1125,1129,1134,1139,1143,1148,1152,1157,1162,1167,1172,1177,1185,1190,1195],{"__ignoreMap":280},[284,1121,1122],{"class":286,"line":287},[284,1123,1124],{},"// apps/hub/src-tauri/src/db/mod.rs — open_dbeaver (shape)\n",[284,1126,1127],{"class":286,"line":293},[284,1128,297],{"emptyLinePlaceholder":296},[284,1130,1131],{"class":286,"line":300},[284,1132,1133],{},"let workspace = mikeshub_dbeaver_workspace()?;\n",[284,1135,1136],{"class":286,"line":306},[284,1137,1138],{},"write_project_only_datasource(/* id, host, user, jdbc — sole connection */)?;\n",[284,1140,1141],{"class":286,"line":312},[284,1142,297],{"emptyLinePlaceholder":296},[284,1144,1145],{"class":286,"line":318},[284,1146,1147],{},"quit_mikeshub_dbeaver(&ws); // do not quit the user’s main DBeaver\n",[284,1149,1150],{"class":286,"line":324},[284,1151,297],{"emptyLinePlaceholder":296},[284,1153,1154],{"class":286,"line":330},[284,1155,1156],{},"Command::new(&bin)\n",[284,1158,1159],{"class":286,"line":335},[284,1160,1161],{},"    .args([\n",[284,1163,1164],{"class":286,"line":341},[284,1165,1166],{},"        \"-newInstance\",\n",[284,1168,1169],{"class":286,"line":347},[284,1170,1171],{},"        \"-data\", &ws,\n",[284,1173,1174],{"class":286,"line":353},[284,1175,1176],{},"        \"-closeTabs\",\n",[284,1178,1179,1182],{"class":286,"line":359},[284,1180,1181],{},"        \"-con\", &con,",[284,1183,1184],{}," // openConsole=false · connect=true — no secrets in this snippet\n",[284,1186,1187],{"class":286,"line":364},[284,1188,1189],{},"        \"-bringToFront\",\n",[284,1191,1192],{"class":286,"line":369},[284,1193,1194],{},"    ])\n",[284,1196,1197],{"class":286,"line":375},[284,1198,1199],{},"    .spawn()?; // never .status() on the GUI process\n",[119,1201,1203,1209],{"className":1202},[224,225,226],[228,1204,1206],{"id":1205},"_5-enroll-update-without-clobbering-hand-tuned-yaml",[127,1207,1208],{},"5. Enroll update without clobbering hand-tuned YAML",[124,1210,1211],{},[237,1212,1213],{"href":239},[127,1214,242],{},[119,1216,1218],{"className":1217},[122],[124,1219,1220,1222,1223,1226,1227,1230,1231,1234,1235,435,1238,435,1241,1244,1245,1247],{},[132,1221,134],{}," is the contract you commit. Auto-detect is useful once; afterwards ",[127,1224,1225],{},"Update"," must merge: keep custom ports/scripts/links, append only ",[207,1228,1229],{},"new"," services — matched by name ",[127,1232,1233],{},"or"," role heuristics (",[132,1236,1237],{},"api",[132,1239,1240],{},"web",[132,1242,1243],{},"db",") ",[127,1246,1233],{}," same port.",[275,1249,1251],{"className":277,"code":1250,"language":279,"meta":280,"style":280},"// apps/hub/src-tauri/src/enroll.rs — merge_with_existing (service merge)\n\nfor svc in detected.services {\n    let exists = merged.iter().any(|m| {\n        let a = m.name.to_lowercase();\n        let b = svc.name.to_lowercase();\n        a == b\n            || (is_api_role(&a) && is_api_role(&b))\n            || (is_web_role(&a) && is_web_role(&b))\n            || (is_db_role(&a) && is_db_role(&b))\n            || m.port == svc.port\n    });\n    if !exists {\n        merged.push(svc);\n    }\n}\ndetected.services = dedupe_services(merged);\n",[132,1252,1253,1258,1262,1267,1272,1277,1282,1287,1292,1297,1302,1307,1311,1316,1321,1325,1329],{"__ignoreMap":280},[284,1254,1255],{"class":286,"line":287},[284,1256,1257],{},"// apps/hub/src-tauri/src/enroll.rs — merge_with_existing (service merge)\n",[284,1259,1260],{"class":286,"line":293},[284,1261,297],{"emptyLinePlaceholder":296},[284,1263,1264],{"class":286,"line":300},[284,1265,1266],{},"for svc in detected.services {\n",[284,1268,1269],{"class":286,"line":306},[284,1270,1271],{},"    let exists = merged.iter().any(|m| {\n",[284,1273,1274],{"class":286,"line":312},[284,1275,1276],{},"        let a = m.name.to_lowercase();\n",[284,1278,1279],{"class":286,"line":318},[284,1280,1281],{},"        let b = svc.name.to_lowercase();\n",[284,1283,1284],{"class":286,"line":324},[284,1285,1286],{},"        a == b\n",[284,1288,1289],{"class":286,"line":330},[284,1290,1291],{},"            || (is_api_role(&a) && is_api_role(&b))\n",[284,1293,1294],{"class":286,"line":335},[284,1295,1296],{},"            || (is_web_role(&a) && is_web_role(&b))\n",[284,1298,1299],{"class":286,"line":341},[284,1300,1301],{},"            || (is_db_role(&a) && is_db_role(&b))\n",[284,1303,1304],{"class":286,"line":347},[284,1305,1306],{},"            || m.port == svc.port\n",[284,1308,1309],{"class":286,"line":353},[284,1310,1001],{},[284,1312,1313],{"class":286,"line":359},[284,1314,1315],{},"    if !exists {\n",[284,1317,1318],{"class":286,"line":364},[284,1319,1320],{},"        merged.push(svc);\n",[284,1322,1323],{"class":286,"line":369},[284,1324,402],{},[284,1326,1327],{"class":286,"line":375},[284,1328,327],{},[284,1330,1331],{"class":286,"line":381},[284,1332,1333],{},"detected.services = dedupe_services(merged);\n",[119,1335,1337],{"className":1336},[122],[124,1338,1339,1340,1343,1344,1346,1347,1350],{},"That is why AUDIT4 can declare Nuxt ",[132,1341,1342],{},":4444"," plus mcp-ai-act ",[132,1345,219],{}," (API ",[127,1348,1349],{},"and"," static UI on the same port) without Enroll “refresh” wiping the hand-written Start that runs both trees.",[119,1352,1354,1360],{"className":1353},[224,225,226],[228,1355,1357],{"id":1356},"_6-awp-spec-kit-who-owns-what",[127,1358,1359],{},"6. AWP + Spec Kit: who owns what",[124,1361,1362],{},[237,1363,1364],{"href":239},[127,1365,242],{},[275,1367,1371],{"className":1368,"code":1369,"language":1370,"meta":280,"style":280},"language-mermaid shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","flowchart TB\n  subgraph Contract[\"Spec Kit — feature authority\"]\n    S[spec.md]\n    P[plan.md]\n    T[tasks.md]\n  end\n  subgraph Pace[\"AWP — agent pacing\"]\n    U[awp update]\n    C[awp commit]\n    N[awp next]\n    U --> C --> N\n  end\n  subgraph Human[\"Human gates\"]\n    H[clarify scope · accept diffs · no silent initiative]\n  end\n  Contract --> Pace\n  Pace --> Human\n  Human -->|merge| Git[(hub.yaml + Rust/TS)]\n","mermaid",[132,1372,1373,1378,1383,1388,1393,1398,1403,1408,1413,1418,1423,1428,1432,1437,1442,1446,1451,1456],{"__ignoreMap":280},[284,1374,1375],{"class":286,"line":287},[284,1376,1377],{},"flowchart TB\n",[284,1379,1380],{"class":286,"line":293},[284,1381,1382],{},"  subgraph Contract[\"Spec Kit — feature authority\"]\n",[284,1384,1385],{"class":286,"line":300},[284,1386,1387],{},"    S[spec.md]\n",[284,1389,1390],{"class":286,"line":306},[284,1391,1392],{},"    P[plan.md]\n",[284,1394,1395],{"class":286,"line":312},[284,1396,1397],{},"    T[tasks.md]\n",[284,1399,1400],{"class":286,"line":318},[284,1401,1402],{},"  end\n",[284,1404,1405],{"class":286,"line":324},[284,1406,1407],{},"  subgraph Pace[\"AWP — agent pacing\"]\n",[284,1409,1410],{"class":286,"line":330},[284,1411,1412],{},"    U[awp update]\n",[284,1414,1415],{"class":286,"line":335},[284,1416,1417],{},"    C[awp commit]\n",[284,1419,1420],{"class":286,"line":341},[284,1421,1422],{},"    N[awp next]\n",[284,1424,1425],{"class":286,"line":347},[284,1426,1427],{},"    U --> C --> N\n",[284,1429,1430],{"class":286,"line":353},[284,1431,1402],{},[284,1433,1434],{"class":286,"line":359},[284,1435,1436],{},"  subgraph Human[\"Human gates\"]\n",[284,1438,1439],{"class":286,"line":364},[284,1440,1441],{},"    H[clarify scope · accept diffs · no silent initiative]\n",[284,1443,1444],{"class":286,"line":369},[284,1445,1402],{},[284,1447,1448],{"class":286,"line":375},[284,1449,1450],{},"  Contract --> Pace\n",[284,1452,1453],{"class":286,"line":381},[284,1454,1455],{},"  Pace --> Human\n",[284,1457,1458],{"class":286,"line":387},[284,1459,1460],{},"  Human -->|merge| Git[(hub.yaml + Rust/TS)]\n",[119,1462,1464],{"className":1463},[122],[124,1465,1466,1468,1469,1472,1473,1468,1475,1478,1479,1482,1483,1486,1487,1490],{},[127,1467,168],{}," answered ",[207,1470,1471],{},"what"," MikesHub is (wake demos, ports view, links, Start Spec). ",[127,1474,176],{},[207,1476,1477],{},"how"," the agent may proceed: read ",[132,1480,1481],{},"AWP.md"," on any ",[132,1484,1485],{},"awp*"," command; never skip ",[132,1488,1489],{},"update → commit → next"," without permission; ask when “next to the end” is ambiguous; never put “AI” in commit messages; park surprises in Unplanned Tasks.",[119,1492,1494],{"className":1493},[122],[124,1495,1496,1497,1499],{},"Useful agent wins under that envelope: ownership/reclaim design, listen-cache + snapshot, DBeaver CLI archaeology, monorepo local-env resolution (nested app folders). Useful human vetoes: no live Vite iframe inside the hub; never wait on DBeaver’s process; never dump the personal DBeaver graph into a demo; never commit credentials into ",[132,1498,134],{}," or screenshots.",[119,1501,1503,1509],{"className":1502},[224,225,226],[228,1504,1506],{"id":1505},"closing",[127,1507,1508],{},"Closing",[124,1510,1511],{},[237,1512,1513],{"href":239},[127,1514,242],{},[119,1516,1518],{"className":1517},[122],[124,1519,1520,1521,1524,1525,1080,1528,1531],{},"If you only need a prettier ",[132,1522,1523],{},"npm run dev",", skip MikesHub. If you run many stacks and have been bitten by ",[127,1526,1527],{},"shared ports",[127,1529,1530],{},"half-started"," multi-repo demos, the leverage is the ownership model + reclaim + a single listen snapshot — with Spec Kit for the product spine and AWP so the agent does not outrun the contract.",[1533,1534,1535],"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":280,"searchDepth":293,"depth":293,"links":1537},[1538,1539,1540,1541,1542,1543,1544],{"id":230,"depth":293,"text":233},{"id":544,"depth":293,"text":547},{"id":768,"depth":293,"text":771},{"id":1016,"depth":293,"text":1019},{"id":1205,"depth":293,"text":1208},{"id":1356,"depth":293,"text":1359},{"id":1505,"depth":293,"text":1508},"2026-10-16","How a local demo desk classifies hijacked ports via cwd, snapshots lsof once, opens DBeaver in an isolated workspace — built under Spec Kit + AWP, not vibes.","md",{"src":200},{},{"title":19,"description":1546},"F_b9RUINYGAaW3xCXeUYBie62IjP55LvVFAO0of_Ia4",[7,1553,1554],"es","fr",[1556],{"title":5,"path":6,"stem":7,"children":1557,"page":98},[1558],{"title":10,"path":11,"stem":12,"children":1559,"page":98},[1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580],{"title":15,"path":16,"stem":17},{"title":19,"path":20,"stem":21},{"title":23,"path":24,"stem":25},{"title":27,"path":28,"stem":29},{"title":31,"path":32,"stem":33},{"title":35,"path":36,"stem":37},{"title":39,"path":40,"stem":41},{"title":43,"path":44,"stem":45},{"title":47,"path":48,"stem":49},{"title":51,"path":52,"stem":53},{"title":55,"path":56,"stem":57},{"title":59,"path":60,"stem":61},{"title":63,"path":64,"stem":65},{"title":67,"path":68,"stem":69},{"title":71,"path":72,"stem":73},{"title":75,"path":76,"stem":77},{"title":79,"path":80,"stem":81},{"title":83,"path":84,"stem":85},{"title":87,"path":88,"stem":89},{"title":91,"path":92,"stem":93},{"title":95,"path":96,"stem":97},[1582,4285],{"id":1583,"title":23,"authors":1584,"badge":1587,"body":1589,"date":4278,"description":4279,"extension":1547,"image":4280,"meta":4282,"navigation":296,"path":24,"seo":4283,"stem":25,"__hash__":4284},"posts_en/en/blog/11. anatomy-mission-critical-ai.md",[1585],{"name":103,"description":104,"to":105,"avatar":1586},{"src":107},{"label":1588,"color":110,"variant":111},"Mission-critical AI, Guardrails, Audit",{"type":113,"value":1590,"toc":4236},[1591,1593,1609,1623,1631,1647,1662,1668,1683,1689,1695,1709,1718,1727,1735,1750,1756,1766,1775,1781,1798,1804,1819,1825,1875,1881,1891,1897,1902,1911,1946,1954,1975,1985,1993,2012,2027,2033,2041,2045,2062,2144,2154,2162,2182,2190,2240,2246,2261,2267,2309,2319,2323,2336,2359,2365,2369,2375,2459,2465,2473,2485,2500,2516,2524,2530,2536,2544,2552,2567,2573,2601,2609,2615,2630,2640,2644,2662,2670,2678,2682,2688,2720,2734,2742,2750,2765,2774,2787,2807,2817,2825,2837,2843,2858,2868,2874,2931,2935,2945,3022,3031,3035,3054,3178,3190,3205,3209,3217,3226,3230,3317,3321,3348,3356,3360,3366,3502,3512,3832,3847,3854,3878,3884,3899,3905,3944,3953,3968,3974,3978,3984,3988,3998,4002,4008,4012,4023,4027,4033,4037,4054,4060,4075,4084,4170,4185,4194,4204,4216,4222,4234],[116,1592],{},[119,1594,1596],{"className":1595},[122],[124,1597,1598,1599,185,1602,1605,1606,593],{},"How we built a public-warning assistant where ",[127,1600,1601],{},"models propose",[127,1603,1604],{},"policy decides what is allowed",", and ",[127,1607,1608],{},"humans alone authorize the send",[119,1610,1612],{"className":1611},[122],[124,1613,1614,1615,1618,1619,1622],{},"This is the anatomy of control around an LLM for France-style evacuate / FR-Alert channels — not a chatbot with a send button. Demo below is ",[127,1616,1617],{},"stub/sim"," (no live cell broadcast). Figures are full width with alt text — ",[127,1620,1621],{},"click"," an image for full screen.",[1624,1625],"gif-poster-video",{"alt":1626,"ariaLabel":1627,"music":1628,"poster":1629,"src":1630},"Animated preview of the intentEvacuate operator demo — chat, architecture graph, and systems console","Demo walkthrough of the intentEvacuate Mission Assistant — operator chat, architecture graph, and systems console (~1 minute 55 seconds, stub/sim)","/audio/funkyelement.mp3","/blog/intent-evacuate/00-demo-social.gif","/blog/intent-evacuate/00-demo.mp4",[119,1632,1634],{"className":1633},[122],[124,1635,1636],{},[207,1637,1638,1639,1642,1643,1646],{},"Demo walkthrough (~1:55). Preview above is the social cut (2×) — ",[127,1640,1641],{},"Play demo"," or ",[127,1644,1645],{},"Play demo with music"," (Bensound).",[119,1648,1650,1656],{"className":1649},[224,225,226],[228,1651,1653],{"id":1652},"_1-cold-open",[127,1654,1655],{},"1. Cold open",[124,1657,1658],{},[237,1659,1660],{"href":239},[127,1661,242],{},[119,1663,1665],{"className":1664},[122],[124,1666,1667],{},"Imagine an operator under time pressure. Flood waters are rising. They type, in French:",[119,1669,1671],{"className":1670},[122],[1672,1673,1674],"blockquote",{},[124,1675,1676],{},[207,1677,1678,1679,1682],{},"Évacuer la zone inondable autour de ",[284,1680,1681],{},"cette commune"," maintenant via cell broadcast et app.",[119,1684,1686],{"className":1685},[122],[124,1687,1688],{},"If the system is a typical chatbot with tools, the next step is terrifyingly easy: invent a population number, pick a vaguely related polygon, draft a confident message, and “send.” Under stress, a fluent answer feels like competence.",[119,1690,1692],{"className":1691},[122],[124,1693,1694],{},"In public warning, fluency without control is a failure mode.",[119,1696,1698],{"className":1697},[122],[124,1699,1700,1701,1704,1705,1708],{},"This article is about preparing an AI system for that world—not by chasing a bigger model, but by building the ",[127,1702,1703],{},"anatomy of control"," around it. The product is an operator-facing ",[127,1706,1707],{},"Mission Assistant",": natural-language crisis intent in, governed plan out, human confirmation before any irreversible alert, and a reconstructable audit trail afterward.",[119,1710,1712],{"className":1711},[122],[124,1713,1714,1715,593],{},"We did not set out to prove that AI “understands” a crisis. We set out to prove something harder: that you can put language models next to high-blast channels (cell broadcast, app push, location-based SMS in simulation) ",[127,1716,1717],{},"without ever letting the model press send",[1719,1720],"hover-figure",{"alt":1721,"caption":1722,"detail":1723,"src":1724,"tags":1725,"title":1726},"Figure 1 — Full-width operator home: MikeGPT chat, live architecture graph, and systems telemetry during an evacuate mission","Figure 1 — Operator surface is not a naked chatbot.","Three panes: MikeGPT session (intent/clarify), live architecture graph (EDGE→CORE→AI→TOOL→MUTATE), Systems telemetry (fleet / LLM / service tiles). Control is visible while the mission runs.","/blog/intent-evacuate/01-ops-shell.webp","chat, architecture-graph, systems, operator-ux","Ops shell · chat + graph + systems",[119,1728,1730],{"className":1729},[122],[124,1731,1732],{},[207,1733,1734],{},"Figure 1 — The operator surface is not a naked chatbot. Chat (left), live architecture graph (center), and systems telemetry (right) make control visible while a mission runs.",[119,1736,1738,1744],{"className":1737},[224,225,226],[228,1739,1741],{"id":1740},"_2-the-real-problem-is-not-more-ai",[127,1742,1743],{},"2. The real problem is not “more AI”",[124,1745,1746],{},[237,1747,1748],{"href":239},[127,1749,242],{},[119,1751,1753],{"className":1752},[122],[124,1754,1755],{},"In a fast-onset flood, the authority’s goal is simple: get people out of a dangerous zone, now, through the right channels.",[119,1757,1759],{"className":1758},[122],[124,1760,1761,1762,1765],{},"What software usually offers instead is a pile of separate tools—map, population estimate, risk signals, alert composer, channel gateways, procedures. The mission is clear in the operator’s head; the product still demands expert knowledge of ",[207,1763,1764],{},"which"," algorithm, parameter, and channel to use. Under stress, people click the wrong zone, use stale density, pick the wrong mix of channels, or skip checks. Afterward, it is hard to prove who decided what, on which evidence.",[119,1767,1769],{"className":1768},[122],[124,1770,1771,1772,593],{},"So the gap is not “we need another dashboard” or “we need a cleverer model.” The gap is ",[127,1773,1774],{},"intent → safe, audited activation of existing location and alerting capabilities",[119,1776,1778],{"className":1777},[122],[124,1779,1780],{},"Customers buy outcomes under crisis. Competitors can claim “AI.” What régalien (government / safety-critical) buyers actually require is:",[119,1782,1784],{"className":1783},[122],[795,1785,1786,1789,1792,1795],{},[798,1787,1788],{},"Speed under stress",[798,1790,1791],{},"Traceability",[798,1793,1794],{},"Fail-safe behaviour (prefer refuse / confirm over a silent wrong action)",[798,1796,1797],{},"Integration with proven engines—not a greenfield rewrite of geo and alerting",[119,1799,1801],{"className":1800},[122],[124,1802,1803],{},"That is the industrial bar. A demo chatbot does not clear it.",[119,1805,1807,1813],{"className":1806},[224,225,226],[228,1808,1810],{"id":1809},"_3-anatomy-three-layers-of-responsibility",[127,1811,1812],{},"3. Anatomy: three layers of responsibility",[124,1814,1815],{},[237,1816,1817],{"href":239},[127,1818,242],{},[119,1820,1822],{"className":1821},[122],[124,1823,1824],{},"If this system has a spine, it is this split:",[1826,1827,1828,1841],"table",{},[1829,1830,1831],"thead",{},[1832,1833,1834,1838],"tr",{},[1835,1836,1837],"th",{},"Layer",[1835,1839,1840],{},"Decides",[1842,1843,1844,1855,1865],"tbody",{},[1832,1845,1846,1852],{},[1847,1848,1849],"td",{},[127,1850,1851],{},"AI",[1847,1853,1854],{},"How to ask, how to structure the mission, how to explain, how to draft",[1832,1856,1857,1862],{},[1847,1858,1859],{},[127,1860,1861],{},"Algorithms + policy (code)",[1847,1863,1864],{},"What is true enough, what is allowed, what must stop",[1832,1866,1867,1872],{},[1847,1868,1869],{},[127,1870,1871],{},"Human",[1847,1873,1874],{},"Whether to act—whether to send",[119,1876,1878],{"className":1877},[122],[124,1879,1880],{},"In one sentence we use internally:",[119,1882,1884],{"className":1883},[122],[1672,1885,1886],{},[124,1887,1888],{},[127,1889,1890],{},"AI decides how to ask; algorithms decide what is true; humans decide whether to act.",[119,1892,1894],{"className":1893},[122],[124,1895,1896],{},"That sentence is the product. Everything else is plumbing.",[1898,1899,1901],"h3",{"id":1900},"what-the-assistant-is-and-is-not","What the assistant is (and is not)",[119,1903,1905],{"className":1904},[122],[124,1906,1907,1908,273],{},"It ",[127,1909,1910],{},"is",[119,1912,1914],{"className":1913},[122],[1058,1915,1916,1919,1922,1925,1932,1939],{},[798,1917,1918],{},"Accept an intent (plus an explicit zone from the UI when possible).",[798,1920,1921],{},"Clarify missing slots (zone, channels, urgency, authority).",[798,1923,1924],{},"Call underlying capabilities (population-in-zone, risk signals, channel eligibility, alert drafting).",[798,1926,1927,1928,1931],{},"Show a ",[127,1929,1930],{},"preview"," grounded in tool results (reach, freshness, confidence, risks).",[798,1933,1934,1935,1938],{},"Require ",[127,1936,1937],{},"human confirmation"," before any irreversible send.",[798,1940,1941,1942,1945],{},"Write a full ",[127,1943,1944],{},"audit trail"," suitable for after-action and régalien review.",[119,1947,1949],{"className":1948},[122],[124,1950,1907,1951,273],{},[127,1952,1953],{},"is not",[119,1955,1957],{"className":1956},[122],[795,1958,1959,1962,1965,1968],{},[798,1960,1961],{},"A new flood-prediction research model",[798,1963,1964],{},"An unconstrained LLM that “decides” to alert alone",[798,1966,1967],{},"Production cell-broadcast on day one of a POC (we simulate and stub dispatch; live networks need sandbox credentials)",[798,1969,1970,1971,1974],{},"A free-form agent with a tool belt that includes ",[132,1972,1973],{},"dispatch_alert"," without a confirm gate",[119,1976,1978],{"className":1977},[122],[124,1979,1980,1981,1984],{},"Models are ",[127,1982,1983],{},"replaceable proposers",". The gate stays.",[1719,1986],{"alt":1987,"caption":1988,"detail":1989,"src":1990,"tags":1991,"title":1992},"Figure 2 — Full-width architecture graph with EDGE CORE AI TOOL DATA INFRA lanes and yellow Confirm and Dispatch mutate gates","Figure 2 — Anatomy in the UI: mutate nodes stay gated.","Nodes grouped EDGE / CORE / AI / TOOL / MUTATE / DATA / INFRA. Faithfulness sits in CORE. Yellow Confirm and Dispatch are the only mutate gates — the LLM never owns them alone.","/blog/intent-evacuate/02-architecture-graph.webp","registry, faithfulness, confirm-gate, dispatch","Architecture · Confirm & Dispatch as mutate",[119,1994,1996],{"className":1995},[122],[124,1997,1998],{},[207,1999,2000,2001,1080,2004,2007,2008,2011],{},"Figure 2 — Anatomy in the UI: EDGE → CORE / AI / TOOL → ",[127,2002,2003],{},"Confirm",[127,2005,2006],{},"Dispatch"," (mutate). ",[127,2009,2010],{},"Faithfulness"," sits in CORE—claims must match tool evidence before confirm is allowed. The model never owns the yellow nodes alone.",[119,2013,2015,2021],{"className":2014},[224,225,226],[228,2016,2018],{"id":2017},"_4-the-loop-deterministic-code-around-the-llm",[127,2019,2020],{},"4. The loop: deterministic code around the LLM",[124,2022,2023],{},[237,2024,2025],{"href":239},[127,2026,242],{},[119,2028,2030],{"className":2029},[122],[124,2031,2032],{},"The orchestration loop is intentionally boring. Boring is a feature when the blast radius is a city.",[275,2034,2039],{"className":2035,"code":2037,"language":2038},[2036],"language-text","1. Receive intent (+ zone from UI)\n2. Clarify → structured mission object until schema-complete\n3. Plan → ordered capabilities; validate against a registry allowlist\n4. Execute read tools (population, risk, channels, RAG, draft)\n5. Policy evaluate → REFUSE | CLARIFY | PREVIEW | CONFIRM\n6. Show preview (claims grounded in tool call IDs + SOP citations)\n7. On confirm: verify confirmation_id + plan_hash + authority\n8. Only then execute mutate: dispatch_alert\n9. Append audit chain; return summary\n","text",[132,2040,2037],{"__ignoreMap":280},[1898,2042,2044],{"id":2043},"not-one-ai-model-five-roles-behind-one-gateway","Not one “AI model” — five roles behind one gateway",[119,2046,2048],{"className":2047},[122],[124,2049,2050,2051,2053,2054,2057,2058,2061],{},"We do ",[127,2052,1110],{}," ship a single mega-agent with every tool and every personality. We ship an ",[127,2055,2056],{},"LLM gateway"," that agents call with a ",[132,2059,2060],{},"role",". The UI never imports OpenRouter or Ollama SDKs.",[1826,2063,2064,2077],{},[1829,2065,2066],{},[1832,2067,2068,2071,2074],{},[1835,2069,2070],{},"Role",[1835,2072,2073],{},"Job",[1835,2075,2076],{},"Why it is separate",[1842,2078,2079,2092,2105,2118,2131],{},[1832,2080,2081,2086,2089],{},[1847,2082,2083],{},[132,2084,2085],{},"clarify",[1847,2087,2088],{},"Ask for missing slots (zone, channels, …)",[1847,2090,2091],{},"Cheap, structured; can be a small/static path",[1832,2093,2094,2099,2102],{},[1847,2095,2096],{},[132,2097,2098],{},"plan",[1847,2100,2101],{},"Propose ordered capabilities from the registry",[1847,2103,2104],{},"Must emit JSON the orchestrator can validate",[1832,2106,2107,2112,2115],{},[1847,2108,2109],{},[132,2110,2111],{},"draft",[1847,2113,2114],{},"Write FR public-warning copy per channel",[1847,2116,2117],{},"Tone + length limits; editable in Preview",[1832,2119,2120,2125,2128],{},[1847,2121,2122],{},[132,2123,2124],{},"judge",[1847,2126,2127],{},"Faithfulness / draft critique when sampled",[1847,2129,2130],{},"Adversarial pair to the drafter",[1832,2132,2133,2138,2141],{},[1847,2134,2135],{},[132,2136,2137],{},"coach",[1847,2139,2140],{},"Operator-facing guidance (Request Agent)",[1847,2142,2143],{},"Soft coaching; never mutate",[119,2145,2147],{"className":2146},[122],[124,2148,2149,2150,2153],{},"They propose structured outputs. ",[127,2151,2152],{},"Code"," validates plans, runs tools, evaluates policy, and binds confirmation. Policy and confirm are never delegated to the model.",[1719,2155],{"alt":2156,"caption":2157,"detail":2158,"src":2159,"tags":2160,"title":2161},"Figure 3 — Full-width Settings LLM gateway: Ollama or OpenRouter with per-role models clarify plan draft judge coach","Figure 3 — Models are swappable; roles are the architecture.","Agents call roles clarify|plan|draft|judge|coach through the gateway. UI never talks to Ollama/OpenRouter SDKs. Same weights OK for POC; per-role models are an ops dial.","/blog/intent-evacuate/08-settings-llm.webp","llm-gateway, ollama, openrouter, roles","LLM gateway · per-role models",[119,2163,2165],{"className":2164},[122],[124,2166,2167],{},[207,2168,2169,2170,2173,2174,2177,2178,2181],{},"Figure 3 — Gateway + per-role model IDs. POC often points every role at ",[132,2171,2172],{},"llama3.2"," (Ollama) or ",[132,2175,2176],{},"gpt-4o-mini"," (OpenRouter). That is fine—the ",[127,2179,2180],{},"roles"," are the architecture; the weights are a dial.",[119,2183,2185],{"className":2184},[122],[124,2186,2187],{},[127,2188,2189],{},"Entire model vs more models?",[119,2191,2193],{"className":2192},[122],[795,2194,2195,2205,2231],{},[798,2196,2197,2200,2201,2204],{},[127,2198,2199],{},"Entire / same weights for all roles"," — valid for a POC and for on-prem demos: one Ollama tag, five roles, same ",[132,2202,2203],{},"model_id",". Cost and ops stay simple. Safety still comes from the orchestrator, not from model diversity.",[798,2206,2207,2210,2211,2213,2214,2216,2217,2213,2219,2221,2222,2224,2225,1080,2228,593],{},[127,2208,2209],{},"More models (per role)"," — useful when you scale: a fast small model for ",[132,2212,2085],{}," / ",[132,2215,2137],{},", a stronger model for ",[132,2218,2098],{},[132,2220,2111],{},", a separate ",[132,2223,2124],{}," so the drafter does not grade its own homework. Settings already store ",[132,2226,2227],{},"ollama_models[role]",[132,2229,2230],{},"openrouter_models[role]",[798,2232,2233,2236,2237,2239],{},[127,2234,2235],{},"What we never do"," — give any role a free tool belt that includes ",[132,2238,1973],{},". Roles propose; the registry + confirm gate execute.",[119,2241,2243],{"className":2242},[122],[124,2244,2245],{},"Plan validation rejects the obvious disasters: unknown capabilities, mutate steps before confirm, zone or channel edits after preview that would silently reuse an old confirmation. Edits re-hash the plan; prior confirmation dies.",[119,2247,2249,2255],{"className":2248},[224,225,226],[228,2250,2252],{"id":2251},"_5-the-decision-ladder-designed-friction",[127,2253,2254],{},"5. The decision ladder: designed friction",[124,2256,2257],{},[237,2258,2259],{"href":239},[127,2260,242],{},[119,2262,2264],{"className":2263},[122],[124,2265,2266],{},"Every planned action resolves to exactly one outcome, evaluated in a fixed order:",[119,2268,2270],{"className":2269},[122],[1058,2271,2272,2278,2284,2290,2296],{},[798,2273,2274,2277],{},[127,2275,2276],{},"REFUSE"," — cannot proceed (policy violation, stale evidence, injection, partial failure mid-plan)",[798,2279,2280,2283],{},[127,2281,2282],{},"CLARIFY"," — missing or ambiguous slot (especially zone)",[798,2285,2286,2289],{},[127,2287,2288],{},"PREVIEW"," — read-only plan shown; numbers must come from tools",[798,2291,2292,2295],{},[127,2293,2294],{},"CONFIRM"," — mutate-class action; human confirmation at the required authority",[798,2297,2298,2301,2302,2305,2306],{},[127,2299,2300],{},"EXECUTE"," — only with a valid, unexpired ",[132,2303,2304],{},"confirmation_id"," bound to the exact ",[132,2307,2308],{},"plan_hash",[119,2310,2312],{"className":2311},[122],[124,2313,2314,2315,2318],{},"Production readiness is not “the model is accurate.” It is whether ",[127,2316,2317],{},"mutate actions are impossible"," without that binding.",[1898,2320,2322],{"id":2321},"policy-as-data-not-scattered-ifs","Policy as data, not scattered ifs",[119,2324,2326],{"className":2325},[122],[124,2327,2328,2329,185,2332,2335],{},"Rules live in versioned packs (for France: ",[132,2330,2331],{},"fr-default",[132,2333,2334],{},"fr-strict",")—freshness windows, channel allowlists, authority escalation. Example shape:",[119,2337,2339],{"className":2338},[122],[795,2340,2341,2344,2347,2350,2356],{},[798,2342,2343],{},"Refuse send if evidence is older than the pack allows (e.g. 600s / 300s).",[798,2345,2346],{},"Require an explicit polygon or admin code—no silent “Paris” guess.",[798,2348,2349],{},"Mutate always requires confirm; confirmation TTL (e.g. 300s); plan hash must match.",[798,2351,2352,2353,593],{},"Low confidence + high-blast channel (cell broadcast) → escalate to ",[127,2354,2355],{},"supervisor",[798,2357,2358],{},"Hard refuse on injection patterns (“ignore policy”, “skip confirm”, “send now without…”).",[119,2360,2362],{"className":2361},[122],[124,2363,2364],{},"Customer or préfecture packs can override defaults later. The engine around the LLM stays deterministic.",[1898,2366,2368],{"id":2367},"refusals-worth-showing-the-public","Refusals worth showing the public",[119,2370,2372],{"className":2371},[122],[124,2373,2374],{},"A wide audience learns more from a refusal than from a successful send:",[1826,2376,2377,2390],{},[1829,2378,2379],{},[1832,2380,2381,2384,2387],{},[1835,2382,2383],{},"Trigger",[1835,2385,2386],{},"Outcome",[1835,2388,2389],{},"Operator sees",[1842,2391,2392,2402,2415,2426,2437,2448],{},[1832,2393,2394,2397,2399],{},[1847,2395,2396],{},"Stale population / risk evidence",[1847,2398,2276],{},[1847,2400,2401],{},"Which tool, how old, invite to refresh",[1832,2403,2404,2407,2409],{},[1847,2405,2406],{},"Zone missing or multiple matches",[1847,2408,2282],{},[1847,2410,2411,2412],{},"Candidates or “draw the zone” — ",[127,2413,2414],{},"won’t auto-pick",[1832,2416,2417,2420,2423],{},[1847,2418,2419],{},"Low confidence + cell broadcast",[1847,2421,2422],{},"CONFIRM at supervisor",[1847,2424,2425],{},"Why escalated",[1832,2427,2428,2431,2434],{},[1847,2429,2430],{},"Prompt injection / out-of-policy ask",[1847,2432,2433],{},"REFUSE + audit",[1847,2435,2436],{},"No partial execution",[1832,2438,2439,2442,2445],{},[1847,2440,2441],{},"Zone conflict with another active mission",[1847,2443,2444],{},"CONFIRM / escalate",[1847,2446,2447],{},"Conflict shown; nothing on the wire",[1832,2449,2450,2453,2456],{},[1847,2451,2452],{},"Partial tool failure mid-plan",[1847,2454,2455],{},"REFUSE further mutate",[1847,2457,2458],{},"Which step failed",[119,2460,2462],{"className":2461},[122],[124,2463,2464],{},"Prefer refuse or confirm over a silent wrong action. That is the culture encoded in software.",[1719,2466],{"alt":2467,"caption":2468,"detail":2469,"src":2470,"tags":2471,"title":2472},"Figure 4 — Full-width chat clarify for Evacuate south of Paris: ambiguous gazetteer matches and bind-one fixture chips on an inline map","Figure 4 — Best demo: ambiguity forces a human bind.","Intent “Evacuate south of Paris” → gazetteer returns multiple fixtures. MikeGPT will not auto-pick a polygon. Operator binds a code or clicks the map. Prefer clarify over silent geometry.","/blog/intent-evacuate/03-clarify-ambiguous-zone.webp","gazetteer, clarify, zone-gate, refuse-auto-pick","Clarify · ambiguous place refuse",[119,2474,2476],{"className":2475},[122],[124,2477,2478],{},[207,2479,2480,2481,2484],{},"Figure 4 — Best demo in the product: place name is ambiguous, gazetteer returns fixtures, MikeGPT says bind one—",[127,2482,2483],{},"or click the map",". No silent polygon invention.",[119,2486,2488,2494],{"className":2487},[224,225,226],[228,2489,2491],{"id":2490},"_6-grounding-preview-is-a-contract-not-a-vibe",[127,2492,2493],{},"6. Grounding: preview is a contract, not a vibe",[124,2495,2496],{},[237,2497,2498],{"href":239},[127,2499,242],{},[119,2501,2503],{"className":2502},[122],[124,2504,2505,2506,2213,2509,2213,2512,2515],{},"Every number in the preview must come from a tool call. We render freshness and confidence next to estimates. We show a source badge (",[132,2507,2508],{},"stub",[132,2510,2511],{},"sim",[132,2513,2514],{},"real",")—never hide the ground truth of the backend. The draft message is editable; edits invalidate prior confirmation.",[119,2517,2519],{"className":2518},[122],[124,2520,2521,2523],{},[127,2522,2010],{}," is a first-class CORE check: if a UI claim does not match tool JSON, confirm must not proceed. SOP / doctrine citations from RAG ground draft language—not invented procedure. Conflict with another active mission on the same zone must be visible, not papered over.",[119,2525,2527],{"className":2526},[122],[124,2528,2529],{},"This is how you keep the assistant useful without letting it invent a blast radius.",[119,2531,2533],{"className":2532},[122],[124,2534,2535],{},"Zone binding is part of that contract. Geometry is never invented from a place name—operators bind an admin fixture or paste GeoJSON; ambiguous entries stay blocked.",[1719,2537],{"alt":2538,"caption":2539,"detail":2540,"src":2541,"tags":2542,"title":2543},"Figure 5 — Full-width Map Zone gate with Paris FR-75-12 bound on the satellite map and ambiguous fixtures blocked","Figure 5 — Bind exactly one target before tools run.","Population, risk, and channels stay offline until a zone is bound. Geometry is never invented from a place name. Ambiguous fixtures stay blocked. Active bind: admin_code (e.g. FR-75-12).","/blog/intent-evacuate/04-map-zone-gate.webp","zone-gate, admin-code, geojson, grounding","Map · zone gate bound",[119,2545,2547],{"className":2546},[122],[124,2548,2549],{},[207,2550,2551],{},"Figure 5 — The zone gate: bind exactly one target. Ambiguous codes cannot be auto-picked. Population, risk, and channels stay offline until a zone is bound.",[119,2553,2555,2561],{"className":2554},[224,225,226],[228,2556,2558],{"id":2557},"_7-confirmation-the-last-gate-before-the-blast",[127,2559,2560],{},"7. Confirmation: the last gate before the blast",[124,2562,2563],{},[237,2564,2565],{"href":239},[127,2566,242],{},[119,2568,2570],{"className":2569},[122],[124,2571,2572],{},"A confirmation object is not a checkbox. It is a cryptographic-ish commitment to a specific plan:",[119,2574,2576],{"className":2575},[122],[795,2577,2578,2582,2587,2592,2595,2598],{},[798,2579,2580],{},[132,2581,2304],{},[798,2583,2584],{},[132,2585,2586],{},"mission_id",[798,2588,2589,2591],{},[132,2590,2308],{}," (canonical hash of mission steps, channels, zone)",[798,2593,2594],{},"actor + required authority",[798,2596,2597],{},"expiry",[798,2599,2600],{},"which preview evidence was shown",[119,2602,2604],{"className":2603},[122],[124,2605,2606,2608],{},[132,2607,1973],{}," must verify: id exists, not expired, hash matches current plan, authority is sufficient. Any mismatch → denied. No code path reaches a mutate adapter without that check.",[119,2610,2612],{"className":2611},[122],[124,2613,2614],{},"If you only remember one production invariant from this article, remember that one.",[119,2616,2618,2624],{"className":2617},[224,225,226],[228,2619,2621],{"id":2620},"_8-sealed-after-action-the-mission-summary",[127,2622,2623],{},"8. Sealed after-action: the mission summary",[124,2625,2626],{},[237,2627,2628],{"href":239},[127,2629,242],{},[119,2631,2633],{"className":2632},[122],[124,2634,2635,2636,2639],{},"Dispatch is not the end of the story. The ",[127,2637,2638],{},"Summary"," surface is a sealed after-action record: tabs for map, process diagram, channels & output, and audit. Nothing here sends again.",[1898,2641,2643],{"id":2642},"process-lanes-side-edge-capability-data-mutate","Process lanes (SIDE / EDGE / CAPABILITY / DATA / MUTATE)",[119,2645,2647],{"className":2646},[122],[124,2648,2649,2650,2653,2654,2657,2658,2661],{},"The process diagram is a swimlane over time—not a marketing architecture poster. Continuous ",[127,2651,2652],{},"SIDE"," lanes (Mission API, Audit, Policy) run across the mission; ",[127,2655,2656],{},"CAPABILITY"," tools fire when needed; ",[127,2659,2660],{},"MUTATE"," (Confirm, Dispatch) appears only at the end. That visual is the anatomy of control in one glance.",[1719,2663],{"alt":2664,"caption":2665,"detail":2666,"src":2667,"tags":2668,"title":2669},"Figure 6 — Full-width sealed summary process swimlanes from intent through policy tools confirm and dispatch","Figure 6 — Continuous policy/audit; late mutate steps.","Sealed after-action process diagram. SIDE lanes (Mission API, Audit, Policy) run continuously. CAPABILITY tools fire on demand. MUTATE Confirm/Dispatch appear late. Nothing on this page sends again.","/blog/intent-evacuate/05-summary-process.webp","process-diagram, sealed-record, side-lanes, mutate","Summary · process swimlanes",[119,2671,2673],{"className":2672},[122],[124,2674,2675],{},[207,2676,2677],{},"Figure 6 — Sealed process diagram. Policy and audit are continuous; Confirm and Dispatch are late mutate steps. Ambiguous places still show up as “I won’t auto-pick” earlier in the chain.",[1898,2679,2681],{"id":2680},"channels-hashes-and-proposal-only-follow-ups","Channels, hashes, and proposal-only follow-ups",[119,2683,2685],{"className":2684},[122],[124,2686,2687],{},"After a successful (stub/sim) send, Channels & output shows:",[119,2689,2691],{"className":2690},[122],[795,2692,2693,2702,2705,2708],{},[798,2694,2695,2696,2699,2700],{},"Who confirmed (",[132,2697,2698],{},"YOU · OPERATOR",") and which ",[132,2701,2304],{},[798,2703,2704],{},"What System dispatched (channels + delivery ids)",[798,2706,2707],{},"Immutable audit count for régalien review",[798,2709,2710,2711,185,2713,185,2715,185,2717],{},"Binding IDs: ",[132,2712,2308],{},[132,2714,2304],{},[132,2716,2586],{},[132,2718,2719],{},"delivery_ids",[119,2721,2723],{"className":2722},[122],[124,2724,2725,2726,2729,2730,2733],{},"And critically: ",[127,2727,2728],{},"optional next steps"," (monitor remaining population, widen zone) are marked ",[127,2731,2732],{},"PROPOSAL ONLY","—not started until a human confirms a new mission. The system may think ahead; it does not auto-chain sends.",[1719,2735],{"alt":2736,"caption":2737,"detail":2738,"src":2739,"tags":2740,"title":2741},"Figure 7 — Full-width Channels and output with plan_hash confirmation id delivery ids and proposal-only follow-ups","Figure 7 — Paper trail + proposal-only next steps.","Operator confirm id, dispatch delivery_ids, plan_hash, mission_id. Follow-ups (monitor remaining, widen zone) are PROPOSAL ONLY — never auto-chained sends.","/blog/intent-evacuate/06-summary-channels.webp","plan-hash, confirmation-id, delivery-ids, proposals","Summary · channels & binding IDs",[119,2743,2745],{"className":2744},[122],[124,2746,2747],{},[207,2748,2749],{},"Figure 7 — Paper trail after dispatch: hashes and delivery ids, plus follow-ups that stay proposals until someone starts a new confirm.",[119,2751,2753,2759],{"className":2752},[224,225,226],[228,2754,2756],{"id":2755},"_9-audit-reconstructability-not-a-pretty-dashboard",[127,2757,2758],{},"9. Audit: reconstructability, not a pretty dashboard",[124,2760,2761],{},[237,2762,2763],{"href":239},[127,2764,242],{},[119,2766,2768],{"className":2767},[122],[124,2769,2770,2771],{},"After a crisis, someone will ask: ",[207,2772,2773],{},"who approved what, on which evidence, when?",[119,2775,2777],{"className":2776},[122],[124,2778,2779,2780,2783,2784,2786],{},"Observability for this product is ",[127,2781,2782],{},"reconstructability",". We treat audit as an append-only event chain correlated by ",[132,2785,2586],{},": intent received and parsed, clarifications, plan proposed, every tool call and return, preview shown, policy evaluated, confirm requested/granted/denied, dispatch sent, refuse issued, summary.",[119,2788,2790],{"className":2789},[122],[124,2791,2792,2793,2795,2798,2800,2801,2803,2804,593],{},"For send-class actions we aim at a completeness invariant: you can walk",[116,2794],{},[132,2796,2797],{},"intent → plan → tool evidence → preview → policy(CONFIRM) → confirm.granted → dispatch.sent",[116,2799],{},"\nwith matching ",[132,2802,2308],{},". Incomplete chains are not “ops debt”—they are a ",[127,2805,2806],{},"product defect",[119,2808,2810],{"className":2809},[122],[124,2811,2812,2813,2816],{},"The Summary UI makes that checklist visible: Plan · Tools · Preview · Confirm · Dispatch all checked for a send-class mission—including policy violations that happened mid-flight (e.g. ",[132,2814,2815],{},"ZONE_CONFLICT",") before a supervisor/operator path cleared the send.",[1719,2818],{"alt":2819,"caption":2820,"detail":2821,"src":2822,"tags":2823,"title":2824},"Figure 8 — Full-width Audit trail send-class completeness checklist and append-only events including ZONE_CONFLICT","Figure 8 — Reconstruct who decided what, on which evidence.","Append-only proof log. Checklist: Plan · Tools · Preview · Confirm · Dispatch. Confirm/Dispatch labeled OPERATOR. A red policy.violation (e.g. ZONE_CONFLICT) can still appear mid-chain — friction was real.","/blog/intent-evacuate/07-summary-audit.webp","audit-completeness, policy-violation, operator, append-only","Summary · send-class audit chain",[119,2826,2828],{"className":2827},[122],[124,2829,2830],{},[207,2831,2832,2833,2836],{},"Figure 8 — Append-only proof log. Confirm and Dispatch are labeled OPERATOR. A red ",[132,2834,2835],{},"policy.violation"," can still appear in a completed chain—evidence that friction was real, not skipped.",[119,2838,2840],{"className":2839},[122],[124,2841,2842],{},"Measure audit completeness the way you measure uptime.",[119,2844,2846,2852],{"className":2845},[224,225,226],[228,2847,2849],{"id":2848},"_10-data-models-contracts-first-tables-second",[127,2850,2851],{},"10. Data models: contracts first, tables second",[124,2853,2854],{},[237,2855,2856],{"href":239},[127,2857,242],{},[119,2859,2861],{"className":2860},[122],[124,2862,2863,2864,2867],{},"In mission-critical AI, the dangerous mistake is treating the chat transcript as the system of record. We treat ",[127,2865,2866],{},"typed contracts"," as truth and Postgres as the durable proof.",[119,2869,2871],{"className":2870},[122],[124,2872,2873],{},"There are three layers of “model” that matter—and only one of them is an LLM:",[1826,2875,2876,2888],{},[1829,2877,2878],{},[1832,2879,2880,2882,2885],{},[1835,2881,1837],{},[1835,2883,2884],{},"What it is",[1835,2886,2887],{},"Critical rule",[1842,2889,2890,2903,2916],{},[1832,2891,2892,2897,2900],{},[1847,2893,2894],{},[127,2895,2896],{},"LLM roles",[1847,2898,2899],{},"Generative proposers behind the gateway",[1847,2901,2902],{},"Never the source of population numbers or send authority",[1832,2904,2905,2910,2913],{},[1847,2906,2907],{},[127,2908,2909],{},"Runtime contracts",[1847,2911,2912],{},"JSON Schema / Zod: mission object, capabilities, confirm, audit events",[1847,2914,2915],{},"Invalid shape → clarify / refuse, never dispatch",[1832,2917,2918,2923,2926],{},[1847,2919,2920],{},[127,2921,2922],{},"Persistence",[1847,2924,2925],{},"Postgres tables + fixture files",[1847,2927,2928,2929],{},"Append-only audit; confirmations bind ",[132,2930,2308],{},[1898,2932,2934],{"id":2933},"_1-mission-object-the-structured-intent","1. Mission object (the structured intent)",[119,2936,2938],{"className":2937},[122],[124,2939,2940,2941,2944],{},"Natural language is parsed into an ",[127,2942,2943],{},"EvacuateMissionObject"," before tools run. Locked fields for the POC:",[119,2946,2948],{"className":2947},[122],[795,2949,2950,2959,2966,2983,2999,3010],{},[798,2951,2952,2955,2956],{},[132,2953,2954],{},"action",": always ",[132,2957,2958],{},"evacuate",[798,2960,2961,2955,2964],{},[132,2962,2963],{},"locale",[132,2965,1554],{},[798,2967,2968,2971,2972,787,2975,2978,2979,2982],{},[132,2969,2970],{},"zone",": ",[132,2973,2974],{},"admin_code",[127,2976,2977],{},"XOR"," GeoJSON ",[132,2980,2981],{},"polygon"," (never both ambiguous, never neither)",[798,2984,2985,2988,2989,2992,2993,2992,2996],{},[132,2986,2987],{},"channels",": non-empty subset of ",[132,2990,2991],{},"cell_broadcast"," | ",[132,2994,2995],{},"app_push",[132,2997,2998],{},"lb_sms",[798,3000,3001,2971,3004,2992,3007],{},[132,3002,3003],{},"urgency",[132,3005,3006],{},"immediate",[132,3008,3009],{},"planned",[798,3011,3012,3013,185,3016,185,3019],{},"optional ",[132,3014,3015],{},"authority_hint",[132,3017,3018],{},"time_window",[132,3020,3021],{},"notes",[119,3023,3025],{"className":3024},[122],[124,3026,3027,3030],{},[127,3028,3029],{},"Critical:"," if the object is incomplete, the loop stays in clarify. The LLM does not get to invent a zone to “be helpful.”",[1898,3032,3034],{"id":3033},"_2-capability-contracts-tools-with-side-effects","2. Capability contracts (tools with side effects)",[119,3036,3038],{"className":3037},[122],[124,3039,3040,3041,3046,3047,185,3050,3053],{},"Every tool in the registry declares a versioned contract: name, version, ",[127,3042,3043],{},[132,3044,3045],{},"side_effect: read | mutate",", input/output schemas, typed errors, optional SLA (",[132,3048,3049],{},"p95_ms",[132,3051,3052],{},"max_data_age_s",").",[1826,3055,3056,3069],{},[1829,3057,3058],{},[1832,3059,3060,3063,3066],{},[1835,3061,3062],{},"Capability",[1835,3064,3065],{},"side_effect",[1835,3067,3068],{},"Why it exists",[1842,3070,3071,3097,3109,3121,3133,3145,3157],{},[1832,3072,3073,3078,3081],{},[1847,3074,3075],{},[132,3076,3077],{},"population_in_zone",[1847,3079,3080],{},"read",[1847,3082,3083,3084,169,3087,185,3090,185,3093,3096],{},"CAMARA-shaped estimate + ",[132,3085,3086],{},"evidence",[132,3088,3089],{},"data_age_s",[132,3091,3092],{},"confidence",[132,3094,3095],{},"source",")",[1832,3098,3099,3104,3106],{},[1847,3100,3101],{},[132,3102,3103],{},"risk_score",[1847,3105,3080],{},[1847,3107,3108],{},"Risk signal for the bound zone",[1832,3110,3111,3116,3118],{},[1847,3112,3113],{},[132,3114,3115],{},"channel_eligibility",[1847,3117,3080],{},[1847,3119,3120],{},"Which FR-Alert-style channels can fire",[1832,3122,3123,3128,3130],{},[1847,3124,3125],{},[132,3126,3127],{},"rag_retrieve",[1847,3129,3080],{},[1847,3131,3132],{},"SOP / doctrine citations for grounding",[1832,3134,3135,3140,3142],{},[1847,3136,3137],{},[132,3138,3139],{},"draft_alert",[1847,3141,3080],{},[1847,3143,3144],{},"Channel drafts (still not a send)",[1832,3146,3147,3152,3154],{},[1847,3148,3149],{},[132,3150,3151],{},"mobility_remaining",[1847,3153,3080],{},[1847,3155,3156],{},"Optional mobility / remaining population",[1832,3158,3159,3163,3168],{},[1847,3160,3161],{},[132,3162,1973],{},[1847,3164,3165],{},[127,3166,3167],{},"mutate",[1847,3169,3170,3171,185,3173,185,3175,3177],{},"Requires ",[132,3172,2586],{},[132,3174,2308],{},[132,3176,2304],{},", channels",[119,3179,3181],{"className":3180},[122],[124,3182,3183,3186,3187,3189],{},[127,3184,3185],{},"Critical on read tools:"," evidence freshness and confidence feed policy. Stale ",[132,3188,3089],{}," → refuse. Low confidence + cell broadcast → supervisor.",[119,3191,3193],{"className":3192},[122],[124,3194,3195,787,3198,3200,3201,3204],{},[127,3196,3197],{},"Critical on mutate:",[132,3199,1973],{}," input without a valid confirmation is ",[132,3202,3203],{},"POLICY_DENIED",". There is no “almost send.”",[1898,3206,3208],{"id":3207},"_3-plan-hash-the-binding-between-preview-and-send","3. Plan hash (the binding between preview and send)",[119,3210,3212],{"className":3211},[122],[124,3213,3214,593],{},[132,3215,3216],{},"plan_hash = sha256(canonical JSON of { mission_id, steps, channels, zone })",[119,3218,3220],{"className":3219},[122],[124,3221,3222,3223,3225],{},"Canonical means sorted keys, stable structure. Any edit to zone, channels, or steps after preview produces a ",[127,3224,1229],{}," hash and invalidates the prior confirmation. That is how we stop “confirm plan A, silently dispatch plan B.”",[1898,3227,3229],{"id":3228},"_4-confirmation-and-dispatch-records","4. Confirmation and dispatch records",[1826,3231,3232,3242],{},[1829,3233,3234],{},[1832,3235,3236,3239],{},[1835,3237,3238],{},"Field that must be right",[1835,3240,3241],{},"Why",[1842,3243,3244,3253,3262,3281,3291,3308],{},[1832,3245,3246,3250],{},[1847,3247,3248],{},[132,3249,2304],{},[1847,3251,3252],{},"Opaque grant ticket",[1832,3254,3255,3259],{},[1847,3256,3257],{},[132,3258,2308],{},[1847,3260,3261],{},"Must equal current plan at dispatch",[1832,3263,3264,3272],{},[1847,3265,3266,2213,3269],{},[132,3267,3268],{},"actor_role",[132,3270,3271],{},"required_authority",[1847,3273,3274,3277,3278,3280],{},[132,3275,3276],{},"operator"," vs ",[132,3279,2355],{}," escalation",[1832,3282,3283,3288],{},[1847,3284,3285],{},[132,3286,3287],{},"expires_at",[1847,3289,3290],{},"TTL (e.g. 300s)—expired grant is dead",[1832,3292,3293,3298],{},[1847,3294,3295],{},[132,3296,3297],{},"status",[1847,3299,3300,3303,3304,3307],{},[132,3301,3302],{},"granted"," → ",[132,3305,3306],{},"consumed"," on successful dispatch",[1832,3309,3310,3314],{},[1847,3311,3312],{},[132,3313,2719],{},[1847,3315,3316],{},"Stub/sim fake ids today; real PWS ids later—always auditable",[1898,3318,3320],{"id":3319},"_5-audit-event-envelope","5. Audit event envelope",[119,3322,3324],{"className":3323},[122],[124,3325,3326,3327,185,3330,3332,3333,185,3336,185,3339,185,3342,185,3345,593],{},"Append-only rows: ",[132,3328,3329],{},"event_id",[132,3331,2586],{},", monotonic ",[132,3334,3335],{},"seq",[132,3337,3338],{},"type",[132,3340,3341],{},"actor",[132,3343,3344],{},"policy_pack",[132,3346,3347],{},"payload",[119,3349,3351],{"className":3350},[122],[124,3352,3353,3355],{},[127,3354,3029],{}," payloads must not store secrets or raw injection text in the clear (hash patterns instead). Send-class missions must reconstruct the completeness chain from these rows alone.",[1898,3357,3359],{"id":3358},"_6-postgres-entities-durable-anatomy","6. Postgres entities (durable anatomy)",[275,3361,3364],{"className":3362,"code":3363,"language":2038,"meta":280},[2036],"Mission 1──* Plan\nMission 1──* ToolCall 1──1 ToolResult\nMission 1──* Confirmation 1──0..1 Dispatch\nMission 1──* AuditEvent\nSopChunk (RAG corpus) · SimRun · MetricsSample (ops / game-day)\n",[132,3365,3363],{"__ignoreMap":280},[1826,3367,3368,3381],{},[1829,3369,3370],{},[1832,3371,3372,3375,3378],{},[1835,3373,3374],{},"Table",[1835,3376,3377],{},"Holds",[1835,3379,3380],{},"Critical invariant",[1842,3382,3383,3398,3413,3432,3445,3458,3471,3484],{},[1832,3384,3385,3390,3393],{},[1847,3386,3387],{},[132,3388,3389],{},"missions",[1847,3391,3392],{},"zone, channels, policy_pack, backend, status",[1847,3394,3395,3396],{},"Zone present; channels allowlisted; locale ",[132,3397,1554],{},[1832,3399,3400,3405,3410],{},[1847,3401,3402],{},[132,3403,3404],{},"plans",[1847,3406,3407,3409],{},[132,3408,2308],{},", steps JSON",[1847,3411,3412],{},"Steps only name registry capabilities",[1832,3414,3415,3423,3429],{},[1847,3416,3417,2213,3420],{},[132,3418,3419],{},"tool_calls",[132,3421,3422],{},"tool_results",[1847,3424,3425,3426,3428],{},"capability, ",[132,3427,3065],{},", evidence",[1847,3430,3431],{},"Preview numbers ⊆ returned tool JSON",[1832,3433,3434,3439,3442],{},[1847,3435,3436],{},[132,3437,3438],{},"confirmations",[1847,3440,3441],{},"hash + authority + TTL",[1847,3443,3444],{},"Dispatch only if granted, unexpired, hash match",[1832,3446,3447,3452,3455],{},[1847,3448,3449],{},[132,3450,3451],{},"dispatches",[1847,3453,3454],{},"confirmation_id, delivery_ids",[1847,3456,3457],{},"No row without a consumed confirmation",[1832,3459,3460,3465,3468],{},[1847,3461,3462],{},[132,3463,3464],{},"audit_events",[1847,3466,3467],{},"typed event stream",[1847,3469,3470],{},"Append-only; completeness on send-class",[1832,3472,3473,3478,3481],{},[1847,3474,3475],{},[132,3476,3477],{},"sop_chunks",[1847,3479,3480],{},"FR SOP text (+ embeddings later)",[1847,3482,3483],{},"Citations are real ids, not free prose",[1832,3485,3486,3494,3497],{},[1847,3487,3488,2213,3491],{},[132,3489,3490],{},"sim_runs",[132,3492,3493],{},"metrics_samples",[1847,3495,3496],{},"Game-day + KPIs",[1847,3498,3499,3500],{},"Sim never silently labeled as ",[132,3501,2514],{},[119,3503,3505],{"className":3504},[122],[124,3506,3507,3508,3511],{},"Population fixtures live primarily as ",[127,3509,3510],{},"files"," under adapters (admin_code → CAMARA-shaped payload); the DB mirrors mission life, not the entire geo catalog.",[119,3513,3516],{"className":3514},[193,3515],"w-full",[275,3517,3519],{"className":1368,"code":3518,"language":1370,"meta":280,"style":280},"erDiagram\n  missions ||--o{ plans : has\n  missions ||--o{ tool_calls : has\n  missions ||--o{ confirmations : has\n  missions ||--o{ dispatches : has\n  missions ||--o{ audit_events : has\n  tool_calls ||--|| tool_results : returns\n  confirmations ||--o| dispatches : grants\n\n  missions {\n    text id PK\n    text locale\n    text zone_admin_code\n    jsonb zone_polygon\n    jsonb channels\n    text policy_pack\n    text backend\n    text status\n  }\n  plans {\n    uuid id PK\n    text mission_id FK\n    text plan_hash\n    jsonb steps\n  }\n  tool_calls {\n    text tool_call_id PK\n    text mission_id FK\n    text capability\n    text side_effect\n    text backend\n  }\n  tool_results {\n    text tool_call_id PK\n    jsonb evidence\n    text status\n    int latency_ms\n  }\n  confirmations {\n    text id PK\n    text mission_id FK\n    text plan_hash\n    text actor_role\n    timestamptz expires_at\n    text status\n  }\n  dispatches {\n    uuid id PK\n    text mission_id FK\n    text confirmation_id FK\n    jsonb delivery_ids\n    jsonb channels\n  }\n  audit_events {\n    text event_id PK\n    text mission_id FK\n    int seq\n    text type\n    jsonb payload\n  }\n",[132,3520,3521,3526,3531,3536,3541,3546,3551,3556,3561,3565,3570,3575,3580,3585,3590,3595,3600,3605,3610,3615,3620,3625,3630,3635,3640,3644,3649,3654,3658,3663,3668,3673,3678,3684,3689,3695,3700,3706,3711,3717,3722,3727,3732,3738,3744,3749,3754,3760,3765,3770,3776,3782,3787,3792,3798,3804,3809,3815,3821,3827],{"__ignoreMap":280},[284,3522,3523],{"class":286,"line":287},[284,3524,3525],{},"erDiagram\n",[284,3527,3528],{"class":286,"line":293},[284,3529,3530],{},"  missions ||--o{ plans : has\n",[284,3532,3533],{"class":286,"line":300},[284,3534,3535],{},"  missions ||--o{ tool_calls : has\n",[284,3537,3538],{"class":286,"line":306},[284,3539,3540],{},"  missions ||--o{ confirmations : has\n",[284,3542,3543],{"class":286,"line":312},[284,3544,3545],{},"  missions ||--o{ dispatches : has\n",[284,3547,3548],{"class":286,"line":318},[284,3549,3550],{},"  missions ||--o{ audit_events : has\n",[284,3552,3553],{"class":286,"line":324},[284,3554,3555],{},"  tool_calls ||--|| tool_results : returns\n",[284,3557,3558],{"class":286,"line":330},[284,3559,3560],{},"  confirmations ||--o| dispatches : grants\n",[284,3562,3563],{"class":286,"line":335},[284,3564,297],{"emptyLinePlaceholder":296},[284,3566,3567],{"class":286,"line":341},[284,3568,3569],{},"  missions {\n",[284,3571,3572],{"class":286,"line":347},[284,3573,3574],{},"    text id PK\n",[284,3576,3577],{"class":286,"line":353},[284,3578,3579],{},"    text locale\n",[284,3581,3582],{"class":286,"line":359},[284,3583,3584],{},"    text zone_admin_code\n",[284,3586,3587],{"class":286,"line":364},[284,3588,3589],{},"    jsonb zone_polygon\n",[284,3591,3592],{"class":286,"line":369},[284,3593,3594],{},"    jsonb channels\n",[284,3596,3597],{"class":286,"line":375},[284,3598,3599],{},"    text policy_pack\n",[284,3601,3602],{"class":286,"line":381},[284,3603,3604],{},"    text backend\n",[284,3606,3607],{"class":286,"line":387},[284,3608,3609],{},"    text status\n",[284,3611,3612],{"class":286,"line":393},[284,3613,3614],{},"  }\n",[284,3616,3617],{"class":286,"line":399},[284,3618,3619],{},"  plans {\n",[284,3621,3622],{"class":286,"line":405},[284,3623,3624],{},"    uuid id PK\n",[284,3626,3627],{"class":286,"line":713},[284,3628,3629],{},"    text mission_id FK\n",[284,3631,3632],{"class":286,"line":719},[284,3633,3634],{},"    text plan_hash\n",[284,3636,3637],{"class":286,"line":725},[284,3638,3639],{},"    jsonb steps\n",[284,3641,3642],{"class":286,"line":731},[284,3643,3614],{},[284,3645,3646],{"class":286,"line":737},[284,3647,3648],{},"  tool_calls {\n",[284,3650,3651],{"class":286,"line":742},[284,3652,3653],{},"    text tool_call_id PK\n",[284,3655,3656],{"class":286,"line":747},[284,3657,3629],{},[284,3659,3660],{"class":286,"line":753},[284,3661,3662],{},"    text capability\n",[284,3664,3665],{"class":286,"line":759},[284,3666,3667],{},"    text side_effect\n",[284,3669,3671],{"class":286,"line":3670},31,[284,3672,3604],{},[284,3674,3676],{"class":286,"line":3675},32,[284,3677,3614],{},[284,3679,3681],{"class":286,"line":3680},33,[284,3682,3683],{},"  tool_results {\n",[284,3685,3687],{"class":286,"line":3686},34,[284,3688,3653],{},[284,3690,3692],{"class":286,"line":3691},35,[284,3693,3694],{},"    jsonb evidence\n",[284,3696,3698],{"class":286,"line":3697},36,[284,3699,3609],{},[284,3701,3703],{"class":286,"line":3702},37,[284,3704,3705],{},"    int latency_ms\n",[284,3707,3709],{"class":286,"line":3708},38,[284,3710,3614],{},[284,3712,3714],{"class":286,"line":3713},39,[284,3715,3716],{},"  confirmations {\n",[284,3718,3720],{"class":286,"line":3719},40,[284,3721,3574],{},[284,3723,3725],{"class":286,"line":3724},41,[284,3726,3629],{},[284,3728,3730],{"class":286,"line":3729},42,[284,3731,3634],{},[284,3733,3735],{"class":286,"line":3734},43,[284,3736,3737],{},"    text actor_role\n",[284,3739,3741],{"class":286,"line":3740},44,[284,3742,3743],{},"    timestamptz expires_at\n",[284,3745,3747],{"class":286,"line":3746},45,[284,3748,3609],{},[284,3750,3752],{"class":286,"line":3751},46,[284,3753,3614],{},[284,3755,3757],{"class":286,"line":3756},47,[284,3758,3759],{},"  dispatches {\n",[284,3761,3763],{"class":286,"line":3762},48,[284,3764,3624],{},[284,3766,3768],{"class":286,"line":3767},49,[284,3769,3629],{},[284,3771,3773],{"class":286,"line":3772},50,[284,3774,3775],{},"    text confirmation_id FK\n",[284,3777,3779],{"class":286,"line":3778},51,[284,3780,3781],{},"    jsonb delivery_ids\n",[284,3783,3785],{"class":286,"line":3784},52,[284,3786,3594],{},[284,3788,3790],{"class":286,"line":3789},53,[284,3791,3614],{},[284,3793,3795],{"class":286,"line":3794},54,[284,3796,3797],{},"  audit_events {\n",[284,3799,3801],{"class":286,"line":3800},55,[284,3802,3803],{},"    text event_id PK\n",[284,3805,3807],{"class":286,"line":3806},56,[284,3808,3629],{},[284,3810,3812],{"class":286,"line":3811},57,[284,3813,3814],{},"    int seq\n",[284,3816,3818],{"class":286,"line":3817},58,[284,3819,3820],{},"    text type\n",[284,3822,3824],{"class":286,"line":3823},59,[284,3825,3826],{},"    jsonb payload\n",[284,3828,3830],{"class":286,"line":3829},60,[284,3831,3614],{},[119,3833,3835],{"className":3834},[122],[124,3836,3837],{},[207,3838,3839,3840,2213,3842,2213,3844,3846],{},"Figure 9 — Postgres ER (Mermaid): missions through audit_events. Satellite tables ",[132,3841,3477],{},[132,3843,3490],{},[132,3845,3493],{}," are listed above. Population fixtures stay in adapter files.",[1898,3848,3850,3851,3853],{"id":3849},"what-is-not-in-the-data-model-on-purpose","What is ",[207,3852,1110],{}," in the data model (on purpose)",[119,3855,3857],{"className":3856},[122],[795,3858,3859,3862,3865,3875],{},[798,3860,3861],{},"No “LLM decided to send” flag—only operator/supervisor confirm + dispatch rows",[798,3863,3864],{},"No free-form channel strings—enum only",[798,3866,3867,3868,2213,3870,2213,3872,3874],{},"No silent backend promotion (",[132,3869,2508],{},[132,3871,2511],{},[132,3873,2514],{}," is explicit on every tool call)",[798,3876,3877],{},"No multi-country locale packs in the POC mission object",[119,3879,3881],{"className":3880},[122],[124,3882,3883],{},"If a field cannot be defended in an after-action review, it does not belong in the contract.",[119,3885,3887,3893],{"className":3886},[224,225,226],[228,3888,3890],{"id":3889},"_11-france-first-product-constraints",[127,3891,3892],{},"11. France-first product constraints",[124,3894,3895],{},[237,3896,3897],{"href":239},[127,3898,242],{},[119,3900,3902],{"className":3901},[122],[124,3903,3904],{},"Mission-critical AI in this domain is not a neutral chatbot with a map widget. Geography, locale, channels, and tone are product law:",[119,3906,3908],{"className":3907},[122],[795,3909,3910,3916,3928,3934],{},[798,3911,3912,3915],{},[127,3913,3914],{},"Locale:"," French intents, drafts, SOPs, golden evals",[798,3917,3918,787,3921,185,3923,185,3925,3927],{},[127,3919,3920],{},"Channels (POC allowlist):",[132,3922,2991],{},[132,3924,2995],{},[132,3926,2998],{},"—never invent channels in the model",[798,3929,3930,3933],{},[127,3931,3932],{},"Tone:"," préfecture-style / official public-warning voice",[798,3935,3936,787,3939,2213,3941,3943],{},[127,3937,3938],{},"Policy packs:",[132,3940,2331],{},[132,3942,2334],{}," with explicit freshness and escalation",[119,3945,3947],{"className":3946},[122],[124,3948,3949,3950],{},"Live public-warning system (PWS) send is out of scope for the POC; adapters speak stub and sim, shaped for real contracts (including CAMARA-aligned population-in-zone) when sandboxes exist. That honesty belongs in the article as much as in the architecture: ",[127,3951,3952],{},"production readiness for AI orchestration starts with contractual truth about what you can and cannot fire.",[119,3954,3956,3962],{"className":3955},[224,225,226],[228,3957,3959],{"id":3958},"_12-preparing-for-production",[127,3960,3961],{},"12. Preparing for production",[124,3963,3964],{},[237,3965,3966],{"href":239},[127,3967,242],{},[119,3969,3971],{"className":3970},[122],[124,3972,3973],{},"“Ready” is not a feeling after a happy-path demo. It is a checklist you can fail closed against.",[1898,3975,3977],{"id":3976},"_1-golden-paths-and-adversarial-paths","1. Golden paths and adversarial paths",[119,3979,3981],{"className":3980},[122],[124,3982,3983],{},"Happy-path orchestration is necessary and insufficient. Safety suites attack injection, ambiguous zones, stale data, and confirm bypass fantasies. Golden evals cover plan shape and policy outcome—not just “the draft sounded good.”",[1898,3985,3987],{"id":3986},"_2-simulation-before-live-networks","2. Simulation before live networks",[119,3989,3991],{"className":3990},[122],[124,3992,3993,3994,3997],{},"Stub and sim backends always exist. Real backends appear only with credentials. Fallback rule we locked early: ",[127,3995,3996],{},"refuse on stale or unavailable data; no silent backend swap"," that would make a stub look like live telecom truth. Sim control and fault-inject logs exist so game-days can break things on purpose.",[1898,3999,4001],{"id":4000},"_3-scripted-game-days","3. Scripted game-days",[119,4003,4005],{"className":4004},[122],[124,4006,4007],{},"Before claiming scale, run scripted national-tier load and mission scenarios—not informal “we clicked around.” Scripted personas beat hoping live operators will improvise your test plan.",[1898,4009,4011],{"id":4010},"_4-capability-registry-and-tool-contracts","4. Capability registry and tool contracts",[119,4013,4015],{"className":4014},[122],[124,4016,4017,4018,3277,4020,4022],{},"Plans may only name allowlisted capabilities with versions and side-effect classes (",[132,4019,3080],{},[132,4021,3167],{},"). Unknown capability → reject. Mutate before confirm → reject. Tool typed errors feed policy (refuse/clarify), not improvisation.",[1898,4024,4026],{"id":4025},"_5-operator-ux-that-makes-the-gate-tangible","5. Operator UX that makes the gate tangible",[119,4028,4030],{"className":4029},[122],[124,4031,4032],{},"Chat and map are not decoration. Zone must be explicit. Preview must show evidence. Confirm must show authority. Summary must seal the after-action record. Systems/audit surfaces must make the chain inspectable while the mission is live—not only in a log file after the fact.",[1898,4034,4036],{"id":4035},"_6-what-we-still-will-not-claim","6. What we still will not claim",[119,4038,4040],{"className":4039},[122],[795,4041,4042,4045,4048,4051],{},[798,4043,4044],{},"The model does not “understand” crisis the way a trained operator does.",[798,4046,4047],{},"AI does not replace geo engines or invent headcount.",[798,4049,4050],{},"A successful simulated dispatch is not a production broadcast.",[798,4052,4053],{},"Multi-country export packs and live FR-Alert wiring are product phases, not slideware.",[119,4055,4057],{"className":4056},[122],[124,4058,4059],{},"Humility is part of régalien credibility.",[119,4061,4063,4069],{"className":4062},[224,225,226],[228,4064,4066],{"id":4065},"_13-lessons-for-anyone-shipping-high-stakes-ai",[127,4067,4068],{},"13. Lessons for anyone shipping high-stakes AI",[124,4070,4071],{},[237,4072,4073],{"href":239},[127,4074,242],{},[119,4076,4078],{"className":4077},[122],[124,4079,4080,4083],{},[127,4081,4082],{},"Be careful what promises you make."," Do not sell “the AI evacuates the city,” “fully autonomous public warning,” or “production FR-Alert” when what you shipped is a governed assistant on stub/sim with a human confirm gate. Promise what you can defend in an audit: refuse over silent wrong action, hash-bound confirm, reconstructable send-class chains, replaceable models behind fixed roles. Over-claiming is not marketing—it is a régalien liability.",[119,4085,4087],{"className":4086},[122],[1058,4088,4089,4095,4101,4110,4116,4122,4128,4134,4140,4146,4152,4158,4164],{},[798,4090,4091,4094],{},[127,4092,4093],{},"Production readiness ≠ model accuracy."," It is whether irreversible actions are unreachable without a hash-bound, time-bound, authority-checked confirmation.",[798,4096,4097,4100],{},[127,4098,4099],{},"The product is the decision ladder",", not the chat skin.",[798,4102,4103,4106,4107,4109],{},[127,4104,4105],{},"Contracts outrank transcripts."," Mission object + capability schemas + ",[132,4108,2308],{}," are the system of record.",[798,4111,4112,4115],{},[127,4113,4114],{},"Policy belongs in data + tests",", not in prompt paragraphs the model might ignore.",[798,4117,4118,4121],{},[127,4119,4120],{},"Your best demo is often a refusal","—stale data, ambiguous zone, injection.",[798,4123,4124,4127],{},[127,4125,4126],{},"Ground every claim"," shown to a human in tool evidence; treat inventing numbers as a safety bug.",[798,4129,4130,4133],{},[127,4131,4132],{},"Faithfulness is a product feature",", not a nice-to-have validator.",[798,4135,4136,4139],{},[127,4137,4138],{},"Audit completeness is an SLO."," If you cannot reconstruct a send, you were not ready to send.",[798,4141,4142,4145],{},[127,4143,4144],{},"Follow-ups stay proposals"," until a new confirm—never silent mission chaining.",[798,4147,4148,4151],{},[127,4149,4150],{},"Prefer refuse over silent wrong action."," Design the culture into the orchestrator.",[798,4153,4154,4157],{},[127,4155,4156],{},"One model for all roles is OK for a POC; per-role models are an ops dial","—roles and gates matter more than weight variety.",[798,4159,4160,4163],{},[127,4161,4162],{},"Keep models replaceable."," Gateway roles, registry, and audit vocabulary outlive any single provider.",[798,4165,4166,4169],{},[127,4167,4168],{},"Say stub/sim when it is stub/sim."," A green “DISPATCHED” in demo is not a live broadcast—label the backend so nobody confuses them.",[119,4171,4173,4179],{"className":4172},[224,225,226],[228,4174,4176],{"id":4175},"_14-closing",[127,4177,4178],{},"14. Closing",[124,4180,4181],{},[237,4182,4183],{"href":239},[127,4184,242],{},[119,4186,4188],{"className":4187},[122],[124,4189,4190,4191,4193],{},"We titled this ",[207,4192,23],{}," because the interesting part is not the neural tissue—it is the skeleton: orchestrator, policy engine, confirm gate, faithfulness, tool contracts, sealed summary, and audit chain.",[119,4195,4197],{"className":4196},[122],[124,4198,4199,4200,4203],{},"Put a language model next to public warning if you must. Put ",[127,4201,4202],{},"control"," between intent and broadcast if you care about the people on the receiving end.",[119,4205,4207],{"className":4206},[122],[124,4208,4209,4210,4212,4213,4215],{},"The model proposes.",[116,4211],{},"\nPolicy decides what is allowed.",[116,4214],{},"\nHumans alone authorize the send.",[119,4217,4219],{"className":4218},[122],[124,4220,4221],{},"That is the anatomy. Everything else is implementation detail—and implementation detail is exactly what you write tests for before you call anything “production.”",[119,4223,4225],{"className":4224},[122],[124,4226,4227],{},[207,4228,4229,4230,4233],{},"Built as a France-only public-warning Mission Assistant POC (",[127,4231,4232],{},"intentEvacuate","): GenAI proposes; policy + confirm gate decide; humans alone authorize the send. Stub/sim backends — not live FR-Alert.",[1533,4235,1535],{},{"title":280,"searchDepth":293,"depth":293,"links":4237},[4238,4239,4240,4243,4246,4250,4251,4252,4256,4257,4267,4268,4276,4277],{"id":1652,"depth":293,"text":1655},{"id":1740,"depth":293,"text":1743},{"id":1809,"depth":293,"text":1812,"children":4241},[4242],{"id":1900,"depth":300,"text":1901},{"id":2017,"depth":293,"text":2020,"children":4244},[4245],{"id":2043,"depth":300,"text":2044},{"id":2251,"depth":293,"text":2254,"children":4247},[4248,4249],{"id":2321,"depth":300,"text":2322},{"id":2367,"depth":300,"text":2368},{"id":2490,"depth":293,"text":2493},{"id":2557,"depth":293,"text":2560},{"id":2620,"depth":293,"text":2623,"children":4253},[4254,4255],{"id":2642,"depth":300,"text":2643},{"id":2680,"depth":300,"text":2681},{"id":2755,"depth":293,"text":2758},{"id":2848,"depth":293,"text":2851,"children":4258},[4259,4260,4261,4262,4263,4264,4265],{"id":2933,"depth":300,"text":2934},{"id":3033,"depth":300,"text":3034},{"id":3207,"depth":300,"text":3208},{"id":3228,"depth":300,"text":3229},{"id":3319,"depth":300,"text":3320},{"id":3358,"depth":300,"text":3359},{"id":3849,"depth":300,"text":4266},"What is not in the data model (on purpose)",{"id":3889,"depth":293,"text":3892},{"id":3958,"depth":293,"text":3961,"children":4269},[4270,4271,4272,4273,4274,4275],{"id":3976,"depth":300,"text":3977},{"id":3986,"depth":300,"text":3987},{"id":4000,"depth":300,"text":4001},{"id":4010,"depth":300,"text":4011},{"id":4025,"depth":300,"text":4026},{"id":4035,"depth":300,"text":4036},{"id":4065,"depth":293,"text":4068},{"id":4175,"depth":293,"text":4178},"2026-10-20","How we built a public-warning assistant where models propose, policy decides what is allowed, and humans alone authorize the send — contracts, plan_hash, faithfulness, and sealed audit.",{"src":4281},"/blog/intent-evacuate/00-demo-poster.webp",{},{"title":23,"description":4279},"TJNcdpALBQ7CQf-OuGC-vsqq0OcRwyoENt2nyNEjhGQ",{"id":4286,"title":59,"authors":4287,"badge":4290,"body":4292,"date":6686,"description":6687,"extension":1547,"image":6688,"meta":6689,"navigation":296,"path":60,"seo":6690,"stem":61,"__hash__":6691},"posts_en/en/blog/9. mutuellefit-ddd-agentic.md",[4288],{"name":103,"description":104,"to":105,"avatar":4289},{"src":107},{"label":4291,"color":110,"variant":111},"System Design, DDD, Agentic",{"type":113,"value":4293,"toc":6663},[4294,4322,4339,4356,4371,4383,4389,4401,4416,4422,4555,4570,4576,4585,4593,4608,4614,4622,4647,4666,4807,4815,4830,4836,4844,4852,4890,4920,4924,5064,5068,5183,5187,5285,5314,5330,5350,5365,5371,5379,5401,5414,5429,5435,5443,5566,5581,5587,5796,5828,5843,5849,5932,5936,6045,6049,6115,6130,6136,6144,6152,6167,6173,6261,6270,6285,6302,6382,6420,6426,6441,6447,6482,6491,6579,6594,6660],[119,4295,4297],{"className":4296},[122],[124,4298,4299,4302,4303,4306,4307,4310,4311,4314,4315,4318,4319,593],{},[127,4300,4301],{},"MutuelleFit"," is a thin ",[127,4304,4305],{},"Insurance bounded context"," POC: multi-tenant enrol / dispense → carrier affiliation behind an ",[127,4308,4309],{},"anti-corruption layer"," → Santé ",[127,4312,4313],{},"premium instructions"," for a payroll stub. Design sources: constitution, ",[132,4316,4317],{},"docs/base.md",", Spec Kit feature ",[132,4320,4321],{},"001-mutuelle-enrolment-cotisations",[119,4323,4325],{"className":4324},[122],[124,4326,4327,4330,4331,4334,4335,4338],{},[127,4328,4329],{},"One breath:"," DDD decides the ",[127,4332,4333],{},"walls"," (who owns enrolment vs payroll vs employee). System design decides the ",[127,4336,4337],{},"pipes and failure modes"," (api / worker / outbox / queue / retries). They nest — they are not competitors.",[119,4340,4342],{"className":4341},[122],[124,4343,4344,4345,2213,4348,4351,4352,4355],{},"Figures use seed data only (",[132,4346,4347],{},"Company 1",[132,4349,4350],{},"Employee 1","). No live credentials. Carrier names are ",[127,4353,4354],{},"ACL stubs",". Hover or focus a figure to blur it and read the contract.",[119,4357,4359,4365],{"className":4358},[224,225,226],[228,4360,4362],{"id":4361},"_1-walkthrough",[127,4363,4364],{},"1. Walkthrough",[124,4366,4367],{},[237,4368,4369],{"href":239},[127,4370,242],{},[119,4372,4374],{"className":4373},[122],[124,4375,4376,4377,593],{},"Live guided demo on GitHub Pages — a cursor walks Docs → enrol until Covered → Architecture play → Cards. It loads only when you click below (so the auto-tour cannot yank page scroll). Full screen: ",[237,4378,4382],{"href":4379,"rel":4380},"https://michaelwybraniec.github.io/insurance-vertical/",[4381],"nofollow","MutuelleFit demo",[4384,4385],"demo-iframe",{"height":4386,"music":1628,"poster":4387,"src":4379,"title":4388},"760px","/blog/mutuellefit/demo-poster.jpg","MutuelleFit — insurance vertical guided demo",[119,4390,4392],{"className":4391},[122],[124,4393,4394],{},[207,4395,4396,4397,1642,4399,1646],{},"Guided demo — ",[127,4398,1641],{},[127,4400,1645],{},[119,4402,4404,4410],{"className":4403},[224,225,226],[228,4405,4407],{"id":4406},"_2-contracts",[127,4408,4409],{},"2. Contracts",[124,4411,4412],{},[237,4413,4414],{"href":239},[127,4415,242],{},[119,4417,4419],{"className":4418},[122],[124,4420,4421],{},"What the vertical proves — constitution principles I–VII plus Spec Kit clarifications:",[1826,4423,4424,4437],{},[1829,4425,4426],{},[1832,4427,4428,4431,4434],{},[1835,4429,4430],{},"#",[1835,4432,4433],{},"Contract",[1835,4435,4436],{},"Evidence",[1842,4438,4439,4456,4467,4486,4501,4512,4529,4544],{},[1832,4440,4441,4444,4447],{},[1847,4442,4443],{},"1",[1847,4445,4446],{},"Enrol is async",[1847,4448,4449,915,4452,4455],{},[132,4450,4451],{},"202",[132,4453,4454],{},"PendingExternal","; Active only after ACL confirm",[1832,4457,4458,4461,4464],{},[1847,4459,4460],{},"2",[1847,4462,4463],{},"Bounded writes",[1847,4465,4466],{},"Insurance never writes Payroll tables; ids + cents on the bus",[1832,4468,4469,4472,4475],{},[1847,4470,4471],{},"3",[1847,4473,4474],{},"ACL, not products",[1847,4476,4477,4478,4481,4482,4485],{},"Same ",[132,4479,4480],{},"EnrolEmployee","; ",[132,4483,4484],{},"InsurerGateway"," → AlanStub | AxaStub",[1832,4487,4488,4491,4494],{},[1847,4489,4490],{},"4",[1847,4492,4493],{},"Outbox + idempotency in Postgres",[1847,4495,4496,4497,4500],{},"Same TX as aggregate; ",[132,4498,4499],{},"(companyId, route, key)"," store",[1832,4502,4503,4506,4509],{},[1847,4504,4505],{},"5",[1847,4507,4508],{},"ANI money",[1847,4510,4511],{},"Integer EUR cents; employer ≥ 50%; half-up + remainder",[1832,4513,4514,4517,4520],{},[1847,4515,4516],{},"6",[1847,4518,4519],{},"Tenant isolation",[1847,4521,4522,4525,4526],{},[132,4523,4524],{},"X-Company-Id"," mismatch → ",[127,4527,4528],{},"403",[1832,4530,4531,4534,4537],{},[1847,4532,4533],{},"7",[1847,4535,4536],{},"Honest failure",[1847,4538,4539,4540,4543],{},"Retry ×3 → ",[132,4541,4542],{},"Failed"," + DLQ counter — never silent Active",[1832,4545,4546,4549,4552],{},[1847,4547,4548],{},"8",[1847,4550,4551],{},"Agentic rails",[1847,4553,4554],{},"Spec Kit + domain skills block illegal transitions",[119,4556,4558,4564],{"className":4557},[224,225,226],[228,4559,4561],{"id":4560},"_3-problem-and-slice",[127,4562,4563],{},"3. Problem and slice",[124,4565,4566],{},[237,4567,4568],{"href":239},[127,4569,242],{},[119,4571,4573],{"className":4572},[122],[124,4574,4575],{},"Target pain: double entry between HRIS and insurer, wrong cotisations on the bulletin, leavers still “covered.” The POC is the smallest vertical that still has real architecture — not claims, marketplace, or DSN/URSSAF.",[119,4577,4579],{"className":4578},[122],[124,4580,4581,4584],{},[127,4582,4583],{},"Pitch:"," for many client companies, turn employee lifecycle into mutuelle affiliation and payroll-ready cotisations — DDD vertical + events + outbox + swappable carrier ACLs.",[1719,4586],{"alt":4587,"caption":4588,"detail":4589,"src":4590,"tags":4591,"title":4592},"Docs overview — Insurance as bounded context","Docs · Start","Insurance sits next to company, employee, and payroll. HR talks to /v1; cover lives in an Enrolment FSM; carriers sit behind InsurerGateway; Payroll only receives EUR cents instructions. Critical path is labelled ENROL IS ASYNC.","/blog/mutuellefit/docs-overview.png","bounded-context, fsm, acl, domain-api","Docs · bounded context in one minute",[119,4594,4596,4602],{"className":4595},[224,225,226],[228,4597,4599],{"id":4598},"_4-architecture",[127,4600,4601],{},"4. Architecture",[124,4603,4604],{},[237,4605,4606],{"href":239},[127,4607,242],{},[119,4609,4611],{"className":4610},[122],[124,4612,4613],{},"Five ownership zones. Write authority is the cut that matters — not how many containers you deploy. Walls first (Insurance vs Employee vs Payroll); then pipes (HTTPS commands, outbox → bus, ACL HTTPS, webhooks).",[1719,4615],{"alt":4616,"caption":4617,"detail":4618,"src":4619,"tags":4620,"title":4621},"Five ownership zones diagram","Ownership zones","Zone 1 Cover — thin client, never SoT. Zone 2 Insurance API — role + companyId. Zone 3 Records — FSM + outbox handoff. Zone 4 Background jobs — async boundary. Zone 5 Outside — carriers, payroll, EmployeeTerminated.","/blog/mutuellefit/ownership-zones.png","hexagonal, ports-adapters, authz, async-boundary","Five zones · write authority",[119,4623,4625],{"className":4624},[122],[124,4626,4627,4630,4631,2213,4634,4637,4638,4641,4642,4644,4645,593],{},[127,4628,4629],{},"Hexagonal / ports-and-adapters."," Driving adapters: HTTP domain API + worker. Driven adapters: Postgres, in-process bus (prod-shaped → SQS / SNS / EventBridge), ",[132,4632,4633],{},"AlanStub",[132,4635,4636],{},"AxaStub",". Domain aggregates contain ",[127,4639,4640],{},"zero"," carrier DTOs — only ",[132,4643,4484],{},". That is the ",[127,4646,4309],{},[119,4648,4650],{"className":4649},[122],[124,4651,4652,4655,4656,4659,4660,185,4663,4665],{},[127,4653,4654],{},"Context map."," Employee / Company are upstream. Payroll is downstream customer/supplier via ",[132,4657,4658],{},"PremiumInstructionIssued",". Carriers are conformist at the ACL, not in the core model. Identity is stub headers (",[132,4661,4662],{},"X-Role",[132,4664,4524],{},") in the POC.",[275,4667,4669],{"className":1368,"code":4668,"language":1370,"meta":280,"style":280},"flowchart TB\n  subgraph Upstream[\"Upstream\"]\n    EMP[Employee]\n    CO[Company]\n    ID[Identity stub]\n  end\n  subgraph InsuranceBC[\"Insurance BC\"]\n    API[\"Domain API /v1\"]\n    AGG[\"Enrolment aggregate + FSM\"]\n    OB[(outbox · idempotency · audit)]\n    W[Activation worker]\n    GW[\"InsurerGateway\"]\n  end\n  subgraph Downstream[\"Downstream / edge\"]\n    PAY[Payroll stub]\n    ALAN[AlanStub]\n    AXA[AxaStub]\n  end\n  EMP -->|Terminated| W\n  CO -->|carrier config| AGG\n  ID -->|authZ| API\n  API --> AGG\n  AGG --> OB\n  W --> OB\n  W --> GW\n  GW --> ALAN\n  GW --> AXA\n  W -->|PremiumInstructionIssued| PAY\n",[132,4670,4671,4675,4680,4685,4690,4695,4699,4704,4709,4714,4719,4724,4729,4733,4738,4743,4748,4753,4757,4762,4767,4772,4777,4782,4787,4792,4797,4802],{"__ignoreMap":280},[284,4672,4673],{"class":286,"line":287},[284,4674,1377],{},[284,4676,4677],{"class":286,"line":293},[284,4678,4679],{},"  subgraph Upstream[\"Upstream\"]\n",[284,4681,4682],{"class":286,"line":300},[284,4683,4684],{},"    EMP[Employee]\n",[284,4686,4687],{"class":286,"line":306},[284,4688,4689],{},"    CO[Company]\n",[284,4691,4692],{"class":286,"line":312},[284,4693,4694],{},"    ID[Identity stub]\n",[284,4696,4697],{"class":286,"line":318},[284,4698,1402],{},[284,4700,4701],{"class":286,"line":324},[284,4702,4703],{},"  subgraph InsuranceBC[\"Insurance BC\"]\n",[284,4705,4706],{"class":286,"line":330},[284,4707,4708],{},"    API[\"Domain API /v1\"]\n",[284,4710,4711],{"class":286,"line":335},[284,4712,4713],{},"    AGG[\"Enrolment aggregate + FSM\"]\n",[284,4715,4716],{"class":286,"line":341},[284,4717,4718],{},"    OB[(outbox · idempotency · audit)]\n",[284,4720,4721],{"class":286,"line":347},[284,4722,4723],{},"    W[Activation worker]\n",[284,4725,4726],{"class":286,"line":353},[284,4727,4728],{},"    GW[\"InsurerGateway\"]\n",[284,4730,4731],{"class":286,"line":359},[284,4732,1402],{},[284,4734,4735],{"class":286,"line":364},[284,4736,4737],{},"  subgraph Downstream[\"Downstream / edge\"]\n",[284,4739,4740],{"class":286,"line":369},[284,4741,4742],{},"    PAY[Payroll stub]\n",[284,4744,4745],{"class":286,"line":375},[284,4746,4747],{},"    ALAN[AlanStub]\n",[284,4749,4750],{"class":286,"line":381},[284,4751,4752],{},"    AXA[AxaStub]\n",[284,4754,4755],{"class":286,"line":387},[284,4756,1402],{},[284,4758,4759],{"class":286,"line":393},[284,4760,4761],{},"  EMP -->|Terminated| W\n",[284,4763,4764],{"class":286,"line":399},[284,4765,4766],{},"  CO -->|carrier config| AGG\n",[284,4768,4769],{"class":286,"line":405},[284,4770,4771],{},"  ID -->|authZ| API\n",[284,4773,4774],{"class":286,"line":713},[284,4775,4776],{},"  API --> AGG\n",[284,4778,4779],{"class":286,"line":719},[284,4780,4781],{},"  AGG --> OB\n",[284,4783,4784],{"class":286,"line":725},[284,4785,4786],{},"  W --> OB\n",[284,4788,4789],{"class":286,"line":731},[284,4790,4791],{},"  W --> GW\n",[284,4793,4794],{"class":286,"line":737},[284,4795,4796],{},"  GW --> ALAN\n",[284,4798,4799],{"class":286,"line":742},[284,4800,4801],{},"  GW --> AXA\n",[284,4803,4804],{"class":286,"line":747},[284,4805,4806],{},"  W -->|PremiumInstructionIssued| PAY\n",[1719,4808],{"alt":4809,"caption":4810,"detail":4811,"src":4812,"tags":4813,"title":4814},"Cover UI beside live architecture graph","Cover · Architecture tab","Left — person journey (enrolled → waiting → covered → payslip). Right — Insurance API, Enrolment FSM, event bus, activation worker, payroll observer. Illegal edges (Cover → carrier HTTP) are architecture violations.","/blog/mutuellefit/cover-architecture-split.png","observability, eda, fsm, demo","Stepper + runtime graph",[119,4816,4818,4824],{"className":4817},[224,225,226],[228,4819,4821],{"id":4820},"_5-critical-path",[127,4822,4823],{},"5. Critical path",[124,4825,4826],{},[237,4827,4828],{"href":239},[127,4829,242],{},[119,4831,4833],{"className":4832},[122],[124,4834,4835],{},"Command → same-TX outbox → worker → ACL → Active → premium instruction → payroll stub.",[1719,4837],{"alt":4838,"caption":4839,"detail":4840,"src":4841,"tags":4842,"title":4843},"Sequence diagram enrol async path","Sequence · enrol","POST enrol + Idempotency-Key → 202 PendingExternal. Enrolment + outbox commit together. Worker → createMember → Active → PremiumInstructionIssued (cents) → Payroll. No optimistic Covered.","/blog/mutuellefit/sequence-enrol.png","http-202, transactional-outbox, idempotency-key, eventual-consistency","Enrol is async · outbox in one TX",[119,4845,4847],{"className":4846},[122],[124,4848,4849],{},[127,4850,4851],{},"Same ACID transaction:",[1058,4853,4854,4868,4873,4880],{},[798,4855,4856,4857,4860,4861,4864,4865,593],{},"Enforce invariants — ≤1 open ",[132,4858,4859],{},"PendingExternal|Active"," per ",[132,4862,4863],{},"(companyId, employeeId)","; plan exists; insurance enabled; ",[132,4866,4867],{},"coverage = collective",[798,4869,4870,4871,593],{},"Persist Enrolment as ",[132,4872,4454],{},[798,4874,4875,4876,4879],{},"Insert outbox row (",[132,4877,4878],{},"event_type"," + jsonb payload).",[798,4881,4882,4883,787,4886,4889],{},"Upsert ",[132,4884,4885],{},"idempotency_keys",[132,4887,4888],{},"(company_id, route, key)"," → cached 202 body.",[119,4891,4893],{"className":4892},[122],[124,4894,4895,4896,4899,4900,915,4903,915,4906,4908,4909,4912,4913,3303,4915,915,4917,593],{},"Worker drains Pending / outbox → ",[132,4897,4898],{},"createMember"," → on success FSM → ",[132,4901,4902],{},"Active",[132,4904,4905],{},"EmployeeEnrolledInInsurance",[132,4907,4658],{},". Timeout increments ",[132,4910,4911],{},"attempt_count","; after ",[127,4914,4471],{},[132,4916,4542],{},[132,4918,4919],{},"dead_letter_counters",[1898,4921,4923],{"id":4922},"example-enrol-company-a-alan","Example · enrol (Company A / Alan)",[275,4925,4930],{"className":4926,"code":4927,"filename":4928,"language":4929,"meta":280,"style":280},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","curl -sS \\\n  -H \"X-Role: company.admin\" \\\n  -H \"X-Company-Id: company-a\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: demo-enrol-a-1\" \\\n  -X POST \"http://localhost:3810/v1/companies/company-a/enrolments\" \\\n  -d '{\n    \"employeeId\": \"emp-a1\",\n    \"planId\": \"sante-base\",\n    \"coverage\": \"collective\",\n    \"effectiveFrom\": \"2026-04-01\"\n  }'\n# → 202 { enrolmentId, status: \"PendingExternal\" }\n","enrol-company-a.sh","bash",[132,4931,4932,4946,4963,4976,4989,5002,5019,5030,5035,5040,5045,5050,5058],{"__ignoreMap":280},[284,4933,4934,4938,4942],{"class":286,"line":287},[284,4935,4937],{"class":4936},"sBMFI","curl",[284,4939,4941],{"class":4940},"sfazB"," -sS",[284,4943,4945],{"class":4944},"sTEyZ"," \\\n",[284,4947,4948,4951,4955,4958,4961],{"class":286,"line":293},[284,4949,4950],{"class":4940},"  -H",[284,4952,4954],{"class":4953},"sMK4o"," \"",[284,4956,4957],{"class":4940},"X-Role: company.admin",[284,4959,4960],{"class":4953},"\"",[284,4962,4945],{"class":4944},[284,4964,4965,4967,4969,4972,4974],{"class":286,"line":300},[284,4966,4950],{"class":4940},[284,4968,4954],{"class":4953},[284,4970,4971],{"class":4940},"X-Company-Id: company-a",[284,4973,4960],{"class":4953},[284,4975,4945],{"class":4944},[284,4977,4978,4980,4982,4985,4987],{"class":286,"line":306},[284,4979,4950],{"class":4940},[284,4981,4954],{"class":4953},[284,4983,4984],{"class":4940},"Content-Type: application/json",[284,4986,4960],{"class":4953},[284,4988,4945],{"class":4944},[284,4990,4991,4993,4995,4998,5000],{"class":286,"line":312},[284,4992,4950],{"class":4940},[284,4994,4954],{"class":4953},[284,4996,4997],{"class":4940},"Idempotency-Key: demo-enrol-a-1",[284,4999,4960],{"class":4953},[284,5001,4945],{"class":4944},[284,5003,5004,5007,5010,5012,5015,5017],{"class":286,"line":318},[284,5005,5006],{"class":4940},"  -X",[284,5008,5009],{"class":4940}," POST",[284,5011,4954],{"class":4953},[284,5013,5014],{"class":4940},"http://localhost:3810/v1/companies/company-a/enrolments",[284,5016,4960],{"class":4953},[284,5018,4945],{"class":4944},[284,5020,5021,5024,5027],{"class":286,"line":324},[284,5022,5023],{"class":4940},"  -d",[284,5025,5026],{"class":4953}," '",[284,5028,5029],{"class":4940},"{\n",[284,5031,5032],{"class":286,"line":330},[284,5033,5034],{"class":4940},"    \"employeeId\": \"emp-a1\",\n",[284,5036,5037],{"class":286,"line":335},[284,5038,5039],{"class":4940},"    \"planId\": \"sante-base\",\n",[284,5041,5042],{"class":286,"line":341},[284,5043,5044],{"class":4940},"    \"coverage\": \"collective\",\n",[284,5046,5047],{"class":286,"line":347},[284,5048,5049],{"class":4940},"    \"effectiveFrom\": \"2026-04-01\"\n",[284,5051,5052,5055],{"class":286,"line":353},[284,5053,5054],{"class":4940},"  }",[284,5056,5057],{"class":4953},"'\n",[284,5059,5060],{"class":286,"line":359},[284,5061,5063],{"class":5062},"sHwdD","# → 202 { enrolmentId, status: \"PendingExternal\" }\n",[1898,5065,5067],{"id":5066},"example-dual-carrier-company-b-axa","Example · dual carrier (Company B / AXA)",[275,5069,5072],{"className":4926,"code":5070,"filename":5071,"language":4929,"meta":280,"style":280},"curl -sS \\\n  -H \"X-Role: company.admin\" \\\n  -H \"X-Company-Id: company-b\" \\\n  -H \"Content-Type: application/json\" \\\n  -H \"Idempotency-Key: demo-enrol-b-1\" \\\n  -X POST \"http://localhost:3810/v1/companies/company-b/enrolments\" \\\n  -d '{\n    \"employeeId\": \"emp-b1\",\n    \"planId\": \"sante-base\",\n    \"coverage\": \"collective\",\n    \"effectiveFrom\": \"2026-04-01\"\n  }'\n# ACL log differs; PremiumInstruction shape identical\n","enrol-company-b.sh",[132,5073,5074,5082,5094,5107,5119,5132,5147,5155,5160,5164,5168,5172,5178],{"__ignoreMap":280},[284,5075,5076,5078,5080],{"class":286,"line":287},[284,5077,4937],{"class":4936},[284,5079,4941],{"class":4940},[284,5081,4945],{"class":4944},[284,5083,5084,5086,5088,5090,5092],{"class":286,"line":293},[284,5085,4950],{"class":4940},[284,5087,4954],{"class":4953},[284,5089,4957],{"class":4940},[284,5091,4960],{"class":4953},[284,5093,4945],{"class":4944},[284,5095,5096,5098,5100,5103,5105],{"class":286,"line":300},[284,5097,4950],{"class":4940},[284,5099,4954],{"class":4953},[284,5101,5102],{"class":4940},"X-Company-Id: company-b",[284,5104,4960],{"class":4953},[284,5106,4945],{"class":4944},[284,5108,5109,5111,5113,5115,5117],{"class":286,"line":306},[284,5110,4950],{"class":4940},[284,5112,4954],{"class":4953},[284,5114,4984],{"class":4940},[284,5116,4960],{"class":4953},[284,5118,4945],{"class":4944},[284,5120,5121,5123,5125,5128,5130],{"class":286,"line":312},[284,5122,4950],{"class":4940},[284,5124,4954],{"class":4953},[284,5126,5127],{"class":4940},"Idempotency-Key: demo-enrol-b-1",[284,5129,4960],{"class":4953},[284,5131,4945],{"class":4944},[284,5133,5134,5136,5138,5140,5143,5145],{"class":286,"line":318},[284,5135,5006],{"class":4940},[284,5137,5009],{"class":4940},[284,5139,4954],{"class":4953},[284,5141,5142],{"class":4940},"http://localhost:3810/v1/companies/company-b/enrolments",[284,5144,4960],{"class":4953},[284,5146,4945],{"class":4944},[284,5148,5149,5151,5153],{"class":286,"line":324},[284,5150,5023],{"class":4940},[284,5152,5026],{"class":4953},[284,5154,5029],{"class":4940},[284,5156,5157],{"class":286,"line":330},[284,5158,5159],{"class":4940},"    \"employeeId\": \"emp-b1\",\n",[284,5161,5162],{"class":286,"line":335},[284,5163,5039],{"class":4940},[284,5165,5166],{"class":286,"line":341},[284,5167,5044],{"class":4940},[284,5169,5170],{"class":286,"line":347},[284,5171,5049],{"class":4940},[284,5173,5174,5176],{"class":286,"line":353},[284,5175,5054],{"class":4940},[284,5177,5057],{"class":4953},[284,5179,5180],{"class":286,"line":359},[284,5181,5182],{"class":5062},"# ACL log differs; PremiumInstruction shape identical\n",[1898,5184,5186],{"id":5185},"example-published-language","Example · published language",[275,5188,5193],{"className":5189,"code":5190,"filename":5191,"language":5192,"meta":280,"style":280},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","PremiumInstructionIssued {\n  eventId, occurredAt, companyId, employeeId, enrolmentId,\n  periodFrom, periodTo,   // Europe/Paris month of effectiveFrom\n  employerShareCents,     // half-up from plan.employerSharePct\n  employeeShareCents,     // remainder so sum === premium\n  currency: \"EUR\"\n}\n","premium-instruction.ts","ts",[132,5194,5195,5202,5231,5246,5256,5266,5281],{"__ignoreMap":280},[284,5196,5197,5200],{"class":286,"line":287},[284,5198,5199],{"class":4944},"PremiumInstructionIssued ",[284,5201,5029],{"class":4953},[284,5203,5204,5207,5210,5213,5215,5218,5220,5223,5225,5228],{"class":286,"line":293},[284,5205,5206],{"class":4944},"  eventId",[284,5208,5209],{"class":4953},",",[284,5211,5212],{"class":4944}," occurredAt",[284,5214,5209],{"class":4953},[284,5216,5217],{"class":4944}," companyId",[284,5219,5209],{"class":4953},[284,5221,5222],{"class":4944}," employeeId",[284,5224,5209],{"class":4953},[284,5226,5227],{"class":4944}," enrolmentId",[284,5229,5230],{"class":4953},",\n",[284,5232,5233,5236,5238,5241,5243],{"class":286,"line":300},[284,5234,5235],{"class":4944},"  periodFrom",[284,5237,5209],{"class":4953},[284,5239,5240],{"class":4944}," periodTo",[284,5242,5209],{"class":4953},[284,5244,5245],{"class":5062},"   // Europe/Paris month of effectiveFrom\n",[284,5247,5248,5251,5253],{"class":286,"line":306},[284,5249,5250],{"class":4944},"  employerShareCents",[284,5252,5209],{"class":4953},[284,5254,5255],{"class":5062},"     // half-up from plan.employerSharePct\n",[284,5257,5258,5261,5263],{"class":286,"line":312},[284,5259,5260],{"class":4944},"  employeeShareCents",[284,5262,5209],{"class":4953},[284,5264,5265],{"class":5062},"     // remainder so sum === premium\n",[284,5267,5268,5271,5273,5275,5278],{"class":286,"line":318},[284,5269,5270],{"class":4936},"  currency",[284,5272,273],{"class":4953},[284,5274,4954],{"class":4953},[284,5276,5277],{"class":4940},"EUR",[284,5279,5280],{"class":4953},"\"\n",[284,5282,5283],{"class":286,"line":324},[284,5284,327],{"class":4953},[119,5286,5288],{"className":5287},[122],[124,5289,5290,787,5293,5295,5296,2213,5299,2213,5301,5304,5305,1080,5307,5309,5310,5313],{},[127,5291,5292],{},"Command vs event.",[132,5294,4480],{}," is a command — please do X; it can be refused (",[132,5297,5298],{},"400",[132,5300,4528],{},[132,5302,5303],{},"409","). ",[132,5306,4905],{},[132,5308,4658],{}," are domain events — past-tense facts others react to. Never name an event ",[132,5311,5312],{},"UpdateEnrolment"," (a DB verb); consumers need a business fact. One aggregate TX in Insurance; Payroll must not join that TX.",[119,5315,5317],{"className":5316},[122],[124,5318,5319,787,5322,5325,5326,5329],{},[127,5320,5321],{},"Money:",[132,5323,5324],{},"splitShares(monthlyPremiumCents, employerSharePct)"," rejects ",[132,5327,5328],{},"employerSharePct \u003C 50",", half-up on employer cents, employee gets remainder. Seed plan → 60 / 40 EUR on the bulletin preview.",[119,5331,5333],{"className":5332},[122],[124,5334,5335,5338,5339,5342,5343,169,5346,5349],{},[127,5336,5337],{},"Effective dating & proration."," Cover and premium instructions carry a validity interval, not only a “current” flag. Spec Kit locked period = whole calendar month of ",[132,5340,5341],{},"effectiveFrom"," in ",[132,5344,5345],{},"Europe/Paris",[132,5347,5348],{},"full_month"," — no mid-month pro-rata engine in v1). Say the rule aloud, then stick to it; fixing a wrong premium means a new/changed instruction + audit, not a silent rewrite of history.",[119,5351,5353,5359],{"className":5352},[224,225,226],[228,5354,5356],{"id":5355},"_6-enrolment-fsm",[127,5357,5358],{},"6. Enrolment FSM",[124,5360,5361],{},[237,5362,5363],{"href":239},[127,5364,242],{},[119,5366,5368],{"className":5367},[122],[124,5369,5370],{},"Illegal transitions are rejected in the aggregate. UI labels map 1:1 to engine names.",[1719,5372],{"alt":5373,"caption":5374,"detail":5375,"src":5376,"tags":5377,"title":5378},"Enrolment finite state machine","Docs · Statuses","enrol → PendingExternal → Active | Failed. Dispense → Dispensed (no premium). cancel / terminate → Ended. Failed allows re-enrol (new id). Dispense while Pending / Active → 409.","/blog/mutuellefit/docs-fsm.png","aggregate-root, fsm, invariants, http-409","FSM · the diagram is the contract",[119,5380,5382],{"className":5381},[122],[124,5383,5384,5385,5387,5388,5390,5391,5394,5395,5398,5399,593],{},"Spec Kit defaults that stop invention: missing Idempotency-Key → ",[127,5386,5298],{},"; replay → ",[127,5389,4451],{}," same body; terminate vs activate → ",[127,5392,5393],{},"terminate wins","; webhook already Active → ",[127,5396,5397],{},"200"," no-op; Cancel on Dispensed / Failed → ",[127,5400,5303],{},[119,5402,5404],{"className":5403},[122],[124,5405,5406,5409,5410,5413],{},[127,5407,5408],{},"Saga vs FSM."," Enrolment is multi-step in life (accept → insurer → Active → Payroll), but the MVP keeps an ",[127,5411,5412],{},"Enrolment FSM + worker retries"," — not a saga framework. Introduce an explicit saga (with compensations as first-class steps) only when branching gets heavy. Pending + leave already compensates locally and at the ACL without a workflow engine.",[119,5415,5417,5423],{"className":5416},[224,225,226],[228,5418,5420],{"id":5419},"_7-persistence",[127,5421,5422],{},"7. Persistence",[124,5424,5425],{},[237,5426,5427],{"href":239},[127,5428,242],{},[119,5430,5432],{"className":5431},[122],[124,5433,5434],{},"Reliability tables are the design. Domain refs stay boring on purpose.",[1719,5436],{"alt":5437,"caption":5438,"detail":5439,"src":5440,"tags":5441,"title":5442},"Postgres ER diagram","ER · insurance_poc","enrollments = write model + FSM. outbox = durable publish. idempotency_keys = at-most-once effect. audit_log = correlation trail. dead_letter_counters = Failed@N. Connection string redacted.","/blog/mutuellefit/db-schema.png","transactional-outbox, idempotency, multi-tenant, postgres","Schema · outbox, idempotency, audit, DLQ",[1826,5444,5445,5457],{},[1829,5446,5447],{},[1832,5448,5449,5451,5454],{},[1835,5450,3374],{},[1835,5452,5453],{},"Pattern",[1835,5455,5456],{},"Key columns",[1842,5458,5459,5481,5500,5516,5536,5553],{},[1832,5460,5461,5466,5469],{},[1847,5462,5463],{},[132,5464,5465],{},"enrollments",[1847,5467,5468],{},"Aggregate write model",[1847,5470,5471,185,5473,185,5475,185,5478],{},[132,5472,3297],{},[132,5474,4911],{},[132,5476,5477],{},"insurer_member_id",[132,5479,5480],{},"carrier",[1832,5482,5483,5488,5491],{},[1847,5484,5485],{},[132,5486,5487],{},"outbox",[1847,5489,5490],{},"Transactional outbox",[1847,5492,5493,185,5495,185,5497],{},[132,5494,4878],{},[132,5496,3347],{},[132,5498,5499],{},"published_at",[1832,5501,5502,5506,5509],{},[1847,5503,5504],{},[132,5505,4885],{},[1847,5507,5508],{},"Command dedupe",[1847,5510,5511,3303,5513],{},[132,5512,4888],{},[132,5514,5515],{},"response_body",[1832,5517,5518,5523,5526],{},[1847,5519,5520],{},[132,5521,5522],{},"audit_log",[1847,5524,5525],{},"Append-only trail",[1847,5527,5528,185,5531,185,5533],{},[132,5529,5530],{},"correlation_id",[132,5532,2954],{},[132,5534,5535],{},"detail",[1832,5537,5538,5542,5545],{},[1847,5539,5540],{},[132,5541,4919],{},[1847,5543,5544],{},"Ops signal",[1847,5546,5547,185,5550],{},[132,5548,5549],{},"count",[132,5551,5552],{},"last_enrollment_id",[1832,5554,5555,5560,5563],{},[1847,5556,5557],{},[132,5558,5559],{},"payroll_lines",[1847,5561,5562],{},"Downstream stub",[1847,5564,5565],{},"Written from events — not from enrol commands",[119,5567,5569,5575],{"className":5568},[224,225,226],[228,5570,5572],{"id":5571},"_8-domain-api",[127,5573,5574],{},"8. Domain API",[124,5576,5577],{},[237,5578,5579],{"href":239},[127,5580,242],{},[119,5582,5584],{"className":5583},[122],[124,5585,5586],{},"Insurance’s own HTTP API — not the insurer’s, not Payroll’s. Command / query style; server enforces invariants + authZ.",[1826,5588,5589,5604],{},[1829,5590,5591],{},[1832,5592,5593,5596,5599,5601],{},[1835,5594,5595],{},"Method",[1835,5597,5598],{},"Path",[1835,5600,2070],{},[1835,5602,5603],{},"Intent",[1842,5605,5606,5628,5648,5669,5687,5705,5724,5741,5760,5778],{},[1832,5607,5608,5613,5618,5623],{},[1847,5609,5610],{},[132,5611,5612],{},"POST",[1847,5614,5615],{},[132,5616,5617],{},"/v1/companies/:id/enrolments",[1847,5619,5620],{},[132,5621,5622],{},"company.admin",[1847,5624,5625,5627],{},[132,5626,4480],{}," + Idempotency-Key",[1832,5629,5630,5634,5639,5643],{},[1847,5631,5632],{},[132,5633,5612],{},[1847,5635,5636],{},[132,5637,5638],{},"/v1/companies/:id/dispenses",[1847,5640,5641],{},[132,5642,5622],{},[1847,5644,5645],{},[132,5646,5647],{},"DispenseEmployee",[1832,5649,5650,5654,5659,5663],{},[1847,5651,5652],{},[132,5653,5612],{},[1847,5655,5656],{},[132,5657,5658],{},"/v1/enrolments/:id/cancellations",[1847,5660,5661],{},[132,5662,5622],{},[1847,5664,5665,5668],{},[132,5666,5667],{},"CancelEnrolment"," → Ended",[1832,5670,5671,5676,5680,5684],{},[1847,5672,5673],{},[132,5674,5675],{},"GET",[1847,5677,5678],{},[132,5679,5617],{},[1847,5681,5682],{},[132,5683,5622],{},[1847,5685,5686],{},"List cover",[1832,5688,5689,5693,5698,5702],{},[1847,5690,5691],{},[132,5692,5675],{},[1847,5694,5695],{},[132,5696,5697],{},"/v1/enrolments/:id",[1847,5699,5700],{},[132,5701,5622],{},[1847,5703,5704],{},"Detail",[1832,5706,5707,5711,5716,5721],{},[1847,5708,5709],{},[132,5710,5675],{},[1847,5712,5713],{},[132,5714,5715],{},"/v1/me/cover",[1847,5717,5718],{},[132,5719,5720],{},"employee.self",[1847,5722,5723],{},"My cover",[1832,5725,5726,5730,5735,5738],{},[1847,5727,5728],{},[132,5729,5612],{},[1847,5731,5732],{},[132,5733,5734],{},"/v1/webhooks/carriers/:carrier",[1847,5736,5737],{},"carrier sig",[1847,5739,5740],{},"Confirm / reject",[1832,5742,5743,5747,5752,5757],{},[1847,5744,5745],{},[132,5746,5612],{},[1847,5748,5749],{},[132,5750,5751],{},"/v1/dev/platform-events",[1847,5753,5754],{},[132,5755,5756],{},"system.worker",[1847,5758,5759],{},"Terminate ingress",[1832,5761,5762,5766,5771,5775],{},[1847,5763,5764],{},[132,5765,5675],{},[1847,5767,5768],{},[132,5769,5770],{},"/v1/companies/:id/payroll-lines",[1847,5772,5773],{},[132,5774,5622],{},[1847,5776,5777],{},"Bulletin preview",[1832,5779,5780,5784,5789,5793],{},[1847,5781,5782],{},[132,5783,5675],{},[1847,5785,5786],{},[132,5787,5788],{},"/v1/companies/:id/audit",[1847,5790,5791],{},[132,5792,5622],{},[1847,5794,5795],{},"Audit tail",[119,5797,5799],{"className":5798},[122],[124,5800,5801,5804,5805,5808,5809,5812,5813,5816,5817,2213,5820,5823,5824,5827],{},[127,5802,5803],{},"Webhook path (carrier → us)."," Never trust the body blindly: verify signature (",[132,5806,5807],{},"X-Carrier-Signature"," stub secret in POC → ",[127,5810,5811],{},"401"," if wrong) → dedupe ",[132,5814,5815],{},"insurerEventId"," (inbox) → match/upsert on ",[132,5818,5819],{},"insurerMemberId",[132,5821,5822],{},"enrolmentId"," → drive the FSM via a domain command → emit ",[127,5825,5826],{},"our"," events on the outbox (not raw insurer JSON). Out-of-order is OK if upsert is idempotent. Demo gate may activate sync via stubs; the webhook contract still exists so duplicate notify is a no-op, not a second Active.",[119,5829,5831,5837],{"className":5830},[224,225,226],[228,5832,5834],{"id":5833},"_9-edge-matrix",[127,5835,5836],{},"9. Edge matrix",[124,5838,5839],{},[237,5840,5841],{"href":239},[127,5842,242],{},[119,5844,5846],{"className":5845},[122],[124,5847,5848],{},"Happy path is cheap. This table is the review gate:",[1826,5850,5851,5861],{},[1829,5852,5853],{},[1832,5854,5855,5858],{},[1835,5856,5857],{},"Case",[1835,5859,5860],{},"Expected",[1842,5862,5863,5871,5879,5889,5897,5905,5914,5923],{},[1832,5864,5865,5868],{},[1847,5866,5867],{},"Double-click enrol",[1847,5869,5870],{},"Same Idempotency-Key → same enrolment",[1832,5872,5873,5876],{},[1847,5874,5875],{},"Insurer timeout",[1847,5877,5878],{},"Pending → retry → Failed@3 + DLQ counter",[1832,5880,5881,5884],{},[1847,5882,5883],{},"Duplicate webhook",[1847,5885,5886,5888],{},[132,5887,5815],{}," inbox → no-op",[1832,5890,5891,5894],{},[1847,5892,5893],{},"Terminate while Pending",[1847,5895,5896],{},"Cancel local + compensate stub",[1832,5898,5899,5902],{},[1847,5900,5901],{},"Dispense instead of enrol",[1847,5903,5904],{},"Dispensed; no PremiumInstruction",[1832,5906,5907,5910],{},[1847,5908,5909],{},"Wrong company",[1847,5911,5912],{},[127,5913,4528],{},[1832,5915,5916,5919],{},[1847,5917,5918],{},"Dispense while Active / Pending",[1847,5920,5921],{},[127,5922,5303],{},[1832,5924,5925,5928],{},[1847,5926,5927],{},"Missing Idempotency-Key",[1847,5929,5930],{},[127,5931,5298],{},[1898,5933,5935],{"id":5934},"example-tenancy-403","Example · tenancy 403",[275,5937,5940],{"className":4926,"code":5938,"filename":5939,"language":4929,"meta":280,"style":280},"curl -sS -o /dev/null -w \"%{http_code}\\n\" \\\n  -H \"X-Role: company.admin\" \\\n  -H \"X-Company-Id: company-a\" \\\n  -H \"Idempotency-Key: x\" \\\n  -H \"Content-Type: application/json\" \\\n  -X POST \"http://localhost:3810/v1/companies/company-b/enrolments\" \\\n  -d '{\"employeeId\":\"emp-b1\",\"planId\":\"sante-base\",\"coverage\":\"collective\",\"effectiveFrom\":\"2026-04-01\"}'\n# → 403\n","tenancy-403.sh",[132,5941,5942,5966,5978,5990,6003,6015,6029,6040],{"__ignoreMap":280},[284,5943,5944,5946,5948,5951,5954,5957,5959,5962,5964],{"class":286,"line":287},[284,5945,4937],{"class":4936},[284,5947,4941],{"class":4940},[284,5949,5950],{"class":4940}," -o",[284,5952,5953],{"class":4940}," /dev/null",[284,5955,5956],{"class":4940}," -w",[284,5958,4954],{"class":4953},[284,5960,5961],{"class":4940},"%{http_code}\\n",[284,5963,4960],{"class":4953},[284,5965,4945],{"class":4944},[284,5967,5968,5970,5972,5974,5976],{"class":286,"line":293},[284,5969,4950],{"class":4940},[284,5971,4954],{"class":4953},[284,5973,4957],{"class":4940},[284,5975,4960],{"class":4953},[284,5977,4945],{"class":4944},[284,5979,5980,5982,5984,5986,5988],{"class":286,"line":300},[284,5981,4950],{"class":4940},[284,5983,4954],{"class":4953},[284,5985,4971],{"class":4940},[284,5987,4960],{"class":4953},[284,5989,4945],{"class":4944},[284,5991,5992,5994,5996,5999,6001],{"class":286,"line":306},[284,5993,4950],{"class":4940},[284,5995,4954],{"class":4953},[284,5997,5998],{"class":4940},"Idempotency-Key: x",[284,6000,4960],{"class":4953},[284,6002,4945],{"class":4944},[284,6004,6005,6007,6009,6011,6013],{"class":286,"line":312},[284,6006,4950],{"class":4940},[284,6008,4954],{"class":4953},[284,6010,4984],{"class":4940},[284,6012,4960],{"class":4953},[284,6014,4945],{"class":4944},[284,6016,6017,6019,6021,6023,6025,6027],{"class":286,"line":318},[284,6018,5006],{"class":4940},[284,6020,5009],{"class":4940},[284,6022,4954],{"class":4953},[284,6024,5142],{"class":4940},[284,6026,4960],{"class":4953},[284,6028,4945],{"class":4944},[284,6030,6031,6033,6035,6038],{"class":286,"line":324},[284,6032,5023],{"class":4940},[284,6034,5026],{"class":4953},[284,6036,6037],{"class":4940},"{\"employeeId\":\"emp-b1\",\"planId\":\"sante-base\",\"coverage\":\"collective\",\"effectiveFrom\":\"2026-04-01\"}",[284,6039,5057],{"class":4953},[284,6041,6042],{"class":286,"line":330},[284,6043,6044],{"class":5062},"# → 403\n",[1898,6046,6048],{"id":6047},"example-terminate","Example · terminate",[275,6050,6053],{"className":4926,"code":6051,"filename":6052,"language":4929,"meta":280,"style":280},"curl -sS \\\n  -H \"X-Role: system.worker\" \\\n  -H \"Content-Type: application/json\" \\\n  -X POST \"http://localhost:3810/v1/dev/platform-events\" \\\n  -d @fixtures/employee-terminated.json\n# → Ended + compensate + PremiumInstruction Stop\n","terminate.sh",[132,6054,6055,6063,6076,6088,6103,6110],{"__ignoreMap":280},[284,6056,6057,6059,6061],{"class":286,"line":287},[284,6058,4937],{"class":4936},[284,6060,4941],{"class":4940},[284,6062,4945],{"class":4944},[284,6064,6065,6067,6069,6072,6074],{"class":286,"line":293},[284,6066,4950],{"class":4940},[284,6068,4954],{"class":4953},[284,6070,6071],{"class":4940},"X-Role: system.worker",[284,6073,4960],{"class":4953},[284,6075,4945],{"class":4944},[284,6077,6078,6080,6082,6084,6086],{"class":286,"line":300},[284,6079,4950],{"class":4940},[284,6081,4954],{"class":4953},[284,6083,4984],{"class":4940},[284,6085,4960],{"class":4953},[284,6087,4945],{"class":4944},[284,6089,6090,6092,6094,6096,6099,6101],{"class":286,"line":306},[284,6091,5006],{"class":4940},[284,6093,5009],{"class":4940},[284,6095,4954],{"class":4953},[284,6097,6098],{"class":4940},"http://localhost:3810/v1/dev/platform-events",[284,6100,4960],{"class":4953},[284,6102,4945],{"class":4944},[284,6104,6105,6107],{"class":286,"line":312},[284,6106,5023],{"class":4940},[284,6108,6109],{"class":4940}," @fixtures/employee-terminated.json\n",[284,6111,6112],{"class":286,"line":318},[284,6113,6114],{"class":5062},"# → Ended + compensate + PremiumInstruction Stop\n",[119,6116,6118,6124],{"className":6117},[224,225,226],[228,6119,6121],{"id":6120},"_10-cover-ui",[127,6122,6123],{},"10. Cover UI",[124,6125,6126],{},[237,6127,6128],{"href":239},[127,6129,242],{},[119,6131,6133],{"className":6132},[122],[124,6134,6135],{},"Thin client: commands + projections. Never calls the carrier. Never writes payslip lines.",[1719,6137],{"alt":6138,"caption":6139,"detail":6140,"src":6141,"tags":6142,"title":6143},"MutuelleFit Cover admin UI","Cover","Company switcher (Company 1 · Alan vs Company 2 · AXA). Enrol / dispense / employee view. Cards · Logs · Architecture expose write model vs mock vs seed.","/blog/mutuellefit/cover-hero.png","thin-client, cqrs-lite, multi-tenant","Cover · command pad + projections",[1719,6145],{"alt":6146,"caption":6147,"detail":6148,"src":6149,"tags":6150,"title":6151},"Payslip preview patronale and salariale","Cover · payslip","Lines only after Covered. Seed Santé Base → employer 60.00 / employee 40.00 EUR. Simulate leaving → Ended + stop lines — leave-drift is the failure mode this vertical kills.","/blog/mutuellefit/cover-payslip.png","ani, patronale, salariale, terminate","Payslip preview · event projection",[119,6153,6155,6161],{"className":6154},[224,225,226],[228,6156,6158],{"id":6157},"_11-scope-discipline",[127,6159,6160],{},"11. Scope discipline",[124,6162,6163],{},[237,6164,6165],{"href":239},[127,6166,242],{},[119,6168,6170],{"className":6169},[122],[124,6171,6172],{},"Prove domain + events + multi-company + two carriers. Everything else is seed, fixture, or stub.",[1826,6174,6175,6188],{},[1829,6176,6177],{},[1832,6178,6179,6182,6185],{},[1835,6180,6181],{},"Must code",[1835,6183,6184],{},"Seed",[1835,6186,6187],{},"Mock / defer",[1842,6189,6190,6201,6214,6225,6236,6247],{},[1832,6191,6192,6195,6198],{},[1847,6193,6194],{},"Enrolment aggregate + FSM tests",[1847,6196,6197],{},"companies A/B, employees, plan, reasons, admins",[1847,6199,6200],{},"Real Alan / AXA HTTP",[1832,6202,6203,6206,6211],{},[1847,6204,6205],{},"Domain API enrol / list / get",[1847,6207,6208],{},[132,6209,6210],{},"employerSharePct ≥ 50",[1847,6212,6213],{},"SSO",[1832,6215,6216,6219,6222],{},[1847,6217,6218],{},"Outbox same TX + publisher",[1847,6220,6221],{},"dispense reason codes",[1847,6223,6224],{},"SQS / K8s / Terraform",[1832,6226,6227,6230,6233],{},[1847,6228,6229],{},"Worker + AlanStub + AxaStub",[1847,6231,6232],{},"AXA setup-sheet fixture",[1847,6234,6235],{},"DSN / URSSAF",[1832,6237,6238,6241,6244],{},[1847,6239,6240],{},"Idempotency + 403 tests",[1847,6242,6243],{},"—",[1847,6245,6246],{},"Marketplace, claims",[1832,6248,6249,6252,6258],{},[1847,6250,6251],{},"Terminate handler",[1847,6253,6254,6257],{},[132,6255,6256],{},"employee-terminated"," fixture",[1847,6259,6260],{},"ChangeCoverage",[119,6262,6264],{"className":6263},[122],[124,6265,6266,6269],{},[127,6267,6268],{},"Ship order:"," seed → aggregate + tests → API → outbox → worker + stubs → idempotency → tenancy → terminate → demo curls / thin React.",[119,6271,6273,6279],{"className":6272},[224,225,226],[228,6274,6276],{"id":6275},"_12-cloud-mapping",[127,6277,6278],{},"12. Cloud mapping",[124,6280,6281],{},[237,6282,6283],{"href":239},[127,6284,242],{},[119,6286,6288],{"className":6287},[122],[124,6289,6290,6291,6293,6294,6296,6297,169,6299,6301],{},"Local: API ",[132,6292,581],{},", worker, Postgres ",[132,6295,585],{},", UI ",[132,6298,577],{},[132,6300,134],{},"). Cloud is transport — not a redesign:",[1826,6303,6304,6317],{},[1829,6305,6306],{},[1832,6307,6308,6311,6314],{},[1835,6309,6310],{},"POC",[1835,6312,6313],{},"Production-shaped",[1835,6315,6316],{},"Concern",[1842,6318,6319,6330,6341,6355,6368],{},[1832,6320,6321,6324,6327],{},[1847,6322,6323],{},"SQL outbox + publisher",[1847,6325,6326],{},"Outbox → SQS / SNS / EventBridge",[1847,6328,6329],{},"Fan-out, retry, DLQ",[1832,6331,6332,6335,6338],{},[1847,6333,6334],{},"Activation worker",[1847,6336,6337],{},"EKS / ECS / Lambda consumer",[1847,6339,6340],{},"Scale consumers ≠ API",[1832,6342,6343,6346,6352],{},[1847,6344,6345],{},"Idempotency + inbox",[1847,6347,6348,6349],{},"Exactly-once ",[207,6350,6351],{},"effect",[1847,6353,6354],{},"Blips, webhook dupes",[1832,6356,6357,6362,6365],{},[1847,6358,6359,6361],{},[132,6360,4484],{}," stubs",[1847,6363,6364],{},"Real partner HTTP, same port",[1847,6366,6367],{},"Adapter swap",[1832,6369,6370,6376,6379],{},[1847,6371,6372,6375],{},[132,6373,6374],{},"X-Correlation-Id"," + DLQ counters",[1847,6377,6378],{},"Traces, metrics, alarms",[1847,6380,6381],{},"Operability",[119,6383,6385],{"className":6384},[122],[124,6386,6387,6390,6391,6394,6395,6397,6398,6401,6402,6405,6406,6409,6410,6413,6414,6417,6418,593],{},[127,6388,6389],{},"At-least-once is the default."," SQS (and webhooks) can deliver more than once. ",[127,6392,6393],{},"Visibility timeout:"," while a worker processes a message, others don’t see it; if the process dies before delete/ack, the message reappears — that ",[207,6396,1910],{}," the duplicate. Design for at-least-once delivery + idempotent handlers (outbox publish once logically; inbox / ",[132,6399,6400],{},"eventId"," / Idempotency-Key for effects). ",[127,6403,6404],{},"SNS"," = publish once, fan-out to many queues; ",[127,6407,6408],{},"SQS"," = competing consumers on one queue. ",[127,6411,6412],{},"DLQ"," = park poison after N fails and alert — don’t retry forever. Don’t bet on exactly-once ",[207,6415,6416],{},"delivery","; aim for exactly-once ",[207,6419,6351],{},[119,6421,6423],{"className":6422},[122],[124,6424,6425],{},"Scale target: thousands of companies × employees × monthly payroll runs without leave-drift — not enrol QPS theatre.",[119,6427,6429,6435],{"className":6428},[224,225,226],[228,6430,6432],{"id":6431},"_13-agentic-delivery",[127,6433,6434],{},"13. Agentic delivery",[124,6436,6437],{},[237,6438,6439],{"href":239},[127,6440,242],{},[119,6442,6444],{"className":6443},[122],[124,6445,6446],{},"What kept velocity from deleting the design:",[1058,6448,6449,6454,6469,6476],{},[798,6450,6451,6453],{},[127,6452,168],{}," — constitution → specify → plan → tasks → implement.",[798,6455,6456,6459,6460,185,6463,185,6466,593],{},[127,6457,6458],{},"Domain skills"," — ",[132,6461,6462],{},"insurance-domain",[132,6464,6465],{},"insurer-acl",[132,6467,6468],{},"insurance-demo",[798,6470,6471,6475],{},[127,6472,6473],{},[132,6474,134],{}," — shared ports for humans and agents.",[798,6477,6478,6481],{},[127,6479,6480],{},"Subagents + browser"," — explore in parallel, verify Cover / Docs on localhost.",[119,6483,6485],{"className":6484},[122],[124,6486,6487,6488,6490],{},"Clarifications locked ~30 POC defaults (",[132,6489,5345],{}," month, cents canonical, Failed re-enrolable, terminate wins races, …). That is why agents did not invent a synchronous Active shortcut.",[275,6492,6494],{"className":1368,"code":6493,"language":1370,"meta":280,"style":280},"flowchart LR\n  subgraph Spec[\"Spec Kit\"]\n    C[Constitution]\n    S[Spec + clarifications]\n    P[Plan / tasks]\n    I[Implement]\n  end\n  subgraph Skills[\"Skills\"]\n    D[insurance-domain]\n    A[insurer-acl]\n    M[insurance-demo]\n  end\n  C --> S --> P --> I\n  D --> I\n  A --> I\n  M --> I\n  I --> Demo[Cover + curls + tests]\n",[132,6495,6496,6501,6506,6511,6516,6521,6526,6530,6535,6540,6545,6550,6554,6559,6564,6569,6574],{"__ignoreMap":280},[284,6497,6498],{"class":286,"line":287},[284,6499,6500],{},"flowchart LR\n",[284,6502,6503],{"class":286,"line":293},[284,6504,6505],{},"  subgraph Spec[\"Spec Kit\"]\n",[284,6507,6508],{"class":286,"line":300},[284,6509,6510],{},"    C[Constitution]\n",[284,6512,6513],{"class":286,"line":306},[284,6514,6515],{},"    S[Spec + clarifications]\n",[284,6517,6518],{"class":286,"line":312},[284,6519,6520],{},"    P[Plan / tasks]\n",[284,6522,6523],{"class":286,"line":318},[284,6524,6525],{},"    I[Implement]\n",[284,6527,6528],{"class":286,"line":324},[284,6529,1402],{},[284,6531,6532],{"class":286,"line":330},[284,6533,6534],{},"  subgraph Skills[\"Skills\"]\n",[284,6536,6537],{"class":286,"line":335},[284,6538,6539],{},"    D[insurance-domain]\n",[284,6541,6542],{"class":286,"line":341},[284,6543,6544],{},"    A[insurer-acl]\n",[284,6546,6547],{"class":286,"line":347},[284,6548,6549],{},"    M[insurance-demo]\n",[284,6551,6552],{"class":286,"line":353},[284,6553,1402],{},[284,6555,6556],{"class":286,"line":359},[284,6557,6558],{},"  C --> S --> P --> I\n",[284,6560,6561],{"class":286,"line":364},[284,6562,6563],{},"  D --> I\n",[284,6565,6566],{"class":286,"line":369},[284,6567,6568],{},"  A --> I\n",[284,6570,6571],{"class":286,"line":375},[284,6572,6573],{},"  M --> I\n",[284,6575,6576],{"class":286,"line":381},[284,6577,6578],{},"  I --> Demo[Cover + curls + tests]\n",[119,6580,6582,6588],{"className":6581},[224,225,226],[228,6583,6585],{"id":6584},"_14-what-transfers",[127,6586,6587],{},"14. What transfers",[124,6589,6590],{},[237,6591,6592],{"href":239},[127,6593,242],{},[119,6595,6597,6657],{"className":6596},[122],[795,6598,6599,6605,6611,6617,6623,6629,6635,6645,6651],{},[798,6600,6601,6604],{},[127,6602,6603],{},"Walls then pipes"," — DDD ownership first; api/worker/queue second.",[798,6606,6607,6610],{},[127,6608,6609],{},"Aggregate + FSM honesty"," — Waiting is a product feature; saga only if branching demands it.",[798,6612,6613,6616],{},[127,6614,6615],{},"Command ≠ event"," — refuseable intent vs past-tense facts.",[798,6618,6619,6622],{},[127,6620,6621],{},"Transactional outbox + idempotency"," — in the schema; at-least-once on the bus.",[798,6624,6625,6628],{},[127,6626,6627],{},"ACL + signed webhooks"," — partner JSON stays at the edge.",[798,6630,6631,6634],{},[127,6632,6633],{},"Tenant authZ"," — 403 is a demo step.",[798,6636,6637,6640,6641,2213,6643,593],{},[127,6638,6639],{},"Integer money + explicit period rule"," — ANI cents; ",[132,6642,5348],{},[132,6644,5345],{},[798,6646,6647,6650],{},[127,6648,6649],{},"Edge matrix"," — Spec Kit clarifications beat vibes.",[798,6652,6653,6656],{},[127,6654,6655],{},"Agentic speed with a constitution"," — otherwise the UI lies.",[124,6658,6659],{},"MutuelleFit stays a POC: stubs, seed companies, thin admin. The contracts above are what transfer — whether the bus is in-process or EventBridge.",[1533,6661,6662],{},"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);}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}",{"title":280,"searchDepth":293,"depth":293,"links":6664},[6665,6666,6667,6668,6669,6674,6675,6676,6677,6681,6682,6683,6684,6685],{"id":4361,"depth":293,"text":4364},{"id":4406,"depth":293,"text":4409},{"id":4560,"depth":293,"text":4563},{"id":4598,"depth":293,"text":4601},{"id":4820,"depth":293,"text":4823,"children":6670},[6671,6672,6673],{"id":4922,"depth":300,"text":4923},{"id":5066,"depth":300,"text":5067},{"id":5185,"depth":300,"text":5186},{"id":5355,"depth":293,"text":5358},{"id":5419,"depth":293,"text":5422},{"id":5571,"depth":293,"text":5574},{"id":5833,"depth":293,"text":5836,"children":6678},[6679,6680],{"id":5934,"depth":300,"text":5935},{"id":6047,"depth":300,"text":6048},{"id":6120,"depth":293,"text":6123},{"id":6157,"depth":293,"text":6160},{"id":6275,"depth":293,"text":6278},{"id":6431,"depth":293,"text":6434},{"id":6584,"depth":293,"text":6587},"2026-10-14","Enrolment aggregate, transactional outbox, InsurerGateway ACL, ANI cents, command vs event, at-least-once buses, webhook edge, Spec Kit agentic delivery — a DDD vertical you can demo.",{"src":4387},{},{"title":59,"description":6687},"Rfh66lURMwvqA6AIBs3pAoetPdJSW-5UfxcfaFBMldY",1794268626380]