GeezerVison is showing github.com — id(worker-poc): isolate-runner.mjs entry-point check is a raw template-literal compare — symlinked standalone invocation silently emits nothing at exit 0 (the spelling #5099's closure grep misses) · Issue #6358 · developing-today/code
id(worker-poc): isolate-runner.mjs entry-point check is a raw template-literal compare — symlinked standalone invocation silently emits nothing at exit 0 (the spelling #5099's closure grep misses) #6358DescriptionWhat
pkgs/id/worker-poc/compare/isolate-runner.mjs:86 guards its standalone mode with a raw template-literal entry-point check — a spelling no other file in the repo uses:
if (import.meta.url === `file://${process.argv[1]}`) {
for (const line of await runIsolateSequences()) console.log(JSON.stringify(line));
}
process.argv[1] is the path exactly as invoked; import.meta.url is the resolved module URL. Through any symlink — a symlinked file, or a path through a symlinked directory (the fleet's own ~/code -> ~/git/code alias) — they never match, the standalone body never runs, and Node exits 0 with no output. The same spelling also breaks for any path needing percent-encoding (e.g. a space in the checkout path), where import.meta.url carries %20 and the template string carries the raw space.
This is the #2083/#2350 bug class, in the one spelling the class's own closure greps missed: open #5099's acceptance grep (pathToFileURL\(process\.argv\[1\]\)|resolve\(process\.argv\[1\]\)) does not match the template-literal form, and #6343 (meta-exporter) / #5099 (opencode-usage-export) cover the two pathToFileURL instances only. A repo-wide scan this run confirms this is the only remaining raw compare: every other entry point (bin/proxy-supervise.mjs:892, bin/record.mjs:243, bin/codedb-bridge.mjs:321, pm-stack/supabase-export/supabase-quota-export.mjs:403, pm-stack/cloudflare-export/cloudflare-quota-export.mjs:649, pm-stack/opencode-claimant/install.mjs:135, …) uses the guarded realpathSync form.
Verified this run (laptop primary @50237a7deb, HEAD == origin/main)
Probe: ~/git/fleet/probe-isolate-entry/ on the laptop, real runner, no credentials needed (checked-in example guests):
| Invocation |
Result |
node pkgs/id/worker-poc/compare/isolate-runner.mjs |
exit 0, 13 JSON step lines on stdout (roc-counter 4 + tic-tac-toe 9) |
node <file-symlink to isolate-runner.mjs> |
exit 0, 0 lines, no output — standalone body never ran |
node <symlinked-dir>/compare/isolate-runner.mjs |
exit 0, 0 lines, no output |
The direct run proves the runner works; both symlinked runs prove the guard silently swallows it.
Why it matters
isolate-runner.mjs is the isolate half of the #2271 journal-equality harness: standalone, it emits the per-step JSON lines that compare/compare.mjs diffs against the native reference (pkgs/id/tests/worker_poc_reference.rs, 13 lines for the same sequences). The import path (compare.mjs imports runIsolateSequences()) is unaffected — but anyone running the runner standalone through a symlinked checkout or link (the documented fleet layout has ~/code as a symlink alias) gets an empty evidence file at exit 0: node <link> > isolate.jsonl succeeds and produces nothing, so the isolate side looks like it emitted zero steps rather than failing. Silent success with no output is the failure shape this bug class keeps being filed for; this instance survived two closure passes only because its spelling differs.
Acceptance criteria
Dedup
Activityadded kind/bugSomething isn't working (prefixed form of the classic bug label) task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests app/idPackage/app: id (pkgs/ or apps/ in this repo) on Nov 5, 2026developing-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|