KB-389E rev 2

16b — IU-0 Existing Birth Pipeline Adaptation (rev 2)

2 min read Revision 2
iu-0birth-pipelineadaptationrev2assumptions-corrected

16b — IU-0 Existing Birth Pipeline Adaptation

Date: 2026-05-05 | Rev 2 Status: DESIGN — investigation complete, giả định đã sửa Rev 2: Sửa 3 giả định sai từ rev1 theo investigation report


§1. Evidence (giữ nguyên rev1 + thêm investigation)

(Giữ nguyên rev1 evidence + thêm:)

Evidence Source Nội dung
Investigation report existing-birth-code-column-patterns-report.md 30 triggers, 3 patterns, 75k rows, synthetic shell chủ đạo

§2. Giả định đã sửa (★ Rev 2)

# Rev 1 giả định Thực tế (investigation) Sửa
1 DOT-119 có --code-column CLI KHÔNG — script v1, hardcode per collection, không có CLI flag DOT-119 không dùng cho IU
2 canonical_address là preferred code 0 precedent path format. 70k rows dùng synthetic table::uuid Synthetic shell preferred
3 DOT-119 an toàn chạy KHÔNG — script v1 sẽ clobber fn v2 đang cài, mất synthetic fallback KHÔNG chạy DOT-119

§3. Kết luận — Đường đi đúng

fn_birth_registry_auto v2 (đang cài trên PG) đã có synthetic fallback:

Nếu code column NULL → entity_code = TG_TABLE_NAME || '::' || NEW.id::text

IU chỉ cần: 1 câu CREATE TRIGGER gọi fn v2 với column name không tồn tại → fallback kích hoạt → information_unit::<uuid>.

Chi tiết execution: xem file 18.


§4. TD — DOT-119 lỗi thời

DOT-119 script v1 trên disk lỗi thời. Nếu chạy → clobber fn v2. Cần update hoặc lock + warning. TD riêng, không block IU.


16b rev 2 | 2026-05-05 | Opus 4.6 | 3 giả định sửa. Execution → file 18.