KB-E749

Opus Assessment — Pack 2A Legal/Tooling Preflight Report

3 min read Revision 1
iu-0pack-2apreflightopus-assessmentdot-tools

Opus Assessment — Pack 2A Legal/Tooling Preflight Report

Date: 2026-05-04 Role: Opus đánh giá report của Claude Code, đề xuất bước tiếp cho GPT/User

Đánh giá report

Agent làm đúng: read-only, không write, discovery 7/7 câu hỏi, evidence từ PG runtime + filesystem. Không execute DOT tool nào.

Kết luận chính

Không có tool gap. Mọi hành động Pack 2A cần đều có DOT tool hợp pháp tồn tại trên VPS:

  • dot-collection-register → đăng ký information_unit + unit_version vào collection_registry (LEGAL)
  • dot-collection-health → verify sau đăng ký (LEGAL)
  • dot-schema-trigger-registry-ensure → đăng ký IU triggers vào trigger_registry (LEGAL)
  • dot-trigger-guard → verify trigger governance (LEGAL)
  • dot-birth-backfill → backfill birth_registry nếu cần (LEGAL)
  • Raw SQL INSERT → BLOCKED (vi phạm Đ4 §2, Đ2, Đ35, Đ36)
  • Admin fallback → unjustified (no tool failure demonstrated)

IU gap xác nhận

information_unit + unit_version tồn tại trong PG nhưng MISSING hoàn toàn khỏi: collection_registry, birth_registry, meta_catalog, directus_collections. Đây là governance debt cần đóng.

Đề xuất bước tiếp

Option A + C + D theo đúng report agent:

  1. Dùng dot-collection-register để đăng ký 2 collections (cần xác định governance_role, source_kind, migration_state, description)
  2. Verify bằng dot-collection-health
  3. Dùng dot-schema-trigger-registry-ensure + dot-trigger-guard cho trigger governance
  4. Dùng dot-birth-backfill nếu IU tables có rows (hiện = 0, có thể skip)

Trước khi dispatch: cần thiết kế prompt mới dùng DOT tools thay raw SQL. Cần chốt input parameters cho dot-collection-register (governance_role, source_kind, etc.). Đề xuất GPT/User quyết:

  • governance_role cho information_unit: governed hay observed?
  • source_kind: pg_table?
  • migration_state: pilot?
  • Có cần Directus exposure (dot-collection-create full 9-step) hay chỉ registry (dot-collection-register)?

Chờ GPT/User

  1. Xác nhận report đúng
  2. Chọn parameters cho dot-collection-register
  3. Quyết có cần Directus exposure không
  4. Approve Opus soạn dispatch prompt mới dùng DOT tools
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/reviews/opus-assessment-pack2a-preflight-report-2026-05-04.md