KB-2F8A

12000x · 02 — Product Factory Capability Matrix (9 capabilities LIVE_READY, 4 brief 'remaining' items subsumed)</title> <parameter name="tags">["iu-core","v0.6","12000x","capability-matrix","product-factory","live-discovery","fn_iu_compose"]

5 min read Revision 1

12000x · 02 — Product Factory Capability Matrix (live discovery)

The 11000x brief listed five primitives to "implement" plus four end-to-end proofs to run. Live discovery before any authoring showed the substrate is already LIVE_READY for every capability — the 12000x contribution is execution proofs, not new substrate. No migration 031 was authored.

Matrix (9 capabilities, all LIVE_READY)

# Capability Where (live) 12000x evidence
1 fn_iu_compose (mint pieces + create collection + attach + refresh manifest) pg_proc, 266-line plpgsql, gated by fn_iu_composer_enabled() Phase D+E+F invocations all returned {ok:true,…}
2 fn_iu_collection_create (empty collection) pg_proc, migration 015 Used transitively by fn_iu_compose; Phase D/E/F
3 fn_iu_collection_add/remove/reorder_piece pg_proc; FKs onto iu_piece_membership add_piece exercised for 7+5+7=19 attachments
4 fn_iu_collection_validate (graph validity, piece count, errors/warnings) (p_collection_id uuid) RETURNS jsonb Phase D ok:true,piece_count:7; E 5; F 7
5 fn_iu_collection_render (ordered piece rows for assembly) RETURNS TABLE(piece_order, piece_role, iu_id, canonical_address, doc_code, piece_lifecycle, depth, tag_count) Phase D rendered 7 ordered rows 0..6; E 5; F instance byte-equiv to template
6 fn_iu_collection_manifest_refresh (deterministic digest over piece graph) (p_collection_id uuid) RETURNS jsonb; writes manifest_digest on iu_piece_collection Phase D: two refreshes returned same digest 0d1da72850c71618a759cf08709f3825 (idempotent); Phase F: template & instance digests byte-identical
7 dot_iu_create_workflow_from_steps (DOT command) dot_iu_command_catalog + cutter_agent/iu_core/dot_commands.py:491 Phase D
8 dot_iu_create_file_from_pieces (DOT command) dot_iu_command_catalog + dot_commands.py:482 Phase E
9 text_as_code.roundtrip_collection_manifest (Python contract) cutter_agent/iu_core/text_as_code.py:470 + serialize/parse/validate/propose_import/build_apply_plan Phase 07: roundtrip_byte_identical=True, import.acceptable=True executes=False, APPLY_IS_DESTRUCTIVE=False, 7 apply-plan ops

Brief-listed "remaining" items (10-13) — all subsumed by existing substrate

# Brief item Live discovery 12000x decision
10 process_template_as_piece_graph iu_piece_collection.collection_kind='workflow' already IS a piece graph: iu_piece_membership.piece_order+iu_id+piece_role is a typed DAG. A template is just a workflow you intend to reuse. Re-cast as composition pattern. Phase F proves it.
11 generate_instance_from_template fn_iu_compose accepts both {new_piece:{…}} and {iu_id:<uuid>} branches in p_pieces. Instance = feed template's existing iu_id set under new collection_key. No piece duplication, full lineage by iu_id identity. Phase F instance: pieces_minted=0, pieces_attached=7.
12 validate_piece_graph fn_iu_collection_validate already runs graph checks (uniqueness, order presence, role allowed-set, FK integrity). Already shipped. Phase D/E/F all ok:true errors:[] warnings:[].
13 event emission on actions trg_iu_lifecycle_log_emit_piece_event (11000x mig 029) AFTER INSERT maps supersede/split/merge → superseded/split/merged via fn_iu_piece_emit_event, double-gated. Phase G: 4 events emitted in-tx (1 direct + 3 trigger), emit_mode='dry_run', rolled back to zero.

Operator surface

DB-side: dot_iu_command_catalog holds 20 governed DOT commands. Python-side: cutter_agent/iu_core/dot_commands.py registers 28 _cmd entries (catalog is subset; 8 missing are external/healthcheck/three-axis with mutating=False).

The 12000x macro adds ZERO new DOT commands — all four product-factory proofs run through fn_iu_compose, fn_iu_collection_validate, fn_iu_collection_render, fn_iu_collection_manifest_refresh, and fn_iu_piece_emit_event — all already governed.

Conclusion

Every Product Factory capability the brief asked for is LIVE_READY. The macro's primary contribution is the proof set in Phases D / E / F / G, not new substrate.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.6-iu-core-12000x-product-factory-execution-event-proof-open-goal/02-product-factory-capability-matrix.md