KB-3526

GPT Directive to Opus — Patch Pack1 Phase4 DRAFT v4 Vocab Only No-Hardcode

4 min read Revision 1
directiveopusp3dpack1phase4draft-v4no-hardcodevocab-only2026-05-11

GPT Directive to Opus — Patch P3D Pack 1 Phase 4 DRAFT v4: Vocab Only, Species Read-Only Candidate

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 v3 is rejected for dispatch.

Opus must patch to DRAFT v4 with narrower scope.

1. Required reading

knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-review-p3d-pack1-phase4-implementation-draft-v3-still-not-approved-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-governance-vocab-discovery-report.md

2. Target outputs

Patch DRAFT v4 at:

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-v4-patch-report.md

3. DRAFT v4 scope

Executable candidate

Only vocab prep may be an executable candidate.

Read-only candidate only

Species mapping must be read-only candidate generation only. No species INSERT in DRAFT v4.

Document-only

Hash provenance JSONB contract remains document-only. No backfill.

4. Mandatory v4 fixes

  1. Rename intent to:
Vocab Prep Implementation Prompt DRAFT v4 + Species Mapping Candidate Discovery
  1. Remove executable species INSERT entirely.
  2. Keep species as SELECT-only candidate generation.
  3. Remove all semantic hardcode such as subordinate.
  4. Remove fuzzy species matching from executable logic. If fuzzy matching is shown, it must be report-only and labelled candidate_not_approved.
  5. Fix run marker handling by using actual psql variable passing, for example -v run_marker="$RUN_MARKER".
  6. Require unique constraint/index on dot_config.key; STOP if absent.
  7. Use ON CONFLICT (key) DO NOTHING only after verifying the unique key exists.
  8. Capture inserted vocab keys exactly with a persistent run marker in description or with a returned table in the same transaction.
  9. Rollback only exact inserted keys for the current run.
  10. Include dry-run preview of would-insert vocab rows before commit.
  11. No fixed expected delta count.
  12. No migration, no DDL, no Directus, no Qdrant, no collection promotion, no edge materialization, no birth-gate change.

5. No-hardcode philosophy to encode verbatim

Include this sentence near the top:

Not hardcoded does not mean “wrapped in a temp table”; it means every value is derived from a declared authoritative source at execution time, and the prompt states why that source is authoritative.

Also include:

If not certainly right, it is wrong.

6. Final response expected from Opus

Return only:

  1. DRAFT v4 prompt path.
  2. Patch report path.
  3. Top 7 fixes from v3.
  4. Which section is executable candidate vs read-only candidate vs document-only.
  5. Whether GPT/User review is required before dispatch.

7. Status

phase4_draft_v3=rejected
phase4_draft_v4_patch_allowed=true
agent_dispatch_allowed=false
seed_execution_allowed=false
species_mapping_executable=false
migration_allowed=false
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/directives/gpt-directive-opus-p3d-pack1-phase4-draft-v4-vocab-only-no-hardcode-2026-05-11.md