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(resume): the lane setup step says pullboard lane add [I1]
Corey Olson289e5568544f
diff --git a/src/cli.js b/src/cli.jsindex 16643e25..3c3a80aa 100644--- a/src/cli.js+++ b/src/cli.js@@ -1187,6 +1187,8 @@ function boardSetup(ctx, card, identity) {const detectedGate = detectGate(ctx.info.root);/** Quote the exact suggested command safely for a shell. */const quote = value => "'" + String(value).replaceAll("'", "'\\''") + "'";+ /** Quote one shell word only when it needs it, so a plain lane command reads as typed. */+ const word = value => /^[A-Za-z0-9._/-]+$/u.test(String(value)) ? String(value) : quote(value);/** Preserve all existing configuration when recording one setup answer. */const configure = patch => `node -e ${quote(`const fs=require('node:fs');const p='pullboard.json';const c=JSON.parse(fs.readFileSync(p,'utf8'));${patch};fs.writeFileSync(p,JSON.stringify(c,null,2)+${JSON.stringify('\n')})`)}`;const steps = [@@ -1194,7 +1196,7 @@ function boardSetup(ctx, card, identity) {command: 'pullboard spec draft "<text>"',afterAnswer: 'Record each answer with pullboard spec draft "<text>"; the person approves the returned ids in Pullboard View or runs pullboard spec approve <ids> in their own terminal; then the coordinator runs pullboard spec apply.' },{ number: 2, done: lanes.length > 0, question: `Ask the person: how should we divide the work? Suggested folders: ${folders.join(', ') || 'app/ (create it for the app)'}.`,- command: configure(`c.lanes[${JSON.stringify(lane)}]={owns:[${JSON.stringify(lane + '/')}]}`) },+ command: `pullboard lane add ${word(lane)} --owns ${word(lane + '/')}` },{ number: 3, done: Boolean(ctx.config.gate?.trim()),question: detectedGate? `Ask the person: which command proves the build works? Suggested: ${detectedGate}.`diff --git a/test/resume-flow.test.js b/test/resume-flow.test.jsindex eaa350c2..090110c8 100644--- a/test/resume-flow.test.js+++ b/test/resume-flow.test.js@@ -601,6 +601,31 @@ test('resume walks a new board through setup one step at a time [N32,N19]', asynassert.equal(JSON.parse(result.stdout).setup, null, 'actual successful view bind completes the board setup');});+test('resume names lane add to make a lane [I1,N32]', t => {+ const box = releaseFixture(t, { freshSetup: true });+ mkdirSync(join(box.repo, 'app'));+ const drafted = box.run(box.repo, 'spec', 'draft', 'Describe the first thing the person wants.', '--json');+ assert.equal(drafted.status, 0, drafted.failure || drafted.stderr || drafted.stdout);+ for (const args of [['spec', 'approve', JSON.parse(drafted.stdout).id], ['spec', 'apply']]) {+ const result = box.run(box.repo, ...args);+ assert.equal(result.status, 0, result.failure || result.stderr || result.stdout);+ }+ const text = box.run(box.repo, 'resume');+ assert.equal(text.status, 0, text.failure || text.stderr);+ const setup = JSON.parse(box.run(box.repo, 'resume', '--json').stdout).setup;+ assert.equal(setup.step, 2);+ assert.equal(setup.command, 'pullboard lane add app --owns app/');+ assert.ok(text.stdout.includes(setup.command), text.stdout);+ assert.doesNotMatch(text.stdout, /node -e/u);++ // The printed command, run exactly as written, declares the lane and moves setup on.+ recordSetupAnswer(box, setup.command);+ const lanes = box.run(box.repo, 'lanes');+ assert.equal(lanes.status, 0, lanes.failure || lanes.stderr);+ assert.match(lanes.stdout, /^app\s+app\/(?:\s|$)/mu);+ assert.equal(JSON.parse(box.run(box.repo, 'resume', '--json').stdout).setup?.step, 3);+});+test("a set-up board's resume prints no setup steps [N32,N19]", async t => {const box = releaseFixture(t, { freshSetup: true });await finishSetup(box);