KB-6720

GPT Directive to Opus — P3D Pack1 Phase5A Semantic Registry Disambiguation

5 min read Revision 1
directiveopusp3dpack1phase5asemantic-registryambiguity2026-05-11

GPT Directive to Opus — P3D Pack 1 Phase 5A Semantic Registry Disambiguation

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

0. Executive decision

Phase 5 dry-run PARTIAL is accepted. Agent did the right thing.

The semantic registry must be patched before rerunning blocked goals.

Open:

P3D_PACK1_PHASE5A_SEMANTIC_REGISTRY_DISAMBIGUATION_PATCH

1. Required reading

knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-pack1-phase5-dryrun-partial-semantic-registry-worked-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase5-tac-to-iu-migration-dryrun-report.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase5-readonly-dryrun-tac-to-iu-migration-prompt.md

2. Mission

Patch the Phase 5 dry-run prompt's semantic registry so it no longer overloads concepts that caused ambiguity.

Do not execute Agent yet. Do not write to DB. Do not decide nesting/species/migration.

3. Required outputs

3.1 Design addendum

Create:

knowledge/dev/laws/dieu44-trien-khai/design/p3d-pack1-phase5a-semantic-registry-disambiguation-addendum.md

Required sections:

A. Why Phase 5 dry-run returned PARTIAL
B. Why this is a success of no-hardcode discipline
C. Ambiguity 1: publication member has both publication reference and logical unit reference
D. Ambiguity 2: unit_version has JSON profile and text provenance
E. Absent sort_order but live render_order
F. Collection key ambiguity and why it is informational now
G. Revised semantic concepts
H. Rerun scope after patch

3.2 Patch dry-run prompt in place

Patch:

knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase5-readonly-dryrun-tac-to-iu-migration-prompt.md

Required concept changes:

  1. Replace overloaded publication_link with:
publication_ref
logical_unit_ref
  1. Add:
publication_render_order
  1. Replace overloaded provenance_profile with:
provenance_json_profile
provenance_text_note
  1. If needed, split collection concepts into:
collection_table_key
collection_display_name
  1. Update G4/G10/G11 to use publication_ref, logical_unit_ref, and publication_render_order.

  2. Update G6 to use provenance_json_profile for structured hash provenance and provenance_text_note only as informational.

  3. Keep deterministic resolution:

0 found → FIELD_ABSENT
1 found → RESOLVED
>1 found → AMBIGUOUS_FIELD

3.3 Patch report

Create:

knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase5a-semantic-registry-disambiguation-patch-report.md

Required flags:

phase5a_status=PATCHED|PARTIAL|BLOCKED
mode=PROMPT_PATCH_ONLY
migration_allowed=false
seed_allowed=false
backfill_allowed=false
nesting_decision_locked=false
semantic_registry_updated=true|false
rerun_required=true
requires_GPT_User_review_before_agent_dispatch=true

4. Rerun target after GPT review

After patch review, Agent should rerun only what was blocked by ambiguity if possible:

  • G4 membership distribution and ordering integrity;
  • G6 provenance projection;
  • G10 pilot metrics;
  • G11 per-publication rollback sizing.

If the prompt architecture makes full G1–G11 rerun safer, state that and justify; it is acceptable because the run is read-only.

5. Hard boundaries

  • No Agent dispatch from Opus.
  • No DB write.
  • No DDL.
  • No migration.
  • No seed.
  • No backfill.
  • No species/composition/nesting decision.
  • No fuzzy selector.
  • No hidden hardcode.

6. Expected Opus response

Return only:

  1. Design addendum path.
  2. Patched prompt path.
  3. Patch report path.
  4. Top 5 semantic registry changes.
  5. Whether GPT/User review is required before agent rerun.

7. Status

phase5_dryrun=PARTIAL_ACCEPTED
phase5a_patch_allowed=true
agent_dispatch_allowed=false
migration_allowed=false
seed_allowed=false
backfill_allowed=false
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/directives/gpt-directive-opus-p3d-pack1-phase5a-semantic-registry-disambiguation-2026-05-11.md