KB-72F3

P3D Pack 1 Phase 4B — Legal Alignment Patch Report

5 min read Revision 1
p3dpack1phase4blegal-alignmentpatch-report

P3D Pack 1 Phase 4B — Legal Alignment Patch Report

Date: 2026-05-11 Author: Opus 4.7 Directive: gpt-directive-opus-p3d-pack1-phase4b-legal-alignment-patch-2026-05-11.md


1. Status flags

phase4b_legal_alignment_status=PATCHED
agent_dispatch_allowed=false_until_GPT_USER_REVIEW
old_laws_read=true
compliance_matrix_created=true
phase4b_design_patched=true
phase4b_prompt_patched=true
species_decision_locked=false
composition_decision_locked=false
migration_allowed=false

2. Output paths

Artifact Path Rev
Legal alignment addendum (NEW) knowledge/dev/laws/dieu44-trien-khai/design/p3d-pack1-phase4b-legal-alignment-addendum.md 1
Design (PATCHED) knowledge/dev/laws/dieu44-trien-khai/design/p3d-pack1-phase4b-species-composition-registry-alignment-design.md 5
Discovery prompt (PATCHED) knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase4b-readonly-species-composition-registry-discovery-prompt.md 4
This report knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4b-legal-alignment-patch-report.md 1

3. Laws read

Law Read Key takeaway for Phase 4B
Điều 0-B v3.1 Composition = containment analysis. "Entity chứa gì?" 6 levels.
Điều 0-G v1.0 fn_birth_registry_auto reads species_collection_map. No mapping → NULL species → audit.
Điều 29 v2.0 ONE system. Species bắt buộc cho MỌI collection. Observed → species gom. Governed → species riêng.
QT-001 v3.1 Backfill 5 bước: check → count → execute → verify → inspect. Không ad-hoc.
QT-003R v3.1 Retroactive registration. Precedent: IU/UV → COL-176/COL-177.
QT-005 v3.0 Promotion: species → map → backfill → role update → verify.
Species Taxonomy v1.2 21 species (doc) vs 40 (live). Tree 3 tầng. Species = meta ngoài 6 lớp.
Phase 3 report IU: 0 species map, 12 birth NULL, 0 labels, 0 edges, observed/pilot.
Phase 4 report 14 vocab committed. Planner law_unit=plan_ok.

4. Top 7 law-alignment corrections

  1. Compliance matrix created (addendum §B) — 12 requirements mapped from 6 laws/procedures to current IU state. 4 missing, 3 incomplete, 2 unknown, 2 conditional, 1 done.

  2. Species recommendation → hypothesis — design §E changed from "Opus recommendation: E1 (new species)" to "Hypothesis pending discovery." Cannot lock before: (a) inspecting 40 live species, (b) checking Điều 29 §III (observed → gom species), (c) consulting QT-005 if promoting.

  3. Composition recommendation → hypothesis — design §F changed from "Opus recommendation: F1 (atom)" to "Hypothesis pending containment analysis under Điều 0-B." Must answer: does IU contain other entities? Discovery D8 block added for TAC parent/child nesting, IU parent_or_container_ref state, planner parent handling.

  4. Birth backfill → QT-001 aligned — design §G replaced "simple UPDATE" with explicit 5-step QT-001 procedure (check → count → execute → verify → inspect).

  5. Điều 29 one-system anchor added to design §A — "IU must join existing one-system classification, not create parallel scheme."

  6. Prompt graceful degradation — added §0.1 execution model: each sub-query runs independently via || echo "FAILED" pattern. One column missing doesn't abort entire block. Agent records all failures as evidence gaps.

  7. D8 containment analysis block added to prompt — TAC nesting depth, parent/child structure, IU parent_or_container_ref state, planner parent handling. Directly serves Điều 0-B composition decision.

5. What was NOT changed

  • Discovery prompt SQL content (D0-D7 queries) — unchanged except restructured for independent execution.
  • Design sections B, C, D, H, I, J — content unchanged (already aligned).
  • Hard boundaries — unchanged.
  • No-hardcode contract — unchanged.
  • Phase 4B scope (design + read-only only) — unchanged.

6. Confirmation

GPT + User review required before dispatching discovery prompt. No agent, no seed, no migration.

phase4b_legal_alignment=PATCHED
species_decision_locked=false
composition_decision_locked=false
next_action=GPT_REVIEW_LEGAL_ALIGNMENT_THEN_APPROVE_DISCOVERY_DISPATCH
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4b-legal-alignment-patch-report.md