KB-1165
IU Core First Durable Structure Op — 09 Next macro package
3 min read Revision 1
dieu44iu-core-mvpstructure-opnext-macrov0.62026-05-21
09 — Next Macro Package
State at handoff
- Structure-op execution layer (
010) installed; gate inert by default. - First durable
reparent_piececommitted and verified (b37fb5f1-...). - DOT 41/41, no-hardcode clean, five-layer classified, 637 tests pass.
dry_run=falseblocked; no downstream delivery; worker dry-run-safe.
Open gaps (exact)
- Structure-op event emission —
fn_iu_structure_op_applydoes not emit an IU event, so the route worker has no organic IU-domain evidence (seen=0). The path components exist (fn_iu_emit_event->event_outbox->fn_iu_route_worker_run); only the wiring is missing. - Non-reparent operations —
apply/rollbackRAISE feature_not_supportedforadd_new_piece/split/merge/deprecate/replace.planalready accepts all six. - Tree build breadth — 1 of ~96 document IUs is nested; the rest of
DIEU-35/DIEU-28/DIEU-32remain flat. - Python
PgStructureStore— the liveStructureStoreProtocol implementation (Python side) is still the in-memory seam only; the SQL layer is the execution layer of record.
Recommended next macro
IU_CORE_STRUCTURE_OP_EVENT_EMISSION_AND_DIEU35_TREE_BUILD
- Register an
iu.structure_*event type inevent_type_registry(+ matching outbound route,enabled+dry_run=true). - Wire
fn_iu_structure_op_applyto emitIU_REPARENTED(and the otherSTRUCTURE_OP_EVENTS) viafn_iu_emit_event— additiveCREATE OR REPLACE. - Run the worker (
runtime/150) and capture real IU-domain dry-run evidence (iu_route_attemptrows for a genuine structure event). - Reparent the remaining flat
DIEU-35leaves under theircanonical_address- encoded parents — a batch ofreparent_pieceops behind the same gate. - Refresh
runtime/110, five-layer, tests; commit.
Alternatives
dry_run=falsedelivery macro — buildfn_iu_route_deliverfor one target kind (still gated, still sovereign-approved). Higher blast radius.- Non-reparent structure ops — extend
apply/rollbacktoadd_new_piece/split/merge, which need the IU birth gate (fn_iu_create) to mint new IU identities. - Auto-cut production bridge — drive a real orchestrator
CutResultthroughAutocutBridge->StructureOpsWorkflowagainst the SQL layer.
Recommended first: the event-emission + tree-build macro — lowest blast radius, closes the worker-evidence gap, and exercises the execution layer at batch scale.