GPT Directive to Opus — Patch Pack1 Phase4 DRAFT v7 Exact G3 Restore Patches
GPT Directive to Opus — Patch P3D Pack 1 Phase 4 DRAFT v7: Exact G3 + Restore GPT Patches
Date: 2026-05-11 Issuer: GPT-5.5 Thinking / Incomex Hội đồng AI Receiver: Opus 4.6/4.7 Mode: PATCH DRAFT PROMPT ONLY — no execution
0. Verdict
DRAFT v6 is rejected for dispatch. Patch to DRAFT v7.
1. Required reading
knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-pack1-phase4-draft-v6-not-approved-v7-required-2026-05-11.md
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase4-governance-vocab-species-prep-implementation-prompt-DRAFT.md
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4-implementation-draft-v6-patch-report.md
2. Target outputs
Patch prompt in place to DRAFT v7:
knowledge/dev/laws/dieu44-trien-khai/prompts/p3d-pack1-phase4-governance-vocab-species-prep-implementation-prompt-DRAFT.md
Create patch report:
knowledge/dev/laws/dieu44-trien-khai/reports/p3d-pack1-phase4-implementation-draft-v7-patch-report.md
3. Patch scope
Patch only:
- Section E hash provenance regression.
- Out-of-scope wording regression.
- G3 exact function contract gate.
- Header/status/report wording needed to reflect DRAFT v7.
Do not alter delta logic, insert logic, rollback model, species read-only scope, G7 JSONB logic, or Section C except if needed for wording consistency.
4. Required fixes
4.1 Restore correct hash provenance contract
Replace the incorrect formula:
sha256( normalized_content_of_corresponding_tac_logical_unit )
with the contract preserving original TAC source hash:
unit_version.content_profile.source_hashes.tac_v1 := {
algorithm: "sha256",
input_recipe: "TAC v1 composite source hash as discovered in Phase 3",
value: <original tac_unit_version.content_hash>,
source_table: "tac_unit_version",
source_id: <source tac_unit_version id>
}
Also state: no backfill, no DDL, no migration, and native IU content_hash remains IU body-hash rule.
4.2 Fix out-of-scope agent wording
Replace:
Do not run any agent.
with:
Do not dispatch nested/secondary agents from inside this task; this prompt itself may be executed only by the assigned Agent after GPT/User approval.
4.3 Strengthen G3 to exact planner contract
G3 must verify exact function contract, not just arg-name superset.
Expected return type:
jsonb
Expected identity arguments:
p_canonical_address text, p_title text, p_body text, p_actor text, p_unit_kind text, p_section_type text, p_owner_ref text, p_publication_type text, p_parent_ref uuid
Recommended SQL gate:
SELECT count(*), max(pg_get_function_identity_arguments(p.oid)), max(t.typname)
INTO v_fn_count, v_identity_args, v_rettype
FROM pg_proc p
JOIN pg_namespace n ON n.oid = p.pronamespace
JOIN pg_type t ON t.oid = p.prorettype
WHERE n.nspname='public'
AND p.proname='fn_iu_create_plan'
AND t.typname='jsonb'
AND pg_get_function_identity_arguments(p.oid) = v_expected_identity_args;
IF v_fn_count <> 1 THEN
RAISE EXCEPTION ...
END IF;
This avoids overload ambiguity and ensures G7 calls the same production-compatible function.
5. Final response expected from Opus
Return only:
- DRAFT v7 prompt path.
- Patch report path.
- Top 4 fixes from v6.
- Confirmation no delta/insert/rollback/species logic changed.
- Confirmation GPT/User review is required before dispatch.
6. Status
phase4_draft_v6=rejected
phase4_draft_v7_patch_allowed=true
agent_dispatch_allowed=false
seed_execution_allowed=false
migration_allowed=false