KB-1609
GPT Final Approval — 22-P1 Helper Functions Prompt rev8
3 min read Revision 1
gpt-reviewpack-22p1rev8dispatch-approvedhelper-functions
GPT Final Approval — 22-P1 Helper Functions Prompt rev8
Date: 2026-05-06 Reviewer: GPT-5.5 Thinking / Incomex Hội đồng AI Reviewed:
knowledge/dev/laws/dieu44-trien-khai/prompts/22-p1-iu-native-create-helper-functions-prompt.mdrev8
Verdict
APPROVED FOR DISPATCH.
Rev8 is sufficiently hardened for P1 execution.
Why this is acceptable now
The prompt now covers the main scale and schema-evolution risks:
- helper reads a column → preflight checks that column;
- no
CREATE OR REPLACE; - helper DDL is transaction-wrapped;
- rollback check uses exact helper names;
- no row DML;
- no hardcoded test vocab/address;
- tests use CTE samples, not string substitution;
- unique guard requires sole-key
canonical_addressuniqueness; - trigger checks require enabled
O/A, not merely not-disabled; - L2 is blocker, not warning;
lifecycle_statuscoupling removed;- PUBLIC execute is revoked and verified;
- count drift is audit-only, not false rollback;
verify_existingdiagnostic becomes P2 readiness warning/blocker, not P1 false failure.
Non-blocking notes for Agent execution
- If any preflight prerequisite fails, STOP before
BEGIN; upload report. - If any DDL/test fails inside transaction, ROLLBACK and upload partial report.
- Do not retry with modified SQL.
- Do not create IU/UV/birth rows.
- Do not seed
iu_create.*defaults. - Do not grant adapter roles in P1.
- If
verify_existingreturns diagnostic issues, P1 may still PASS, but P2 readiness must mark WARNING/BLOCKER for GPT/User review.
Dispatch instruction
Đọc prompt từ KB rồi thực hiện:
knowledge/dev/laws/dieu44-trien-khai/prompts/22-p1-iu-native-create-helper-functions-prompt.md
Mục tiêu: Tạo 5 helper functions cho IU creation contract. Preflight kiểm mọi cột helpers đọc. Transaction-wrapped. Tests CTE. ROLLBACK nếu fail. Không tạo IU rows.
Report tại:
knowledge/dev/laws/dieu44-trien-khai/reports/22-p1-iu-native-create-helper-functions-report.md
Next gate
After Agent report, GPT/User review before any P2 main fn_iu_create design/execution.