KB-4D2D

12000x · 01 — Baseline + Execution Channel Pack (HEAD 3d56afa, db=directus, gates inert)</title> <parameter name="tags">["iu-core","v0.6","12000x","baseline","execution-channel","gates-inert"]

5 min read Revision 1

12000x · 01 — Baseline + Execution Channel Pack

Repo

cwd                : /Users/nmhuyen/iu-cutter-build/repo/iu-cutter
git rev-parse HEAD : 3d56afa
git branch         : main
git status --short : (clean)
git log -5 head    :
  3d56afa iu-core(11000x): Piece Event Runtime substrate + 8th healthcheck surface
  d88d08b iu-core(10000x): Piece Platform DOT lifecycle (split/merge/supersede)
  46c3c33 iu-core(9000x):  Qdrant live onboarding (88 pts) + Piece Platform DOT kickoff
  d403648 iu-core(8000x-execute): live promote 86 DIEU draft->enacted + Qdrant EXACT_GAP
  46bef0e iu-core(8000x): compensation primitives + governance promotion package

The 11000x KB report 10-evidence-bundle-pointer.md had a "commit pending" caveat; live wins — HEAD is 3d56afa, tree clean, the macro is durably committed.

Database identity

host        : ssh contabo (Hetzner VPS)
runtime     : docker exec postgres (image postgres:16, Up 5 weeks, healthy)
database    : directus (iu_core lives here; allowed DBs: workflow/incomex_metadata/directus)
psql        : workflow_admin via socket trust

Initial probe targeted workflow_db (denied) then workflow (no dot_config); live discovery resolved to directus where dot_config, information_unit, event_outbox, iu_lifecycle_log, v_piece_event_outbox, iu_piece_collection, iu_piece_membership all live.

Execution Channel Pack — verified live

Channel Status Evidence
SSH exec to VPS OK ssh contabo; docker ps reachable
Docker exec on postgres container OK docker exec postgres psql -U workflow_admin -d directus -tAc 'select now()' returns timestamp
psql DDL/DML/EXECUTE OK BEGIN/UPDATE/INSERT/SELECT/CALL exercised in Phase D/E/F/G
pg_dump availability OK (not used) macro is BEGIN/ROLLBACK only
Rollback semantics OK every phase ends in ROLLBACK; post-rollback durability shows ZERO leftovers
Qdrant read OK docker run --rm --network=docker_incomex curlimages/curl -H 'api-key:…' http://incomex-qdrant:6333/collections returns 2 collections (production_documents, iu_core_iu_chunks)
Qdrant write not exercised macro forbids Qdrant write
Mac cron heartbeat OK */10 * * * * iu_core_healthcheck_wrapper.sh; last fire exit=0 overall_ok=true 8/8 surfaces
gh CLI for PR #669 OK (read-only) gh pr view 669 -R Huyen1974/web-test → OPEN/MERGEABLE; no merge

DB live shape (substrate verification)

Object Expected (11000x) Live Result
view v_piece_event_outbox 1 1 OK
fn fn_iu_piece_emit_event 1 1 (sig: text,text,uuid,text,jsonb→uuid) OK
fn fn_iu_lifecycle_log_emit_piece_event_trg 1 1 OK
fn fn_iu_piece_event_runtime_healthcheck 1 1 OK
trigger trg_iu_lifecycle_log_emit_piece_event AFTER INSERT 1 1 OK
event_outbox.event_domain CHECK accepts 'piece' YES YES OK
cfg piece_event_runtime.emit_enabled false false inert
cfg piece_event_runtime.dry_run_only true true inert
cfg iu_core.composer_enabled false false inert
cfg iu_core.routes_master_enabled true true master open
cfg iu_core.route_worker_enabled true true worker open
cfg iu_core.retention_enabled false false inert
cfg iu_core.vector_sync_enabled false false inert
cfg iu_core.structure_ops_enabled false false inert

Healthcheck eighth surface live JSON:

{"ok": true, "surface": "piece_event_runtime", "gate_keys": 2,
 "view_exists": true, "dry_run_only": "true", "emit_enabled": "false",
 "fn_trg_exists": true, "fn_emit_exists": true, "trigger_exists": true,
 "piece_event_types_active": 6}

Baseline counts (snapshot before macro)

  • piece_event_types: 6 (created, merged, retired, split, superseded, updated)
  • iu_collections: 3 (pilot/scratch/autocut from 9000x era)
  • iu_piece_memberships: 8
  • vector_sync_points: 152
  • iu_lifecycle_log: 146
  • event_outbox total: 122308
  • event_outbox piece: 0
  • dot_iu_command_catalog: 20 commands
  • information_unit: 163 (146 law_unit + 17 design_doc_section)
  • Qdrant iu_core_iu_chunks: 149 points
  • Qdrant production_documents: 9423 points (untouched, never ours)

Backup decision

No pg_dump taken — macro is BEGIN/ROLLBACK only with post-rollback durability assertion.

Mac host healthcheck (last cron fire pre-macro)

ts=2026-05-25T01:30:00Z, exit=0, overall_ok=true, 8/8 surfaces ok=true.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-12000x-product-factory-execution-event-proof-open-goal/01-baseline-channel-pack.md