KB-756F

Kho-tam root doc SSOT rewrite — 00 Index

3 min read Revision 1
laws-newkho-tamreportssot-rewrite2026-06-24

00 — INDEX: Rà soát & viết lại căn cước gốc kho tạm theo SSOT

Ngày: 2026-06-24 Macro: "Rà soát và viết lại quy định kho tạm theo SSOT /laws-new/" (chỉ sửa tài liệu, không triển khai DOT, không tạo kho tạm). Verdict: KHO_TAM_ROOT_DOC_REWRITE_READY_FOR_OWNER_REVIEW

Kết quả

  • Bản v1 (GPT) đã archive nguyên trạng (§0–8 verbatim): knowledge/dev/laws-new/kho-tam/archive/quy-dinh-kho-tam-draft-v1-before-ssot-review.md.
  • Bản DRAFT v2 đã ghi đè tài liệu chính (revision 2): knowledge/dev/laws-new/kho-tam/quy-dinh-kho-tam.md — trạng thái DRAFT v2 — CHỜ OWNER REVIEW.
  • 0 mutation runtime. Toàn bộ khảo sát PG/Directus/VPS là read-only; chỉ ghi tài liệu KB.

Sửa chữa chính (tóm tắt)

  1. Enum tầng sai → đúng: atom/molecule/cell/organ/building/system (v1) → atom/molecule/compound/material/product/building (+meta cho Loài). Xác nhận bằng SSOT (Điều 0-B) + live PG.
  2. Định vị lại: kho tạm = giá trị "kho tạm" của trục Kho trong ma trận Tầng×Loài×Kho×Miền, KHÔNG phải hệ staging thứ hai. Định danh theo toạ độ ô 4 chiều, bỏ --scope C1/C2.
  3. Nối vào substrate có thật: iu_core.iu_staging_record/payload, schema sandbox_taccutter_governance, Điều 41 zones — thay cho lego_sandbox_* tự chế của v1.
  4. Reuse-first DOT: incumbent dot-staging-sandbox-* (đã staged ở C1), bỏ namespace mới dot-lego-sandbox-*.
  5. "No lane before checker" (quick-rules rule 32): thêm checker fail-closed bắt buộc trước lane promote; hoãn promote-plan.
  6. Cô lập theo Điều 41 S0–S5 (R0 record / R1 txn / R2 schema / R3 DB), chọn mức nhẹ nhất.
  7. Xóa fail-safe theo state + bằng cấu trúc (không chỉ tin manifest).
  8. Chống bloat: dry-run chặn theo "6 rủi ro", không promotion-grade stamp chain; C1 bị nhận diện là "staging monster".

Danh mục file báo cáo

00-index.md                       (file này)
01-source-files-read.md           Các file SSOT/report/draft + đối tượng PG đã đọc
02-opus-critique-checklist.md     14 điểm critique — verdict + bằng chứng
03-ssot-conflicts-found.md        Mâu thuẫn v1↔SSOT + mâu thuẫn nội bộ SSOT
04-live-system-readonly-survey.md Khảo sát PG/Directus/VPS (số liệu thật)
05-rewrite-decisions.md           Quyết định viết lại v1→v2
06-new-doc-summary.md             Tóm tắt cấu trúc DRAFT v2
07-hold-items-for-owner.md        H1–H8 chờ owner quyết
08-final-decision.md              Verdict + self-check + final report

Hard locks tuân thủ

KHÔNG: tạo DB/schema/sandbox · dry-run · sửa runtime · sửa official PG/Directus/dot_tools/CAT/contract · triển khai DOT · sửa /opt/incomex/staging/c1/ (chỉ đọc) · Codex R4/R5 · promote · approval/quorum/APR-0415. CHỈ: đọc KB · đọc code/config VPS · query read-only PG/Directus · viết/sửa tài liệu KB · tạo report KB.