IU Core Hygiene — 01 Precheck, host, gates, production survey
IU Core Constitution/DOT Hygiene — 01 Precheck + production survey
Macro: IU_CORE_CONSTITUTION_DOT_HYGIENE_REPAIR_SCALE_READINESS_OPEN_GOAL Date: 2026-05-21 · audit + safe-repair pass before scale.
Host
MacBook/dev host (Nguyens-MacBook-Air, Darwin arm64). Repo
/Users/nmhuyen/iu-cutter-build/repo/iu-cutter, branch main, HEAD 41d4fd7
(clean tree). Baseline 613 passed. Host gate PASS.
Target identity — positively production directus
query_pg (read-only role, 5 s timeout) against DB directus:
current_database()='directus', information_unit=158, unit_version=165,
iu_tree_path=158, event_outbox=93,686. This is the production directus
DB, not the pg-restore-test sandbox. Identity gate PASS.
Drift survey — matches prior macro close-out exactly
| Item | Value | Matches SSOT |
|---|---|---|
master gate iu_core.routes_master_enabled |
true (set 13:32:34) |
yes |
worker gate iu_core.route_worker_enabled |
true (set 14:32:47) |
yes |
outbound route iu.version_applied.workflow |
enabled=true, dry_run=true |
yes |
inbound route iu_sql.iu_sql_link.insert |
enabled=false, dry_run=true |
yes |
event_outbox total / event_domain='iu' |
93,686 / 0 | yes |
iu_route_attempt / iu_route_dead_letter |
0 / 0 | yes |
iu-core triggers trg_iu_out_version / trg_iu_sql_in_iu_sql_link |
both attached, enabled O |
yes |
| data rows | iu_tree_path=158, iu_route_worker_cursor=1, iu_outbound_route=1, iu_sql_event_route=1, rest 0 |
yes |
Zero drift from the worker-live-dry-run macro close-out. Drift gate PASS.
Production IU Core object inventory — 33 objects
- 9 tables:
iu_sql_link,iu_sql_event_route,iu_outbound_route,iu_route_attempt,iu_tree_path,iu_structure_operation,iu_relation,iu_route_worker_cursor,iu_route_dead_letter. - 5 views:
v_iu_tree,v_iu_sql_link_resolved,v_iu_route_attempt_summary,v_iu_event_backlog,v_iu_route_dead_letter_open. - 12 functions:
fn_iu_core_routes_enabled,fn_iu_emit_event,fn_iu_outbound_on_version,fn_iu_sql_link_validate,fn_iu_sql_link_inbound_capture,fn_iu_tree_assert_acyclic,fn_iu_tree_is_descendant,fn_iu_route_worker_enabled,fn_iu_route_deliver,fn_iu_route_worker_run,fn_iu_route_dead_letter_replay,fn_iu_route_worker_health. - 2 triggers:
trg_iu_out_version(onunit_version),trg_iu_sql_in_iu_sql_link(oniu_sql_link). - 2
dot_configgate keys · 1 event type (iu.version_applied) · 2 routes.
The pre-IU-Core iu_* objects (iu_lifecycle_log, iu_lifecycle_vocab,
iu_notification_event, iu_notification_read, and the
fn_iu_create/fn_iu_enact/fn_iu_notif_* lifecycle family) are out of IU
Core scope and excluded from the inventory.
Mandatory gates before any production mutation
This macro performed no production mutation — only read-only query_pg
catalog surveys. The narrow production-mutation approval (inert DOT/registry
metadata) was therefore not exercised: every repair landed in the repo and the
KB. No backup was required because no durable production write occurred. Gates
1–7 evaluated; mutation path not taken.