teleo-infrastructure/docs/reports/leo-working-state-20260709/leo-db-state-22-identity-render-matrix-artifacts.svg
twentyOne2x ae00beeb3b
Some checks are pending
CI / lint-and-test (push) Waiting to run
Document Working Leo DB identity provenance
- Map VPS Hermes, Forgejo, SOUL rendering, and document-artifact boundaries.

- Expand Cory-style benchmark for identity render, decision matrix, and source refs.

- Retain live-readback diagrams/reports and focused test coverage.

`docs/reports/leo-working-state-20260709/current-truth-index.md`
`docs/reports/leo-working-state-20260709/leo-db-loading-diagram-20260709T214741Z.mmd`
`docs/reports/leo-working-state-20260709/leo-db-loading-diagram-20260709T214741Z.svg`
`docs/reports/leo-working-state-20260709/leo-db-provenance-report-20260709T214741Z.md`
`docs/reports/leo-working-state-20260709/leo-db-state-21-forgejo-load-agent-loop.svg`
`docs/reports/leo-working-state-20260709/leo-db-state-22-identity-render-matrix-artifacts.svg`
`docs/reports/leo-working-state-20260709/vps-hermes-db-mapping-20260709.md`
`docs/reports/leo-working-state-20260709/working-leo-current-state-20260709.md`
`docs/reports/leo-working-state-20260709/working-leo-open-ended-benchmark-spec.json`
`scripts/working_leo_open_ended_benchmark.py`
`tests/test_working_leo_open_ended_benchmark.py`
2026-07-09 23:59:42 +02:00

83 lines
8.5 KiB
XML

