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
Merge remote-tracking branch 'origin/main' into core/740-claude
Corey Olson02fdc8a8ebc3
diff --cc docs/api.mdindex 4e1409d0,282435fa..ff6c318f--- a/docs/api.md+++ b/docs/api.md@@@ -12,10 -12,10 +12,12 @@@ A successful command returns the fieldBrowser-free check admission is opt-in per machine with `"gate": { "browserFreeChecks": true }` in `~/.pullboard/settings.json`; it defaults to `false`. When enabled, the reviewed test classifier can let checks use a CPU-only gate slot. An absent or false setting keeps every check browser-gated, and uncertain or unsupported test commands remain browser-gated even when enabled. The same setting controls the wider frozen-check classification introduced in 0.8.26.+Classifying test files by launch is opt-in per machine with `"gate": { "browserByLaunch": true }` in `~/.pullboard/settings.json`; it defaults to `false`. When enabled, the test runner gives a test file a browser slot only when its import graph reaches a real Chrome launch: an import of `startChrome`, `launchChromeProcess`, `findChromeExecutable` (or any binding other than the DevTools-only helpers) from `test/chrome-fixture.js`, directly or through a helper, or a process starter beside a Chrome executable reference. Cockpit test files keep the browser slot. Every other file runs without one. In such a file, and in Node children that inherit the guard (the runner adds it to `NODE_OPTIONS`), a `node:child_process` call that would start a browser (Chrome's install paths, `PULLBOARD_CHROME`'s value, a browser executable name, or one of those inside a shell command string) fails at once with `BROWSER_SLOT_REQUIRED` naming the file, before the browser starts; `test/chrome-fixture.js` checks again at its launch point. A launch that bypasses the repository's launch helpers (a child that strips its inherited environment, a non-Node child, or a shell running a script file) is out of scope and is not caught, so new tests must launch Chrome through `test/chrome-fixture.js` or the view fixture. An absent or false setting classifies exactly as before, and the launch guard is inert.+The machine gate pool admits landings first and then everything else in arrival order. A machine opts in to reviews first with `"gate": { "queue": { "reviewsFirst": true } }` in `~/.pullboard/settings.json`: the pool then admits landing runs, then reviews, then submits and item checks, then focused and other runs, first come first served within each class. `gate.queue.agingMinutes` (a positive whole number, default `30`) is how long a waiting run waits before it moves up one class, so no class starves; it is used only while `reviewsFirst` is true. `pullboard settings` prints both values, and `pullboard resources` names the order in effect.+ The memory hold is opt-in per machine with `"gate": { "memoryFloorMB": <n> }` in `~/.pullboard/settings.json`; absent, it is off and the pool admits by slots alone, as before. When set, before admitting a run the machine gate pool reads the machine's memory: on macOS the kernel's memory pressure level and free percentage, on Linux `MemAvailable` and the pressure stall averages in `/proc/pressure/memory`. The whole queue, landings included, waits in place while pressure is critical or free memory is under that many megabytes (`0` leaves only the pressure check). A held run prints one line naming why and the three biggest processes by memory, with pid, size and working directory, and starts once memory recovers. While the floor is set, `pullboard resources` prints the same line and returns it as `memory` in JSON; with no floor it reads no memory and `memory` is `null`. Where memory cannot be read, the pool admits by slots alone and prints one warning that memory is not checked there.+When `add` or `edit` supplies a new nonempty check, it records the item before measuring that check in a background temporary checkout of the captured `main` commit. Use `--wait` to wait for the measurement before returning, or `args.wait: true` for an HTTP add/edit move. The item returned by `add`, `edit`, `show`, and `next --verify` may include `item_check_baseline`: `{command, main, result, request?, seconds?, reason?, warning?}`. `main` is the commit id or `null`, and `result` is `pending`, `green`, `red`, or `unavailable`. A background request carries an opaque `request` identity; an older completion cannot overwrite a newly edited or cleared check.An item's HTTP detail, and each item in the full board state, include `check` and, when recorded, `checkBaseline` with the same observation fields. A green result carries `warning: "CRITERION_PROVES_NOTHING"`; text output names that warning when showing or reserving the item for review, and when filing it with `--wait`. An exact match with the project gate configured at that main commit records green with `reason: "repo gate"` without running it again. A missing main records unavailable with `reason: "no main"` and still files the item. Changing the check replaces this observation; clearing it removes the observation. Captured observations and completions travel through ordered board moves, so replicas store results without executing commands. A completed result awaiting relay delivery stays on the measuring device and is retried by the next normal CLI command.diff --cc src/help.jsindex b32dc9e1,ce71173b..6fecf446--- a/src/help.js+++ b/src/help.js@@@ -23,8 -24,8 +24,9 @@@ Set upullboard resources local resource holders and their FIFO queuespullboard settings [gateSlots <n> | browserSlots <n>] view or set machine capacity (gate default 2; browser default 1)browser-free check slots are opt-in: gate.browserFreeChecks in ~/.pullboard/settings.json (default false)+ a test file takes a browser slot only if it launches Chrome: gate.browserByLaunch (default false)reviews-first queue order is opt-in: gate.queue.reviewsFirst (default false), gate.queue.agingMinutes (default 30)+ memory hold is opt-in: gate.memoryFloorMB in ~/.pullboard/settings.json holds the queue under that many MB free or critical pressure (default off)pullboard runner add <ssh-host> --slots <n> --browser <n> [--node <remote-path>] [--root <remote-path>]register SSH test capacity; no runner sign-in; root defaults to ~/.pullboard-runnerpullboard view [--project] [--port N] [--no-open] every project on this machine in your browser; default http://127.0.0.1:${DEFAULT_VIEW_PORT}diff --cc src/settings.jsindex 2929feb3,b7e67c6e..efd46423--- a/src/settings.js+++ b/src/settings.js@@@ -21,10 -21,10 +21,13 @@@ export function loadMachineSettings()if (value.gate?.browserFreeChecks !== undefined && typeof value.gate.browserFreeChecks !== 'boolean') {throw new Refused('BAD_MACHINE_SETTINGS', `gate.browserFreeChecks in ${file} must be true or false`);}+ if (value.gate?.browserByLaunch !== undefined && typeof value.gate.browserByLaunch !== 'boolean') {+ throw new Refused('BAD_MACHINE_SETTINGS', `gate.browserByLaunch in ${file} must be true or false`);+ }validateGateQueue(value, file);+ if (value.gate?.memoryFloorMB !== undefined && (!Number.isSafeInteger(value.gate.memoryFloorMB) || value.gate.memoryFloorMB < 0)) {+ throw new Refused('BAD_MACHINE_SETTINGS', `gate.memoryFloorMB in ${file} must be a whole number of megabytes, 0 or more; fix it before running Pullboard`);+ }const gateSlots = value.gateSlots ?? DEFAULT_GATE_SLOTS;if (!Number.isSafeInteger(gateSlots) || gateSlots < 1) {throw new Refused('BAD_GATE_SLOTS', `gateSlots in ${file} must be a positive integer; run pullboard settings gateSlots <n>`);@@@ -49,14 -49,15 +52,23 @@@ export function browserFreeChecksEnablereturn loadMachineSettings().gate?.browserFreeChecks === true;}+/**+ * Classifying a test file as browser-bound only when it reaches a real Chrome launch is opt-in per+ * machine; off, any path to the Chrome fixture or an unfollowed process starter takes a browser slot.+ */+export function browserByLaunchEnabled() {+ return loadMachineSettings().gate?.browserByLaunch === true;+}++ /**+ * The free-memory floor, in megabytes, below which the machine gate pool holds its queue, or null+ * when the hold is off. Gate and queue behavior is off by default, the person's rule, so an absent+ * floor keeps today's admission by slots alone.+ */+ export function memoryFloorMB() {+ return loadMachineSettings().gate?.memoryFloorMB ?? null;+ }+/** Atomically replace machine settings without exposing a partial JSON file. */function writeMachineSettings(settings) {const file = machineSettingsFile();