KB-49B2 rev 5

Handoff Điều 37+38 Bootstrap — P-B DONE, P-C next

3 min read Revision 5
handoffdieu37dieu38P-B-doneP-C-nexts157

Handoff Điều 37+38 Bootstrap → Phiên tiếp theo

2026-04-02 | OR v7.35 | HP v4.4.0 | Điều 38 v2.3 BAN HÀNH | P-B DONE


BỐI CẢNH 1 CÂU

Điều 38 v2.3 BAN HÀNH. normative_registry: 39 articles (1 HP + 36 enacted laws + 2 draft). Trigger gate đóng cửa bootstrap. DOT-NRM-DRAFT registered (170 DOTs total). Birth 39/39. Directus synced. PRs #661-667. Tiếp: P-C governance auto-discover.


ĐÃ HOÀN THÀNH

Việc Kết quả PRs
Điều 38 v2.3 soạn + Council 2 vòng BAN HÀNH KB rev7
P0: Điều tra 6/6 findings
P-A: Schema migration normative_registry 27 cols, 14 triggers, 5 collections #661-663
P-A Fix: Rollback manual + governance_role locked Health v2.2.0, idempotent #665-666
P-B: Seed 36 luật DOT-NRM-DRAFT v1.0.0, 36 articles #667
P-B Fix: +3 luật + verify 39/39 total, birth 39/39, Directus ✅, gate ✅
HP v4.4.0 +Điều 38 mục lục, +Đ24/29/30 chi tiết KB rev8
Điều 37 S157 note law_registry → normative_registry KB rev8

TRẠNG THÁI HIỆN TẠI

Collection Rows Status
normative_registry 39 1 constitution + 36 enacted + 2 draft
normative_relations 0 Sẵn sàng
binding_registry 0 Locked
nrm_doc_type_config 6 Seeded
nrm_approval_rules 3 Seeded
law_jurisdiction 0 Sẵn sàng P-C
governance_registry 0 Sẵn sàng P-C
governance_relations 0 Sẵn sàng P-C
law_dot_enforcement 0 Sẵn sàng P-C
dot_tools 170 +DOT-NRM-DRAFT

ROADMAP

P0:     Điều tra                      ✅
P-A:    Schema migration              ✅
P-A FIX: Rollback + locked            ✅
P-B:    Seed 36 luật                  ✅
P-B FIX: +3 luật + verify            ✅
P-C:    Governance auto-discover       ← TIẾP THEO
P-D:    DOT registration + cron
P-E:    OR + HP + Handoff final

VIỆC TIẾP — P-C Governance Auto-Discover

Mục tiêu: Tự động ghép governance_registry + law_jurisdiction + law_dot_enforcement + governance_relations từ PG data có sẵn (dot_tools 170, dot_domains 25, collection_registry 153, normative_registry 39).

Cần viết: DOT-GOV-DISCOVER + DOT-GOV-LINK (hoặc gộp).

Lưu ý:

  • 5 bảng Điều 37 hiện = 0 rows, FK → normative_registry
  • Data nguồn đã có: dot_tools (domain), collection_registry (governance_role), normative_registry (luật)
  • P2 cũ (seed tay) → giờ = DOT tự ghép (chiều đi + chiều về)

TÀI LIỆU

Tài liệu Path Rev
Điều 38 v2.3 knowledge/dev/architecture/dieu38-normative-document-law-draft.md 7
HP v4.4.0 knowledge/dev/laws/constitution.md 8
Điều 37 v3.3 knowledge/dev/architecture/dieu37-governance-organization-law-draft.md 8
OR v7.35 knowledge/dev/ssot/operating-rules.md 19
Handoff knowledge/current-state/handoff-s150-plus-session.md 5

P-B DONE | 39 articles | 170 DOTs | Tiếp: P-C governance