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
test(board): ceiling send-backs record a notice [B15,H16]
Corey Olsond64b02ba7281
diff --git a/test/board.test.js b/test/board.test.jsindex c183a716..50716f59 100644--- a/test/board.test.js+++ b/test/board.test.js@@ -930,24 +930,19 @@ test('a coordinator route edit starts a new rejection count [B15,B13]', () => {]);});-test('two send-backs at the strongest route keep the builder [B15,B13,H16]', () => {- const id = routed('Strong rework ownership', 'strong');+test('two send-backs at the strongest route record no escalation [B15,B13,H16]', () => {+ const id = routed('Strong rework notice', 'strong');rejectRevision(id, SHA_A, 'first strong send-back: missing output');rejectRevision(id, SHA_B, 'second strong send-back: output still wrong');const item = store.getItem(board, id);- assert.deepEqual([item.item_status, item.item_route, item.item_owner], ['claimed', 'strong', 'web-1'], 'the second strong send-back stays with its builder');- assert.ok(item.item_lease_until > clock.now().toISOString(), 'the retained rework claim is live');+ assert.deepEqual([item.item_status, item.item_route, item.item_owner, item.item_lease_until], ['open', 'strong', null, null], 'ordinary rejection still reopens without a retained or renewed lease');const events = store.events(board, { itemId: id });- assert.equal(events.filter(event => event.event_kind === 'escalate').length, 0, 'no strong-to-strong route event');- const facts = events.filter(event => event.event_kind === 'fact').map(event => JSON.parse(event.event_detail));- const fact = facts.find(entry => /two send-backs at the strongest route/iu.test(entry.text));- assert.ok(fact, 'the item records its strongest-route send-backs');+ assert.equal(events.filter(event => event.event_kind === 'escalate').length, 0, 'no automatic strong-to-strong route event');const rejections = store.verdictsFor(board, id).filter(entry => entry.verdict_decision === 'REJECT');- assert.equal(rejections.length, 2);- for (const rejection of rejections) assert.ok(fact.text.includes(String(rejection.verdict_id)), 'the fact names each rejection receipt');const notices = store.allShouts(board).filter(entry => entry.shout_to === 'coordinator' && entry.shout_text.includes(`#${id} has two send-backs at the strongest route`));- assert.equal(notices.length, 1, 'one coordinator notice for the rejection pair');- assert.match(notices[0].shout_text, /it stays with web-1/u);+ assert.equal(notices.length, 1, 'one coordinator notice for this rejection pair');+ assert.match(notices[0].shout_text, /web-1 built it/u);+ for (const rejection of rejections) assert.ok(notices[0].shout_text.includes(`#${rejection.verdict_id}`), 'the notice names both rejection receipts');});test('an item at strong stays at strong after more failures [B15,B13]', () => {