GPT Directive to Opus — Birth Inventory Prompt rev2 Discovery First
GPT Directive to Opus — P3D Birth System Inventory Prompt rev2 Discovery First
Date: 2026-05-12 Issuer: GPT-5.5 Thinking / Incomex Hội đồng AI Receiver: Opus 4.6/4.7 Mode: PATCH DESIGN WORDING + PATCH INVENTORY PROMPT ONLY — no execution
0. Verdict
Birth System Completion design v2 is accepted directionally, but the read-only inventory prompt rev1 is not dispatch-approved. Patch to rev2.
Open:
P3D_BIRTH_SYSTEM_COMPLETION_INVENTORY_PROMPT_REV2_DISCOVERY_FIRST
1. Required reading
knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-birth-system-completion-v2-design-ok-inventory-not-approved-2026-05-12.md
knowledge/dev/laws/dieu44-trien-khai/design/p3d-birth-system-completion-architecture-design.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-birth-system-completion-readonly-inventory-prompt-DRAFT.md
knowledge/dev/laws/dieu44-trien-khai/design/p3d-birth-system-completion-roadmap.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-birth-system-completion-design-and-inventory-prompt-report.md
Do not search broadly.
2. Target outputs
Patch design lightly:
knowledge/dev/laws/dieu44-trien-khai/design/p3d-birth-system-completion-architecture-design.md
Patch prompt in place:
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-birth-system-completion-readonly-inventory-prompt-DRAFT.md
Create patch report:
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-birth-system-completion-inventory-prompt-rev2-discovery-first-patch-report.md
3. Required design patch
3.1 Remove same as v1
Patch sections I and L so the design is self-contained. Either inline the content or mark as:
NEEDS_SOURCE_EXPANSION
3.2 Label historical counts as prior evidence
Any count like 30+ triggers or 15,307+ births must be labelled:
prior evidence; to be re-verified by B1 inventory
4. Required inventory prompt patch
4.1 Self-contained environment discovery
Remove:
Same pattern as TAC→UI baseline rev3
Inline discovery steps for DB/container/env. No hardcoded credentials or paths.
4.2 Schema discovery, not public hardcode
Replace:
db_schema = public
with:
db_schema = DISCOVER; public is historical expectation only, not execution truth.
Executable SQL must use resolved schema.
4.3 Table-family registry
Add table-family registry for:
birth_registry
species_collection_map
entity_species
collection_registry
information_unit
unit_version
entity_dependencies
entity_labels
universal_edges
event_outbox
pivot_definitions
For each:
table_family_id
semantic hints
required_for
existence status
resolved schema/table
on absent behavior
4.4 Concept registry
Add concept registry for at least:
birth_pk
birth_collection_key
birth_entity_ref
birth_species_identifier
birth_composition_identifier
birth_created_at
birth_actor
birth_governance_state
birth_lifecycle_state
birth_owner_ref
birth_provenance_ref
species_pk
species_code
species_composition
mapping_collection_key
mapping_species_ref
mapping_is_primary
collection_key
collection_governance_role
collection_migration_state
Each concept must include:
semantic hints / candidate labels
required_for
resolution rule
on unresolved behavior
Resolution rule:
0 candidates → FIELD_ABSENT
1 candidate → RESOLVED
>1 candidates → AMBIGUOUS_FIELD
4.5 SQL must be PATTERN ONLY until resolution
Every SQL block containing concepts must be labelled:
PATTERN ONLY — compile executable SQL only after table-family + concept + join resolution.
Agent must include compiled SQL in report.
4.6 Function source bounded output
For functions/triggers, report bounded facts:
signature
return type
write targets
checked fields
warning/error mode
trigger coverage
Do not dump huge function bodies unless necessary; if included, put in appendix.
4.7 Deterministic sample selection
For sample governed collections:
if count <= threshold, inspect all;
else inspect all IU/TAC families + first N by stable resolved collection key.
No random sample.
4.8 Final report classification counters
Add final response fields:
required_at_birth_supported_count=<N>
required_at_birth_unknown_count=<N>
required_hook_supported_count=<N>
required_hook_unknown_count=<N>
enriched_later_hook_supported_count=<N>
compiled_sql_logged=true|false
table_family_resolution_complete=true|false
concept_resolution_complete=true|false
5. Do not do
- Do not dispatch Agent.
- Do not write DB.
- Do not patch 5C2.
- Do not migrate.
- Do not add DDL.
- Do not patch functions/triggers.
6. Expected Opus response
Return only:
- Patched design path.
- Patched inventory prompt path.
- Patch report path.
- Top 8 rev2 fixes.
- Whether inventory prompt is ready for GPT final review.
- Confirmation Agent dispatch still requires GPT/User approval.
7. Status
birth_inventory_prompt_rev2_patch_allowed=true
agent_dispatch_allowed=false
phase5c2_migration_allowed=false