KB-58FA
15000x · 04 — Durable template creation (workflow tpl:wf:onboarding/v1 + file tpl:file:status-report/v1; +10 IUs +3 collections +15 memberships)
4 min read Revision 1
iu-corev0.615000xdurable-templatesfn_iu_composegate-toggleworkflow-templatefile-template
15000x · 04 — Durable templates creation (workflow + file)
Gate-toggle pattern (durable variant)
BEGIN;
UPDATE dot_config SET value='true' WHERE key='iu_core.composer_enabled';
-- compose + mark + generate instance + record lineage
UPDATE dot_config SET value='false' WHERE key='iu_core.composer_enabled';
COMMIT;
Gate back to false post-COMMIT, compositions durable. Extends [[feedback-in-tx-gate-toggle-reversibility]] from rehearsal to durable productization.
Template 1 — workflow (tpl:wf:onboarding/v1)
5 step pieces minted (role=body):
| order | canonical_address | title |
|---|---|---|
| 0 | iu_core/template/15000x/wf-onboarding-v1/step-0-d0-account | Day-0 — Account provisioning |
| 1 | iu_core/template/15000x/wf-onboarding-v1/step-1-d1-repo | Day-1 — Repository access |
| 2 | iu_core/template/15000x/wf-onboarding-v1/step-2-d2-walkthrough | Day-2 — Codebase walkthrough |
| 3 | iu_core/template/15000x/wf-onboarding-v1/step-3-d3-first-pr | Day-3 — First small PR |
| 4 | iu_core/template/15000x/wf-onboarding-v1/step-4-d5-retro | Day-5 — Retro check-in |
Result: collection_id=62c032aa-8a58-44aa-b490-b236b28a7997, pieces_minted=5, pieces_attached=5.
Template 2 — file (tpl:file:status-report/v1)
5 role pieces — full role vocab:
| role | section_type | title |
|---|---|---|
| title | heading | Status report (template) |
| intro | paragraph | Reporting period overview |
| body | paragraph | Key deliveries |
| appendix | appendix | Risks + open questions |
| reference | appendix | Linked tickets + docs |
Result: collection_id=eebeb9a1-7628-4197-97b5-2018231be683, pieces_minted=5, pieces_attached=5.
Mark both as templates
Both calls returned {status:"ok", is_template:true, was_template_before:false}.
Post-state
SELECT collection_key, instance_count FROM v_iu_product_template ORDER BY collection_key;
-- tpl:file:status-report/v1 | 0
-- tpl:wf:onboarding/v1 | 1
Drift
| Counter | Pre | Post | Δ |
|---|---|---|---|
information_unit |
163 | 173 | +10 |
iu_piece_collection |
3 | 6 | +3 |
iu_piece_membership |
8 | 23 | +15 |
iu_collection_template_registry |
— | 2 | +2 |
Content policy
- All canonical addresses prefixed
iu_core/template/15000x/… - Explicit template-as-content bodies (no Lorem Ipsum)
- DIEU / KT-B corpus untouched (envelope DIEU-28/32/35 axes unchanged at 27/23/36)
- Qdrant
iu_core_iu_chunksindexed pts unchanged at 149
Birth-gate noise (known)
WARNING: Birth gate L1 PILOT-ONLY: P-pub2 missing — production sẽ BLOCK per minted piece. Non-fatal; deferred to 16000x.