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: keep stale conflicts in the handoff brief [E8,N19]
Corey Olson921c28ae91f9
diff --git a/src/cli.js b/src/cli.jsindex 90041410..c6d7d984 100644--- a/src/cli.js+++ b/src/cli.js@@ -1298,7 +1298,7 @@ function resumeHere(io) {me,all,needsYou: personNeeds(personNeedsState(root, { board })),- ...(decisionSections ? { ...decisions, ...verifiedMergeGroups(root, toMerge, shouts, ctx.clock.now().getTime()),+ ...(decisionSections ? { ...decisions, ...verifiedMergeGroups(root, pendingMerges, shouts, ctx.clock.now().getTime()),flow: proofStats(board, { now: ctx.clock.now().getTime() }).flow } : {}),requests: me.id === COORDINATOR ? store.openRequests(board) : [],holding: all.filter((item) => item.item_status === 'claimed' && item.item_owner === me.id),@@ -1392,14 +1392,16 @@ function resumeHere(io) {};section(card.openDecisions, (ask) => `open decision #${ask.id} from ${name(ask.asker)} (${ask.age}): ${firstLine(ask.question)}`);section(card.recentAnswers, (answer) => `recent decision #${answer.id}: ${name(answer.answeredBy)} answered ${name(answer.asker)} (${answer.age} ago): ${firstLine(answer.answer)}`);- if (card.toMerge.length) {+ if (card.toMerge.length || card.staleVerdicts.length) {const groups = card.verifiedNotMerged;+ // Conflicts remain useful diagnostics even when the acceptance must be re-reviewed.+ const freshness = item => item.item_verdict_state ? ' [STALE_VERDICT]' : '';/** Keep merge groups on one line while retaining all entries in JSON. */const listed = (entries, line) => entries.slice(0, 3).map(line).join(', ')+ (entries.length > 3 ? `, +${entries.length - 3} more (pullboard resume --json)` : '') || 'none';- say(`verified, not merged — merges cleanly: ${listed(groups.clean, (item) => `#${item.item_id} ${firstLine(item.item_title)}`)}`);- say(`verified, not merged — conflicts: ${listed(groups.conflicts, ({ item, files }) => `#${item.item_id} ${firstLine(item.item_title)} (${files.join(', ') || 'files unavailable'})`)}`);- say(`verified, not merged — claimed for integration: ${listed(groups.integrating, ({ item, by, at, commit }) => `#${item.item_id} by ${name(by)} at ${at} (${commit.slice(0, 12)})`)}`);+ say(`verified, not merged — merges cleanly: ${listed(groups.clean, (item) => `#${item.item_id} ${firstLine(item.item_title)}${freshness(item)}`)}`);+ say(`verified, not merged — conflicts: ${listed(groups.conflicts, ({ item, files }) => `#${item.item_id} ${firstLine(item.item_title)} (${files.join(', ') || 'files unavailable'})${freshness(item)}`)}`);+ say(`verified, not merged — claimed for integration: ${listed(groups.integrating, ({ item, by, at, commit }) => `#${item.item_id} by ${name(by)} at ${at} (${commit.slice(0, 12)})${freshness(item)}`)}`);}section(card.needsYou, (need) => need.kind === 'decision'? `waiting on the person: #${need.id} from ${need.ref} (${span(ctx, need.at)}): ${firstLine(need.text)}`diff --git a/test/coordinator-resume.test.js b/test/coordinator-resume.test.jsindex fc318a42..c8670d07 100644--- a/test/coordinator-resume.test.js+++ b/test/coordinator-resume.test.js@@ -281,6 +281,13 @@ test("the coordinator's handoff brief orders current work and leaves agent resumassert.deepEqual(document.verifiedNotMerged.clean.map((item) => item.item_id).sort((a, b) => a - b),[cleanId, supersededId, plainId, factId, unrelatedId, expiredId].sort((a, b) => a - b));assert.deepEqual(document.verifiedNotMerged.conflicts[0].files, ['web/shared.txt']);+ assert.equal(document.verifiedNotMerged.conflicts[0].item.item_verdict_state?.code, 'STALE_VERDICT',+ 'the stale accepted conflict remains visible as an integration diagnostic');+ assert.ok(!document.toMerge.some(item => item.item_id === conflictId),+ 'visible stale conflict diagnostics never become ready-to-land work');+ assert.ok(document.staleVerdicts.some(item => item.item_id === conflictId),+ 'the handoff also states that the old acceptance must be re-reviewed');+ assert.match(resumed.out, new RegExp(`conflicts: #${conflictId} Conflict item.*\\[STALE_VERDICT\\]`));assert.deepEqual(document.verifiedNotMerged.integrating.map((entry) => entry.item.item_id), [activeId],'the >40 later plain shouts do not hide the structured descendant attempt');assert.equal(document.verifiedNotMerged.integrating[0].commit, descendant, 'the typed evidence keeps its full descendant SHA');