KB-4C3F
GPT Final Approval — D28 Generated Table Map Implementation Prompt rev8
5 min read Revision 1
gpt-reviewfinal-approvaldieu28generated-mappath-fhost-node-mjsapproved-for-dispatch
GPT Final Approval — D28 Generated Table Map Implementation Prompt rev8
Date: 2026-05-10
Reviewer: GPT-5.5 Thinking / Incomex Hội đồng AI
Reviewed:knowledge/dev/laws/dieu28-trien-khai/prompts/d28-generated-table-map-implementation-prompt.mdrev8
Verdict
APPROVED FOR DISPATCH.
Rev8 is now sufficiently safe and honest for execution under the current VPS constraints.
This approval authorizes only D28 Phase 1B source-level implementation using Path F:
HOST_NODE_MJS_NO_DEPS
Expected maximum status is:
phase1b_status=PARTIAL
best_possible_status=PARTIAL_UNTIL_BUILD_VERIFY
because build/typecheck and live route smoke are intentionally deferred.
Accepted rev8 fixes
- Generated artifact must not contain Directus URL, token, authorization header, env values, or hostnames derived from env.
- Artifact verification no longer prints content; it uses file existence, byte count, header marker, source literal marker, and leak scan.
- API error handling no longer prints
e.message; it reportsAPI_FAILorHTTP_<status>only. - Status ceiling is explicit: PASS is not possible in Phase 1B rev8.
- Generator supports both host and Nuxt env naming schemes:
NUXT_DIRECTUS_SERVICE_TOKENDIRECTUS_ADMIN_TOKENNUXT_PUBLIC_DIRECTUS_URLDIRECTUS_PUBLIC_URLDIRECTUS_URL
STATIC_EXTRASare framed as legacy exceptions and cannot expand without D28 design review.relations.get.tsimport verification is explicitly deferred to follow-up build pack.- Report includes
best_possible_status=PARTIAL_UNTIL_BUILD_VERIFY.
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 — host Node .mjs generated table-map implementation.
Execution model:
HOST_NODE_MJS_NO_DEPS
Expected outcome:
PARTIAL at best, because build/typecheck/live smoke are deferred.
Agent target:
claude-go or equivalent agent with VPS SSH + git + host Node 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
- NO_LOCKFILE_CHANGE=true
- NO_CONTAINER_RESTART=true
- NO_DOCKER_COMPOSE_RESTART=true
Expected report:
knowledge/dev/laws/dieu28-trien-khai/reports/d28-generated-table-map-implementation-report.md
Upload report even on PARTIAL, FAIL, or BLOCKED.
Important execution reminders
- If host Node is missing or <18, STOP
HOST_NODE_UNAVAILABLE. - If
fetchis unavailable in host Node, STOP. - If
/opt/incomex/docker/.envis missing required keys, STOP. - Do not print token, URL, env value, Authorization header, or response bodies.
- Do not print generated artifact content; verify with byte count, grep marker, and leak scan only.
- If artifact leak scan fails, STOP and do not commit.
- If unexpected files or lockfile changes appear, STOP.
- If generator
--checkfails, fix or STOP; do not commit drift. - If script syntax check fails, STOP.
- Because build/typecheck is not run, final status cannot be PASS.
Expected changed files
Only these files may change:
web/scripts/generate-table-maps.mjs
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
No lockfile changes.
Required follow-up after a successful PARTIAL
If Phase 1B completes as expected, the next pack must be:
D28_DEPLOY_BUILD_VERIFY_PACK
Purpose:
- build/typecheck verification;
- server import verification;
- deploy if approved;
- live route smoke if approved.
Only after that follow-up succeeds may P3D notification display resume.
Do not do in this pack
- Do not deploy.
- Do not run live route smoke.
- Do not publish
tbl_event_outbox. - Do not mutate Directus.
- Do not mutate PG.
- Do not edit table_registry.
- Do not install dependencies.
- Do not restart containers.
- Do not add
entity_typecolumn. - Do not fix
tbl_modules_list.collection.
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_rev8=APPROVED_FOR_DISPATCH
scope=PHASE_1B_HOST_NODE_MJS_NO_DEPS_NO_DEPLOY
agent_dispatch_allowed=true
best_possible_status=PARTIAL_UNTIL_BUILD_VERIFY
deploy_allowed=false
live_route_smoke_allowed=false
p3d_resume_allowed=false