KB-7CEA

Birth P0 Stage 0 — Read Me First

3 min read Revision 1
birth-gatewaystage0freezessot-guard2026-06-06

Birth P0 Stage 0 — Dangerous DOT Freeze + Gateway SSOT Guard — Read Me First

Date: 2026-06-06 · Macro: BIRTH_P0_STAGE0_DANGEROUS_DOT_EXECUTION_FREEZE_AND_GATEWAY_SSOT_GUARD · Mode: EXECUTION (principal-delegate) · Live mutation: YES — reversible (2 DOT binaries quarantined + 12 additive views) · Status: PASS.

Outcome (goal state reached)

From BIRTH_GATEWAY_DESIGN_READY_BUT_RUNTIME_CAN_BE_OVERRIDDENDANGEROUS_BIRTH_DOT_EXECUTION_FROZEN + GATEWAY_SSOT_DRIFT_DETECTABLE + QT001_QT002_IMPLEMENTATION_READY_FOR_NEXT_STAGE.

What was done

  1. PRE-STAGE SSOT publication — reconstructed the canonical design (Codex docs 01..10 never existed) into knowledge/dev/architecture/birth-gateway-ssot-qt001-repair-design-2026-06-06.md + BIRTH_GATEWAY_DESIGN_INDEX.md; read back via MCP.
  2. Freezedot-birth-trigger-setup (DOT-119) and dot-birth-backfill (DOT-118) reversibly quarantined (original preserved byte-for-byte; inert guard wrapper exits 3). Safe: no auto-callers; composite caller dot-collection-create degrades gracefully.
  3. Drift detector — 12 additive views (incl. v_birth_gateway_no_old_function_guard = PASS, v_birth_gateway_ssot_drift_detector = OK) make any revert to the old (exempt-guard-less) gateway machine-detectable; teeth proven.
  4. QT preservation — QT-002 live path UNCHANGED; no QT worsened.
  5. Stage 1 packetBIRTH_STAGE1_GATEWAY_SSOT_IMPLEMENTATION_PACKET.md ready.

Key live facts (verified 2026-06-06)

  • The danger: dot-birth-trigger-setup line 113 embeds CREATE OR REPLACE FUNCTION fn_birth_registry_auto() with OLD logic (governance_role only, NO coverage_status / BIRTH_EXEMPT) → if run, reverts the guarded gateway across 166 triggers / 148 tables.
  • Live gateway fn_birth_registry_auto is GUARDED (coverage_status + BIRTH_EXEMPT present; norm-md5 c022f849...).
  • coverage_status: BIRTH_REQUIRED 74 / DEFERRED 58 / EXEMPT 36. Identity unclassified 43. Native status 54/74. Missing trigger 2 (no PG table).
  • birth_registry anchor 1,210,834→1,210,839 (birth-neutral across all DDL); tga 129 unchanged; apr 42 unchanged.

Files in this report dir

01 inventory · 02 drift detector · 03 freeze · 04 QT preservation · 05 preflight dashboard · 06 Stage 1 readiness · 07 safety audit · 08 final summary · 09 MCP-readable checkpoint.

Artifacts

  • SQL/rollback: /opt/incomex/docs/mcp-writes/birth-stage0-2026-06-06/ (01_apply_views.sql, 02_apply_regression_guard.sql, 99_rollback_views.sql, BIRTH_STAGE0_FREEZE_ROLLBACK.md).
  • Checkpoint: knowledge/dev/reports/architecture/checkpoint-birth-p0-stage0-dangerous-dot-freeze-gateway-ssot-guard-2026-06-06.md.
Back to Knowledge Hub knowledge/dev/reports/architecture/birth-p0-stage0-dangerous-dot-freeze-gateway-ssot-guard-2026-06-06/00-readme-first.md