KB-3A2F
IU Core 30x Structure/Autocut — 08 Next macro package
3 min read Revision 1
dieu44iu-core-mvp30xnext-macrodelivery-seamv0.62026-05-22
08 — Next Macro Package
State at handoff
- Code commit
3f69710onmain(parent61714d0); KB commit4b0d6f5. 686 tests. - Migrations 001–012 + runtime
010–050/060/090/120/140/160/170/180/190on production. - 45 nested IUs (DIEU-28/32/35 trees all built);
iu_structure_operation45 enacted; 44structure_op_appliedevents; 44 workerdry_runattempts. - DOT 53/53, no-hardcode clean, five-layer classified.
- Non-reparent structure ops implemented (migration 012) + proven on the
production schema (
sandbox/070) but not durably enacted. dry_run=falseblocked; structure-op gate closed.
Open gaps (exact)
- Durable non-reparent ops — migration 012's add/split/merge/deprecate/
replace are proven (
sandbox/070BEGIN…ROLLBACK) but never committed on production. A durable enactment needs a real source case + a sovereign-approved bounded batch. - Durable non-reparent event emission + worker dry-run — the five
structure_*event types are registered but no durable event of those types exists yet. Follows gap #1. dry_run=falsedelivery —fn_iu_route_deliverstill unbuilt; the delivery seam is scoped (doc 05) but not built.PgStructureStorelive DB run — proven over a fake connection; a real psycopg-backed run against production (gated, dry-run-safe) is unproven.(null)-doc 72 IUs — still no encoded hierarchy; 60 non-draft. Not buildable by reparent.
Recommended next macro
IU_CORE_DURABLE_NONREPARENT_AND_DELIVERY_SEAM
Lowest-blast-radius first:
- Durable non-reparent micro-batch — pick one genuine real-content
deprecate_piece(the only non-reparent op with no birth gate and no lineage edge — the smallest safe step) and enact it durably under a sovereign-approved bounded transaction, then run the worker dry-run on itsstructure_piece_deprecatedevent. Closes gaps #1 + #2 with the smallest footprint. dry_run=falsedelivery seam (separate, higher blast radius) — buildfn_iu_route_deliver+ thesql_functionconsumer (fn_iu_structure_consumer→iu_tree_change_log), relax the route CHECK per-route via thedot_configallowlist, addiu_core.delivery_enabled, run a bounded worker delivery, verify, disable. Sovereign macro.
Alternatives
- Auto-cut production bridge — drive a real orchestrator
CutResultthroughAutocutBridge→PgStructureStore→ the SQL layer (still gated, no production CUT). TheBirthSpechandshake is now in place. - Text-as-code layer kickoff — begin the IU-content-as-code layer on top of the now-complete tree + structure-op substrate.
Recommended first: the durable deprecate_piece micro-batch — the smallest
safe step from "proven" to "durably enacted".