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(cli): suggested waits name minutes and fit a tool call [N25]
Corey Olson48f8380f506d
diff --git a/src/board.js b/src/board.jsindex 4ba5afb1..adacd5cc 100644--- a/src/board.js+++ b/src/board.js@@ -573,7 +573,7 @@ export function claim(board, id, { agentId, lane, leaseMs, freeze, head = null }}const paused = laneHold(board, item.item_lane);if (paused && !(isMine && isHeld(board, item))) {- throw new Refused('LANE_HELD', `${paused.hold_by} holds the ${item.item_lane} lane: ${paused.hold_reason}. Wait for it: pullboard next --wait 30`);+ throw new Refused('LANE_HELD', `${paused.hold_by} holds the ${item.item_lane} lane: ${paused.hold_reason}. Wait for it: pullboard next --wait 9 (minutes)`);}if (item.item_parent_id === null) {const other = board.dbdiff --git a/src/cli.js b/src/cli.jsindex 92ea416c..6a6d2ad8 100644--- a/src/cli.js+++ b/src/cli.js@@ -419,6 +419,7 @@ function resumeHere(io) {const all = store.listItems(board, { all: true });return {me,+ all,holding: all.filter((item) => item.item_status === 'claimed' && item.item_owner === me.id),sentBack: all.filter((item) => item.item_status === 'open' && item.item_verdict === 'REJECT' && item.item_built_by === me.id)@@ -467,14 +468,17 @@ function resumeHere(io) {say(`the ${me.lane} lane is held by ${card.hold.hold_by}: ${card.hold.hold_reason}`);}if (card.unread) say(`${plural(card.unread, 'unread shout')}; newest from ${card.newest[0].shout_from}: ${firstLine(card.newest[0].shout_text)} (pullboard inbox reads them)`);- const mineOpen = card.open.filter((item) => item.item_lane === me.lane).length;+ const inLane = card.open.filter((item) => item.item_lane === me.lane);+ const isVerified = (id) => card.all.find((other) => other.item_id === Number(id))?.item_status === 'verified';+ const ready = inLane.filter((item) => !item.item_after || item.item_after.split(',').every(isVerified)).length;let next;if (card.holding.length) next = `build #${card.holding[0].item_id}, commit, then pullboard submit ${card.holding[0].item_id}`;else if (card.sentBack.length) next = `pullboard claim ${card.sentBack[0].item.item_id}, fix what the verifier found, and submit again`;else if (isMain) next = card.toVerify.length ? 'pullboard next --verify --as coordinator' : 'curate the queue: pullboard add, edit, hold';- else if (card.hold) next = 'wait for the hold to lift: pullboard next --wait 30';- else if (mineOpen) next = `pullboard next (${mineOpen} open in your lane)`;- else if (card.awaiting.length) next = 'pullboard next --wait 30; a rejected item comes back to your lane';+ else if (card.hold) next = 'wait for the hold to lift: pullboard next --wait 9 (minutes)';+ else if (ready) next = `pullboard next (${ready} ready in your lane)`;+ else if (inLane.length) next = `pullboard next --wait 9 (minutes); ${inLane.length} in your lane ${inLane.length === 1 ? 'waits' : 'wait'} on other work`;+ else if (card.awaiting.length) next = 'pullboard next --wait 9 (minutes); a rejected item comes back to your lane';else next = 'nothing open in your lane; pullboard next --verify names work you can check';say(`next: ${next}`);return 0;@@ -827,7 +831,7 @@ async function nextHere(io, values) {}if (!found.retry && Date.now() >= deadline) {const waited = minutes ? ` after ${minutes} minutes` : '';- io.err(`pullboard: [NOTHING_FREE] ${found.reasons.join('; ')}${waited}. To keep looking: pullboard next --wait 30${values.verify ? ' --verify' : ''}`);+ io.err(`pullboard: [NOTHING_FREE] ${found.reasons.join('; ')}${waited}. To keep looking: pullboard next --wait 9${values.verify ? ' --verify' : ''} (minutes; give the command a ten-minute timeout)`);return 1;}if (!found.retry) await new Promise((done) => setTimeout(done, 5000));diff --git a/src/templates.js b/src/templates.jsindex f9b29784..fa05c7f4 100644--- a/src/templates.js+++ b/src/templates.js@@ -128,12 +128,12 @@ It prints the folder to work in and what to run there first. A smaller model joi**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\`.-2. \`pullboard next\` claims the next item in your lane that is free to start. When everything is waiting on other work, \`pullboard next --wait 30\` keeps looking for up to 30 minutes. A claim is a 2-hour lease; claim again to renew. The criterion freezes now: \`pullboard show <id>\` is the bar your work is judged against, and its brief says how to start.+2. \`pullboard next\` claims the next item in your lane that is free to start. When everything is waiting on other work, \`pullboard next --wait 9\` keeps looking for up to 9 minutes, which fits one tool call with a ten-minute timeout; run it again to keep waiting. A claim is a 2-hour lease; claim again to renew. The criterion freezes now: \`pullboard show <id>\` is the bar your work is judged against, and its brief says how to start.3. Build inside your lane's folders (\`pullboard lanes\`). Pre-commit refuses anything else; shout the owner instead.4. Commit, then \`pullboard submit <id>\`. It needs a clean tree and the gate green at HEAD.5. A different agent verifies: \`pullboard next --verify\` names the next item to check. It checks out the submitted commit and runs \`pullboard verify <id> accept --note "how it proved it"\`, or \`pullboard verify <id> reject --reason TEST_FAILURE --note "what failed"\`.6. A reject reopens the item. Fix it, commit, claim, submit again; the same head is refused. If you cannot get an item green, do not force it: \`pullboard escalate <id> --note "what you tried and how it failed"\` hands it one tier up.-7. Your lane is done when its items are verified, not when they are submitted. After your last submit, keep running \`pullboard next --wait 30\`: a rejected item comes back to your lane.+7. Your lane is done when its items are verified, not when they are submitted. After your last submit, keep running \`pullboard next --wait 9\`: a rejected item comes back to your lane.The coordinator merges verified items into the main line; builders never merge.diff --git a/test/e2e.test.js b/test/e2e.test.jsindex b6972c22..d5880e11 100644--- a/test/e2e.test.js+++ b/test/e2e.test.js@@ -524,7 +524,7 @@ test('resume puts an agent back to work from the board: its claim, its branch, wassert.equal(fresh.code, 0, fresh.err);assert.match(fresh.out, /^resume: web-1, web lane, at /);assert.match(fresh.out, /branch web\/one: 0 ahead of main, 0 behind/);- assert.match(fresh.out, /next: pullboard next \(1 open in your lane\)/);+ assert.match(fresh.out, /next: pullboard next \(1 ready in your lane\)/);box.run(box.web, 'next');mkdirSync(join(box.web, 'web'));writeFileSync(join(box.web, 'web', 'page.html'), '<h1>Hi</h1>');@@ -820,3 +820,19 @@ test('output into a reader that stops early ends quietly [N24]', async () => {assert.equal(stderr, '');assert.equal(code, 0);});++test('every wait pullboard suggests names its unit and fits one ten-minute tool call [N25]', () => {+ const box = project();+ box.run(box.repo, 'add', 'web', 'Page', '--specs', 'G1');+ box.run(box.repo, 'add', 'web', 'Second', '--specs', 'G1', '--after', '1');+ box.run(box.web, 'claim', '1');+ commitFile(box, box.web, 'web/a.html', 'a', 'feat(web): page [G1]');+ box.run(box.web, 'submit', '1');+ assert.match(box.run(box.web, 'next').err, /To keep looking: pullboard next --wait 9 \(minutes; give the command a ten-minute timeout\)/);+ assert.match(box.run(box.web, 'resume').out, /next: pullboard next --wait 9 \(minutes\); 1 in your lane waits on other work/);+ box.run(box.repo, 'hold', 'web', '--reason', 'G1 is changing');+ assert.match(box.run(box.web, 'resume').out, /next: wait for the hold to lift: pullboard next --wait 9 \(minutes\)/);+ const agents = readFileSync(join(box.repo, 'AGENTS.md'), 'utf8');+ assert.match(agents, /`pullboard next --wait 9` keeps looking for up to 9 minutes, which fits one tool call with a ten-minute timeout/);+ assert.doesNotMatch(agents, /--wait 30/);+});