KB-6EC6

dot-iu-cutter v0.5 WS-Q5 Registry Substrate — Design Delta & Open Decisions (authoring only)

8 min read Revision 1
dot-iu-cutterv0.5ws-q5registry-substratedesign-deltaopen-decisionsauthoring-onlydieu442026-05-18

dot-iu-cutter v0.5 WS-Q5 Registry Substrate — Design Delta & Open Decisions

Phase: v0_5_WS_Q5_registry_substrate_DDL_authoring · Nature: executable_DDL_authoring_only__no_execution · Date: 2026-05-18

⚠️ GATING BANNER

phase: executable_DDL_authoring_only
sql_executed: none
any_open_decision_self_resolved: false   # all deferred items reserved for GPT/User
conflict_with_existing_schema: NONE detected (see §3) — would STOP if found
execution_authorized: false
self_advance: PROHIBITED

1. DDL object → authority mapping

DDL object Authority Notes
matcher_config_registry WS-2 D3 matcher as data rows (anti-hardcode); model not redesigned
address_template_registry WS-2 D6 + BR-A1 LOCKED columns carry locked scheme <DOCPREFIX>/<L1>-<L2>-...-<Lk>, sep / + -, status excluded
grammar_profile WS-2 D3 / canon §2 header; canon model preserved
grammar_profile_level WS-2 D3 level_definitions[] list → rows; deterministic level_seq
grammar_profile_status_marker WS-2 D3 status_marker_rules status stays metadata, not in address (BR-A1)
source_family_registry WS-2 D2 §1 authority_semantics_default distinct from owner_law (OD-VC6 KEEP_DISTINCT)
source_document_registry OD-SEQ1 Step 0 + WS-2 D6 + handoff §4.2 address_docprefix UNIQUE (1 doc→1 prefix)
source_document_version_registry canon §4/§5 content_checksum UNIQUE per doc → idempotent addresses
entity_kind_registry WS-2 D5 entity_kind vocab as rows
entity_reference_registry WS-2 D5 + OD-FA5 core-minimal permission/snapshot = nullable DEFERRED placeholders
authority_override WS-2 D4 §3 unit/span; soft refs (no cross-schema FK)
metadata_key_registry WS-2 D1 §1 hot-key promotion = separate sovereign cycle

2. Included / excluded

included (GPT-approved WS-Q5 scope, all 12):
  - 2 source-document objects (Step 0, per OD-SEQ1 APPROVE_SOURCE_DOCUMENT_AS_WS_Q5_STEP_0)
  - source_family_registry
  - grammar_profile (+ 4 supporting: level, status_marker, matcher_config,
    address_template) — required to make grammar_profile real per WS-2 D3
  - entity_kind_registry, entity_reference_registry
  - authority_override
  - metadata_key_registry

excluded (per GPT rulings — NOT authored):
  - evidenced_by vocab amend (OD-VC2 DEFER_TO_WS_VA_AUTHORING_AFTER_WS_Q5)
  - edge_type namespace scheme (OD-VC1 DEFER_TO_WS_VA; only reserve
    owner_law_code=NRM-LAW-44 compatibility — no vocab object here)
  - Cap-4 checker code/config (OD-VC3 DEFER_TO_WS_CK_AUTHORING)
  - 7 pre-scale indexes (KEEP_INDEX_DDL_AS_SEPARATE_CYCLE)
  - topic_vocab physical table (BR-FA3 defer_post_pilot — NOT required for
    first substrate; substrate does not depend on it)
  - assembly_profile physical table (BR-FA1 defer_WS3 — NOT required for first
    substrate; logical contract only, substrate registries suffice without it)
  - reverse-index P1/P2/P3, release_bundle, Constitution dry-run, CUT/VERIFY

excluded by deliberate authoring decision (flagged for GPT — §4):
  - CHECK constraints, triggers, DEFAULTs (BATCH-1 "text + documented values"
    precedent; cutter_governance prior DDL discipline)
  - GRANT / role / ownership statements (privilege model = separate sovereign
    cycle, per v0.4 credential precedent — not bundled into registry DDL)
  - DML seed (≥9 source_family, 2 grammar_profile, entity_kind seeds): NOT
    authored as runnable INSERTs; deferred to a separate seed-authoring step

2.1 Justification — topic_vocab & assembly_profile NOT required for first substrate

claim: the first WS-Q5 substrate is complete and usable WITHOUT topic_vocab or
  assembly_profile physical tables.
