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.

test(init): ask for verbose setup and lane details [I1,I2]

Corey Olsonee553ee7c9e7
diff --git a/test/e2e.test.js b/test/e2e.test.js
index e927a036..8bd65689 100644
--- a/test/e2e.test.js
+++ b/test/e2e.test.js
@@ -42,12 +42,12 @@ test('init writes config, spec, agent docs and hooks once, and never clobbers [I
box.git(repo, 'init', '-q', '-b', 'main');
writeFileSync(join(repo, 'AGENTS.md'), '# Mine\n\nkeep me\n');
writeFileSync(join(repo, 'package.json'), JSON.stringify({ scripts: { test: 'node --test' } }));
- const first = box.run(repo, 'init');
+ const first = box.run(repo, 'init', '--verbose');
assert.equal(first.code, 0);
assert.match(first.out, /added the pullboard section to AGENTS.md/);
assert.equal(JSON.parse(readFileSync(join(repo, 'pullboard.json'), 'utf8')).gate, 'npm test');
writeFileSync(join(repo, 'pullboard.json'), JSON.stringify({ ...CONFIG, gate: 'mine' }));
- const second = box.run(repo, 'init');
+ const second = box.run(repo, 'init', '--verbose');
assert.match(second.out, /kept pullboard.json/);
assert.doesNotMatch(second.out, /no gate yet/, 'the config already names a gate');
assert.equal(JSON.parse(readFileSync(join(repo, 'pullboard.json'), 'utf8')).gate, 'mine');
@@ -119,7 +119,7 @@ test("the coordinator's resume names its next step from the spec and the board,
const repo = join(fresh.dir, 'fresh');
mkdirSync(repo);
fresh.git(repo, 'init', '-q', '-b', 'main');
- const initialized = fresh.run(repo, 'init');
+ const initialized = fresh.run(repo, 'init', '--verbose');
assert.match(initialized.out, /^Next: ask your agent to set up Pullboard here; in Claude Code, start a new session first so it loads the Pullboard skills\.$/m, 'init gives one setup instruction and preserves Claude Code skill loading');
const firstSetup = JSON.parse(fresh.run(repo, 'resume', '--json').out).setup;
assert.equal(firstSetup?.step, 1, 'a new board starts by asking what the person wants');
diff --git a/test/lane-add.test.js b/test/lane-add.test.js
index 10a2f1d4..07187ca4 100644
--- a/test/lane-add.test.js
+++ b/test/lane-add.test.js
@@ -29,7 +29,7 @@ function project(t, folders) {
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');
+ const init = box.run('init', '--verbose');
assert.equal(init.status, 0, init.stderr);
assert.match(init.stdout, /^proposed lanes: api owns packages\/api\/; web owns packages\/web\/$/mu);
assert.match(init.stdout, /^add them from the main checkout, then tell the person which lanes you made: pullboard lane add api --owns packages\/api\/ && pullboard lane add web --owns packages\/web\/$/mu);
@@ -80,14 +80,14 @@ test('lane add creates a lane and init proposes lanes from the layout [I1,I2,L1]
// An apps/* layout gets one lane per app.
const apps = project(t, ['apps/mobile', 'apps/site']);
- const appsInit = apps.run('init');
+ const appsInit = apps.run('init', '--verbose');
assert.equal(appsInit.status, 0, appsInit.stderr);
assert.match(appsInit.stdout, /^proposed lanes: 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');
+ const plainInit = plain.run('init', '--verbose');
assert.equal(plainInit.status, 0, plainInit.stderr);
assert.match(plainInit.stdout, /^proposed lanes: app owns src\/ test\/$/mu);
assert.match(plainInit.stdout, /^add them from the main checkout, then tell the person which lanes you made: pullboard lane add app --owns src\/,test\/$/mu);
@@ -99,7 +99,7 @@ test('lane add creates a lane and init proposes lanes from the layout [I1,I2,L1]
test('init lets the agent add the first lane and tell the person, never stop to ask [I1,I2,L1]', (t) => {
const box = project(t, ['server', 'test']);
- const init = box.run('init');
+ const init = box.run('init', '--verbose');
assert.equal(init.status, 0, init.stderr);
const lanes = init.stdout.split('\n').filter((line) => /lane/u.test(line));
assert.ok(lanes.some((line) => /^add them from the main checkout, then tell the person which lanes you made: pullboard lane add app --owns server\/,test\/$/u.test(line)), lanes.join('\n'));