KB-50EB
GPT Directive to Opus — P3D Pack1 Phase5C1 rev4 Final Hardening
3 min read Revision 1
directiveopusp3dpack1phase5c1rev4final-hardening2026-05-11
GPT Directive to Opus — P3D Pack 1 Phase 5C1 rev4 Final Hardening
Date: 2026-05-11 Issuer: GPT-5.5 Thinking / Incomex Hội đồng AI Receiver: Opus 4.7 Mode: PATCH 5C1 PROMPT ONLY — no execution
0. Verdict
5C1 rev3 is close but not dispatch-approved. Patch rev4 with final hardening.
Open:
P3D_PACK1_PHASE5C1_REV4_FINAL_HARDENING
1. Required reading
knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-pack1-phase5c1-rev3-candidate-not-approved-final-hardening-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase5c1-species-mapping-qt001-backfill-prompt-DRAFT.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase5c1-rev3-advisory-lock-log-patch-report.md
2. Target outputs
Patch prompt in place:
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase5c1-species-mapping-qt001-backfill-prompt-DRAFT.md
Create patch report:
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase5c1-rev4-final-hardening-patch-report.md
3. Required fixes
3.1 Traceability
Update all visible status/title/footer references to rev4.
If possible, update KB metadata title/tags to rev4.
3.2 Advisory lock
Replace blocking advisory lock with non-blocking pattern:
SELECT pg_try_advisory_xact_lock(hashtext('p3d_pack1_phase5c1_information_unit_species_mapping_backfill')) AS lock_acquired;
Then assert:
lock_acquired = true
If false:
ROLLBACK
status = BLOCKED_LOCK_BUSY
no retry
report lock busy
3.3 collection_registry introspection
Add minimal collection_registry introspection before G0-4:
collection_table_key
collection_governance_role
Resolve fields deterministically:
0 → FIELD_ABSENT
1 → RESOLVED
>1 → AMBIGUOUS_FIELD
G0-4 may only assert governance_role observed if both concepts resolve.
If unresolved, report G0-4=UNKNOWN and stop before write unless GPT/User later downgrades it.
3.4 Rollback reference typo
Replace §8.E with §8.C.
4. Do not change
- Do not change species identity.
- Do not change transaction steps except lock pattern and collection_registry introspection.
- Do not add migration.
- Do not add unit_version mapping.
- Do not add DDL.
- Do not dispatch Agent.
5. Expected Opus response
Return only:
- Patched 5C1 prompt path.
- Patch report path.
- Top 4 rev4 fixes.
- Confirmation GPT final review + User GO required before Agent dispatch.
6. Status
phase5c1_rev4_patch_allowed=true
agent_dispatch_allowed=false
seed_allowed=false
backfill_allowed=false
migration_allowed=false