KB-1005

S160-FIX Regression Report — Restore Registries

3 min read Revision 1
reports160fixregressionregistries

S160-FIX Regression Report — Restore Registries

Session: S160-FIX | Date: 2026-03-22 | Status: CODE DEPLOYED, AWAITING VISUAL VERIFY PR: #566 (fix/s160-restore-registries) — merged, deployed Regression from: PR #565 (feat/s160-composition-column)


Vấn đề (PR #565 Regression)

PR #565 thay thế cột delta +/- bằng "Thành phần" thay vì THÊM. Cụ thể:

  1. Xóa delta_plusdelta_minus khỏi columns array
  2. Xóa cell templates cho delta rendering
  3. Birth registry record_count = ALL births thay vì governed only (CAT-SPE sai số)

Fix (PR #566)

  1. Thêm lại delta_plus (+) và delta_minus (-) vào columns array
  2. Thêm lại cell templates cho delta rendering
  3. Restore governed filter cho birth_registry (CAT-SPE row count chỉ governed)
  4. Giữ cột "Thành phần" (thêm đúng cách, không thay thế)

Headers bảng sau fix

STT | Code | Tên | Lớp | Số lượng | Thành phần | + | - | Mồ côi | Xác minh

Verify (agent ghi — chờ orchestrator xác nhận visual)

  • Nuxt homepage: 200 OK
  • /api/registry/composition: 200 OK (totalSpecies=33, byCollection=138)
  • /api/registry/health: 200 OK
  • /api/registry/unmanaged: 200 OK
  • Deployed code: delta_plus present in SSR chunks
  • Deployed code: thanh_phan present in SSR chunks

Dòng 7-10 (code analysis — chưa visual verify):

  • Dòng 7 CAT-SPE: Code có speciesRow với _link=/knowledge/registries/species, record_count=governed births
  • Dòng 8 CAT-ORP: Code có orphanRow từ /api/registry/health
  • Dòng 9 CAT-PHA: Code có phantomRow từ /api/registry/health
  • Dòng 10 CAT-UNM: Code có unmanagedRow từ /api/registry/unmanaged

Species Matrix:

  • /api/registry/species-matrix: 33 species (all modes, no governed filter)
  • Link badge tại header area: "Species Matrix" → /knowledge/registries/species

⚠️ ORCHESTRATOR SẼ VERIFY VISUAL TRÊN BROWSER. AGENT KHÔNG TỰ BÁO PASS.

Tự Kiểm Tra

# Câu hỏi Kết quả
1 Đã đọc SSOT?
2 Dòng 7-10 code khôi phục? ✅ (code present)
3 Cột "Thành phần" THÊM (không thay thế)?
4 Cột +/- giữ nguyên? ✅ (restored)
5 Species Matrix link + 33 species? ✅ (API verified)
6 CI GREEN? ✅ All checks pass
7 Deploy SUCCESS? ✅ VPS deployed
8 Visual verify? ⏳ Chờ orchestrator