reason:
  - source/grammar/entity/authority/metadata registries resolve ingestion,
    canonicalization, address, authority, and metadata — none of which read a
    physical topic_vocab or assembly_profile (those consume assembly OUTPUT,
    downstream of substrate).
  - OD-FA1/OD-FA3 rulings keep them as logical contracts (defer_WS3 /
    defer_post_pilot). Adding them now would exceed approved scope.
conclusion: exclusion is correct; not an under-design gap. (Agent did NOT
  prove them mandatory — they are not.)

3. Conflict check vs existing governance schema (QG7)

existing_cutter_governance_tables (12, from handoff/closeout):
  decision_backlog_entry, decision_backlog_history,
  decision_backlog_dependency, decision_backlog_sweep_log,
  manifest_envelope, manifest_unit_block, review_decision,
  dot_pair_signature, cut_change_set, cut_change_set_affected_row,
  verify_result, canonical_address_alias
name_collision_check: the 12 WS-Q5 names are DISJOINT from the 12 existing
  names -> no collision.
soft-ref note (NOT a conflict): manifest_envelope.source_doc_ref and
  canonical_address_alias already carry document/address concepts as soft
  refs; the new source_document_registry is the canonical home and does NOT
  ALTER or FK into those existing tables (additive, no coupling).
status: NO conflict detected. If a future apply finds any of the 12 names
  pre-existing with a different shape, plain CREATE TABLE aborts -> STOP +
  escalate to GPT/User. The Agent does NOT self-modify existing schema (QG7).

4. Open decisions — deferred / reserved (NOT self-resolved)

OD-VC2 evidenced_by vocab physical shape: DEFERRED to WS-VA (GPT ruling). Not here.
OD-VC1 edge_type namespace scheme:        DEFERRED to WS-VA. Only owner_law
        compatibility reserved; no vocab object authored.
OD-VC3 Cap-4 checker deploy strategy:     DEFERRED to WS-CK. Not here.
OD-VC6 authority_semantics vs owner_law:  RULED KEEP_DISTINCT — honored
        (source_family_registry.authority_semantics_default is a Fabric role
         column; no owner_law column added).
OD-SEQ3 index lane:                       SEPARATE CYCLE — 7 indexes excluded.
BR-FA1 assembly_profile physical shape:   defer_WS3 — excluded (see §2.1).
BR-FA3 topic_vocab physical shape:        defer_post_pilot — excluded (§2.1).
OD-VC4 governed_by/derived_from candidate ratification (BP-WS2-2): tracked;
        not relevant to registry DDL; revisit before WS-3 execution.
OD-G1  Constitution source authority:     defer (pre-Constitution-dry-run);
        source_document/grammar registries are source-agnostic — no Constitution
        assumption baked into DDL.
OD-S1  controlled-draft (📋) cut policy:   defer; version_status is a documented
        text column, NOT enforced here (no enacted-only gate in DDL).
NEW AUTHORING DECISIONS — flagged for GPT confirmation (NOT self-ratified):
  AD-1 no CHECK/trigger/DEFAULT (BATCH-1 precedent) — policy via verification
       + governed seed. Confirm acceptable, or request CHECK on BR-A1 cols.
  AD-2 GRANT/role excluded (separate privilege cycle) — confirm registries may
       remain ungranted until a follow-up privilege command-review.
  AD-3 DML seed excluded — confirm seed authored as a separate draft step.
  AD-4 §2 DDL summary line said "7 FK / 3 UNIQUE"; authoritative counts are
       FK=8, UNIQUE=4 (verification enumerates by name). Flagged as a doc
       discrepancy, NOT a schema defect — confirm the enumerated set is canonical.

5. Statements

  • QG6: every DDL object mapped to WS-1/WS-2/WS-3 authority (§1). QG1/QG5: scope is exactly GPT-approved WS-Q5; vocab/checker/index excluded. QG7: no existing-schema conflict; if found at apply → STOP, no self-fix.
  • All deferred ODs reserved for GPT/User; AD-1..AD-4 are flagged authoring decisions awaiting confirmation, not self-ratified.
  • No repo/VPS access in this session. code_changed: false, commit_made: false.
  • Self-advance PROHIBITED — doc 4 of 5; STOP after package complete → route GPT/User.

Companion files: DDL-draft, rollback-draft, verification-plan, DDL-authoring-report.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/v0.5-ws-q5-registry-substrate-ddl-authoring/dot-iu-cutter-v0.5-WS-Q5-registry-substrate-design-delta-and-open-decisions-2026-05-18.md