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.

fix(core): scope computed returns to review preflight [V4,M1]

Corey Olsone09c0e9f2e35
diff --git a/src/cli.js b/src/cli.js
index a8eeef54..923bdca4 100644
--- a/src/cli.js
+++ b/src/cli.js
@@ -573,7 +573,6 @@ export function relayOutboxSetting(root) {
}
export async function ordered(ctx, board, operation, args) {
- if (operation === 'reopen') args = computedReturnArgs(board, args);
const initialBaseline = initialSpecApprovalBaseline(ctx, board, operation);
// 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));
@@ -1524,7 +1523,7 @@ export async function nextOnce(ctx, values) {
if (!looked.claim) return looked;
return await withBoard(ctx, async (board) => {
if (values.verify) checkMainVerifier(ctx, board, values);
- if (values.verify) return nextReview(ctx, board, whoAmI(ctx, board), values, { ordered: (operation, args) => ordered(ctx, board, operation, args), idArg, trunkMerge });
+ if (values.verify) return nextReview(ctx, board, whoAmI(ctx, board), values, { ordered: (operation, args) => ordered(ctx, board, operation, operation === 'reopen' ? computedReturnArgs(board, args) : args), idArg, trunkMerge });
const picked = nextPick(ctx, board, values);
if (!picked.claim) return picked;
const { me, item, held, shared, reasons, reviewSkipped, seats } = picked;