teleo-infrastructure/docs/reports/leo-working-state-20260709/leo-db-state-20-cross-surface-anchor.svg
twentyOne2x f34feb0ffb
Some checks are pending
CI / lint-and-test (push) Waiting to run
Add Working Leo cross-surface KB proof
- Add broad Cory-style outcome scenarios to the open-ended benchmark so regular-use ambiguity is tested, not only exact ID canaries.

- Add a clone-proven cross-surface strategy anchor packet that updates the mapped rich proposal anchor only after Claim D exists.

- Retain VPS Docker DB, claim/body metadata, and cross-surface proof reports with ruff plus 37 focused tests passing.

`docs/reports/leo-working-state-20260709/cory-expected-working-leo-outcomes-20260709.md`

`docs/reports/leo-working-state-20260709/cross-surface-apply-authorized-commit.sql`

`docs/reports/leo-working-state-20260709/cross-surface-clone-rehearsal-current.log`

`docs/reports/leo-working-state-20260709/cross-surface-clone-rehearsal-failed-source-id-constraint.log`

`docs/reports/leo-working-state-20260709/cross-surface-delete-rollback.sql`

`docs/reports/leo-working-state-20260709/cross-surface-packet.json`

`docs/reports/leo-working-state-20260709/cross-surface-postflight.sql`

`docs/reports/leo-working-state-20260709/cross-surface-preflight.sql`

`docs/reports/leo-working-state-20260709/cross-surface-resolution-current.md`

`docs/reports/leo-working-state-20260709/current-truth-index.md`

`docs/reports/leo-working-state-20260709/leo-db-state-17-cory-outcome-benchmark.svg`

`docs/reports/leo-working-state-20260709/leo-db-state-18-db-vs-workspace.svg`

`docs/reports/leo-working-state-20260709/leo-db-state-19-claims-body-metadata.svg`

`docs/reports/leo-working-state-20260709/leo-db-state-20-cross-surface-anchor.svg`

`docs/reports/leo-working-state-20260709/working-leo-current-state-20260709.md`

`docs/reports/leo-working-state-20260709/working-leo-definition-20260709.md`

`docs/reports/leo-working-state-20260709/working-leo-execution-plan-current.md`

`docs/reports/leo-working-state-20260709/working-leo-open-ended-benchmark-spec.json`

`scripts/kb_cross_surface_resolution_packet.py`

`scripts/working_leo_open_ended_benchmark.py`

`tests/test_kb_cross_surface_resolution_packet.py`

`tests/test_working_leo_open_ended_benchmark.py`
2026-07-09 23:39:51 +02:00

52 lines
4.8 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="720" viewBox="0 0 1280 720" role="img" aria-labelledby="title desc">
<title id="title">Cross-surface strategy anchor rehearsal</title>
<desc id="desc">Diagram showing mapped rich proposal rows in a disposable clone followed by a strategy_node_anchors update from the old compressed internet finance claim to Claim D.</desc>
<rect width="1280" height="720" fill="#f8fafc"/>
<text x="64" y="72" font-family="Arial, sans-serif" font-size="34" font-weight="700" fill="#111827">Cross-surface KB resolution: strategy anchor now clone-proven</text>
<text x="64" y="112" font-family="Arial, sans-serif" font-size="18" fill="#374151">Production stayed unchanged. The proof ran in disposable DB teleo_cross_surface_rehearsal_20260709.</text>
<rect x="70" y="165" width="330" height="390" rx="8" fill="#ffffff" stroke="#2563eb" stroke-width="3"/>
<text x="98" y="212" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#1d4ed8">1. Base packet</text>
<text x="98" y="252" font-family="Arial, sans-serif" font-size="17" fill="#111827">Create Claim D first</text>
<text x="98" y="284" font-family="Arial, sans-serif" font-size="17" fill="#111827">7 claims</text>
<text x="98" y="316" font-family="Arial, sans-serif" font-size="17" fill="#111827">15 sources</text>
<text x="98" y="348" font-family="Arial, sans-serif" font-size="17" fill="#111827">11 edges</text>
<text x="98" y="380" font-family="Arial, sans-serif" font-size="17" fill="#111827">17 evidence rows</text>
<rect x="98" y="430" width="250" height="70" rx="6" fill="#eff6ff" stroke="#93c5fd"/>
<text x="116" y="462" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#1e3a8a">Output:</text>
<text x="116" y="488" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">Claim D exists in clone</text>
<rect x="475" y="165" width="330" height="390" rx="8" fill="#ffffff" stroke="#059669" stroke-width="3"/>
<text x="503" y="212" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#047857">2. Anchor packet</text>
<text x="503" y="252" font-family="Arial, sans-serif" font-size="17" fill="#111827">Update strategy_node_anchors</text>
<text x="503" y="284" font-family="Arial, sans-serif" font-size="17" fill="#111827">Anchor 47f128a0...</text>
<text x="503" y="316" font-family="Arial, sans-serif" font-size="17" fill="#111827">Old: d0000000...</text>
<text x="503" y="348" font-family="Arial, sans-serif" font-size="17" fill="#111827">New: Claim D e6ce4e36...</text>
<text x="503" y="380" font-family="Arial, sans-serif" font-size="17" fill="#111827">Weight: 0.85</text>
<rect x="503" y="430" width="250" height="70" rx="6" fill="#ecfdf5" stroke="#86efac"/>
<text x="521" y="462" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#064e3b">Schema fix:</text>
<text x="521" y="488" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">No source_id on anchor</text>
<rect x="880" y="165" width="330" height="390" rx="8" fill="#ffffff" stroke="#b45309" stroke-width="3"/>
<text x="908" y="212" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#92400e">3. Rollback + ceiling</text>
<text x="908" y="252" font-family="Arial, sans-serif" font-size="17" fill="#111827">Rollback restored old anchor</text>
<text x="908" y="284" font-family="Arial, sans-serif" font-size="17" fill="#111827">Generated rows returned to 0</text>
<text x="908" y="316" font-family="Arial, sans-serif" font-size="17" fill="#111827">Clone DB dropped</text>
<text x="908" y="348" font-family="Arial, sans-serif" font-size="17" fill="#111827">Temp files removed</text>
<text x="908" y="380" font-family="Arial, sans-serif" font-size="17" fill="#111827">Production unchanged</text>
<rect x="908" y="430" width="250" height="70" rx="6" fill="#fffbeb" stroke="#fcd34d"/>
<text x="926" y="462" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#78350f">Still deferred:</text>
<text x="926" y="488" font-family="Arial, sans-serif" font-size="15" fill="#78350f">governance, concept map, Rio</text>
<path d="M402 360 H455" stroke="#6b7280" stroke-width="3" marker-end="url(#arrow)"/>
<path d="M807 360 H860" stroke="#6b7280" stroke-width="3" marker-end="url(#arrow)"/>
<defs>
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L9,3 z" fill="#6b7280"/>
</marker>
</defs>
<rect x="130" y="620" width="1020" height="54" rx="8" fill="#111827"/>
<text x="168" y="654" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#ffffff">Current truth:</text>
<text x="300" y="654" font-family="Arial, sans-serif" font-size="18" fill="#ffffff">strategy anchor companion write is clone-proven, reversible, and not production-applied.</text>
</svg>