KB-5100

Copy/Paste Agent Prompt — P3D Pack1 Phase3 Hash Planner Birth Alignment Investigation

4 min read Revision 1
copy-pasteagentp3dpack1phase3hashplannerbirthspeciescompositionreadonlymedium-high2026-05-11

Copy/Paste Agent Prompt — P3D Pack 1 Phase 3 Read-Only Hash + Planner + Birth Alignment Investigation

Date: 2026-05-11 Recommended effort: medium-high Mode: Read-only investigation only

Prompt

Run the approved P3D Pack 1 Phase 3 read-only investigation rev3. Do not run the older rev2.

Recommended effort: medium-high.

Reason: this is read-only, but it requires careful function/trigger/source/config inspection and analysis of hash, planner, birth/species/composition alignment. No mutation is allowed.

Read first:

knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-opus-birth-species-composition-concern-before-phase3-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-final-approval-p3d-pack1-phase3-readonly-investigation-prompt-rev3-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase3-readonly-hash-planner-investigation-prompt.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase2-ddl-extend-implementation-report.md

Then execute exactly this approved prompt:

knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase3-readonly-hash-planner-investigation-prompt.md

Goal:

Investigate blockers before any TAC→IU migration:

  1. TAC content_hash algorithm differs from IU content_hash.
  2. fn_iu_create_plan(..., unit_kind='law_unit', ...) resolves to design_doc_section.
  3. Native IU birth may enforce only Tier 0/core invariants while species/composition/DOT enrichment remain incomplete.

Hard boundaries:

  • No DDL.
  • No DML.
  • No INSERT/UPDATE/DELETE.
  • No function/trigger patch.
  • No migration.
  • No Directus mutation.
  • No Qdrant/vector mutation.
  • No DOT-119 execution.
  • No data writes to information_unit or unit_version.
  • SELECT/source inspection only.

Required checks:

  • Verify Phase 2 columns exist and row counts are stable.
  • Inspect TAC/IU hash triggers and hash-related functions.
  • Test TAC hash hypotheses using UTF8, bytea, trim, LF-normalized, and composite body/title/description/profile variants.
  • Confirm IU hash rule.
  • Inspect full fn_iu_create_plan, fn_iu_create, and invariant verifier source.
  • Inspect dot_config, kind/vocab/species/label/edge-related tables.
  • Probe fn_iu_create_plan only for law_unit, design_doc_section, and unknown_kind; do not call fn_iu_create.
  • Inspect identity_profile, parent_or_container_ref, composition_role/species evidence on current IU rows.
  • Inspect universal_edges/contains evidence.
  • Inspect species/entity_labels/birth_registry/entity_enrichment/collection_registry evidence for IU.
  • Inspect birth triggers on IU/TAC tables.

Expected report path:

knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase3-hash-planner-birth-alignment-investigation-report.md

Final response format:

phase3_investigation_status=PASS|PARTIAL|BLOCKED
report_path=knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase3-hash-planner-birth-alignment-investigation-report.md
hash_algorithm_tac=<summary>
hash_algorithm_iu=<summary>
law_unit_status=<summary>
species_at_birth=<summary>
composition_at_birth=<summary>
DOT_enrichment_for_IU=<summary>
no_mutation_performed=true
next_recommended_action=<short>

Return only the final response format plus critical blocker notes. Do not write a long essay.

Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-agent-copy-paste-pack1-phase3-readonly-hash-planner-birth-alignment-2026-05-11.md