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(reopen): parse quoted semicolon tests [V2,V6,H16]

Corey Olsonea535dc0f67d
diff --cc src/board.js
index b1272a9f,5c6e5ea6..be35a901
--- a/src/board.js
+++ b/src/board.js
@@@ -104,18 -83,15 +104,19 @@@ import
mkdirSync,
} from 'node:fs';
import { dirname } from 'node:path';
-import { sharedSchemaOwner } from './board-schema.js';
-import { expectedBoardSchema } from './board-schema.js';
-import { sharedSchemaDiagnostic } from './board-schema.js';
-import { reportSharedSchema } from './board-schema.js';
+import {
+ sharedSchemaOwner,
+ expectedBoardSchema,
+ sharedSchemaDiagnostic,
+ reportSharedSchema,
+} from './board-schema.js';
import { DatabaseSync } from 'node:sqlite';
-import { boardNotWritable } from './board-access.js';
+import {
+ boardNotWritable,
+ boardBusyError,
+} from './board-access.js';
import { ensureHotIndexes } from './board-hot.js';
-import { boardBusyError } from './board-access.js';
+ import { NEXT_STEPS } from './next-step-words.js';
export { boardBusyError } from './board-access.js';
import {
boardStanding,
diff --cc src/engine.js
index c332cfcd,fce60e4d..9e6f1961
--- a/src/engine.js
+++ b/src/engine.js
@@@ -101,16 -100,10 +105,18 @@@ const OPERATION_ENGINE = Object.freeze(
/** Dependency edits, causes, sealed reviews, submission proofs, trunk conflicts, health observations and milestone targets retain distinct recorded engine meanings. */
function minimumOperationEngine(operation, args, board, at) {
+ const outside = ['intakeOutside', 'approveOutside'].includes(operation) || operation === 'verify' && args[1]?.sandbox !== undefined
+ || board && ['claim', 'submit', 'verify', 'merged'].includes(operation) && Boolean(outsideSource(board, args[0]));
+ return Math.max(outside ? OUTSIDE_INTAKE_ENGINE : 1, minimumExistingOperationEngine(operation, args, board, at));
+}
+
+/** Preserve each pre-existing move's required feature level when composing outside metadata. */
+function minimumExistingOperationEngine(operation, args, board, at) {
if (['setBarReady', 'signBar'].includes(operation) || board && ['claim', 'submit', 'editItem', 'addItem', 'refreeze'].includes(operation) && barReadySetting(board).enabled) return BAR_READY_ENGINE;
if (operation === 'recordPublishFinding') return PR_BRIDGE_ENGINE;
+ if (operation === 'setLineSetting' && args[0]?.key === 'order') return LINE_ORDER_ENGINE;
+ const quotedLandingFailureEngine = operation === 'reopen' && args[1]?.quotedLandingFailure === true
+ ? QUOTED_LANDING_FAILURE_ENGINE : 1;
if (operation === 'recordLandingTestDefect' || operation === 'verify' && args[1]?.environment !== undefined
|| operation === 'recordGateRun' && Object.hasOwn(args[0]?.receipt ?? {}, 'environment')
|| operation === 'recordLandingBatch' && carriesLandingEnvironment(args[0]?.batch)) return LANDING_ENVIRONMENT_ENGINE;
@@@ -193,13 -188,14 +201,15 @@@ 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 minimumEngine = minimumOperationEngine(operation, args, board);
+ 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);
+ 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;