KB-6AE7

11000x · 01 — Baseline + execution channel pack + backup

4 min read Revision 1
iu-corev0.611000xbaselineexecution-channelpg-dumpbackup

11000x · 01 — Baseline + execution channel pack + backup

Repo

  • Path: /Users/nmhuyen/iu-cutter-build/repo/iu-cutter
  • Branch: main
  • HEAD: d88d08b (10000x — Piece Platform DOT lifecycle + event-runtime foundation)
  • Clean (no uncommitted changes at macro start)
  • Recent log shows 9000x, 8000x-execute, 8000x, 7000x, 6000x macros

Execution channels (all VERIFIED)

Channel Status Test
MCP query_pg (read-only) current_database()='directus' user='context_pack_readonly'
SSH contabo ssh -o BatchMode=yes contabo echo channel_ok
docker exec postgres psql -U workflow_admin -d directus channel_ok directus workflow_admin PostgreSQL 16.13
scp repo files → VPS Used for migrations 029 / 030
docker cp → container Used for migrations 029 / 030
AgentData / KB MCP list_documents / search_knowledge / upload_document

Live baseline (before any mutation)

Object Value
PG version PostgreSQL 16.13 (Debian)
public.tables 263
public.functions 486
event_type_registry 25 rows
dot_iu_command_catalog 20 commands
iu_vector_sync_point 152 (149 indexed + 3 dryrun)
iu_lifecycle_log 146 (all transition_type='enact')
information_unit lifecycle_status='enacted' 146
event_outbox total 121,289
event_outbox event_domain='piece' 0
dot_config keys 14 baseline

Migrations on disk vs live

  • 001028 all PRESENT in sql/iu-core/
  • 026_compensation_primitives.sql: fn_iu_supersede + fn_iu_retire live ✓
  • 027_piece_split_primitive.sql: fn_iu_piece_split + iu_split_set live ✓
  • 028_piece_merge_primitive.sql: fn_iu_piece_merge + iu_merge_set live ✓
  • 029 / 030 — applied LIVE this macro

Gates inventory at baseline

Key Value
iu_core.routes_master_enabled true
iu_core.retention_enabled false
iu_core.three_axis_auto_refresh_enabled false
iu_create.gateway.mode enforced
event.global.delivery_lane_default immediate
event.system.poc_status enabled

All 6 IU Core write gates that the healthcheck monitors remained inert.

pg_dump backup (pre-mutation)

  • Path: /root/backups/directus-pre-iucore-11000x-20260525T000257Z.dump
  • Size: 79.4 MB (compressed)
  • sha256: c62ed38a342eec3b3e8d11b1d46d7597ac065c8769782a8439b4ec2178089fed
  • Method: docker exec postgres pg_dump -Fcdocker cp to /root/backups/

Baseline tests

  • python3 -m pytest tests/ -q --co → 1305 tests collected
  • python3 -m pytest tests/test_iu_core_ddl.py -q → 133 passed
  • EXPECTED_COUNTS sum = 156 (table 25 + view 23 + fn 56 + trigger 5 + config 10 + event_type 21 + route 16)

Live evidence vs Input Pack

Input pack claim Live evidence Resolution
1305 tests 1305 collected MATCH
DOT 156 scan VALUES sum=156 MATCH
migrations 027/028 live fn_iu_piece_split, fn_iu_piece_merge, iu_split_set, iu_merge_set live MATCH
6 piece.* event types live, inert 6 in event_type_registry domain='piece', active=true; 0 rows in event_outbox have event_domain='piece' MATCH
Qdrant 149 points / 152 sync rows iu_vector_sync_point 149 indexed + 3 dryrun = 152 MATCH
iu_core_iu_chunks = 149 points iu_core_iu_chunks is the Qdrant collection name, not a PG table; the 149 figure lives in iu_vector_sync_point.sync_status='indexed' CLARIFIED — naming convention
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-11000x-piece-event-runtime-product-factory-open-goal/01-baseline-channel-pack.md