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(board): keep the idle reason; tier line fits escalated items [B16]
Corey Olson892554582561
diff --git a/SPEC.md b/SPEC.mdindex a2c2ef1f..d9d31798 100644--- a/SPEC.md+++ b/SPEC.md@@ -27,7 +27,7 @@ Statuses: approved = decided · draft = proposed · pending = open question · f- B13 [approved, must] Routes are tiers: light, mid, strong. An agent claims and verifies its tier and below, its own first. | gate: test/board.test.js | serves: B10- B14 [approved, must] Below strong, an item needs a criterion, a check command, and a brief naming its test and in-lane files. | gate: test/board.test.js, test/e2e.test.js | serves: B10- B15 [approved, must] Escalate frees an item one tier up, its attempt pinned and its failure attached. | gate: test/board.test.js, test/e2e.test.js | serves: B13-- B16 [draft, must] When only work above an agent's tier is open in its lane, next names that work and how to reroute it. | gate: test/board.test.js | serves: B13+- B16 [draft, must] When only work above an agent's tier is open in its lane, next names it and the ways through. | gate: test/board.test.js | serves: B13## V · Verification- V1 [approved, must] The builder never verifies its own work. | gate: test/board.test.js | serves: P1diff --git a/src/board.js b/src/board.jsindex 990b6e8f..1bdf5fd1 100644--- a/src/board.js+++ b/src/board.js@@ -1012,12 +1012,11 @@ export function nextFor(board, { agentId, lane, verify = false, runnable = falsereasons.push(`#${entry.item_id} waits on ${waiting.map(waitingOn).join(', ')}`);}if (!mine.length) {- // Work the agent's tier cannot take is not "nothing": name it and the way to unblock it (B16).- const above = listItems(board).filter((entry) => entry.item_status === 'open' && entry.item_lane === lane && !canTake(route, entry.item_route));- for (const entry of above) {- reasons.push(`#${entry.item_id} (${entry.item_route}) is open in the ${lane} lane, above the ${route} route you joined on: the coordinator reroutes it with pullboard edit ${entry.item_id} --route ${route}, or a stronger agent takes it`);+ reasons.push(idleReason(items, lane, routed));+ // Work above the agent's tier is not nothing: name it and the ways through (B16).+ for (const entry of listItems(board).filter((open) => open.item_status === 'open' && open.item_lane === lane && !canTake(route, open.item_route))) {+ reasons.push(`#${entry.item_id} (${entry.item_route}) is open in the ${lane} lane, above your ${route} route: a ${entry.item_route} agent takes it, or, if ${route} can build it, the coordinator reroutes it: pullboard edit ${entry.item_id} --route ${route}`);}- if (!above.length) reasons.push(idleReason(items, lane, routed));}return { item: null, reasons };}diff --git a/test/board.test.js b/test/board.test.jsindex 7eb6f3db..e4938151 100644--- a/test/board.test.js+++ b/test/board.test.js@@ -421,7 +421,8 @@ test('with only work above its tier open in its lane, next names it and the reroconst light = store.register(board, { lane: 'web', path: '/repo-web-3', route: 'light' });const strong = store.addItem(board, { by: 'coordinator', lane: 'web', title: 'Design the cache' });assert.deepEqual(store.nextFor(board, { agentId: light, lane: 'web' }).reasons, [- `#${strong} (strong) is open in the web lane, above the light route you joined on: the coordinator reroutes it with pullboard edit ${strong} --route light, or a stronger agent takes it`,+ 'no open light items in the web lane',+ `#${strong} (strong) is open in the web lane, above your light route: a strong agent takes it, or, if light can build it, the coordinator reroutes it: pullboard edit ${strong} --route light`,]);assert.deepEqual(store.nextFor(board, { agentId: 'api-1', lane: 'api' }).reasons, ['no open items in the api lane']);});