P9 G6 — Precedence & Errata Note
P9 G6 — Precedence & Errata Note
Loại: Precedence + errata note giữa G6 package v0.2 và G6 execution prompt v0.2 Phase: P9 Entry Gate Tier 3, Gate G6 Trạng thái: OFFICIAL — GPT R4 chỉ đạo Phiên: S184 | Ngày: 2026-04-27 Mục đích: Đảm bảo agent đọc cả package + prompt KHÔNG bị xung đột wording.
1. Precedence rule
Cho execution G6, prompt v0.2 SUPERSEDES package v0.2 nếu có xung đột wording về quy trình thực thi.
Lý do: package = design SoT, prompt = execution SoT. Execution governance bám prompt.
2. Errata identified
2.1 PF-01 wording cũ trong package v0.2
Package v0.2 §4.1 PF-01 (wording cũ):
"Schema
p9_g6_dryrunchưa tồn tại" "If 1 → DROP SCHEMA p9_g6_dryrun CASCADE; → re-check"
Vấn đề: Wording "DROP rồi re-check" không an toàn cho execution. Schema residue có thể là dấu hiệu run cũ chưa cleanup → cần investigate trước, không che giấu bug bằng auto-DROP.
Prompt v0.2 §6.1 PF-01 (wording đúng — supersedes):
"STOP — KHÔNG auto-DROP." "Report residue đầy đủ" "Escalate Opus mở cleanup gate riêng trước khi retry G6." "DROP CASCADE chỉ được phép trong rollback của current run (§9), KHÔNG bao giờ trong pre-flight."
Hard exclusion (HE-18): "KHÔNG auto-DROP schema p9_g6_dryrun trong pre-flight"
2.2 Quy tắc áp dụng cho agent
| Tình huống | Quy tắc đúng |
|---|---|
Schema p9_g6_dryrun tồn tại trước execution |
STOP + report residue + escalate (theo prompt v0.2 §6.1) |
Schema p9_g6_dryrun cần cleanup |
Cleanup gate riêng (KHÔNG phải G6 execution) |
| Rollback của current run sau verification | DROP SCHEMA p9_g6_dryrun CASCADE (theo prompt v0.2 §9.1, hợp lệ) |
| Retry G6 sau cleanup gate | Re-run pre-flight từ PF-Pre (clean state) |
3. Other potential ambiguities (none identified)
GPT R3 + R4 review đã confirm không có xung đột khác giữa package v0.2 và prompt v0.2 ngoài PF-01 wording trên.
Nếu agent gặp ambiguity khác trong khi đọc → STOP, escalate Opus, KHÔNG tự diễn giải.
4. References
| Doc | Path | Section |
|---|---|---|
| Package | knowledge/dev/laws/dieu38-trien-khai/P9-G6-dry-run-package.md v0.2 |
§4.1 PF-01 (wording cũ — superseded) |
| Prompt | knowledge/dev/laws/dieu38-trien-khai/P9-G6-execution-prompt.md v0.2 |
§6.1 PF-01 (wording đúng — authoritative cho execution) + HE-18 + F-10 |
| Errata note này | knowledge/dev/laws/dieu38-trien-khai/P9-G6-precedence-errata.md |
(current file) |
| GPT R3 review | knowledge/dev/reports/gpt-review-g6-execution-prompt-r3-2026-04-27.md |
Patch #1 |
| GPT R4 review | knowledge/dev/reports/gpt-review-g6-execution-prompt-r4-2026-04-27.md |
Errata requirement |
5. PASS criteria cho errata này
| # | Criterion | Status |
|---|---|---|
| 1 | Precedence rule explicit (prompt > package cho execution) | ✅ §1 |
| 2 | PF-01 errata documented | ✅ §2.1 |
| 3 | Quy tắc áp dụng rõ cho 4 tình huống | ✅ §2.2 |
| 4 | References đầy đủ | ✅ §4 |
| 5 | Linked từ prompt KB + manifest | ✅ (manifest §errata_reference + prompt §1) |
P9 G6 Precedence Errata | OFFICIAL | S184 | 2026-04-27 | Opus 4.7 Ban hành theo chỉ đạo GPT R4 finalization block.