KB-3EA3

GPT Final Approval — D28 Generated Table Map Implementation Prompt rev5

5 min read Revision 1
gpt-reviewfinal-approvaldieu28nuxtgenerated-mapimplementationapproved-for-dispatch

GPT Final Approval — D28 Generated Table Map Implementation Prompt rev5

Date: 2026-05-09
Reviewer: GPT-5.5 Thinking / Incomex Hội đồng AI
Reviewed: knowledge/dev/laws/dieu28-trien-khai/prompts/d28-generated-table-map-implementation-prompt.md rev5

Verdict

APPROVED FOR DISPATCH.

Rev5 is now sufficiently safe for Agent execution under Phase 1B scope.

This approval authorizes implementation of the generated table-map mechanism only. It does not authorize deploy, live route smoke, publication of tbl_event_outbox, or resuming P3D notification display.

Accepted rev5 fixes

  • Build log secret scan is boolean-only and does not print matching lines.
  • Build is run once and captured to /tmp/d28-table-map-build.log.
  • Safe redacted tail is allowed only after filtering sensitive keywords.
  • secret_scan_printed_matches=false required in report.
  • Directus URL fallback uses:
DIRECTUS_URL || NUXT_PUBLIC_DIRECTUS_URL
  • Typecheck uses local ./node_modules/.bin/nuxt, not npx.
  • Env runtime uses set -a; source ../.env; set +a.
  • Node runtime env check verifies token + URL are visible to child process.

Dispatch instruction to Opus/Agent

Đọc và thực hiện prompt:

knowledge/dev/laws/dieu28-trien-khai/prompts/d28-generated-table-map-implementation-prompt.md

Scope:
D28 Phase 1B only — implement generated table maps, replace three hardcoded map consumers, verify locally on VPS repo.

Agent target:
claude-go or equivalent agent with VPS SSH + git access.

Hard boundaries:
- NO_DEPLOY=true
- NO_LIVE_ROUTE_SMOKE=true
- NO_DIRECTUS_MUTATION=true
- NO_PG_MUTATION=true
- NO_PUBLISH_EVENT_OUTBOX=true
- NO_CHANGE_TABLE_REGISTRY=true
- NO_SECRET_IN_CODE_OR_LOG=true
- NO_PRINT_ENV_TOKEN_URL=true
- NO_PACKAGE_INSTALL=true
- NO_NPX_AUTO_INSTALL=true

Expected report:
knowledge/dev/laws/dieu28-trien-khai/reports/d28-generated-table-map-implementation-report.md

Upload report even on PASS, PARTIAL, FAIL, or BLOCKED.

Critical execution reminders

Agent must preserve:

no_deploy=true
no_live_route_smoke=true
no_directus_mutation=true
no_pg_mutation=true
no_publish_event_outbox=true
no_table_registry_mutation=true

Agent must not:

  • publish tbl_event_outbox;
  • change Directus permission 1483;
  • change table_registry row 21;
  • add entity_type column;
  • fix tbl_modules_list.collection;
  • touch Families 2–8;
  • create notification-specific UI;
  • run deployment;
  • run live route smoke.

Expected implementation summary

The implementation should create/modify only the expected files:

web/scripts/generate-table-maps.ts
web/generated/table-maps.generated.ts
web/pages/knowledge/registries/[entityType]/index.vue
web/config/detail-sections.ts
web/server/api/discovery/relations.get.ts
web/package.json
web/.gitignore only if needed
.github/workflows/* only if needed

Lockfile changes are not allowed.

Status interpretation

  • phase1b_status=PASS: generated map implemented, local verify/build acceptable, no required blocker remains.
  • phase1b_status=PARTIAL: code committed but CI check/token or other non-fatal automation follow-up remains.
  • phase1b_status=BLOCKED: no unsafe continuation; report blocker.
  • phase1b_status=FAIL: implementation broke build/check and was not acceptable.

If CI token cannot be verified, expected status is likely:

phase1b_status=PARTIAL
follow_up_packs includes D28_CI_TOKEN_SETUP_PACK

Next after Agent report

  1. GPT/User/Opus review implementation report.
  2. If PASS/PARTIAL acceptable, prepare next pack:
    • deploy + live route smoke; or
    • CI token fix; or
    • generated map fix if needed.
  3. Only after deploy/smoke success, resume P3D Phase 1C for tbl_event_outbox publish/display.

Current P3D state to preserve

table_registry_id=21
permission_id=1483
tbl_event_outbox.status=draft
notification_display=paused
primary_goal=information_unit_text_as_code_infrastructure

Final status

prompt_rev5=APPROVED_FOR_DISPATCH
scope=PHASE_1B_GENERATED_MAP_IMPLEMENTATION_NO_DEPLOY
agent_dispatch_allowed=true
deploy_allowed=false
live_route_smoke_allowed=false
p3d_resume_allowed=false
Back to Knowledge Hub knowledge/dev/laws/dieu44-trien-khai/reviews/gpt-final-approval-d28-generated-table-map-implementation-prompt-rev5-2026-05-09.md