Some checks are pending
CI / lint-and-test (push) Waiting to run
- 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`
67 lines
3.1 KiB
Markdown
67 lines
3.1 KiB
Markdown
# Governance And Concept Map Packet - 2026-07-10
|
|
|
|
Generated UTC: `2026-07-10`
|
|
|
|
## Verdict
|
|
|
|
Clone-proven, not production-applied.
|
|
|
|
The live VPS schema had `public.governance_gates` but no canonical table linking claims to those gates, and no first-class concept-map table. This packet creates the minimal schema needed for the final non-claim fragments from the mapped rich proposals, then inserts exact row-level links after the mapped base packet exists.
|
|
|
|
## Schema Created In Clone
|
|
|
|
- `public.concept_maps`
|
|
- `public.claim_concept_map_links`
|
|
- `public.claim_governance_gate_links`
|
|
|
|
## Safe Writes
|
|
|
|
- `public.concept_maps`: 1 row
|
|
- `f013126c-0937-5bc8-b021-9697e59057d0`: `distributed_market_intelligence`
|
|
- `public.claim_concept_map_links`: 1 row
|
|
- Claim `d009dfc4-9755-58a7-affb-80e3e842a775` derives from concept map `f013126c-0937-5bc8-b021-9697e59057d0`
|
|
- `public.claim_governance_gate_links`: 2 rows
|
|
- Claim `9bcf7e6b-4e98-52b1-91ef-96cfc15e3df0` supports quality gate `fa88e31b-6fca-4801-bf72-f5db81950a11`
|
|
- Claim `9bcf7e6b-4e98-52b1-91ef-96cfc15e3df0` supports evidence bar `45695897-2a9c-4279-ac25-e59f166dec6a`
|
|
|
|
## Clone Proof
|
|
|
|
Disposable database: `teleo_governance_concept_rehearsal_20260710`
|
|
|
|
Sequence:
|
|
|
|
1. Created a disposable clone from live `teleo` using `pg_dump | psql`.
|
|
2. Applied the mapped base packet in the clone: `7` generated claims.
|
|
3. Ran governance/concept preflight:
|
|
- schema tables did not already exist.
|
|
- required base claims existed.
|
|
- required governance gates existed.
|
|
4. Ran governance/concept authorized commit SQL in the clone.
|
|
5. Postflight read back `1` concept map, `1` concept link, and `2` governance-gate links.
|
|
6. Ran governance/concept delete rollback.
|
|
7. Rollback removed generated rows and dropped the generated schema tables because they were empty.
|
|
8. Ran mapped base packet delete rollback.
|
|
9. Clone returned to `0` base claims and no generated governance/concept tables.
|
|
10. Production stayed unchanged: no generated governance/concept tables and `0` base generated claims.
|
|
11. Dropped the disposable DB and removed host/container temp files.
|
|
|
|
Cleanup readback:
|
|
|
|
- `disposable_db_exists`: `0`
|
|
- host tmp removed: yes
|
|
- container tmp removed: yes
|
|
- `leoclean-gateway.service`: `active`
|
|
- `MainPID`: `3252143`
|
|
- `NRestarts`: `0`
|
|
|
|
## Evidence
|
|
|
|
- Packet JSON: `docs/reports/leo-working-state-20260709/governance-concept-packet.json`
|
|
- Authorized commit SQL, not executed in production: `docs/reports/leo-working-state-20260709/governance-concept-apply-authorized-commit.sql`
|
|
- Delete rollback SQL: `docs/reports/leo-working-state-20260709/governance-concept-delete-rollback.sql`
|
|
- Clone rehearsal log: `docs/reports/leo-working-state-20260709/governance-concept-clone-rehearsal-current.log`
|
|
- State image: `docs/reports/leo-working-state-20260709/leo-db-state-24-governance-concept-schema.svg`
|
|
|
|
## Claim Ceiling
|
|
|
|
This proves the remaining governance-gate and concept-map fragments are representable with a minimal schema packet and reversible in a disposable clone after the mapped base packet exists. It does not prove production has been updated, because production commit was intentionally not executed.
|