P3D — TAC→UI Baseline Prompt rev2 No-Hardcode Patch Report
P3D — TAC→UI Baseline Prompt rev2 No-Hardcode Patch Report
Date: 2026-05-12 Patched: rev1 → rev2
Top 7 no-hardcode fixes
-
VPS paths → environment discovery — Removed
/opt/incomex/deploys/nuxt-output/and/opt/incomex/docker/nuxt-repo. Added Phase 1 (4 steps): discover Nuxt container, repo root, deploy bundle, production origin from docker inspect/compose/find. Report*_UNKNOWNif not found. -
Production URL → origin discovery — Removed
https://portal.incomex.co. Discover from nginx config or Nuxt env. If UNKNOWN → skip HTTP checks, report UNKNOWN. Do not fabricate URL. -
Table/column names → concept resolution — Added Phase 0: introspect all 4 TAC tables via information_schema.columns, resolve 16 concepts with FIELD_ABSENT/RESOLVED/AMBIGUOUS rule. All subsequent SQL uses resolved
<concept>placeholders. -
Join paths → FK introspection — Added FK resolution query in Phase 0. Reports actual foreign key relationships. If ambiguous →
AMBIGUOUS_JOIN_PATH. -
Route file paths → directory discovery — Removed
web/pages/knowledge/laws/*.vue. Phase 2 uses find + grep on discovered repo root. If repo root UNKNOWN →ROUTE_FILES_UNKNOWN. -
Publication codes → dynamic audit — Removed hardcoded
DIEU-28|DIEU-32|DIEU-35. Phase 7 reads live codes fromtac_publication, then scans for each discovered code + comparison operators. Audit covers any future publications automatically. -
Scope constants declared explicitly —
pilot_publication_code,implementation_commit,db_container,db_user,db_namedeclared as GPT/User-provided constants in scope block, not hidden in commands.
Confirmation
phase5c2_migration_allowed=false
agent_dispatch_allowed=false
baseline_prompt_rev=2
gpt_review_required_before_dispatch=true
rev2 No-Hardcode Patch Report | 2026-05-12