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 commit 'fd47453359c9d58554a9739d8ac20ddc229a0a5a' into HEAD

Corey Olson5cc3ee292a90
diff --cc src/engine.js
index c5fcd97d,1491b59f..95075a53
--- a/src/engine.js
+++ b/src/engine.js
@@@ -205,15 -200,16 +208,18 @@@ export function startRelayEpoch(board)
/** Turn caller-only callbacks into deterministic values before sealing an executable operation. */
export function prepareEngineMove(board, operation, args, { id = randomUUID(), actor } = {}) {
if (!ENGINE_OPERATIONS.includes(operation) || !Array.isArray(args)) throw new Refused('RELAY_MOVE', 'use a supported board-engine operation with its argument array');
- if (operation === 'submit' && ENGINE_VERSION >= SUBMISSION_PROOF_ENGINE) submissionProof(args[1]?.submissionProof);
+ const values = args.map((value) => value && typeof value === 'object' ? { ...value } : value);
+ if (operation === 'reopen' && values[1] && typeof values[1] === 'object'
+ && manualLandingFailureQuoted(values[1].note)) values[1].quotedLandingFailure = true;
+ if (operation === 'submit' && ENGINE_VERSION >= SUBMISSION_PROOF_ENGINE) submissionProof(values[1]?.submissionProof);
+ if (operation === 'claim' && ['wipPerReviewer', 'takeoverMinutes'].some(key => typeof lineSettings(board)[key] === 'number')) {
- args = [args[0], { ...args[1], lineCapacity: true }, ...args.slice(2)];
++ values[1] = { ...values[1], lineCapacity: true };
+ }
- const minimumEngine = minimumOperationEngine(operation, args, board);
+ const minimumEngine = minimumOperationEngine(operation, values, board);
if (ENGINE_VERSION < minimumEngine) throw new Refused('ENGINE_VERSION', `${operation} requires engine version ${minimumEngine}; this pullboard uses engine ${ENGINE_VERSION}; upgrade before sending it`);
// A gate run is sealed only as its gate's own receipt; a run made up by hand is refused before it reaches any replica.
- if (operation === 'recordGateRun') requireBound(board, args[0]?.receipt);
- if (operation === 'verify' && args[1]?.sandbox !== undefined) requireOutsideReceipt(board, args[1].sandbox);
- const values = args.map((value) => value && typeof value === 'object' ? { ...value } : value);
+ if (operation === 'recordGateRun') requireBound(board, values[0]?.receipt);
+ if (operation === 'verify' && values[1]?.sandbox !== undefined) requireOutsideReceipt(board, values[1].sandbox);
if (operation === 'release') {
const problem = store.reviewReleaseNoteProblem(board, values[0], values[1], values[2]);
if (problem) throw problem;