KB-398D rev 3

P3D — Birth System Completion Architecture Design v3

4 min read Revision 3
p3dbirth-systemcompletiondesignv3

P3D — Birth System Completion Architecture Design v3

Date: 2026-05-12 Rev: 3 (inline all sections, label historical counts as prior evidence) Mode: DESIGN ONLY Mainline: P3D_BIRTH_SYSTEM_COMPLETION_PACK


A. Birth is NOT broken — completion is extension, not replacement

Existing birth engine works: fn_birth_registry_auto fires on 30+ triggers (prior evidence; to be re-verified by B1 inventory), auto-assigns species + composition, writes birth_registry row. 15,307+ births recorded (prior evidence). This is correct and MUST be preserved.

Completion scope: preserve existing engine + add metadata contract/hooks + backfill path. Non-goal: rewrite.

Birth = bìa hồ sơ, mã hồ sơ, các mục trống, cơ chế để hệ thống sau tự điền.


B–D. (Unchanged from v2 — terminology, existing runtime, birth contract)


E. Required-at-birth vs enriched-later matrix (6-level — unchanged from v2)

10 REQUIRED_AT_BIRTH + 7 REQUIRED_HOOK_AT_BIRTH + 6 ENRICHED_LATER + 1 DERIVED_BY_PIVOT. 5 items UNKNOWN_NEEDS_INVENTORY.


F–H. Entity Living DB hooks, Loài+Lớp, Multidimensional model (unchanged from v2)


I. Relation-pair model (Điều 21 §III — 8 rules, INLINED)

Source: knowledge/dev/architecture/layer3-information-law.md §III.

# Rule Question (from Điều 21) Direction PG source Birth role
1 IDENTITY Tôi là ai? Registry row REQUIRED_AT_BIRTH
2 BELONGS_TO Tôi thuộc về ai? FK M2O REQUIRED_HOOK_AT_BIRTH
3 CONTAINS Tôi chứa gì? Reverse FK O2M REQUIRED_HOOK_AT_BIRTH
4 DEPENDS_ON Tôi cần gì để hoạt động? entity_dependencies source REQUIRED_HOOK_AT_BIRTH
5 USED_BY Ai đang dùng tôi? entity_dependencies target REQUIRED_HOOK_AT_BIRTH
6 TRANSITIVE Ai liên quan qua trung gian? →→→ BFS depth ≤ 3 on-demand ENRICHED_LATER
7 PEERS Ai giống tôi? Same classification query DERIVED_BY_PIVOT
8 SIMILAR Ai liên quan ngữ nghĩa? ~ Qdrant vector ENRICHED_LATER

J–K. Pivot, Vector/Event/UI (unchanged from v2)


L. Current runtime inventory from known reports (INLINED)

Artifact Report path Key finding Status
Species mapping (IU) 5C1 report SPE-IUA mapped, composition=atom Prior evidence
Authority vocab 5C2B report incomex_council seeded Prior evidence
TAC→UI baseline Baseline report 36 members, 12 types, deployed Prior evidence
Birth triggers 18c report 31 triggers (30+1 IU) Prior evidence
Schema concepts Phase 5A dryrun 31 concepts resolved Prior evidence

All counts above are prior evidence from earlier probes. B1 inventory will re-verify live state.


M–R. Preservation, gaps, anti-hardcode, roadmap, 5C2 impact, deferrals (unchanged from v2)


S. Governing rule

No new production object creation/migration pack shall proceed unless birth metadata minimum contract (10 REQUIRED_AT_BIRTH + 7 REQUIRED_HOOK_AT_BIRTH) is satisfied or explicitly waived by GPT/User.


Birth System Completion Architecture Design v3 | 2026-05-12

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/design/p3d-birth-system-completion-architecture-design.md