KB-C09C

IU-0 Pack 2A — Birth Process Classification

4 min read Revision 1
iu-0pack-2abirth-processQT-001QT-002process-resolver

IU-0 Pack 2A — Birth Process Classification

Date: 2026-05-04 Input: knowledge/ops/processes/birth-process-v1.md (QT-001 + QT-002) Purpose: Phân loại Pack 2A thuộc quy trình khai sinh nào


§1. 2 quy trình khai sinh đã định nghĩa

QT-001 Nhập khai sinh QT-002 Khai trước sinh sau
Khi nào Entity ĐÃ tồn tại, chưa có birth_registry Entity MỚI từ nay
Thứ tự Entity → birth record Birth record → entity
Yêu cầu species mapping, governed, birth trigger species mapping, governed

§2. Pack 2A thuộc loại nào?

Không phải QT-001, không phải QT-002. Pack 2A là case thứ 3: Readiness Governance Registration.

Lý do:

Tiêu chí QT-001 QT-002 Pack 2A
Entity đã tồn tại? Có (data rows) Chưa Bảng PG tồn tại, 0 data rows
Cần backfill birth? Có (cho data rows) Không Không — 0 rows để backfill
Tạo entity mới? Không Không — chỉ đăng ký bảng vào catalog
governance_role governed governed observed (pilot)
species mapping Bắt buộc Bắt buộc Skip (observed không yêu cầu)

Pack 2A đăng ký 2 PG tables (information_unit, unit_version) vào collection_registry — đây là đăng ký catalog/governance cho bảng, không phải khai sinh data entity trong bảng đó.

Khi dot-collection-register INSERT vào collection_registry, trigger chain tự fire:

  • gen_code_collection_registry → gán COL-NNN
  • fn_birth_gate → kiểm metadata
  • fn_description_birth_guard → auto-gen/validate description
  • fn_birth_registry_auto → tạo birth record cho chính row COL-NNN
  • fn_auto_label_provenance → gán PROV-DOT

→ Birth process cho collection_registry rows (COL-NNN) được trigger chain xử lý tự động. Pack 2A không cần implement QT-001 hay QT-002 thủ công.


§3. STOP condition mới

Nếu preflight phát hiện information_unit hoặc unit_version có >0 data rows:

→ STOP Pack 2A. Phải reclassify:

  • Nếu rows là test data chưa cleanup → cleanup trước, quay lại Pack 2A
  • Nếu rows là production data → chuyển sang QT-001 backfill analysis, cần governed + species trước

§4. Follow-up bắt buộc trước Pack 2B

Trước khi tạo IU data rows (Pack 2B+), PHẢI chốt birth path:

Lựa chọn Mô tả Yêu cầu
QT-002 birth-first Birth record trước, IU row sau governed + species + birth trigger trên information_unit
IU-specific birth path Birth gate L1/L2 đã có (Pack 1), có thể tích hợp với birth_registry trigger Thiết kế Đ44-specific birth integration

Chưa chốt → chưa tạo IU data rows. Đây là blocking condition cho Pack 2B.


§5. Tại sao tài liệu này bị bỏ sót?

Gate trước đây chỉ resolve: luật → DOT → DB → description. Chưa bắt buộc resolve quy trình ops (QT-001/QT-002). Search keyword cũng sai — tìm "collection_registry", "Đ4", "Đ36" nhưng không tìm "QT-001", "nhập khai sinh", "khai trước khi sinh".

Bài học: Context Graph + Process Gate phải là quy trình bắt buộc. Thêm Process Resolver vào gate checklist.