KB-21D9

Handoff S132 — Methodology + Architecture

4 min read Revision 1
handoffS132dieu31methodologymeasurement-frameworkconstitution-v3.8

Handoff S132 → Phiên tiếp

Ngày: 2026-03-24 | Phiên: S132


ĐANG LÀM GÌ DỞ

  1. CLI đang chạy S132-M2 — Fix contracts + Layer 1 logic. Chờ report.
  2. M2 prompt CÓ THỂ cần bổ sung methodology "2 bài toán" — CLI có thể đã code theo hướng cũ.

VIỆC TIẾP THEO (thứ tự)

# Việc Ai làm Chi tiết
1 Nhận report M2 → phân tích Desktop Đánh giá: contracts có tuân thủ "PG = chân lý"? Pass rate?
2 Nếu M2 chưa đúng methodology → M2-FIX CLI Refactor contracts theo measurement_registry
3 WATCHDOG meta-indicator (M3) CLI Thêm tín hiệu "WATCHDOG alive" nhìn thấy được
4 Implement Universal Measurement Framework CLI (lớn) Tạo 3 bảng PG: law_catalog, measurement_registry, measurement_log + functions
5 Đóng Điều 31 COMPLETE Desktop Verify toàn bộ, cập nhật Hiến pháp version
6 Soạn Điều 32 — Luật Layer Desktop Theo Single Provider: 1 layer_config cho mọi dòng

QUYẾT ĐỊNH ĐÃ BÀN (S132 — KHÔNG HỎI LẠI)

Phương pháp luận Điều 31 (★ quan trọng nhất)

  • 2 bài toán đơn giản: (1) PG kiểm PG → SSOT đúng. (2) PG vs Nuxt → hiển thị khớp.
  • Evidence reproducible: Mỗi issue phải có PG=[X], Nuxt=[Y], Delta.
  • SSOT: search_knowledge("dieu31 methodology 2 bài toán")

Kiến trúc 3 lớp (★)

  • Lớp A: Mỗi luật = 1 collection SSOT
  • Lớp B: 1 measurement_registry phổ quát cho MỌI luật (KHÔNG tạo riêng per law)
  • Lớp C: 17 triggers đếm giữ nguyên, KHÔNG thêm triggers cho measurement mới
  • SSOT: search_knowledge("universal measurement framework")

Hiến pháp bổ sung v3.8

  • Điều 0-S: Single Provider — 1 bộ phận cung cấp, tất cả dùng lại
  • Điều 0-M: Đo lường phổ quát — 1 framework, dùng mãi mãi
  • Điều 0-L: Dùng lại trước khi tạo mới + Assembly Gate Q6
  • SSOT: search_knowledge("constitution amendment S132")

Quy mô thiết kế

  • Mọi thứ tính bằng HÀNG TRĂM/HÀNG NGÀN. PG phải gọn ở scale này.
  • Thêm DATA (rows) = tốt. Thêm INFRASTRUCTURE (triggers/functions) = cẩn thận.

Layer 3,4,5 → Điều 32

  • KHÔNG làm tay. Đưa vào Điều 32 (Luật Layer) — 1 config cho mọi dòng.

Dual-trigger bắt buộc

  • Mọi cron trong Incomex: cron + on-demand. Đã implement cho runner S132-M1.

TDs BLOCKING

TD Mô tả Target
TD-348 Contracts 62.5% → chờ M2 S132-M2
TD-349 Layer 1 logic sai S132-M2
TD-350 WATCHDOG meta-indicator S132-M3

TÀI LIỆU MỚI TẠO S132

Path Nội dung
knowledge/dev/architecture/dieu31-methodology.md Phương pháp luận v2.0 — 2 bài toán
knowledge/dev/architecture/dieu31-amendment-methodology.md Bổ sung §III-B vào Luật Điều 31
knowledge/dev/architecture/dieu31-pg-technical-design.md Universal Measurement Framework v2.0
knowledge/dev/architecture/constitution-amendment-measurement.md Hiến pháp 3 điều mới: 0-S, 0-M, 0-L
knowledge/current-state/reports/s132-m1-dual-trigger-report.md M1 report (CLI tự upload)
knowledge/current-state/dieu31-deployment-roadmap.md Roadmap v2.0