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): cover commented and shorthand CPU-load options [C7]
Corey Olsonde541c63045b
diff --git a/test/cpu-load-tests.test.js b/test/cpu-load-tests.test.jsindex 6df15895..b4a50297 100644--- a/test/cpu-load-tests.test.js+++ b/test/cpu-load-tests.test.js@@ -49,3 +49,21 @@ test('a computed true CPU-load option is not mistaken for a literal false optionassert.equal(remote.executor?.runnerExecution, true);assert.notEqual(remote.executor?.cwd, box.repo);});++test('an inline comment in a CPU-load option keeps the test on its registered runner [C7]', async () => {+ const box = cpuLoadFixture(e2e, { declaration: '{ cpuLoad /* explanation */ : true }' });+ const remote = await box.runGate();+ assert.equal(remote.result.status, 0, remote.result.context);+ assert.equal(box.requestsMade().length, 1, 'valid inline comments do not hide the CPU-load declaration');+ assert.equal(remote.executor?.runnerExecution, true);+ assert.notEqual(remote.executor?.cwd, box.repo);+});++test('a shorthand CPU-load option keeps the test on its registered runner [C7]', async () => {+ const box = cpuLoadFixture(e2e, { declaration: '(() => { const cpuLoad = true; return { cpuLoad }; })()' });+ const remote = await box.runGate();+ assert.equal(remote.result.status, 0, remote.result.context);+ assert.equal(box.requestsMade().length, 1, 'a valid shorthand CPU-load option does not run on the coordinator');+ assert.equal(remote.executor?.runnerExecution, true);+ assert.notEqual(remote.executor?.cwd, box.repo);+});