Opus finding
backfill-benchmark-flag.ts entrypoint guard breaks when compiled or invoked via tsx wrapper
- apps/web/scripts/backfill-benchmark-flag.ts:201-210
The guard checks for the .ts suffix in argv[1]. If the script is ever transpiled (.js), bundled, or invoked through a wrapper that resolves to a different basename (e.g. a symlink or pnpm/tsx shim with .mjs), main() will not run and the script will silently exit 0 with no work done. The doc-comment claims `pnpm exec tsx scripts/backfill-benchmark-flag.ts` is the canonical invocation, which works today, but the guard is fragile and any tooling change is a silent no-op rather than a loud failure.
Recommendation
Use `import.meta.url === pathToFileURL(process.argv[1]).href` or compare resolved real paths, and log a warning if the guard fails so a misinvocation is not silent.