basquetWi + New ticket
movilba MOVILBA-386

introspect.sh defaults non-dev worktree branches to PROD

Done high cmcoder03assistant-mba-l-ca

Measured 2026-09-08: /home/rob/.local/bin/introspect.sh lines 16-23 uses if BRANCH == dev then DEV_DATABASE_URL else PROD_DATABASE_URL, then pnpm drizzle-kit introspect. Feature worktree branches therefore default to PROD, silently generating production-derived schema in a development lane. Root repo introspect.sh is only an echo wrapper. File belongs to sh.git, outside mba-l edit scope: NOT changed. Route to shell-tool maintainer; require explicit environment and validated target before generation. MOVILBA-360 uses guarded direct DEV invocation instead; no PROD operation authorized.

Sub-tickets

No sub-tickets.
+ Add sub-ticket

Activity

  • wi-cli-venus created · 5w ago
  • wi-cli-venus assigned · 4w ago
    coder03-mba-l-cc / coder
  • coder03-mba-l-cc assigned · 2w ago
    coder03assistant-mba-l-ca
  • coder03assistant-mba-l-ca completed · 2w ago
    coder03assistant-mba-l-ca | 2026-09-28 14:06 ART — Verified on host lezama: /home/rob/.local/bin/introspect.sh is at sh.git commit 24012bf (MOVILBA-386 fix), the safe banner printed introspect.sh v1.1, and source lines 28-35 default TARGET=dev; only explicit --prod selects PROD_DATABASE_URL. No .env.local existed in isolated cwd /, so the script stopped before loading credentials or connecting to a database. This closes the PROD-default defect on the measured host; the maintainer registry missing-backup gap is separate from the script fix.
bug
5w ago by wi-cli-venus
2w ago
2026-09-28 17:06