KB-4C19 rev 16

Phụ lục Điều 43 — Lộ trình triển khai (Living doc)

4 min read Revision 16
lawdieu43living-docroadmap

PHỤ LỤC ĐIỀU 43 — LỘ TRÌNH TRIỂN KHAI

Living doc — sửa trực tiếp, không bump version Đ43. Luật hiện hành: Đ43 v1.2 FINAL rev 6 — HP v4.6.3. Đ35 v5.2. Cập nhật: 2026-04-20 S178 Fix 22 — rev 16. Bước 6 DONE. Tiếp Bước 7. Mục tiêu cuối: AI mới nhìn vào hiểu ngay hệ thống (≥80%) + view cho con người.


§1. TIẾN ĐỘ TỔNG THỂ

Bước Nội dung Status
4 (Track B) DOT scripts: Nhóm A + P0-P3 + 6 scripts fix_repair_dot + handler + register ✅ Fix 20-21
5 (M4) Scanner silent-fail Đ22 v1.1: 4 DOT, 546 findings (84 critical) ✅ Fix 22
6 (M5) Context pack +section ops_code_inventory: query+template+INSERT+regenerate ✅ Fix 22
7 (Phase C) Hoàn thiện nội dung Đ43 — C1/C2/C3/C4 🟡 TIẾP
8 (Phase D) Test agent lạ ≥80% → MỤC TIÊU 3 ⏸️
9 (Phase E) Bảo vệ chống phá ⏸️
Track A 4a dot-context-pack-build.sh (~500 LOC) 🟡 tạm hoãn

§2. MỤC TIÊU TỔNG THỂ

# Mục tiêu Status
1 Khai sinh Đ41/Đ43 ✅ Fix 18
2 Backfill description 1277 row ⏳ Bước 7 C2
3 AI mới đọc hiểu ≥80% ⏳ Bước 8
View cho con người ⏳ Sau Phase D

§3. BƯỚC 7 PHASE C — CHI TIẾT (PHIÊN SAU)

Việc Nội dung Effort Ghi chú
C1 Nới max_size section project_map (22KB > 20KB) + ops_code_inventory (46KB > 30KB) Low UPDATE 2 row context_pack_section_definitions
C2 Backfill description 1277 row thiếu → MỤC TIÊU 2 High Scan bảng nào có cột description NULL/empty, agent bổ sung
C3 Project Identity trang bìa (5-7 dòng Incomex) Low Thêm vào PROJECT_MAP.md template
C4 Architecture Annotation 4 layer Medium Gắn nhãn Não/Kho/Cổng/Engine vào ARCHITECTURE.mmd

§4. NỢ PHẢI TRẢ

Phiên sau (ngắn)

Việc Effort
V4b DROP 2 legacy columns 1 câu SQL (đủ 24-48h quiet)

Defer có thời hạn (Đ22 §4.3)

TD Mô tả Deadline
Annotation marker audit 462 warning cần marker # silent-fail-allow: 14 ngày
Trap pattern set -e + && Audit diện rộng DOT cũ 30 ngày

Defer không blocking

TD Khi nào
TD-F21-01 enforcement mapping Track A Phase 5
TD-F21-02 normative_registry date_updated Scope Đ38
Birth gate regex Scope Đ0-G
TD-REPO gom dot/ vào repo Bàn riêng
C7 counter runtime verify Tự verify
ops_code_inventory 46KB > 30KB max Gộp C1 (nới max hoặc compact)

§5. HẠ TẦNG GHI NHỚ

  • DB: docker exec postgres psql -U directus -d directus
  • SSH: contabo (key ~/.ssh/contabo_vps)
  • Git VPS: /opt/incomex/dot/ (local-only)
  • Context pack: 9 sections, manifest #30, section_count=9
  • Handler: dot-apr-execute.sh v2.2.0
  • Renderer: cp-render-section.py rev3 (FAIL-FAST on NULL template)
  • Đ43 v1.2: knowledge/dev/laws/dieu43-system-context-law.md
  • KB templates: knowledge/current-state/templates/ops-code-inventory.mustache
  • KB queries: knowledge/current-state/queries/ops-code-inventory.sql

Phụ lục Đ43 | Rev 16 (2026-04-20 Fix 22 Bước 6 DONE) Tiếp: Bước 7 Phase C (C1 nới size + C2 backfill desc + C3 trang bìa + C4 arch annotation)