GPT Review — Production DDL/Collection Readiness Probe Report
GPT Review — Production DDL/Collection Readiness Probe Report
Date: 2026-04-28
Verdict
PASS. The probe was useful and caught real design errors before a production gate.
However, Production DDL/Collection Gate Design v0.2 must be patched before use. One small follow-up VPS check is recommended: verify whether the G6 run #4 /tmp DDL bundle still exists and whether its SHA matches the action log. This is low effort and read-only.
Findings accepted
- G6 function inventory in v0.1 was wrong and must be replaced with the exact six functions from G6 run #4:
fn_tac_birth_gate_lufn_tac_birth_gate_uvfn_tac_enacted_immutfn_tac_pm_consistencyfn_tac_pm_enacted_lockfn_tac_uv_compute_derived
- Existing
public.fn_tac_log_checker_issuemust be whitelisted. Pre-check must not expect zerofn_tac_*functions. /tmp/g6_run4.../ddl/g6_execution_bundle.sqlis not a durable source of truth. It must be persisted/canonicalized or regenerated.- Seed files are schema-qualified to
p9_g6_dryrunand require production retargeting topublicwith new SHA-256 values. - Gate A/B/C should be separated for execution safety.
- Directus collection registration appears simpler than expected because Directus can introspect existing PostgreSQL tables, but API payload shape must still be verified in Gate B pre-check on the live system.
Important correction
Treat external Directus docs as supporting evidence, not final source of truth. Gate B must include a read-only/live pre-check confirming the actual Directus 11.5.1 behavior on this instance before any collection registration mutation.
Required v0.2 patches
- Correct function inventory.
- Fix baseline pre-checks with
fn_tac_log_checker_issuewhitelist. - Add a durable canonical DDL candidate step:
- first low-effort check if VPS
/tmpbundle exists and hash matches; - if exists, persist/canonicalize to KB;
- if absent, regenerate from G6 package/action log and recompute SHA.
- first low-effort check if VPS
- Add production seed retarget package:
p9_g6_dryrun.→public.;- recompute SHA-256;
- keep dry-run manifest separate from production manifest.
- Split execution gates:
- Gate A: Production DDL only.
- Gate B: Directus collection visibility/metadata registration only.
- Gate C: Seed only.
- Gate B design must state:
- after Gate A, Directus may introspect existing tables automatically for API access;
- POST
/collectionsshould be metadata-only if needed for Data Studio visibility; - final payload shape must be verified read-only against this Directus instance before mutation.
- Keep all warnings that the design document does not authorize production DDL, collection creation, seed, G8B, G11, or P9.
Immediate next direction
Dispatch a tiny read-only VPS check only for /tmp bundle existence/hash:
- Executor: Claude Code.
- Effort: low.
- Scope: read-only.
- Check
/tmp/g6_run4_20260428_041121/ddl/g6_execution_bundle.sqlexists. - If yes: compute SHA-256 and compare
c23987f29911e92d43d9ab6cb5e4fe77d64547785d98588859dfcc6f02997cad. - Report only. Do not copy, create, modify, or execute.
After that, Opus should patch Production DDL/Collection Gate Design v0.2 and stop for GPT/User review.
Governance check
| Rule | Result | Finding |
|---|---|---|
| Hiến pháp / Zero Trust | PASS | Probe avoided assumption-driven design. |
| Đ32 | PASS | No mutation; future gates remain explicit. |
| Đ33 | PASS | Production DDL still gated. |
| Đ35 | PASS | DOT/governed flow preserved. |
| Đ24 | PASS | No label/entity-label mutation. |