KB-45CD

P3D Pack 1 Phase 4 — DRAFT v4 Patch Report

2 min read Revision 1
p3dpack1phase4v4patchreport

P3D Pack 1 Phase 4 — DRAFT v4 Patch Report

Date: 2026-05-11 | Author: Opus 4.7

Changes v3 → v4

# v3 lỗi v4 fix
1 Species INSERT in same prompt Split: vocab = executable, species = read-only candidate only
2 relname IN ('information_unit','unit_version') Species section uses collection_registry WHERE species_code IS NULL — no literal names in executable path
3 'subordinate' literal Removed — species section is read-only, no composition value written
4 ILIKE '%law%' in executable INSERT Moved to read-only candidate report. No fuzzy match in executable path.
5 :'run_marker' without -v Fixed: "${PSQL_BASE[@]}" -v run_marker="$RUN_MARKER" passes variable correctly
6 Rollback via temp table after commit Rollback by description = :'run_marker' — exact run marker, survives session
7 ON CONFLICT without constraint verify GATE 0 explicitly checks unique constraint/index on key. STOP if absent.

Scope reduction

v3 scope v4 scope
Vocab seed + species seed + hash note Vocab seed ONLY (executable). Species = read-only report. Hash = deferred.

Authoritative sources declared

Value Source Why authoritative
section_type delta tac_logical_unit.section_type DISTINCT Production TAC data, governance-controlled
publication_type delta tac_publication.publication_type DISTINCT Production TAC data
IU vocab current dot_config WHERE key LIKE 'vocab.%' IU vocab registry SSOT
law_unit Pack1 EVOLVE design decision (GPT-approved) Contract-required, not discovered

Status

draft_version=v4
scope=vocab_only_executable + species_read_only
no_hardcode_violations=0
run_marker_passed_correctly=true
unique_constraint_verified_before_conflict=true
next_action=GPT_REVIEW_DRAFT_V4

v4 Patch Report | 2026-05-11

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4-implementation-draft-v4-patch-report.md