Skip to content

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.

Merge remote-tracking branch 'origin/main' into HEAD

Corey Olson82a92c848544
diff --cc docs/formats.md
index 8ce32cd8,c3797a6c..08417b90
--- a/docs/formats.md
+++ b/docs/formats.md
@@@ -357,8 -359,8 +359,10 @@@ Migration preserves event rows and add
`pullboard.json` may set `affectedTests` to a command prefix that runs selected test files. When it is absent, `submit` runs the configured `gate` in full. When present and the import graph can safely select a subset, Pullboard appends the selected file paths to this prefix; an uncertain selection still runs the full gate. For example, this repository opts in with `"affectedTests": "node bin/run-tests.js"`. Projects using another test framework can leave the setting out and keep their configured gate, such as `npm test`.
+`pullboard.json` may set `worktrees` to `"inside"` or `"beside"`. Fresh `pullboard init` writes `"inside"`, placing new agent worktrees under `.claude/worktrees/<lane>-N`; it also adds `.claude/worktrees/` to `.gitignore` and prints guidance for dot-scanner ignore rules. An omitted setting defaults to `"beside"` to preserve existing sibling paths (`../<repo>-<lane>-N`). `pullboard resume` and `pullboard help worktree` show the active location from the primary checkout's config.
+
+ A project with `"submitGate": "landing"` can also set `"submitInvariants": ["test/guard.test.js"]` to run a small set of project guard files on every submit, even when uncertain selection defers the full suite. The list defaults to empty and requires the project's explicit `affectedTests` runner; no framework or test files are added by default. Submit reads the list and its runner from accepted main, so a candidate cannot remove or replace its required files. Named affected tests and invariants run once per file, with their paths and results in the receipt. Missing invariant files refuse the submit, and subset passes never stamp the full gate. The coordinator still runs the configured full suite at landing.
+
<!-- pass-rule:start -->
The `pass` event is emitted by `passDecision` only for the coordinator; another agent receives `COORDINATOR_ONLY`. Its event actor is the coordinator. The person receives the passed decision, while the event table records who performed the pass.
<!-- pass-rule:end -->
diff --cc src/cli.js
index 47520905,062d6c58..5b929e16
--- a/src/cli.js
+++ b/src/cli.js
@@@ -4,8 -4,8 +4,8 @@@
*/
import { createHash, randomUUID } from 'node:crypto';
import { spawn, spawnSync } from 'node:child_process';
-import { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
+import { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, realpathSync, renameSync, writeFileSync } from 'node:fs';
- import { loadavg } from 'node:os';
+ import { hostname, loadavg } from 'node:os';
import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path';
import { performance } from 'node:perf_hooks';
import { fileURLToPath, pathToFileURL } from 'node:url';
@@@ -63,9 -66,9 +66,9 @@@ import { parseProblems, sweepItems } fr
import { renderSpecView } from './view.js';
import { tour } from './tour.js';
import { commandOutput, refusalDocument } from './json.js';
-import { forgetProject, listApiProjects, registerProjectAndLink } from './projects.js';
+import { forgetProject, listApiProjects, registerProjectAndLink, registeredProjectRootsSnapshot } from './projects.js';
import { milestoneRoadmap } from './roadmap.js';
- import { listResources } from './resources.js';
+ import { listResources, runnerResourceStatus } from './resources.js';
import { citedTestFiles, rowEvidence, rowStage } from './evidence.js';
import { exportView, serveView } from './serve.js';
import { forgetView, rememberView, runningView } from './view-session.js';
diff --cc src/config.js
index c2d2ff8d,b5948861..9c633cf2
--- a/src/config.js
+++ b/src/config.js
@@@ -41,9 -41,9 +41,10 @@@ export function defaults()
spec: 'SPEC.md',
practice: DOCTRINE_FILE,
gate: '',
+ submitInvariants: [],
lease: '2h',
reviewLease: '30m',
+ worktrees: 'beside',
verify: { policy: 'any', family: 'off', reviewRatio: 3 },
agents: { names: 'suffix' },
check: { install: '', timeout: '5m' },
diff --cc src/init.js
index c5a522ba,7c22c502..27cc9b9c
--- a/src/init.js
+++ b/src/init.js
@@@ -196,9 -257,9 +257,10 @@@ export function initRepo({ info, openBo
throw new Refused('NOT_MAIN', 'run init in the main checkout; worktrees join a lane instead');
}
const { root } = info;
+ const worktreeMode = existsSync(join(root, CONFIG_FILE)) ? loadConfig(root).worktrees : 'inside';
const doctrine = existsSync(join(root, CONFIG_FILE)) ? loadConfig(root).practice : doctrineFile(root);
const gate = detectGate(root);
+ const configured = configuredGate(root);
const written = [];
/** Record only paths setup actually writes; unrelated files never enter its staging command. */
const onWrite = (path) => written.push(path);