KB-64E7
IU Core 30x Structure/Autocut — 06 DOT, no-hardcode, five-layer
3 min read Revision 1
dieu44iu-core-mvp30xdotno-hardcodefive-layerv0.62026-05-22
06 — DOT / No-hardcode / Five-layer
No-hardcode — PASS
Every literal in the new SQL/Python is config key, catalog identifier or bus vocabulary:
runtime/180bakes no document code, no IU uuid — buildable set discovered by live query (test_180_has_no_hardcoded_doc_or_id).- Migration 012 bakes no uuid, secret, IP, or doc code. The gateway marker key
is discovered from
dot_config 'iu_create.gateway.marker_key';unit_kind/section_typecome from the oppayload. Operation names, relation types, the lifecycle tokendeprecated, thestructure_*event types are domain/bus vocabulary — classified, allowed. runtime/190event types/routes are registry rows; routes carry no endpoint.pg_structure_store.pyknows only the fourfn_iu_structure_op_*names — no DSN/host/secret; imports no driver; takes the connection from the caller.- Scan of the new files: 0 secret / DSN / api-key / private-key / IP matches.
DOT — PASS, 53/53
runtime/180 adds no new database object — DOT stayed 43/43 after the tree
build. Migration 012 is CREATE OR REPLACE of three existing functions — no
new object. runtime/190 adds 5 event types + 5 routes; runtime/110's
SSOT inventory _iu_core_expect and the D9 verdict were bumped in the same
commit (event_type 2→7, route 3→8).
runtime/110 live scan after all changes — D9 conformance:
| class | expected | found | ok |
|---|---|---|---|
| table | 9 | 9 | t |
| view | 6 | 6 | t |
| function | 18 | 18 | t |
| trigger | 2 | 2 | t |
| config | 3 | 3 | t |
| event_type | 7 | 7 | t |
| route | 8 | 8 | t |
53/53 PASS, D8 drift guard 0 rows.
Five-layer sync
| Layer | Impact |
|---|---|
| PG | Real change: 26 durable reparent_piece ops (45 nested IUs); 3 functions replaced (012); 5 event types + 5 routes (runtime/190). Additive/idempotent; gate-closed for non-reparent code. |
| Directus | Data-only change to the existing information_unit collection (45 rows carry parent_or_container_ref). No collection/field DDL. |
| Nuxt | Render-only — a deeper IU tree; no schema/component contract change. |
| AgentData / KB | This macro's 7 reports. |
| Qdrant / vector | No impact — structure ops metadata-only. |
Reversibility
runtime/180 → runtime/rollback/180; migration 012 → rollback/012;
runtime/190 → runtime/rollback/190; per-op fn_iu_structure_op_rollback;
gates closable.