KB-95DB
IU Core 240x Composer — 07 Next macro package
4 min read Revision 1
dieu44iu-core-mvp240xnext-macrocomposer-event-wiringtext-as-codev0.62026-05-22
07 — Next Macro Package
State at handoff
- Commit
9e7fbbfonmain(parente857178); KB commit follows. 792 tests. - Migrations 001–015 + runtime
010–050/060/090/120/140/160/170/180/190/200/ 230/240/250on production. - IU Core surface: 14 tables / 12 views / 34 functions / 3 triggers / 6 config / 7 event types / 8 routes — DOT 84/84.
iu_piece_collection=1,iu_piece_membership=3 (the inertdraftpilot).information_unit158,iu_structure_operation57,iu_metadata_tag330 — unchanged. Composer / structure-op / delivery gates all closed.
Open gaps (exact)
- Composer is not event-wired —
fn_iu_compose/add/remove/reorderemit no events; a composition change is not on the bus. - Text-as-code importer still unbuilt —
validate_collection_manifestchecks;IMPORT_IS_DESTRUCTIVE=False. No real composition importer, no durable on-disk export of the manifests. - Axis-B inferred lane still empty — only
derivedtags; thetopic/subjectinferredlane is registered with 0 rows. - Auto-cut first integrated durable run —
map_cut_to_compose_requestmaps aCutResultto aComposeRequest, but no real cut has been driven durably throughfn_iu_compose. - Composer lifecycle is minimal — no function transitions a collection
between
draft/active/deprecated/retired. fn_iu_composeminting at scale — the from-scratch mint path is provenBEGIN…ROLLBACKonly; no durable composed-from-scratch collection exists.
Recommended next macro
IU_CORE_480X_COMPOSER_EVENT_WIRING_AND_TEXTCODE_ROUNDTRIP
- Composer event wiring — register a
iu.collection_*event family + routes (dry-run-safe); the composer functions emit one event per op viafn_iu_emit_event, fail-closed. Closes gap #1. - Text-as-code durable export — export
CollectionManifests to an on-diskiu-tree/_collections/layout, commit, prove a diff round-trip. Part of #2. - Text-as-code composition importer — build behind a fail-closed gate +
validate_collection_manifest; proveBEGIN…ROLLBACK. Closes #2. - One durable composed-from-scratch collection — drive
fn_iu_composewithnew_piecespecs durably (a small generated file); the birth gate mints governed IUs;fn_iu_metadata_refreshinto the three axes. Closes #6.
Alternatives
- Axis-B inference pass — deterministic registry-backed classifier
populating the
inferredtopic/subject lane (gap #3). - Auto-cut → composer integrated production run — drive a real
CutResultthroughmap_cut_to_compose_request → fn_iu_composedurably (gap #4). - Composer lifecycle + delivery —
fn_iu_collection_set_lifecycle,active-gating, a composition-delivery route into the existing seam.
Recommended first: composer event wiring + text-as-code durable export — both build directly on this macro's substrate, stay additive and reversible, and together make a composition observable on the bus and round-trippable.