Autonomous development for real products. Governed agents build from specs you approve, follow the rules you set, and nothing merges until another agent proves it. Your decisions, judgement and taste are the bar that work must clear. Declare your vision and let agents build it.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(test): bind workers with spaced executable paths [C7,V4]
Corey Olson6f8a7c5b3eb7
diff --git a/bin/run-tests.js b/bin/run-tests.jsindex 7345301b..b4762581 100644--- a/bin/run-tests.js+++ b/bin/run-tests.js@@ -414,7 +414,9 @@ function landingWorkerCommandMatchesFile(processInfo, file) {const executable = command.match(/^(?:"([^"]+)"|'([^']+)'|(\S+))/u);if (!executable) return false;const executablePath = executable[1] ?? executable[2] ?? executable[3];- if (basename(executablePath) !== basename(process.execPath)) return false;+ // ps prints an executable containing spaces without shell quotes; match its complete known path first.+ const exactExecutable = command.startsWith(process.execPath) && /^(?:\s|$)/u.test(command.slice(process.execPath.length));+ if (!exactExecutable && basename(executablePath) !== basename(process.execPath)) return false;let offset = command.indexOf(file);while (offset !== -1) {const before = offset === 0 || /[\s"']/u.test(command[offset - 1]);@@ -430,7 +432,10 @@ function landingWorkerCommandMatchesFile(processInfo, file) {function landingChildCommandMatchesSpawn(processInfo, receipt) {const command = processInfo.command.trimEnd();const executable = command.match(/^(?:"([^"]+)"|'([^']+)'|(\S+))/u);- if (!executable || basename(executable[1] ?? executable[2] ?? executable[3]) !== basename(receipt.spawnFile ?? '')) return false;+ const spawnFile = receipt.spawnFile;+ const exactExecutable = typeof spawnFile === 'string' && spawnFile.length > 0+ && command.startsWith(spawnFile) && /^(?:\s|$)/u.test(command.slice(spawnFile.length));+ if (!exactExecutable && (!executable || basename(executable[1] ?? executable[2] ?? executable[3]) !== basename(spawnFile ?? ''))) return false;return receipt.spawnArgs.slice(1).every(argument => {if (typeof argument !== 'string' || !argument) return false;let offset = command.indexOf(argument);