teleo-infrastructure/docs/reports/leo-working-state-20260709/leo-db-state-24-governance-concept-schema.svg
twentyOne2x 394a14660d
Some checks are pending
CI / lint-and-test (push) Waiting to run
Add governance concept schema packet
- Create guarded schema and links for governance gates and concept maps
- Prove clone apply and rollback while production schema stays unchanged
- Retain packet docs, state image, and focused tests for apply review

`docs/reports/leo-working-state-20260709/current-truth-index.md`
`docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql`
`docs/reports/leo-working-state-20260709/governance-concept-apply-rollback-rehearsal.sql`
`docs/reports/leo-working-state-20260709/governance-concept-clone-rehearsal-current.log`
`docs/reports/leo-working-state-20260709/governance-concept-current.md`
`docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql`
`docs/reports/leo-working-state-20260709/governance-concept-packet.json`
`docs/reports/leo-working-state-20260709/governance-concept-postflight.sql`
`docs/reports/leo-working-state-20260709/governance-concept-preflight.sql`
`docs/reports/leo-working-state-20260709/leo-db-state-24-governance-concept-schema.svg`
`docs/reports/leo-working-state-20260709/working-leo-current-state-20260709.md`
`docs/reports/leo-working-state-20260709/working-leo-execution-plan-current.md`
`scripts/kb_governance_concept_packet.py`
`tests/test_kb_governance_concept_packet.py`
2026-07-10 00:17:38 +02:00

64 lines
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">Working Leo DB State 24 - Governance and concept map schema packet</title>
<desc id="desc">Diagram of the clone-proven governance gate and concept map schema packet.</desc>
<rect width="1280" height="760" fill="#f8fafc"/>
<text x="56" y="58" font-family="Arial, sans-serif" font-size="30" font-weight="700" fill="#0f172a">Working Leo DB State 24: Governance + Concept Map Packet</text>
<text x="56" y="88" font-family="Arial, sans-serif" font-size="15" fill="#475569">Minimal schema packet for the final non-claim fragments. Clone-proven; production untouched.</text>
<rect x="56" y="126" width="322" height="220" rx="8" fill="#ffffff" stroke="#94a3b8" stroke-width="2"/>
<text x="78" y="158" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#0f172a">Base Mapped Claims</text>
<text x="78" y="194" font-family="Arial, sans-serif" font-size="14" fill="#334155">public.claims</text>
<text x="78" y="226" font-family="Arial, sans-serif" font-size="13" fill="#475569">d009dfc4... distributed knowledge</text>
<text x="78" y="258" font-family="Arial, sans-serif" font-size="13" fill="#475569">9bcf7e6b... claim nodes need bodies</text>
<text x="78" y="306" font-family="Arial, sans-serif" font-size="13" fill="#475569">Prerequisite: mapped base packet creates rows first.</text>
<rect x="464" y="126" width="360" height="220" rx="8" fill="#ecfeff" stroke="#0891b2" stroke-width="2"/>
<text x="486" y="158" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#155e75">New Concept Schema</text>
<text x="486" y="194" font-family="Arial, sans-serif" font-size="14" fill="#164e63">public.concept_maps</text>
<text x="486" y="226" font-family="Arial, sans-serif" font-size="13" fill="#475569">distributed_market_intelligence</text>
<text x="486" y="266" font-family="Arial, sans-serif" font-size="14" fill="#164e63">public.claim_concept_map_links</text>
<text x="486" y="298" font-family="Arial, sans-serif" font-size="13" fill="#475569">claim derives_from concept map</text>
<rect x="900" y="126" width="324" height="220" rx="8" fill="#fff7ed" stroke="#f97316" stroke-width="2"/>
<text x="922" y="158" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#9a3412">New Governance Links</text>
<text x="922" y="194" font-family="Arial, sans-serif" font-size="14" fill="#9a3412">public.claim_governance_gate_links</text>
<text x="922" y="226" font-family="Arial, sans-serif" font-size="13" fill="#475569">claim supports quality-gate</text>
<text x="922" y="258" font-family="Arial, sans-serif" font-size="13" fill="#475569">claim supports evidence-bar</text>
<text x="922" y="306" font-family="Arial, sans-serif" font-size="13" fill="#475569">public.governance_gates already existed.</text>
<line x1="378" y1="226" x2="464" y2="226" stroke="#2563eb" stroke-width="3" marker-end="url(#arrow-blue)"/>
<text x="392" y="210" font-family="Arial, sans-serif" font-size="13" fill="#1d4ed8">derives_from</text>
<line x1="378" y1="258" x2="900" y2="242" stroke="#ea580c" stroke-width="3" marker-end="url(#arrow-orange)"/>
<text x="600" y="240" font-family="Arial, sans-serif" font-size="13" fill="#c2410c">supports gates</text>
<rect x="56" y="420" width="360" height="196" rx="8" fill="#f0fdf4" stroke="#16a34a" stroke-width="2"/>
<text x="78" y="452" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#166534">Disposable Clone Proof</text>
<text x="78" y="488" font-family="Arial, sans-serif" font-size="14" fill="#14532d">Clone DB: teleo_governance_concept_rehearsal_20260710</text>
<text x="78" y="518" font-family="Arial, sans-serif" font-size="14" fill="#14532d">After apply: concept maps 1, concept links 1, gate links 2</text>
<text x="78" y="548" font-family="Arial, sans-serif" font-size="14" fill="#14532d">After rollback: generated tables absent, base claims 0</text>
<text x="78" y="588" font-family="Arial, sans-serif" font-size="13" fill="#475569">Production schema stayed unchanged.</text>
<rect x="464" y="420" width="360" height="196" rx="8" fill="#eef2ff" stroke="#4f46e5" stroke-width="2"/>
<text x="486" y="452" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#3730a3">Apply Boundary</text>
<text x="486" y="488" font-family="Arial, sans-serif" font-size="14" fill="#312e81">No production commit executed.</text>
<text x="486" y="518" font-family="Arial, sans-serif" font-size="14" fill="#312e81">No live VPS Leo runtime changed.</text>
<text x="486" y="548" font-family="Arial, sans-serif" font-size="14" fill="#312e81">leoclean-gateway active, NRestarts=0.</text>
<text x="486" y="588" font-family="Arial, sans-serif" font-size="13" fill="#475569">Ready for separate schema/apply review.</text>
<rect x="900" y="420" width="324" height="196" rx="8" fill="#fef2f2" stroke="#ef4444" stroke-width="2"/>
<text x="922" y="452" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#991b1b">Still Not Live</text>
<text x="922" y="488" font-family="Arial, sans-serif" font-size="14" fill="#7f1d1d">Tables do not exist in production yet.</text>
<text x="922" y="518" font-family="Arial, sans-serif" font-size="14" fill="#7f1d1d">Generated canonical rows remain unapplied.</text>
<text x="922" y="548" font-family="Arial, sans-serif" font-size="14" fill="#7f1d1d">GCP parity remains separate.</text>
<text x="56" y="700" font-family="Arial, sans-serif" font-size="14" fill="#475569">This packet resolves the schema shape for governance-gate and concept-map fragments without forcing them into public.claim_edges.</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>
<marker id="arrow-orange" markerWidth="10" markerHeight="10" refX="7" refY="3" orient="auto" markerUnits="strokeWidth">
<path d="M0,0 L0,6 L8,3 z" fill="#ea580c"/>
</marker>
</defs>
</svg>