teleo-infrastructure/docs/reports/leo-working-state-20260709/leo-db-state-25-integrated-apply-rehearsal.svg
twentyOne2x dd2d03a3ea
Some checks are pending
CI / lint-and-test (push) Waiting to run
Add integrated Working Leo packet rehearsal
- Compose prepared KB packets in production dependency order with rollback order

- Prove full disposable clone apply/rollback while production stays unchanged
- Retain missing packet SQL, integrated manifest, state image, and tests

`docs/reports/leo-working-state-20260709/current-truth-index.md`
`docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-packet-summary.json`
`docs/reports/leo-working-state-20260709/helmer-7powers-production-apply-rollback-rehearsal.sql`
`docs/reports/leo-working-state-20260709/helmer-7powers-production-postflight.sql`
`docs/reports/leo-working-state-20260709/helmer-7powers-production-preflight.sql`
`docs/reports/leo-working-state-20260709/leo-db-state-25-integrated-apply-rehearsal.svg`
`docs/reports/leo-working-state-20260709/production-apply-authorized-commit.sql`
`docs/reports/leo-working-state-20260709/production-apply-packet-summary.json`
`docs/reports/leo-working-state-20260709/production-apply-packet.json`
`docs/reports/leo-working-state-20260709/production-apply-rollback-rehearsal.sql`
`docs/reports/leo-working-state-20260709/production-delete-rollback.sql`
`docs/reports/leo-working-state-20260709/production-postflight.sql`
`docs/reports/leo-working-state-20260709/production-preflight.sql`
`docs/reports/leo-working-state-20260709/working-leo-current-state-20260709.md`
`docs/reports/leo-working-state-20260709/working-leo-execution-plan-current.md`
`docs/reports/leo-working-state-20260709/working-leo-integrated-clone-rehearsal-current.log`
`docs/reports/leo-working-state-20260709/working-leo-integrated-packet-current.md`
`docs/reports/leo-working-state-20260709/working-leo-integrated-packet.json`
`docs/reports/leo-working-state-20260709/working-leo-integrated-packet.md`
`scripts/working_leo_integrated_packet.py`
`tests/test_working_leo_integrated_packet.py`
2026-07-10 00:27:00 +02:00