<svg xmlns="http://www.w3.org/2000/svg" width="1440" height="900" viewBox="0 0 1440 900" role="img" aria-labelledby="title desc">
<title id="title">DB-first identity rendering, decision matrix status, and document artifact linkage</title>
<desc id="desc">Diagram showing that Leo identity is canonical in Postgres rows, rendered to SOUL.md as runtime context, decision matrix tables are designed but absent on live VPS, and document artifacts are staging files or refs until applied into canonical sources and evidence.</desc>
<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="#334155"/>
</marker>
<marker id="dasharrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L9,3 z" fill="#64748b"/>
</marker>
</defs>
<rect width="1440" height="900" fill="#f8fafc"/>
<text x="54" y="64" font-family="Arial, sans-serif" font-size="34" font-weight="700" fill="#0f172a">Identity render, decision matrix, and document artifact state</text>
<text x="54" y="102" font-family="Arial, sans-serif" font-size="18" fill="#334155">Current VPS truth: Postgres is canonical; SOUL.md is a runtime render; decision matrix is designed but not shipped; document refs are staging until applied.</text>
<rect x="54" y="150" width="392" height="278" rx="8" fill="#ffffff" stroke="#2563eb" stroke-width="3"/>
<text x="82" y="190" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#1d4ed8">Canonical identity graph</text>
<text x="82" y="222" font-family="Arial, sans-serif" font-size="16" fill="#334155">Docker Postgres: teleo.public</text>
<rect x="82" y="246" width="336" height="134" rx="6" fill="#eff6ff" stroke="#93c5fd"/>
<text x="104" y="278" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">personas, agents</text>
<text x="104" y="306" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">shared_root, beliefs, blindspots</text>
<text x="104" y="334" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">strategy_nodes, strategy_node_anchors</text>
<text x="104" y="362" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">claims, sources, evidence on demand</text>
<text x="82" y="406" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#1d4ed8">Canonical change = row-level DB proof first</text>
<rect x="524" y="150" width="392" height="278" rx="8" fill="#ffffff" stroke="#7c3aed" stroke-width="3"/>
<text x="552" y="190" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#5b21b6">SOUL.md runtime render</text>
<text x="552" y="222" font-family="Arial, sans-serif" font-size="16" fill="#334155">/home/teleo/.hermes/profiles/leoclean/SOUL.md</text>
<rect x="552" y="246" width="336" height="108" rx="6" fill="#f5f3ff" stroke="#c4b5fd"/>
<text x="574" y="278" font-family="Arial, sans-serif" font-size="15" fill="#4c1d95">Rendered from DB: 0013 Leo V2 Identity Graph</text>
<text x="574" y="306" font-family="Arial, sans-serif" font-size="15" fill="#4c1d95">Runtime context, not a KB dump</text>
<text x="574" y="334" font-family="Arial, sans-serif" font-size="15" fill="#4c1d95">Direct edits are profile edits, not canonical truth</text>
<rect x="552" y="376" width="336" height="30" rx="6" fill="#fee2e2" stroke="#fca5a5"/>
<text x="574" y="397" font-family="Arial, sans-serif" font-size="14" font-weight="700" fill="#991b1b">No active renderer/timer proven in current readback</text>
<rect x="994" y="150" width="392" height="278" rx="8" fill="#ffffff" stroke="#dc2626" stroke-width="3"/>
<text x="1022" y="190" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#b91c1c">Decision matrix status</text>
<text x="1022" y="222" font-family="Arial, sans-serif" font-size="16" fill="#334155">Designed target, absent in live schema</text>
<rect x="1022" y="246" width="336" height="108" rx="6" fill="#fef2f2" stroke="#fca5a5"/>
<text x="1044" y="278" font-family="Arial, sans-serif" font-size="15" fill="#7f1d1d">Missing: kb_stage.matrix_voters</text>
<text x="1044" y="306" font-family="Arial, sans-serif" font-size="15" fill="#7f1d1d">Missing: kb_stage.proposal_votes</text>
<text x="1044" y="334" font-family="Arial, sans-serif" font-size="15" fill="#7f1d1d">Missing: kb_stage.proposal_decisions</text>
<text x="1022" y="390" font-family="Arial, sans-serif" font-size="15" fill="#334155">Current approval state lives in kb_stage.kb_proposals</text>
<rect x="54" y="520" width="392" height="250" rx="8" fill="#ffffff" stroke="#b45309" stroke-width="3"/>
<text x="82" y="560" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#92400e">Document artifacts</text>
<text x="82" y="592" font-family="Arial, sans-serif" font-size="16" fill="#334155">Files and staging rows before canonical apply</text>
<rect x="82" y="616" width="336" height="96" rx="6" fill="#fffbeb" stroke="#fbbf24"/>
<text x="104" y="648" font-family="Arial, sans-serif" font-size="15" fill="#78350f">telegram_file_refs: 19 referenced, 4 downloaded</text>
<text x="104" y="676" font-family="Arial, sans-serif" font-size="15" fill="#78350f">document_evaluations: negative decisions</text>
<text x="104" y="704" font-family="Arial, sans-serif" font-size="15" fill="#78350f">raw PDFs / extracted text live as files</text>
<text x="82" y="746" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#92400e">These are not canonical evidence yet</text>
<rect x="524" y="520" width="392" height="250" rx="8" fill="#ffffff" stroke="#059669" stroke-width="3"/>
<text x="552" y="560" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#047857">Proposal ledger</text>
<text x="552" y="592" font-family="Arial, sans-serif" font-size="16" fill="#334155">kb_stage.kb_proposals</text>
<rect x="552" y="616" width="336" height="96" rx="6" fill="#ecfdf5" stroke="#86efac"/>
<text x="574" y="648" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">14 pending_review, 3 approved</text>
<text x="574" y="676" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">all inspected rows have source_ref strings</text>
<text x="574" y="704" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">source_ref did not directly match public.sources</text>
<text x="552" y="746" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#047857">Real DB state, but not canonical truth</text>
<rect x="994" y="520" width="392" height="250" rx="8" fill="#ffffff" stroke="#0f766e" stroke-width="3"/>
<text x="1022" y="560" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#0f766e">Canonical evidence</text>
<text x="1022" y="592" font-family="Arial, sans-serif" font-size="16" fill="#334155">teleo.public after approved apply</text>
<rect x="1022" y="616" width="336" height="96" rx="6" fill="#f0fdfa" stroke="#5eead4"/>
<text x="1044" y="648" font-family="Arial, sans-serif" font-size="15" fill="#134e4a">public.sources</text>
<text x="1044" y="676" font-family="Arial, sans-serif" font-size="15" fill="#134e4a">public.claim_evidence</text>
<text x="1044" y="704" font-family="Arial, sans-serif" font-size="15" fill="#134e4a">public.claim_edges / claims / strategy rows</text>
<text x="1022" y="746" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#0f766e">Canonical only after guarded apply + readback</text>
<path d="M446 288 H524" stroke="#334155" stroke-width="3" marker-end="url(#arrow)"/>
<text x="462" y="270" font-family="Arial, sans-serif" font-size="14" fill="#334155">render/sync</text>
<path d="M916 288 H994" stroke="#64748b" stroke-width="3" stroke-dasharray="8 8" marker-end="url(#dasharrow)"/>
<text x="932" y="270" font-family="Arial, sans-serif" font-size="14" fill="#64748b">should gate, but absent</text>
<path d="M446 646 H524" stroke="#334155" stroke-width="3" marker-end="url(#arrow)"/>
<text x="462" y="628" font-family="Arial, sans-serif" font-size="14" fill="#334155">proposal source_ref</text>
<path d="M916 646 H994" stroke="#334155" stroke-width="3" marker-end="url(#arrow)"/>
<text x="932" y="628" font-family="Arial, sans-serif" font-size="14" fill="#334155">approved apply</text>
<rect x="178" y="828" width="1084" height="40" rx="8" fill="#0f172a"/>
<text x="218" y="854" font-family="Arial, sans-serif" font-size="17" fill="#ffffff">Benchmark rule: Leo must name the changed layer: canonical DB rows, staging ledger, runtime SOUL render, or raw document files.</text>
</svg>