Điều 43 DRAFT — SUPERSEDED by v1.1 FINAL
ĐIỀU 43 DRAFT — SUPERSEDED
⛔ SUPERSEDED 2026-04-16. Đ43 v1.1 FINAL đã BAN HÀNH tại file chính thức. File hiện hành:
knowledge/dev/laws/dieu43-system-context-law.mdrev 1 (v1.1 FINAL) File này (draft): giữ để trace Council R1 + R2 patches, không dùng làm luật.
TRACE COUNCIL
| Round | Agent | Score | Verdict |
|---|---|---|---|
| R1 | Gemini | 8.2/10 | APPROVE WITH CHANGES — 1 CRITICAL + 2 HIGH |
| R1 | GPT | 7.8/10 | APPROVE WITH CHANGES — 2 CRITICAL + 4 HIGH |
| R2 | Gemini | 9.5/10 | APPROVE FINAL — không còn blocker |
| R2 | GPT | 8.9/10 | APPROVE WITH MINOR — 4 patches inline (A/B/C/D) |
14 PATCHES R1 APPLIED (v1.0 → v1.1)
P1 downgrade NT14 khỏi HP → clause Đ43 §3.1 A/B/C
P2 bảng lookup context_trigger_sources FK
P3 bảng queue context_pack_requests + dedupe_bucket
P4 manifest bỏ UNIQUE(checksum), thêm publish_status+kb_mirror_status+published_at
P5 sections CHECK enum section_name
P6 pg_try_advisory_lock(43,1) thay pg_advisory_lock(43001)
P7 checksum skip nếu không đổi
P8 Bước 7 2-phase publish + compensating
P9 chốt birth_registry, bỏ pivot_count()
P10 git_commit fallback chain
P11 trigger_type='cron' + coverage_status='complete' + secondary trong extra_metadata
P12 fn_log_issue 5 params
P13 H5 2 ngưỡng 15KB/20KB
P14 on-deploy chỉ fire sau Đ41 Bước 6.5 is_known_good
4 PATCHES R2 APPLIED (v1.1 DRAFT → v1.1 FINAL)
Patch A — context_pack_requests.status giữ enum 5 values, reason vào detail.reason
Patch B — Tách logical_checksum_sha256 (strip header volatile, compare skip) + file_checksum_sha256 (verify drift H3)
Patch C — Bước 7g repair clause FS-live/DB-staging + publish_step column + H9 check
Patch D — Trigger wording NEW.key LIKE theo schema thực tế kb_documents(key TEXT PK)
TÀI LIỆU TRACE
- Báo cáo Council R1:
knowledge/current-state/reports/council-review-dieu43-v1-{gemini,gpt}-round1.md - Báo cáo Council R2:
knowledge/current-state/reports/council-review-dieu43-v1-{gemini,gpt}-round2.md - Luật hiện hành:
knowledge/dev/laws/dieu43-system-context-law.mdrev 1 v1.1 FINAL
SUPERSEDED 2026-04-16 | Draft trace only | Luật hiện hành ở file khác