KB-38AC

GPT Directive to Opus — Phase5C2 rev4 Self-Contained Operational Prompt

5 min read Revision 1
directiveopusp3dpack1phase5c2rev4self-containedoperational2026-05-12

GPT Directive to Opus — P3D Pack 1 Phase 5C2 rev4 Self-Contained Operational Prompt

Date: 2026-05-12 Issuer: GPT-5.5 Thinking / Incomex Hội đồng AI Receiver: Opus 4.6/4.7 Mode: PATCH 5C2 PROMPT ONLY — no execution

0. Verdict

5C2 rev3 is directionally correct but not dispatch-approved. It is missing self-contained operational detail.

Open:

P3D_PACK1_PHASE5C2_REV4_SELF_CONTAINED_OPERATIONAL_PROMPT

1. Required reading

knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-pack1-phase5c2-rev3-not-approved-missing-operational-detail-2026-05-12.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase5c2-dieu35-hybrid-pilot-migration-prompt-DRAFT.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase5c2-rev3-parallel-iu-pilot-patch-report.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-tac-ui-baseline-readonly-check-report.md

Do not search broadly.

2. Target outputs

Patch prompt in place:

knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase5c2-dieu35-hybrid-pilot-migration-prompt-DRAFT.md

Create patch report:

knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase5c2-rev4-self-contained-operational-prompt-patch-report.md

3. Required fixes

3.1 Make prompt self-contained

Remove all references like:

same ~30 concepts as rev2
same as rev2
unchanged from previous revision

Inline all required concept registry, table-family registry, resolution rules, and on-fail behavior in rev4.

3.2 Full concept registry

Add a complete concept table with:

concept_id
table_family
semantic hints / candidate labels
required_for
resolution rule
on unresolved behavior

Every concept used in executable sections must be present in this table.

3.3 Table-family registry

Add table families and live existence checks:

source_TAC_publication_family
source_TAC_member_family
source_TAC_logical_unit_family
source_TAC_unit_version_family
target_information_unit_family
target_unit_version_family
birth_registry_family
dot_config_family
species_collection_map_family

3.4 fn_iu_create result-shape discovery

Define exact acceptable discovery methods:

inspect function signature/return type
if jsonb: discover keys from planner/test result
if row/record: map output columns
if unknown: ABORT
if SAVEPOINT test used: verify 0 residual IU/UV/birth rows after rollback

3.5 Logging path policy

Either:

  • declare /opt/incomex/logs as accepted operational logging convention from 5C1/5C2B, with fallback discovery; or
  • make logging directory discovery-first.

Do not leave ambiguous.

3.6 Compiled SQL/function call preview

Before executing writes, Agent must log/report:

compiled_source_query
compiled_fn_iu_create_call_template
compiled_identity_profile_patch_template
compiled_unit_version_provenance_patch_template
compiled_verification_queries

These must be produced after concept/function resolution.

3.7 Render fidelity source of truth

Patch wording:

TAC→UI baseline report = reference snapshot
live TAC query during migration run = source of truth
RF compares IU against live TAC query
RF also reports drift vs baseline snapshot separately

3.8 Final response fields

Add:

execution_log_path=<path>
rollback_keys_path=<path>
compiled_sql_logged=true|false
function_shape_resolved=true|false

4. Do not change

  • Do not execute migration.
  • Do not dispatch Agent.
  • Do not write DB.
  • Do not add DDL.
  • Do not patch functions/triggers.
  • Do not touch TAC/UI/Nuxt.
  • Do not change authority value.
  • Do not change D3a strategy.

5. Expected Opus response

Return only:

  1. Patched prompt path.
  2. Patch report path.
  3. Top 8 rev4 fixes.
  4. Confirmation GPT final review + User GO required before Agent dispatch.

6. Status

phase5c2_rev4_patch_allowed=true
phase5c2_migration_allowed=false
agent_dispatch_allowed=false
ui_cutover_allowed=false
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/directives/gpt-directive-opus-p3d-pack1-phase5c2-rev4-self-contained-operational-prompt-2026-05-12.md