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
test(gate): preserve runner placement for computed CPU-load options [C7]
Corey Olson9a6e8c3e3900
diff --git a/src/module-imports.js b/src/module-imports.jsindex 445bf028..f666e104 100644--- a/src/module-imports.js+++ b/src/module-imports.js@@ -170,7 +170,8 @@ export function cpuLoadOptionsIn(sources) {let found = !parsed[index].compiles;for (const match of occurrences[index]) {const value = pastGap(source, match.index + match[0].length);- if (!parsed[next].compiles && !/^false\b/u.test(value)) found = true;+ const disabled = /^false\b/u.test(value) && /^[,}]/u.test(pastGap(value, 5));+ if (!parsed[next].compiles && !disabled) found = true;next += 1;}return found;diff --git a/test/cpu-load-tests.test.js b/test/cpu-load-tests.test.jsindex db853b32..b7afcb39 100644--- a/test/cpu-load-tests.test.js+++ b/test/cpu-load-tests.test.js@@ -39,3 +39,12 @@ test('a false CPU-load option and textual examples keep ordinary local-first admassert.equal(local.executor?.liveLease, true);assert.equal(local.executor?.runnerExecution, false);});++test('a computed true CPU-load option is not mistaken for a literal false option [C7]', async () => {+ const box = cpuLoadFixture(e2e, { declaration: '{ cpuLoad: false || true }' });+ const remote = await box.runGate();+ assert.equal(remote.result.status, 0, remote.result.context);+ assert.equal(box.requestsMade().length, 1);+ assert.equal(remote.executor?.runnerExecution, true);+ assert.notEqual(remote.executor?.cwd, box.repo);+});