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.

feat(lanes): pullboard lane add, and init proposes lanes [I1,I2]

Corey Olson7dcc9292df55
diff --git a/src/cli.js b/src/cli.js
index 9ccc8f9c..16643e25 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -31,13 +31,13 @@ import {
pushesTrunk,
unwiredHookProblems,
} from './hooks.js';
-import { detectGate, initRepo } from './init.js';
+import { detectGate, initRepo, proposeLanes } from './init.js';
import { lifecycleMarkdown } from './machine.js';
import { HELP, VERSION } from './help.js';
import { defaultViewPort } from './view-port.js';
export { HELP, VERSION };
import { productLine, productProblems, productSummaries } from './products.js';
-import { isLane, laneNames, laneOf, outOfLane } from './lanes.js';
+import { addLane, isLane, laneNames, laneOf, outOfLane } from './lanes.js';
import { Refused } from './refused.js';
import { commitCitations, committedIds } from './history.js';
import { promptFor, skillProblems, updateSkills } from './skills.js';
@@ -286,6 +286,7 @@ const OPTIONS = {
commit: { type: 'string' },
ref: { type: 'string' },
supersedes: { type: 'string' },
+ owns: { type: 'string' },
help: { type: 'boolean', short: 'h' },
version: { type: 'boolean', short: 'v' },
};
@@ -564,7 +565,7 @@ async function bindCheckoutSession(io, positionals, values) {
}
const writes = ['init', 'join', 'worktree', 'hooks', 'hook', 'skills', 'add', 'edit', 'fact', 'escalate', 'run', 'sweep',
'next', 'claim', 'hold', 'release', 'submit', 'done', 'verify', 'merged', 'land', 'withdraw', 'refreeze', 'reopen', 'shout', 'answer', 'pass', 'import', 'milestone', 'takeover', 'forget'];
- if (!writes.includes(command) && !(command === 'settings' && first) && !(command === 'spec' && first === 'apply') && !(command === 'relay' && ['on', 'off'].includes(first))) return;
+ if (!writes.includes(command) && !(command === 'lane' && first === 'add') && !(command === 'settings' && first) && !(command === 'spec' && first === 'apply') && !(command === 'relay' && ['on', 'off'].includes(first))) return;
if (command === 'answer' && values.as === 'person') return;
const digest = agentSessionDigest();
if (!digest) {
@@ -1573,7 +1574,7 @@ async function serveHere(io, values) {
* @param {{ first?: string }} args
* @returns {Record<string, () => number | Promise<number>>}
*/
-function setupCommands(io, { first, values }) {
+function setupCommands(io, { first, second, rest = [], values }) {
return {
init: async () => {
const info = repoInfo(io.cwd);
@@ -1603,7 +1604,7 @@ function setupCommands(io, { first, values }) {
if (linked && model !== undefined) await withBoard(ctx, (board) => ordered(ctx, board, 'register', [
{ lane: COORDINATOR, path: info.root, model },
]));
- io.result?.({ root: info.root, notes });
+ io.result?.({ root: info.root, notes, proposedLanes: proposeLanes(info.root) });
const staging = notes.at(-1)?.startsWith('git add -f -- ') ? notes.at(-1) : null;
(staging ? notes.slice(0, -1) : notes).forEach((note) => io.say(note));
if (await registerProjectAndLink(info.root, new Date(), loadConfig(info.root), io)) io.say('registered this project on this machine, so pullboard view lists it');
@@ -1613,6 +1614,18 @@ function setupCommands(io, { first, values }) {
if (staging) io.say(`To commit Pullboard's files: ${staging}`);
return 0;
},
+ lane: () => {
+ if (first !== 'add' || !second || rest.length || values.owns === undefined) {
+ throw new Refused('USAGE', 'add a lane with: pullboard lane add <name> --owns <path>[,<path>]');
+ }
+ const info = repoInfo(io.cwd);
+ if (!info.isMain) throw new Refused('NOT_MAIN', 'lanes are the coordinator\'s to declare; run pullboard lane add in the main checkout, or shout the coordinator to add it');
+ const added = addLane(info.root, second, values.owns.split(','));
+ io.result?.(added);
+ io.say(`added lane ${added.lane}: owns ${added.owns.join(' ')}`);
+ io.say(`Next: commit ${CONFIG_FILE} so new worktrees can join it, then: pullboard worktree ${added.lane} --model "<model name>"`);
+ return 0;
+ },
hooks: () => {
const notes = installHooks(repoInfo(io.cwd).root);
io.result?.({ notes });
diff --git a/src/help.js b/src/help.js
index d2485849..0bd0b449 100644
--- a/src/help.js
+++ b/src/help.js
@@ -17,6 +17,8 @@ Set up
pullboard join coordinator --model <name> declare the main checkout's coordinator model
pullboard.json agents.names: suffix (default) or prefix
pullboard whoami | lanes | status who you are, the lanes, the board at a glance
+ pullboard lane add <name> --owns <path>[,<path>] add a lane that owns those folders to pullboard.json
+ refuses a lane name or a path that is already owned, naming the owner
pullboard takeover rebind this checkout when the same agent starts a new session
pullboard resources local resource holders and their FIFO queues
pullboard settings [gateSlots <n> | browserSlots <n>] view or set machine capacity (gate default 2; browser default 1)
@@ -169,7 +171,7 @@ Reject reasons: TEST_FAILURE, BEHAVIOR_MISMATCH, INSUFFICIENT_EVIDENCE, STALE_HE
--json prints one versioned document for every command; refusals include their code and next step.`;
const HELP_NAMES = [
- 'tour', 'init', 'worktree', 'join', 'takeover', 'whoami', 'lanes', 'status', 'resources', 'settings', 'view', 'view export',
+ 'tour', 'init', 'worktree', 'join', 'takeover', 'whoami', 'lanes', 'lane', 'lane add', 'status', 'resources', 'settings', 'view', 'view export',
'serve', 'relay', 'relay recover', 'resume', 'hooks', 'add', 'edit', 'escalate', 'run', 'list', 'doctor', 'skills', 'show', 'next', 'land',
'check', 'claim', 'release', 'submit', 'done', 'verify', 'fact', 'shout', 'answer', 'pass', 'decisions', 'inbox', 'export', 'import',
'sweep', 'merged', 'withdraw', 'refreeze', 'reopen', 'hold', 'stats', 'ledger', 'log', 'spec', 'spec check', 'spec view',
@@ -194,6 +196,7 @@ const HELP_EXAMPLES = {
verify: 'pullboard verify 12 accept --note "removed the fix; the test failed"',
answer: 'pullboard answer 12 "done"', pass: 'pullboard pass 12 "please decide"',
status: 'pullboard status', view: 'pullboard view', stats: 'pullboard stats --since 2026-10-08', log: 'pullboard log 12', ledger: 'pullboard ledger',
+ 'lane add': 'pullboard lane add web --owns apps/web/', lane: 'pullboard lane add web --owns apps/web/',
roadmap: 'pullboard roadmap', milestone: 'pullboard milestone add "0.7.0" --items 12,13',
edit: 'pullboard edit 12 --brief "Add the upload page"', release: 'pullboard release 12',
land: 'pullboard land --max 4',
@@ -210,6 +213,7 @@ const HELP_EXAMPLES = {
const HELP_ALIASES = {
whoami: { usage: 'pullboard whoami', source: 'whoami' },
lanes: { usage: 'pullboard lanes', source: 'whoami' },
+ lane: { usage: 'pullboard lane add <name> --owns <path>[,<path>]', source: 'lane add' },
status: { usage: 'pullboard status', source: 'whoami' },
done: { usage: 'pullboard done <id>', source: 'submit <id>' },
inbox: { usage: 'pullboard inbox', source: null },
diff --git a/src/init.js b/src/init.js
index 8a5b1567..04273ff7 100644
--- a/src/init.js
+++ b/src/init.js
@@ -4,7 +4,7 @@
* the main checkout as the coordinator. It runs again safely and never overwrites a file it did not
* write.
*/
-import { appendFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
+import { appendFileSync, existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from 'node:fs';
import { basename, join } from 'node:path';
import { CONFIG_FILE, COORDINATOR, doctrineFile, loadConfig } from './config.js';
import { loadDoctrine } from './doctrine.js';
@@ -38,6 +38,83 @@ export function detectGate(root) {
return '';
}
+/** Folders a lane proposal never hands out: dependencies and build output. */
+const NOT_LANE_FOLDERS = new Set(['node_modules', 'dist', 'build', 'out', 'target', 'vendor', 'coverage']);
+
+/**
+ * The visible folders directly inside `dir`, sorted, without dependencies or build output.
+ *
+ * @param {string} dir
+ * @returns {string[]}
+ */
+function visibleFolders(dir) {
+ if (!existsSync(dir)) return [];
+ return readdirSync(dir, { withFileTypes: true })
+ .filter((entry) => entry.isDirectory() && !entry.name.startsWith('.') && !NOT_LANE_FOLDERS.has(entry.name))
+ .map((entry) => entry.name).sort();
+}
+
+/**
+ * A lane name made from a folder name: lowercase letters, digits and dashes, starting with a letter.
+ *
+ * @param {string} folder
+ * @returns {string}
+ */
+function laneNameFor(folder) {
+ const name = folder.toLowerCase().replace(/[^a-z0-9-]+/gu, '-').replace(/^[^a-z]+/u, '').replace(/-+$/u, '').slice(0, 31).replace(/-+$/u, '');
+ return name || 'lane';
+}
+
+/**
+ * The lanes init proposes from the repo's layout (I1, I2): one lane per top-level package for a
+ * packages/* or apps/* layout, and one app lane owning the top-level folders otherwise. Nothing is
+ * proposed once any lane owns a folder. Proposals are never written: the person accepts each one
+ * by running its `pullboard lane add` command.
+ *
+ * @param {string} root
+ * @param {any} [config] - The repo's config; read from root when omitted.
+ * @returns {{ name: string, owns: string[] }[]}
+ */
+export function proposeLanes(root, config = loadConfig(root)) {
+ if (Object.values(config.lanes).some((lane) => lane.owns.length)) return [];
+ const taken = new Set([COORDINATOR, 'all', ...Object.keys(config.lanes)]);
+ const proposals = [];
+ for (const parent of ['packages', 'apps']) {
+ for (const folder of visibleFolders(join(root, parent))) {
+ let name = laneNameFor(folder);
+ if (taken.has(name)) name = laneNameFor(`${parent}-${folder}`);
+ for (let n = 2; taken.has(name); n += 1) name = `${laneNameFor(`${parent}-${folder}`).slice(0, 28)}-${n}`;
+ taken.add(name);
+ proposals.push({ name, owns: [`${parent}/${folder}/`] });
+ }
+ }
+ if (proposals.length) return proposals;
+ const folders = visibleFolders(root);
+ return [{ name: taken.has('app') ? 'app-1' : 'app', owns: folders.length ? folders.map((folder) => `${folder}/`) : ['app/'] }];
+}
+
+/**
+ * Quote one word for a POSIX shell when it needs quoting.
+ *
+ * @param {string} word
+ * @returns {string}
+ */
+const shellWord = (word) => (/^[A-Za-z0-9_./,@%+=:-]+$/u.test(word) ? word : `'${word.replaceAll("'", "'\\''")}'`);
+
+/**
+ * The init lines that show proposed lanes and the one command that accepts them.
+ *
+ * @param {{ name: string, owns: string[] }[]} proposals
+ * @returns {string[]}
+ */
+export function laneProposalNotes(proposals) {
+ if (!proposals.length) return [];
+ return [
+ `proposed lanes, not written until the person accepts: ${proposals.map((lane) => `${lane.name} owns ${lane.owns.join(' ')}`).join('; ')}`,
+ `ask the person; to accept, run: ${proposals.map((lane) => `pullboard lane add ${shellWord(lane.name)} --owns ${shellWord(lane.owns.join(','))}`).join(' && ')}`,
+ ];
+}
+
/**
* The fixers to start with (C5): prettier, when the repo already depends on it, on every file it
* understands. Only fast, deterministic fixers belong at commit time; slow ones stay in the gate.
@@ -218,6 +295,7 @@ export function initRepo({ info, openBoardHere, register, closeBoard, model }) {
closeBoard(board);
}
notes.push('opened the board in the git dir; this checkout is the coordinator');
+ notes.push(...laneProposalNotes(proposeLanes(root)));
if (!configuredGate(root)) {
notes.push(gate
? 'no gate yet: set "gate" in pullboard.json to the command that proves the build'
diff --git a/src/lanes.js b/src/lanes.js
index a88599a3..d7be9387 100644
--- a/src/lanes.js
+++ b/src/lanes.js
@@ -1,8 +1,11 @@
/**
* Lanes (L1, L2): which folders each lane owns. The board, `pullboard lanes` and the pre-commit
- * lane check all read the same declaration in pullboard.json.
+ * lane check all read the same declaration in pullboard.json, and `pullboard lane add` writes it.
*/
-import { COORDINATOR } from './config.js';
+import { existsSync, readFileSync, statSync, writeFileSync } from 'node:fs';
+import { join } from 'node:path';
+import { CONFIG_FILE, COORDINATOR, configFromSource, loadConfig } from './config.js';
+import { Refused } from './refused.js';
/**
* Every lane name, the coordinator first.
@@ -63,3 +66,61 @@ export function outOfLane(config, lane, paths) {
.filter((path) => !isShared(path) && laneOf(config, path) !== lane)
.map((path) => `${path} (${laneOf(config, path)}'s)`);
}
+
+/**
+ * One path as a lane prefix: forward slashes, no leading `./`, and a trailing slash on a folder
+ * that exists, so `packages/web` cannot also claim `packages/webby`.
+ *
+ * @param {string} root
+ * @param {string} path
+ * @returns {string}
+ */
+export function lanePath(root, path) {
+ let prefix = String(path).trim().replaceAll('\\', '/').replace(/^(?:\.\/)+/u, '');
+ if (!prefix || prefix.startsWith('/') || prefix.split('/').includes('..')) {
+ throw new Refused('BAD_LANE_PATH', `"${path}" is not a folder inside this repo; give a path relative to the repo root, like packages/web/`);
+ }
+ if (!prefix.endsWith('/') && existsSync(join(root, prefix)) && statSync(join(root, prefix)).isDirectory()) prefix += '/';
+ return prefix;
+}
+
+/**
+ * `pullboard lane add` (L1, I1): declare a new lane in pullboard.json. It refuses a name that is
+ * already a lane and a path some lane already owns, naming the owner, because two lanes owning
+ * one folder would leave the pre-commit check deciding by accident. Every other setting in the
+ * file stays as it was.
+ *
+ * @param {string} root
+ * @param {string} name
+ * @param {string[]} paths
+ * @returns {{ lane: string, owns: string[] }}
+ */
+export function addLane(root, name, paths) {
+ const config = loadConfig(root);
+ if (name === COORDINATOR || name === 'all') {
+ throw new Refused('LANE_TAKEN', `"${name}" belongs to the coordinator; pick another lane name, like web or api`);
+ }
+ if (Object.hasOwn(config.lanes, name)) {
+ const owns = config.lanes[name].owns.join(' ') || 'no folders';
+ throw new Refused('LANE_TAKEN', `lane "${name}" already exists and owns ${owns}; pick another name, or see: pullboard lanes`);
+ }
+ const owns = [...new Set(paths.map((path) => lanePath(root, path)))];
+ if (!owns.length) throw new Refused('USAGE', 'give the folders the lane owns: pullboard lane add <name> --owns <path>[,<path>]');
+ for (const path of owns) {
+ const owner = laneOf(config, path);
+ if (owner !== COORDINATOR) {
+ throw new Refused('PATH_OWNED', `${path} is already owned by lane "${owner}"; pick a folder no lane owns (see: pullboard lanes), or move it out of ${owner} in ${CONFIG_FILE} first`);
+ }
+ }
+ const file = join(root, CONFIG_FILE);
+ const raw = JSON.parse(readFileSync(file, 'utf8'));
+ raw.lanes = { ...(raw.lanes ?? {}), [name]: { owns } };
+ const text = `${JSON.stringify(raw, null, 2)}\n`;
+ try { configFromSource(text); }
+ catch (error) {
+ if (!(error instanceof Refused)) throw error;
+ throw new Refused('BAD_LANE', `lane "${name}" cannot be added: names are lowercase words of letters, digits and dashes, like web or api-2; pick another name`);
+ }
+ writeFileSync(file, text);
+ return { lane: name, owns };
+}
diff --git a/src/templates.js b/src/templates.js
index 4ca3e3fe..ec3120fc 100644
--- a/src/templates.js
+++ b/src/templates.js
@@ -114,7 +114,7 @@ ${doctrineText(doctrine)}
pullboard worktree <lane> --model "<model name>"
-It prints the folder to work in and what to run there first. Every join needs the exact model label, either with \`--model\` or the \`PULLBOARD_MODEL\` environment variable; family is separate and never supplies the model. A smaller model joins with \`--route light\` or \`--route mid\` and takes items at its tier and below. Work only in that folder. Your shell may start every command in the main checkout, where pullboard takes you for the coordinator, so begin each command with \`cd <your worktree> &&\`. Verifiers take the \`review\` lane, which owns no folders. Keep your worktree and branch until your items are merged.
+It prints the folder to work in and what to run there first. Every join needs the exact model label, either with \`--model\` or the \`PULLBOARD_MODEL\` environment variable; family is separate and never supplies the model. A smaller model joins with \`--route light\` or \`--route mid\` and takes items at its tier and below. Work only in that folder. Your shell may start every command in the main checkout, where pullboard takes you for the coordinator, so begin each command with \`cd <your worktree> &&\`. Verifiers take the \`review\` lane, which owns no folders. Only the coordinator adds a lane, from the main checkout, once the person agrees: \`pullboard lane add <name> --owns <path>[,<path>]\`. \`pullboard init\` proposes lanes from the folder layout and writes none until the person accepts. Keep your worktree and branch until your items are merged.
**The loop.**
1. \`pullboard resume\` at the start of every session and after your context is compacted: your claim, what came back, unread shouts and the next step. Then \`pullboard inbox\`.
diff --git a/test/lane-add.test.js b/test/lane-add.test.js
new file mode 100644
index 00000000..178dbafe
--- /dev/null
+++ b/test/lane-add.test.js
@@ -0,0 +1,97 @@
+/** `pullboard lane add` declares a lane, and init proposes lanes from the folder layout [I1,I2,L1]. */
+import assert from 'node:assert/strict';
+import { runFixtureChild, runFixtureGit } from './fixture-child.js';
+import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { join, resolve } from 'node:path';
+import { test } from 'node:test';
+
+const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');
+
+/** A private repository with the given folders, each holding one file, and pullboard at hand. */
+function project(t, folders) {
+ const root = mkdtempSync(join(tmpdir(), 'pullboard-lane-add-'));
+ t.after(() => rmSync(root, { recursive: true, force: true }));
+ const env = { ...process.env, GIT_CONFIG_GLOBAL: '/dev/null', GIT_CONFIG_NOSYSTEM: '1', PULLBOARD_HOME: join(root, '.private-home') };
+ for (const key of Object.keys(env)) if (key.startsWith('GIT_') && !['GIT_CONFIG_GLOBAL', 'GIT_CONFIG_NOSYSTEM'].includes(key)) delete env[key];
+ for (const folder of folders) {
+ mkdirSync(join(root, folder), { recursive: true });
+ writeFileSync(join(root, folder, 'index.js'), 'export {};\n');
+ }
+ runFixtureGit(['init', '-q', '-b', 'main'], { cwd: root, env, encoding: 'utf8', stdio: 'pipe' });
+ /** Run pullboard in this repository and keep its output as a person would see it. */
+ const run = (...args) => runFixtureChild(process.execPath, [BIN, ...args], { cwd: root, env, encoding: 'utf8' });
+ /** The lanes pullboard.json declares right now. */
+ const lanes = () => JSON.parse(readFileSync(join(root, 'pullboard.json'), 'utf8')).lanes;
+ return { root, run, lanes };
+}
+
+test('lane add creates a lane and init proposes lanes from the layout [I1,I2,L1]', (t) => {
+ // init proposes one lane per top-level package for a packages/* layout, and writes none of them.
+ const box = project(t, ['packages/web/src', 'packages/api', 'docs']);
+ const init = box.run('init');
+ assert.equal(init.status, 0, init.stderr);
+ assert.match(init.stdout, /^proposed lanes, not written until the person accepts: api owns packages\/api\/; web owns packages\/web\/$/mu);
+ assert.match(init.stdout, /^ask the person; to accept, run: pullboard lane add api --owns packages\/api\/ && pullboard lane add web --owns packages\/web\/$/mu);
+ assert.deepEqual(Object.keys(box.lanes()), ['review'], 'init writes no proposed lane before the person accepts');
+ const rerun = box.run('init', '--json');
+ assert.equal(rerun.status, 0, rerun.stderr);
+ assert.deepEqual(JSON.parse(rerun.stdout).proposedLanes, [
+ { name: 'api', owns: ['packages/api/'] },
+ { name: 'web', owns: ['packages/web/'] },
+ ]);
+
+ // lane add writes the lane to pullboard.json, keeping every other setting, and lanes lists it.
+ const before = JSON.parse(readFileSync(join(box.root, 'pullboard.json'), 'utf8'));
+ const added = box.run('lane', 'add', 'web', '--owns', 'packages/web');
+ assert.equal(added.status, 0, added.stderr);
+ assert.match(added.stdout, /^added lane web: owns packages\/web\/$/mu);
+ const both = box.run('lane', 'add', 'api', '--owns', 'packages/api/,docs/');
+ assert.equal(both.status, 0, both.stderr);
+ const after = JSON.parse(readFileSync(join(box.root, 'pullboard.json'), 'utf8'));
+ assert.deepEqual(after, { ...before, lanes: { ...before.lanes, web: { owns: ['packages/web/'] }, api: { owns: ['packages/api/', 'docs/'] } } });
+ const listed = box.run('lanes');
+ assert.equal(listed.status, 0, listed.stderr);
+ assert.match(listed.stdout, /^web\s+packages\/web\/$/mu);
+ assert.match(listed.stdout, /^api\s+packages\/api\/ docs\/$/mu);
+
+ // An owned path, exact or inside another lane's folder, is refused and names its owner.
+ const config = readFileSync(join(box.root, 'pullboard.json'), 'utf8');
+ const owned = box.run('lane', 'add', 'site', '--owns', 'packages/web/');
+ assert.equal(owned.status, 1);
+ assert.match(owned.stderr, /\[PATH_OWNED\] packages\/web\/ is already owned by lane "web"/u);
+ const nested = box.run('lane', 'add', 'ui', '--owns', 'packages/web/src');
+ assert.equal(nested.status, 1);
+ assert.match(nested.stderr, /\[PATH_OWNED\] packages\/web\/src\/ is already owned by lane "web"/u);
+ // A taken name is refused and names the lane that has it.
+ const taken = box.run('lane', 'add', 'web', '--owns', 'site/');
+ assert.equal(taken.status, 1);
+ assert.match(taken.stderr, /\[LANE_TAKEN\] lane "web" already exists and owns packages\/web\//u);
+ const coordinator = box.run('lane', 'add', 'coordinator', '--owns', 'site/');
+ assert.equal(coordinator.status, 1);
+ assert.match(coordinator.stderr, /\[LANE_TAKEN\] "coordinator" belongs to the coordinator/u);
+ assert.equal(readFileSync(join(box.root, 'pullboard.json'), 'utf8'), config, 'a refusal leaves pullboard.json as it was');
+
+ // Once a lane owns a folder, init proposes nothing more.
+ const settled = box.run('init', '--json');
+ assert.equal(settled.status, 0, settled.stderr);
+ assert.deepEqual(JSON.parse(settled.stdout).proposedLanes, []);
+
+ // An apps/* layout gets one lane per app.
+ const apps = project(t, ['apps/mobile', 'apps/site']);
+ const appsInit = apps.run('init');
+ assert.equal(appsInit.status, 0, appsInit.stderr);
+ assert.match(appsInit.stdout, /^proposed lanes, not written until the person accepts: mobile owns apps\/mobile\/; site owns apps\/site\/$/mu);
+ assert.deepEqual(Object.keys(apps.lanes()), ['review']);
+
+ // Any other layout gets one app lane.
+ const plain = project(t, ['src', 'test']);
+ const plainInit = plain.run('init');
+ assert.equal(plainInit.status, 0, plainInit.stderr);
+ assert.match(plainInit.stdout, /^proposed lanes, not written until the person accepts: app owns src\/ test\/$/mu);
+ assert.match(plainInit.stdout, /^ask the person; to accept, run: pullboard lane add app --owns src\/,test\/$/mu);
+ assert.deepEqual(Object.keys(plain.lanes()), ['review']);
+ const accepted = plain.run('lane', 'add', 'app', '--owns', 'src/,test/');
+ assert.equal(accepted.status, 0, accepted.stderr);
+ assert.deepEqual(plain.lanes().app, { owns: ['src/', 'test/'] });
+});