KB-2410

IU Core Controlled Route — 02 Backup + drift survey

2 min read Revision 1
dieu44iu-core-mvpcontrolled-routebackupdriftv0.62026-05-21

IU Core Controlled Route — 02 Backup + drift survey

Fresh production backup (gate 3)

  • Path: /root/backups/iu-core-runtime/directus-pre-iucore-controlled-route-20260521T132841Z.dump
  • Size: 74,646,603 bytes · Format: pg_dump -Fc (custom).
  • sha256: 7fa853152f83372e6d57f5af7d6aa16bd35720961e21083b72572926b97ee380
  • TOC: 2983 entries — verified restorable via pg_restore -l.

Taken before any production mutation.

Drift survey vs runtime-activation SSOT — state matched exactly

  • iu-core tables: 7 from 001–005 (iu_sql_link, iu_outbound_route, iu_sql_event_route, iu_route_attempt, iu_relation, iu_structure_operation, iu_tree_path) + 4 pre-existing notification tables. All iu-core data tables 0 rows.
  • Event type: event_type_registry carries (iu, version_applied, update, immediate, active) — runtime 010 present.
  • Routes: outbound iu.version_applied.workflow and inbound iu_sql.iu_sql_link.insert both enabled=false, dry_run=true.
  • Triggers: trg_iu_out_version (on public.unit_version) and trg_iu_sql_in_iu_sql_link (on public.iu_sql_link) attached, tgenabled=O. public.unit_version carries 4 triggers total — notif, gateway guard, iu-core outbound, enacted-immut.
  • Master gate: dot_config 'iu_core.routes_master_enabled' absentfn_iu_core_routes_enabled() = false.
  • H3 fix: fn_iu_emit_event body md5 7dd8c74a… — registry-sourced, no hardcoded 'workflow', uses safe_metadata. Present.
  • H4: iu_structure_operation_enacted_chk carried the pre-H4 form (operation_status = 'enacted') = (enacted_at IS NOT NULL)006 not yet applied (confirmed).
  • version_seq: fn_iu_outbound_on_version md5 0949b28b…no version_seq filter; emitted on every version.
  • unit_version.version_seq distribution: seq=1 ×158, seq=2 ×6, seq=3 ×1 (165 total).

No unexpected drift. The runtime layer was exactly as the prior macro left it.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-controlled-route-mastergate-structure-observability-open-goal/02-backup-and-drift-survey.md