KB-2FD7 rev 4

Handoff S167 → S167B Stress-Test

2 min read Revision 4
handoffS167dieu31auto-expansionstress-test

Handoff S167D → S167E

Ngày: 2026-03-26. OR: v4.89. Phiên mới: search_knowledge("handoff S167") → bắt tay ngay.

ĐANG LÀM GÌ DỞ

S167D DONE. Chaos-test 2/21 detect. 7 bugs, 7 chaos data sót trên production. Cần S167E fix.

TRẠNG THÁI PRODUCTION (QUAN TRỌNG!)

  • 7 data test CÒN SÓT: CHAOS-TEST-P2 (system_issues), CHAOS-TEST-P3 (v_registry_counts), CHAOS-TEST-O2 (dot_tools), CHAOS-TEST-O4 (entity_dependencies), FAKE-EDGE-* (universal_edges), CHAOS-TEST-E3a/b (entity_dependencies)
  • system_issues = 2 open (1 watchdog + 1 fake CHAOS-TEST-P2)
  • v_registry_counts = 26 rows (23 real + 3 chaos)

VIỆC TIẾP THEO

  1. S167E (Claude CLI): Cleanup 7 chaos data + Fix 4 blockers:
    • TD-375: v_registry_counts guard (convert to VIEW or add trigger guard)
    • TD-376: system_issues authenticity guard
    • TD-377: Runner deployment fix (copy scripts into container OR install node on host)
    • TD-378: Scanner live COUNT(*) instead of metadata
    • TD-379~381: Birth Gate block mode, cleanup functions, lifecycle visibility
  2. S167F: Re-run chaos test → target >15/21
  3. S168: Điều 31+ (after S167F PASS)

QUYẾT ĐỊNH ĐÃ BÀN

  • Chaos test = cách duy nhất biết thật. 2/21 = Điều 31 chưa sẵn sàng Điều 31+.
  • 4 blockers PHẢI fix trước Điều 31+.
  • Codex hoàn thành tốt — không cần chạy thêm. Claude CLI fix.
  • Codex khởi động: codex-webtest (alias). Claude CLI: claude-go.
  • PG container đúng: postgres (KHÔNG phải workflow-postgres).
  • SSH: ssh contabo. PG: docker exec postgres psql -U directus -d directus.

CONTEXT SESSION DÀI — NÊN CHUYỂN PHIÊN

Phiên này đã qua S166→S167D (5 sub-sessions). Context >80%. Khuyến nghị mở phiên mới.