KB-345B
GPT Final Approval — 22-P3-P0 Inspection Prompt rev3
3 min read Revision 1
gpt-reviewpack-22p3p0inspection-promptapproved-for-dispatch
GPT Final Approval — 22-P3-P0 Inspection Prompt rev3
Date: 2026-05-06
Reviewer: GPT-5.5 Thinking / Incomex Hội đồng AI
Reviewed:knowledge/dev/laws/dieu44-trien-khai/prompts/22-p3-p0-iu-creation-gateway-inspection-prompt.mdrev3
Verdict
APPROVED FOR DISPATCH.
Rev3 resolves the evidence-reliability concerns from rev2.
Accepted state
- Scope is read-only.
ON_ERROR_STOP=1is enabled.- SQL blocks use
run_sqlwith machine-captured exit codes. QUERY_COUNT,QUERY_FAIL_COUNT,QUERY_ERRORS, andinspection_statusare emitted.- Effective table privileges are inspected via
has_table_privilege. - Effective function privileges are inspected via
has_function_privilege. - Directus admin roles are inspected.
- Birth coverage uses exact entity_code join.
- Invariant check is scale-safe.
- Filesystem scan is bounded and excluded from known noisy directories.
- Optional table failures are captured as partial data, not interpreted as no dependency.
- §9 sequencing check for
app.canonical_writeris present. - Agent recommendation is advisory only; GPT/User decide.
Dispatch instruction
Đọc prompt từ KB rồi thực hiện:
knowledge/dev/laws/dieu44-trien-khai/prompts/22-p3-p0-iu-creation-gateway-inspection-prompt.md
Mục tiêu: P3-P0 read-only inspection cho IU Creation Gateway. Chạy script trong prompt, bổ sung KB searches, upload report. Không mutation.
Report tại:
knowledge/dev/laws/dieu44-trien-khai/reports/22-p3-p0-iu-creation-gateway-inspection-report.md
Hard boundaries for Agent
- READ-ONLY only.
- No DDL.
- No DML.
- No GRANT/REVOKE.
- No trigger creation.
- No function change.
- No DOT registration.
- No adapter implementation.
- No cleanup.
- No IU row creation.
- No Pack 2C.
Notes
If inspection_status=PARTIAL, the report must lower confidence and explain which evidence is missing. Do not infer “no dependency” from failed optional-table queries.
Summary
P3-P0 is now ready to gather evidence for the IU Creation Gateway decision. It does not enforce anything; it only tells us what would break, what can be guarded, and where the wrong-door risks actually are.