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): a blocked item no longer hides work above your tier [B16]
Corey Olson1c50e1474471
diff --git a/src/board.js b/src/board.jsindex 1bdf5fd1..38d6a212 100644--- a/src/board.js+++ b/src/board.js@@ -1011,12 +1011,10 @@ export function nextFor(board, { agentId, lane, verify = false, runnable = falseif (!waiting.length) return { item: entry, reasons: [], shared };reasons.push(`#${entry.item_id} waits on ${waiting.map(waitingOn).join(', ')}`);}- if (!mine.length) {- 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 (!mine.length) reasons.push(idleReason(items, lane, routed));+ // Nothing to claim, yet work above the agent's tier is open: 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}`);}return { item: null, reasons };}diff --git a/test/board.test.js b/test/board.test.jsindex e4938151..d023d1e2 100644--- a/test/board.test.js+++ b/test/board.test.js@@ -425,4 +425,10 @@ test('with only work above its tier open in its lane, next names it and the rero`#${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']);+ const contract = store.addItem(board, { by: 'coordinator', lane: 'api', title: 'Contract' });+ const blocked = routed('Wire it', 'light', { after: [contract] });+ assert.deepEqual(store.nextFor(board, { agentId: light, lane: 'web' }).reasons, [+ `#${blocked} waits on #${contract} (open, api 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`,+ ], 'a blocked item of your own tier does not hide the work above it');});