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(settings): expose browser slot capacity [C7]
Corey Olson94661c0e5518
diff --git a/src/help.js b/src/help.jsindex ed35e087..7d541e91 100644--- a/src/help.js+++ b/src/help.js@@ -19,7 +19,7 @@ Set uppullboard whoami | lanes | status who you are, the lanes, the board at a glancepullboard takeover rebind this checkout when the same agent starts a new sessionpullboard resources local resource holders and their FIFO queues- pullboard settings [gateSlots <n>] view or set this machine's gate slots (default 2)+ pullboard settings [gateSlots <n> | browserSlots <n>] view or set machine capacity (gate default 2; browser default 1)pullboard view [--project] [--port N] [--no-open] every project on this machine in your browser; default http://127.0.0.1:${DEFAULT_VIEW_PORT}items, shouts, doctrine, agents and activity; --port 0 chooses a free port--project limits this view to the registered project for this repositorydiff --git a/test/machine.test.js b/test/machine.test.jsindex cf2ca418..34cf542e 100644--- a/test/machine.test.js+++ b/test/machine.test.js@@ -29,6 +29,7 @@ const NOT_MOVES = {ONE_COORDINATOR: 'registering who is asking, before any move',BAD_MACHINE_SETTINGS: 'machine-wide settings checked before a command runs',BAD_GATE_SLOTS: 'machine-wide gate capacity checked before a command runs',+ BAD_BROWSER_SLOTS: 'machine-wide browser capacity checked before a command runs',GATE_SLOT_LEASE_REQUIRED: 'a nested runner must receive its live machine gate lease before starting',GATE_SLOT_MARKER_INVALID: 'an inherited machine gate capability is validated before nested work starts',GATE_SLOT_TOKEN_REQUIRED: 'an inherited machine gate capability needs its exact lease token',diff --git a/test/resources.test.js b/test/resources.test.jsindex db759c86..83c85afc 100644--- a/test/resources.test.js+++ b/test/resources.test.js@@ -329,6 +329,13 @@ test('browserSlots admits that many browser runs and no more [C7]', async () =>const configured = configureBrowserSlots(box, 2);assert.equal(configured.status, 0, configured.stderr);assert.equal(JSON.parse(configured.stdout).settings.browserSlots, 2);+ const readBack = runFixtureChild(process.execPath, [BIN, 'settings', '--json'], {+ cwd: box.first, env: box.env, encoding: 'utf8',+ });+ assert.equal(readBack.status, 0, readBack.stderr);+ assert.equal(JSON.parse(readBack.stdout).settings.browserSlots, 2, 'the machine setting persists for other processes');+ assert.equal(privateList(box).find(({ name }) => name === 'browser').capacity, 2,+ 'the shared browser resource row has the configured capacity before workers start');const invalid = configureBrowserSlots(box, 3);assert.equal(invalid.status, 1);assert.equal(JSON.parse(invalid.stdout).error.code, 'BAD_BROWSER_SLOTS');@@ -337,7 +344,13 @@ test('browserSlots admits that many browser runs and no more [C7]', async () =>const first = poolWorker(box, { agent: 'browser-one', browser: true });assert.equal((await acquired(first)).acquired, 'browser-one');const second = poolWorker(box, { agent: 'browser-two', browser: true });- assert.equal((await acquired(second)).acquired, 'browser-two', 'the configured second browser lease starts while the first is held');+ const secondStart = await event(second);+ if (!secondStart.acquired) {+ const gate = privateList(box).find(({ name }) => name === 'gate');+ const browser = privateList(box).find(({ name }) => name === 'browser');+ assert.fail(`the configured second browser lease queued: ${JSON.stringify({ state: secondStart.queued, gate, browser })}`);+ }+ assert.equal(secondStart.acquired, 'browser-two', 'the configured second browser lease starts while the first is held');const third = poolWorker(box, { agent: 'browser-three', browser: true });assert.equal((await event(third)).queued.position, 1, 'the next browser run waits for a configured slot');const browser = privateList(box).find(({ name }) => name === 'browser');