74 lines
6.9 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1320" height="800" viewBox="0 0 1320 800" role="img" aria-labelledby="title desc">
<title id="title">Working Leo DB State 25 - Integrated apply rehearsal</title>
<desc id="desc">Diagram of the full integrated Working Leo DB packet rehearsal in a disposable clone.</desc>
<rect width="1320" height="800" fill="#f8fafc"/>
<text x="56" y="58" font-family="Arial, sans-serif" font-size="30" font-weight="700" fill="#0f172a">Working Leo DB State 25: Integrated Apply Rehearsal</text>
<text x="56" y="88" font-family="Arial, sans-serif" font-size="15" fill="#475569">All prepared packets applied together in one disposable clone, then rolled back cleanly. Production untouched.</text>
<rect x="56" y="128" width="240" height="138" rx="8" fill="#ffffff" stroke="#94a3b8" stroke-width="2"/>
<text x="78" y="160" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#0f172a">1. Mapped Rich Base</text>
<text x="78" y="194" font-family="Arial, sans-serif" font-size="13" fill="#475569">7 claims</text>
<text x="78" y="218" font-family="Arial, sans-serif" font-size="13" fill="#475569">15 sources</text>
<text x="78" y="242" font-family="Arial, sans-serif" font-size="13" fill="#475569">11 edges, 17 evidence</text>
<rect x="326" y="128" width="240" height="138" rx="8" fill="#ecfeff" stroke="#0891b2" stroke-width="2"/>
<text x="348" y="160" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#155e75">2. Cross-Surface</text>
<text x="348" y="194" font-family="Arial, sans-serif" font-size="13" fill="#475569">strategy anchor update</text>
<text x="348" y="218" font-family="Arial, sans-serif" font-size="13" fill="#475569">old claim -&gt; Claim D</text>
<text x="348" y="242" font-family="Arial, sans-serif" font-size="13" fill="#475569">rollback restores old anchor</text>
<rect x="596" y="128" width="240" height="138" rx="8" fill="#eef2ff" stroke="#4f46e5" stroke-width="2"/>
<text x="618" y="160" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#3730a3">3. Rio Strategy</text>
<text x="618" y="194" font-family="Arial, sans-serif" font-size="13" fill="#475569">2 strategy nodes</text>
<text x="618" y="218" font-family="Arial, sans-serif" font-size="13" fill="#475569">5 strategy anchors</text>
<text x="618" y="242" font-family="Arial, sans-serif" font-size="13" fill="#475569">depends on base claims</text>
<rect x="866" y="128" width="240" height="138" rx="8" fill="#fff7ed" stroke="#f97316" stroke-width="2"/>
<text x="888" y="160" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#9a3412">4. Governance/Concept</text>
<text x="888" y="194" font-family="Arial, sans-serif" font-size="13" fill="#475569">1 concept map</text>
<text x="888" y="218" font-family="Arial, sans-serif" font-size="13" fill="#475569">1 concept link</text>
<text x="888" y="242" font-family="Arial, sans-serif" font-size="13" fill="#475569">2 governance links</text>
<rect x="56" y="332" width="240" height="138" rx="8" fill="#f0fdf4" stroke="#16a34a" stroke-width="2"/>
<text x="78" y="364" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#166534">5. Helmer 7 Powers</text>
<text x="78" y="398" font-family="Arial, sans-serif" font-size="13" fill="#475569">1 reasoning tool</text>
<text x="78" y="422" font-family="Arial, sans-serif" font-size="13" fill="#475569">5 claims, 13 sources</text>
<text x="78" y="446" font-family="Arial, sans-serif" font-size="13" fill="#475569">ledger applied in clone</text>
<rect x="326" y="332" width="510" height="138" rx="8" fill="#ffffff" stroke="#0f172a" stroke-width="2"/>
<text x="348" y="364" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#0f172a">Integrated Clone Footprint</text>
<text x="348" y="398" font-family="Arial, sans-serif" font-size="13" fill="#475569">12 claims, 28 sources, 18 claim edges, 34 evidence rows</text>
<text x="348" y="422" font-family="Arial, sans-serif" font-size="13" fill="#475569">1 reasoning tool, 2 Rio nodes, 5 Rio anchors</text>
<text x="348" y="446" font-family="Arial, sans-serif" font-size="13" fill="#475569">1 concept map, 1 concept link, 2 governance links</text>
<rect x="866" y="332" width="240" height="138" rx="8" fill="#fef2f2" stroke="#ef4444" stroke-width="2"/>
<text x="888" y="364" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#991b1b">Production Boundary</text>
<text x="888" y="398" font-family="Arial, sans-serif" font-size="13" fill="#7f1d1d">No production commit SQL</text>
<text x="888" y="422" font-family="Arial, sans-serif" font-size="13" fill="#7f1d1d">Production generated rows = 0</text>
<text x="888" y="446" font-family="Arial, sans-serif" font-size="13" fill="#7f1d1d">Generated schema absent</text>
<line x1="296" y1="197" x2="326" y2="197" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow-blue)"/>
<line x1="566" y1="197" x2="596" y2="197" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow-blue)"/>
<line x1="836" y1="197" x2="866" y2="197" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow-blue)"/>
<path d="M986 266 C986 304 176 294 176 332" fill="none" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow-blue)"/>
<rect x="56" y="536" width="510" height="142" rx="8" fill="#ecfdf5" stroke="#22c55e" stroke-width="2"/>
<text x="78" y="568" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#166534">Rollback Proof</text>
<text x="78" y="604" font-family="Arial, sans-serif" font-size="13" fill="#14532d">Reverse order: Helmer, governance/concept, Rio, cross-surface, mapped base</text>
<text x="78" y="630" font-family="Arial, sans-serif" font-size="13" fill="#14532d">All generated row counts returned to zero; generated schema dropped</text>
<text x="78" y="656" font-family="Arial, sans-serif" font-size="13" fill="#14532d">Cross-surface anchor restored to old claim and weight 0.7</text>
<rect x="596" y="536" width="510" height="142" rx="8" fill="#eef2ff" stroke="#6366f1" stroke-width="2"/>
<text x="618" y="568" font-family="Arial, sans-serif" font-size="17" font-weight="700" fill="#3730a3">Runtime + Cleanup</text>
<text x="618" y="604" font-family="Arial, sans-serif" font-size="13" fill="#312e81">Disposable DB dropped; host/container temp removed</text>
<text x="618" y="630" font-family="Arial, sans-serif" font-size="13" fill="#312e81">leoclean-gateway active, MainPID=3252143, NRestarts=0</text>
<text x="618" y="656" font-family="Arial, sans-serif" font-size="13" fill="#312e81">Live Telegram canary should rerun after any production apply</text>
<text x="56" y="742" font-family="Arial, sans-serif" font-size="14" fill="#475569">Claim ceiling: integrated clone-ready, not production-applied. GCP parity remains separate.</text>
<defs>
<marker id="arrow-blue" markerWidth="10" markerHeight="10" refX="7" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L8,3 z" fill="#2563eb"/>
</marker>
</defs>
</svg>