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
Merge branch 'main' into core/49
Corey Olson208964ee1aff
diff --cc src/cli.jsindex 90ebe8d1,8ef4d045..4f3e351f--- a/src/cli.js+++ b/src/cli.js@@@ -60,7 -60,8 +60,8 @@@ import { mainPolicy, itemPolicy, submisimport { exportBoard, importBoard } from './exchange.js';import { addSigner, assertRequiredSigners, defaultPrincipal, hasSignerFile } from './signature.js';import { loadMachineSettings, setGateSlots } from './settings.js';-import { relayLinked, relayOff, relayOn, relayOperation, relayStatus, syncRelay } from './relay.js';+import { relayCommandReceipt, relayCommandReceiptReported, relayLinked, relayOff, relayOn, relayOperation, relayRecovered, relayStatus, syncRelay } from './relay.js';+ import { executePersonRequests } from './relay-request-execution.js';const PACKAGE = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf8'));export const VERSION = PACKAGE.version;diff --cc src/relay.jsindex 3f4e22c7,ffab2980..913acbcb--- a/src/relay.js+++ b/src/relay.js@@@ -419,26 -388,20 +423,38 @@@ export async function relayOperation(rodelete state.pending;saveLink(file, state);}+ const previousReceipt = io.personRequestMoveId && localRecords(root, board => engineReceipt(board, io.personRequestMoveId));+ if (previousReceipt) {++ if (state.recovered?.move?.id === io.personRequestMoveId) {++ delete state.recovered;++ saveLink(file, state);++ }+ if (previousReceipt.outcome.error) throw new Refused(previousReceipt.outcome.error.code, previousReceipt.outcome.error.message);+ for (const event of previousReceipt.outcome.events ?? []) io.onEvent?.(event);+ return previousReceipt.outcome.result;+ }- const move = localRecords(root, (board) => prepareEngineMove(board, operation, args, io.personRequestMoveId ? { id: io.personRequestMoveId } : {}));- if (io.personRequest) move.personRequest = structuredClone(io.personRequest);- const sequence = state.sequence + 1;- state.pending = { move, sequence, sealed: await sealedRecord(readBoardKey(state.board), move, state, 'move', sequence) };- saveLink(file, state);- await sendPending(root, file, state, io);+ let move = recoveredMove(root, state, operation, args, command);+ if (!move) {- move = localRecords(root, (board) => prepareEngineMove(board, operation, args));++ move = localRecords(root, (board) => prepareEngineMove(board, operation, args, io.personRequestMoveId ? { id: io.personRequestMoveId } : {}));++ if (io.personRequest) move.personRequest = structuredClone(io.personRequest);+ const sequence = state.sequence + 1;+ state.pending = { move, intent: operationIntent(operation, args),+ ...(command ? { command, commandIntent: operationIntent('cli:' + command.cliOperation, command) } : {}), sequence,+ sealed: await sealedRecord(readBoardKey(state.board), move, state, 'move', sequence) };+ saveLink(file, state);+ try { await sendPending(root, file, state, io); }+ catch (error) {+ if (!['RELAY_UNAVAILABLE', 'RELAY_RESPONSE'].includes(error.code)) throw error;+ // A lost acknowledgement can be recovered now without asking the caller to retry side effects.+ try { await catchUp(root, file, state, io); } catch { throw error; }+ if (!localRecords(root, (board) => engineReceipt(board, move.id))) throw error;+ }+ }++const receipt = localRecords(root, (board) => engineReceipt(board, move.id));if (!receipt) throw new Refused('RELAY_RESPONSE', 'the acknowledged operation has no replay receipt; fetch a consistent relay snapshot');+ delete state.recovered;+ saveLink(file, state);// A phone can read a compacted checkpoint; failed presentation uploads do not undo the move.try { await publishCheckpoint(root, file, state, io); }catch (error) { if (!(error instanceof Refused)) throw error; io.err(`pullboard: ${error.message}`); }