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(line): keep missing review age explicit [N2,H16]
Corey Olson3e4007a6e551
diff --git a/src/line-capacity.js b/src/line-capacity.jsindex 2c124466..925e6d3c 100644--- a/src/line-capacity.js+++ b/src/line-capacity.js@@ -32,8 +32,9 @@ export function lineCapacityProblem(board, { renewal, oldestReview } = {}) {const limit = lineWipLimit(ratio, snapshot.activeReviewers);if (snapshot.wip + 1 <= limit) return null;const review = oldestReview?.(snapshot.pending);+ const age = review?.submitted_order === null ? 'waiting item (submit age unknown)' : 'oldest waiting item';return new Refused('LINE_WIP_LIMIT', `the line has ${snapshot.wip} live claims and submissions against limit ${limit}; `- + (review ? `review oldest waiting item #${review.item_id}: pullboard next --verify ${review.item_id}`+ + (review ? `review ${age} #${review.item_id}: pullboard next --verify ${review.item_id}`: 'no waiting review is eligible for this seat; ask the coordinator to arrange an eligible reviewer'));}diff --git a/test/line-capacity.test.js b/test/line-capacity.test.jsindex 99616014..ae497745 100644--- a/test/line-capacity.test.js+++ b/test/line-capacity.test.js@@ -126,5 +126,9 @@ test('legacy submissions without recorded submit history still consume native WIassert.equal(snapshot.wip, 1);assert.equal(snapshot.pending[0].item_id, waiting);assert.equal(snapshot.pending[0].submitted_order, null, 'missing history is unknown, never an invented submit time');+ store.setLineSetting(replica, { agentId: 'coordinator', key: 'wipPerReviewer', value: 1.5, reason: 'legacy queue control', window: { activeReviewers: 1 } });+ const next = store.addItem(replica, { by: 'coordinator', lane: 'core', title: 'new work beside legacy submission' });+ assert.throws(() => store.claim(replica, next, { agentId: f.reviewer, lane: 'core', leaseMs: HOUR, freeze: FREEZE }),+ error => error.code === 'LINE_WIP_LIMIT' && error.message.includes('submit age unknown') && error.message.includes(`#${waiting}`));assert.deepEqual(store.events(f.board, { itemId: waiting }), original);});