KB-65C3

IU-0 Pack 1 CP3 Smoke Test Report

3 min read Revision 1
iu0pack1checkpointsmokedieu44

CP3 — Smoke Test Report

# Test Result Evidence
T1 missing title PASS ERROR: Birth gate L1: P-id1 title required
T2 empty title PASS ERROR: Birth gate L1: P-id1 title required
T3 missing canonical PASS ERROR: Birth gate L1: U2 canonical_address required
T4 missing pub WARNING PASS WARNING ... PILOT-ONLY: P-pub1/P-pub2 missing + INSERT 0 1 + ROLLBACK
T5 full transaction PASS INSERT iu + INSERT uv + UPDATE + COMMIT, no errors
T6 edit version (seq=2) PASS INSERT 0 1
T7 soft-delete + undo PASS UPDATE 1 (set deleted_at), UPDATE 1 (clear)
T8 duplicate canonical PASS ERROR: duplicate key value violates unique constraint "information_unit_canonical_address_key" DETAIL: Key (canonical_address)=(test.t5) already exists
T9 commit no anchors PASS ERROR: Birth gate L2: U5 content_anchor_ref required at COMMIT
T10 wrong unit's version PASS ERROR: Birth gate L2: version_anchor_ref must point to version of this unit
T11 anchor mismatch PASS ERROR: Birth gate L2: content_anchor_ref must match version_anchor_ref
T12 fake unit_kind PASS ERROR: Birth gate L1: unit_kind "FAKE_KIND" not in vocab
T13 fake section_type PASS ERROR: Birth gate L1: section_type "FAKE_SECTION" not in vocab
T14 positive deferred PASS full happy path COMMIT, verify: `test.t14

Test data còn trên DB (CHƯA cleanup theo chỉ thị)

 canonical_address | soft_deleted
-------------------+--------------
 test.t14          | f
 test.t5           | f
(2 rows)

Chi tiết:

  • test.t5: 1 row information_unit + 2 rows unit_version (seq=1 hash_t5, seq=2 hash_t5_v2)
  • test.t14: 1 row information_unit + 1 row unit_version (seq=1 sha256_placeholder)

Các canonical khác (t1, t2, t3, t9, t10, t11, t12, t13) đã được rollback hoặc không tạo do birth gate block — không residue.

Quan sát phụ

  • Birth gate L1 luôn fire trước UNIQUE constraint check, nên T8 vẫn thấy 2 WARNING PILOT trước ERROR duplicate (do DUPLICATE detect ở constraint stage sau khi trigger BEFORE INSERT pass).
  • Birth gate L2 fire AT COMMIT đúng spec — T9/T10/T11 đều block tại COMMIT, transaction bị abort.

Overall: PASS — toàn bộ 14 smoke tests

DỪNG. Chờ Opus phê duyệt cleanup + final report.