KB-3179

S109 Mission B - Kiem Chung Nguoc Baseline+Changelog

2 min read Revision 1

S109 Mission B Report - Kiem Chung Nguoc

Ngay: 2026-03-10

Assembly Gate

  1. UTable - co san, dung cho crosscheck table
  2. UBadge - co san, dung cho KHOP/LECH badges
  3. Dung nguyen UTable + UBadge, khong code moi
  4. Khong can component moi
  5. Khong can dang ky custom-code-registry

Tac vu hoan thanh

1. baseline_count field

  • DOT script: dot-schema-meta-catalog-add-baseline
  • Field: integer, default 0, added to meta_catalog
  • 17/19 types co baseline > 0

2. dot-registry-baseline-set

  • DOT script ghi baseline_count = live count cho tat ca types
  • Idempotent: skip neu da co baseline (tru --force)
  • 18/19 types set thanh cong (CAT-999 uncategorized = expected fail)

3. dot-registry-crosscheck v3.0.0

  • Phuong phap: Xuoi (live count) vs Nguoc (baseline + created - deleted)
  • Output: bang 19 types x xuoi x nguoc x KHOP/LECH
  • Ket qua: 14/17 KHOP, 3 LECH (self-referential: changelog, issues, dot_tool)

4. UI Section Kiem Chung Nguoc

  • Them vao /knowledge/registries (index.vue)
  • UTable voi columns: Ma, Ten, Xuoi, Baseline, +Tao, -Xoa, Nguoc, Ket qua
  • UBadge: KHOP (green), LECH (red), Chua baseline (gray)

Verification Test: Tao entity moi

  • BEFORE: CAT-011 Checkpoint Types = Xuoi 31, Nguoc 31, KHOP
  • ACTION: Tao CP-TEST-XC (id=32) voi flows disabled
  • AFTER: Xuoi 32, Nguoc 31, LECH +1 (chinh xac!)
  • CLEANUP: Xoa CP-TEST-XC, KHOP lai

Tu Kiem Tra

# Muc tieu DA DAT Bang chung
1 baseline_count >= 15 types YES 17 types co baseline > 0
2 crosscheck xuoi vs nguoc YES 14/17 KHOP, 3 LECH expected
3 Tao entity -> crosscheck thay doi YES 31->32 LECH +1
4 UI section Kiem Chung Nguoc YES curl production confirmed
5 Mu 2 verify production YES deploy + verify done

PR #479 merged, deployed, all checks passed.