Some checks are pending
CI / lint-and-test (push) Waiting to run
- 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`
67 lines
6.6 KiB
XML
67 lines
6.6 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="1280" height="760" viewBox="0 0 1280 760" role="img" aria-labelledby="title desc">
|
|
<title id="title">How claims tie to body, metadata, sources, and evidence</title>
|
|
<desc id="desc">Diagram of current leoclean Docker Postgres schema: canonical claims do not have body or metadata columns; staging has body and raw frontmatter; evidence links claims to sources.</desc>
|
|
<rect width="1280" height="760" fill="#f8fafc"/>
|
|
<text x="64" y="68" font-family="Arial, sans-serif" font-size="33" font-weight="700" fill="#111827">Claims, body, and metadata in the current leoclean DB</text>
|
|
<text x="64" y="108" font-family="Arial, sans-serif" font-size="18" fill="#374151">Fresh VPS readback: 77.42.65.182 -> Docker container teleo-pg -> Postgres database teleo.</text>
|
|
<rect x="64" y="124" width="690" height="32" rx="6" fill="#e0f2fe" stroke="#7dd3fc"/>
|
|
<text x="84" y="146" font-family="Arial, sans-serif" font-size="15" font-weight="700" fill="#075985">Canonical DB location:</text>
|
|
<text x="250" y="146" font-family="Arial, sans-serif" font-size="15" fill="#075985">teleo-pg/postgres:16, database teleo, schemas public and kb_stage</text>
|
|
|
|
<rect x="60" y="172" width="350" height="480" rx="8" fill="#ffffff" stroke="#2563eb" stroke-width="3"/>
|
|
<text x="90" y="220" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#1d4ed8">Canonical claim</text>
|
|
<text x="90" y="254" font-family="Arial, sans-serif" font-size="16" fill="#111827">VPS Docker: teleo-pg -> DB teleo -> public.claims</text>
|
|
<rect x="90" y="258" width="290" height="235" rx="6" fill="#eff6ff" stroke="#93c5fd"/>
|
|
<text x="112" y="292" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">id</text>
|
|
<text x="112" y="320" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">type</text>
|
|
<text x="112" y="348" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">text</text>
|
|
<text x="112" y="376" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">status</text>
|
|
<text x="112" y="404" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">confidence</text>
|
|
<text x="112" y="432" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">tags[]</text>
|
|
<text x="112" y="460" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">superseded_by, timestamps</text>
|
|
<rect x="90" y="520" width="290" height="72" rx="6" fill="#fef2f2" stroke="#fca5a5"/>
|
|
<text x="112" y="552" font-family="Arial, sans-serif" font-size="16" font-weight="700" fill="#991b1b">No canonical body column</text>
|
|
<text x="112" y="578" font-family="Arial, sans-serif" font-size="15" fill="#991b1b">No canonical metadata jsonb column</text>
|
|
|
|
<rect x="465" y="172" width="350" height="480" rx="8" fill="#ffffff" stroke="#059669" stroke-width="3"/>
|
|
<text x="495" y="220" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#047857">Evidence and sources</text>
|
|
<text x="495" y="254" font-family="Arial, sans-serif" font-size="16" fill="#111827">teleo.public.claim_evidence -> teleo.public.sources</text>
|
|
<rect x="495" y="258" width="290" height="118" rx="6" fill="#ecfdf5" stroke="#86efac"/>
|
|
<text x="517" y="292" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">claim_id</text>
|
|
<text x="517" y="320" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">source_id</text>
|
|
<text x="517" y="348" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">role, weight</text>
|
|
<rect x="495" y="408" width="290" height="155" rx="6" fill="#f0fdf4" stroke="#86efac"/>
|
|
<text x="517" y="442" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">source_type</text>
|
|
<text x="517" y="470" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">url, storage_path</text>
|
|
<text x="517" y="498" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">excerpt</text>
|
|
<text x="517" y="526" font-family="Arial, sans-serif" font-size="15" fill="#064e3b">hash, captured_at</text>
|
|
<text x="495" y="592" font-family="Arial, sans-serif" font-size="15" fill="#374151">Body-like explanation often lives in source excerpts</text>
|
|
|
|
<rect x="870" y="172" width="350" height="480" rx="8" fill="#ffffff" stroke="#b45309" stroke-width="3"/>
|
|
<text x="900" y="220" font-family="Arial, sans-serif" font-size="24" font-weight="700" fill="#92400e">Staging and proposals</text>
|
|
<text x="900" y="254" font-family="Arial, sans-serif" font-size="16" fill="#111827">teleo.kb_stage.* before canonical apply</text>
|
|
<rect x="900" y="258" width="290" height="170" rx="6" fill="#fffbeb" stroke="#fcd34d"/>
|
|
<text x="922" y="292" font-family="Arial, sans-serif" font-size="15" fill="#78350f">staged_claims.title</text>
|
|
<text x="922" y="320" font-family="Arial, sans-serif" font-size="15" fill="#78350f">staged_claims.body</text>
|
|
<text x="922" y="348" font-family="Arial, sans-serif" font-size="15" fill="#78350f">staged_claims.tags[]</text>
|
|
<text x="922" y="376" font-family="Arial, sans-serif" font-size="15" fill="#78350f">staged_claims.raw_frontmatter jsonb</text>
|
|
<text x="922" y="404" font-family="Arial, sans-serif" font-size="15" fill="#78350f">warnings, source_ref</text>
|
|
<rect x="900" y="460" width="290" height="103" rx="6" fill="#fef3c7" stroke="#fcd34d"/>
|
|
<text x="922" y="494" font-family="Arial, sans-serif" font-size="15" fill="#78350f">kb_proposals.payload jsonb</text>
|
|
<text x="922" y="522" font-family="Arial, sans-serif" font-size="15" fill="#78350f">status: proposed / approved / applied</text>
|
|
<text x="922" y="550" font-family="Arial, sans-serif" font-size="15" fill="#78350f">review and apply metadata</text>
|
|
|
|
<path d="M410 372 H465" stroke="#6b7280" stroke-width="3" marker-end="url(#arrow)"/>
|
|
<path d="M815 372 H870" stroke="#6b7280" stroke-width="3" marker-end="url(#arrow)"/>
|
|
<path d="M870 537 C800 670 480 670 410 537" fill="none" stroke="#6b7280" stroke-width="3" stroke-dasharray="9 8" marker-end="url(#arrow)"/>
|
|
<text x="480" y="686" font-family="Arial, sans-serif" font-size="16" fill="#4b5563">Apply path must map staged body/frontmatter into canonical text, tags, sources, evidence, or a future schema field.</text>
|
|
|
|
<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="108" y="710" width="1064" height="36" rx="8" fill="#111827"/>
|
|
<text x="145" y="734" font-family="Arial, sans-serif" font-size="17" fill="#ffffff">Current truth: canonical claims are concise rows; explanatory body and metadata are staged/proposal/source-layer unless a guarded apply maps them.</text>
|
|
</svg>
|