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(merge): submit and accept refuse unmergeable work [B34,V6]
Corey Olsonc98b5b1ed0e6
diff --cc src/cli.jsindex 8ef4d045,8adad0f9..3c70993a--- a/src/cli.js+++ b/src/cli.js@@@ -1501,11 -1495,14 +1503,14 @@@ async function verifyHere(ctx, id, { se}if (decision === 'ACCEPT') {if (digest !== item.item_frozen_digest) throw new Refused('CRITERIA_CHANGED', 'the criterion changed; ask the coordinator to refreeze this item before checking it');+ requireTrunkMerge(root, commit);- const check = checkAtCommit(root, item);+ check = checkAtCommit(root, item);if (check.state === 'unverified') throw new Refused('CHECK_UNVERIFIED', `the frozen ${check.stage} could not be verified at the submitted commit; restore the install or check environment, then retry verification; output digest:\n${check.report.replace(/^/gm, ' ')}`);if (check.state === 'red') throw new Refused('CHECK_RED', `the frozen item check is red at the submitted commit; check.install may be needed for dependencies; reject with the failing behavior or ask the builder to fix and resubmit; output digest:\n${check.report.replace(/^/gm, ' ')}`);+const receipt = store.events(board, { itemId: id }).filter(event => event.event_kind === 'submit').map(event => JSON.parse(event.event_detail)).find(event => event.commit === commit);submissionPaths(root, item, commit, { mainCommit: receipt?.policyCommit, dependencies: dependencySnapshots(board.db, item) });+ requireTrunkMerge(root, commit); // Re-read after the frozen check, before accepting.}return await ordered(ctx, board, 'verify', [id, {agentId: me.id,@@@ -2351,14 -2358,8 +2369,15 @@@ export async function main(argv, streamif (!['NOT_A_REPO', 'NO_REPO', 'NO_CONFIG', 'CORE_BARE'].includes(error.code)) io.err(`pullboard: ${error.message}`);}};+ rememberTrunk(io);- if (sync) await retry();+ if (sync) {+ await retry();+ try { await executePersonRequests(io.cwd, io, main); }+ catch (error) {+ if (!(error instanceof Refused)) throw error;+ if (!['NOT_A_REPO', 'NO_REPO', 'NO_CONFIG', 'CORE_BARE'].includes(error.code)) io.err('pullboard: ' + error.message);+ }+ }const code = await runCommand(argv, io);if (sync && code === 0) await retry();io.flush(code);