Skip to content

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.

chore: merge current trunk before approval review [S1]

Corey Olsonfbb1346da929
diff --cc src/cli.js
index 70f7166a,fb75c0f6..d8ab4035
--- a/src/cli.js
+++ b/src/cli.js
@@@ -871,10 -867,18 +871,20 @@@ export async function reserveRow(ctx, r
/** Note the session behind a claim or submit (#921): its ledger must be writable before the move, and record after it. */
async function withItemSession(info, operation, args, move) { const noted = operation === 'claim' || operation === 'submit'; if (noted) itemSessions.requireLedger(info); const result = await move(); if (noted) itemSessions.recordItemSession(info, args[0], operation); return result; }
+ /**
+ * Whether the board's committed relay.outbox setting queues moves while the relay is down (#922).
+ * Why: it is read from the trunk's pullboard.json, so every machine on the board follows the same committed choice.
+ */
+ function relayOutboxSetting(root) {
+ try { return configFromSource(coordinatorFile(root, CONFIG_FILE).stdout).relay?.outbox === true; } catch { return false; }
+ }
+
export async function ordered(ctx, board, operation, args) {
+ const baselineRoot = ctx.info.isMain && operation !== 'recordSpecApprovalBaseline' && !store.specApprovalBaselineExists(board) ? primaryCheckoutRoot(ctx.info) : null;
+ const initialBaseline = baselineRoot ? captureSpecApprovalBaseline(baselineRoot, loadConfig(baselineRoot)) : null;
- if (['verify', 'reopen'].includes(operation)) args = firstRefusalArgs(operation, args, configFromSource(coordinatorFile(ctx.info.root, CONFIG_FILE).stdout));
+ // Only a reject or a reopen can open a builder's first-refusal window (#954), so an accept never reads the coordinator's policy.
+ if (operation === 'reopen' || operation === 'verify' && args[1]?.decision === 'REJECT') args = firstRefusalArgs(operation, args, configFromSource(coordinatorFile(ctx.info.root, CONFIG_FILE).stdout));
+ ctx.io.relayOutbox ??= () => relayOutboxSetting(ctx.info.root);
// Every engine-27 registration records the seat that made it: the coordinator from the main
// checkout, the joined agent from its worktree, or `machine` for a join no seat made (#579).
if (operation === 'register' && args[0] && args[0].createdBy === undefined) {
diff --cc src/commands/show.js
index 835b02f7,08b77dce..5246061e
--- a/src/commands/show.js
+++ b/src/commands/show.js
@@@ -42,13 -42,12 +43,15 @@@ export function run(io, { first, value
related: store.relatedItems(board, store.getItem(board, id)),
reviewer: store.reviewHolder(board, store.getItem(board, id)),
agents: store.listAgents(board), mainMerge: mainMergeFor(board, id), infra: infraNotes.infraNoteOf(store.events(board, { itemId: id })),
+ approval: specApprovalState(ctx.info.root, { board, config: ctx.config }),
}));
const agentName = (id) => displayAgentName(agents.find((agent) => agent.agent_id === id) ?? { agent_id: id }, ctx.config.agents.names);
+ const agentApproved = itemAgentApprovals(item, approval);
+ const approvalQualification = agentApprovalLine(agentApproved);
+ // #922: moves on this item made while the relay was down wait in this machine's relay outbox until it answers.
+ const relayPending = (relayStatus(ctx.info.root).outbox ?? []).filter((move) => move.item === id);
if (values.json) {
- io.result({ ...item, verdicts, thread, agentApproved, approvalQualification });
- io.result({ ...item, verdicts, thread, ...(relayPending.length ? { relayPending } : {}) });
++ io.result({ ...item, verdicts, thread, agentApproved, approvalQualification, ...(relayPending.length ? { relayPending } : {}) });
return 0;
}
io.say(itemLine(item, agentName, Boolean(mainMerge)));