KB-2494

IU Core 240x Composer — 01 Precheck, survey, backup, gates

3 min read Revision 1
dieu44iu-core-mvp240xprecheckbackupgatesv0.62026-05-22

01 — Precheck, survey, backup, gates

  • Macro: IU_CORE_240X_PIECE_NATIVE_AUTHORING_COMPOSER_TEXTCODE_AUTOCUT_DELIVERY_OPEN_GOAL
  • Date: 2026-05-22
  • Host: MacBook/dev /Users/nmhuyen/iu-cutter-build/repo/iu-cutter
  • Production: VPS vmi3080463, container postgres (postgres:16), DB directus

Repo precheck

  • Branch main, HEAD before macro e857178 (clean tree — git status empty).
  • e857178 is the 120x KB-hash docs commit; code baseline bf05cc5.
  • Test baseline re-run: 740 passed.

Live production survey — 120x state verified intact

Metric Value 120x report
information_unit live 158 (86 draft / 60 enacted / 12 deprecated) match
iu_structure_operation 57 match
event_outbox iu 56 match
iu_route_attempt 56 (55 dry_run + 1 sent) match
iu_tree_change_log 1 match
iu_metadata_tag 330 match
iu_metadata_tag_registry 17 match
iu_route_dead_letter open 0 match
iu_tree_path 158 match

DOT baseline scan (runtime/110): 68/68 PASS — 12 tables / 9 views / 24 functions / 3 triggers / 5 config / 7 event types / 8 routes.

Gate state: routes_master_enabled=true, route_worker_enabled=true, structure_ops_enabled=false, delivery_enabled=false, delivery_live_routes=''. IU Gateway mode=enforced, marker_key=app.canonical_writer.

Backup

pg_dump -Fc/opt/incomex/backups/directus-pre-iucore-240x-20260522T072323Z.dump — 75 919 722 bytes — sha256 1c77d96e831b8b252a0fe892610031baf418325b688a2ddc5a9874edfa4092ddpg_restore -l lists 282 TABLE DATA entries, valid PGDMP header.

14 mandatory gates — all PASS

  1. Host correct. 2. Target identity — container postgres, DB directus, host vmi3080463. 3. Backup taken + sha-verified. 4. DOT/no-hardcode/five-layer baseline clean — DOT 68/68. 5. Candidate scope discovered live. 6. Operation bounded + reversible. 7. Rollback authored before apply. 8. Vocabulary registry/CHECK-backed. 9. No duplicate source of truth — a composition references pieces by FK, stores only order + role. 10. From-scratch pieces minted only via the fn_iu_create birth gate. 11. Existing IU tree/lineage untouched. 12. Worker/delivery unchanged, cannot external-deliver. 13. Text-as-code import fail-closed + non-destructive. 14. Disable path known — the composer gate iu_core.composer_enabled is closable.

120x AgentData reports verified present — 8 documents under v0.6-iu-core-120x-three-axis-metadata-delivery-autocut-textcode-open-goal/. No repair needed.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-240x-piece-native-authoring-composer-textcode-autocut-delivery-open-goal/01-precheck-survey-backup.md