Copy/Paste Agent Prompt — P3D Pack1 Phase4 Governance/Vocab Discovery
Copy/Paste Agent Prompt — P3D Pack 1 Phase 4 Read-Only Governance/Vocab Discovery
Date: 2026-05-11 Recommended effort: medium-high Mode: Read-only discovery only
Prompt
Run the approved P3D Pack 1 Phase 4 read-only governance/vocab discovery prompt rev2. Do not run the older rev1.
Recommended effort: medium-high.
Reason: this is read-only, but it requires careful schema introspection and no-hardcode live discovery across vocab, registry, species, birth, edge, and hierarchy state. No mutation is allowed.
Read first:
knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-final-approval-p3d-pack1-phase4-readonly-discovery-prompt-rev2-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-pack1-phase4-readiness-opus-deliverables-no-hardcode-patch-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase4-readonly-governance-vocab-discovery-prompt.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase3-hash-planner-birth-alignment-investigation-report.md
Then execute exactly this approved prompt:
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase4-readonly-governance-vocab-discovery-prompt.md
Goal:
Discover live governance/vocab/species/composition/hierarchy state before any Phase 4 seed or Phase 5 migration. All counts are snapshots only. Do not use memory counts or hardcoded species/layer/table/DOT assumptions.
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 seed execution.
- SELECT/source inspection only.
Required checks:
- Confirm read-only session.
- Introspect table existence and columns before deeper queries.
- Discover live TAC section/publication values and current IU dot_config vocab.
- Compute vocab delta candidates from live query results only.
- Inspect species_collection_map, entity_species, collection_registry, birth_registry, entity_labels.
- Discover TAC parent-child hierarchy snapshot and orphan indicators.
- Introspect universal_edges schema before querying edge state.
- Check whether there is a real IU/UV target field for TAC source hash/provenance.
- Mark every count as a live snapshot, not a constant.
Expected report path:
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4-governance-vocab-discovery-report.md
Final response format:
phase4_discovery_status=PASS|PARTIAL|BLOCKED
report_path=knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4-governance-vocab-discovery-report.md
vocab_delta_summary=<short>
species_mapping_current_state=<short>
collection_governance_current_state=<short>
hash_provenance_target=<short>
no_mutation_performed=true
next_recommended_action=<short>
Return only the final response format plus critical blocker notes. Do not write a long essay.