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.

Merge branch 'main' into HEAD

Corey Olsonf9ef064bcbb7
diff --cc src/cli.js
index 531123d9,9e44c15f..88209744
--- a/src/cli.js
+++ b/src/cli.js
@@@ -1,4 -1,4 +1,5 @@@
+import { requireHandoffActive } from './handoff-state.js';
+ import { requestedCommandMove } from './recorded-move.js';
export { barActorForCommand } from './bar-actor.js';
import {
barReadinessRequired,
@@@ -587,13 -592,20 +588,22 @@@ export async function ordered(ctx, boar
() => store.recordSpecApprovalBaseline(board, ...values))
: store.recordSpecApprovalBaseline(board, ...values);
};
- ensureSpecApprovalCoordinator(ctx, board, initialBaseline);
const actor = ctx.info.isMain ? COORDINATOR : store.agentAt(board, ctx.info.root)?.agent_id;
+ requireHandoffActive(board, actor, operation, args);
+ ensureSpecApprovalCoordinator(ctx, board, initialBaseline);
+ const write = () => store.atomic(board, () => { requireHandoffActive(board, actor, operation, args); return store[operation](board, ...args); });
if (initialBaseline && actor) await recordBaseline(actor);
+ const requested = requestedCommandMove(ctx.io.relayCommand?.cliOperation, operation);
+ /** Called only for this requested operation, after its store transaction commits, never for bootstrap. */
+ const applyRequested = () => {
+ const before = board.lastEvent;
- const result = store[operation](board, ...args);
++ const result = write();
+ if (requested && board.lastEvent !== before) ctx.io.recordedMove = true;
+ return result;
+ };
const result = await withItemSession(ctx.info, operation, args, () => relayLinked(ctx.info.root) || relayRecovered(ctx.info.root)
- ? relayOperation(ctx.info.root, operation, args, ctx.io, command, write) : write());
+ ? relayOperation(ctx.info.root, operation, args, ctx.io, command, applyRequested,
+ requested ? () => { ctx.io.recordedMove = true; } : undefined) : applyRequested());
return result;
};
const digest = agentSessionDigest();