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.
JavaScript agentic-codingai-agentsai-governanceautonomous-agentsclaude-codeclicode-reviewcodexcoding-agentsdeveloper-toolsgit-hooksllmlocal-firstmulti-agentsoftware-factoryspec-driven-developmentverificationvibe-coding
fix(reopen): parse quoted landing names [V2,V6,H16]
Corey Olson3081d746fec5
diff --git a/src/board.js b/src/board.jsindex a6ec9aee..203d456a 100644--- a/src/board.js+++ b/src/board.js@@ -81,6 +81,7 @@ import { DatabaseSync } from 'node:sqlite';import { boardNotWritable } 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,@@ -101,6 +102,7 @@ export { itemFiles };import { COORDINATOR } from './config.js';import {manualLandingFailure,+ manualLandingFailureQuoted,firstRefusal,firstRefusalProblem,firstRefusalReason,@@ -109,6 +111,7 @@ import {} from './claims.js';import {ENGINE_VERSION,+ QUOTED_LANDING_FAILURE_ENGINE,REOPEN_FIRST_REFUSAL_ENGINE,VERDICT_REVIEW_ENGINE,MILESTONE_RANK_ENGINE,@@ -1435,7 +1438,7 @@ export function verify(board, id, { agentId, decision, reason, note = '', cause,* @param {{ agentId: string, note: string, cause?: string }} request* @returns {{ id: number, commit: string, supersedes?: number, landingFailure?: object }}*/-export function reopen(board, id, { agentId, note = '', conflict, cause, reopenFirstRefusalMinutes }) {+export function reopen(board, id, { agentId, note = '', conflict, cause, reopenFirstRefusalMinutes, quotedLandingFailure }) {return atomic(board, () => {let submittedCommit = null;const forMerge = conflict !== undefined && conflict !== null;@@ -1468,8 +1471,13 @@ export function reopen(board, id, { agentId, note = '', conflict, cause, reopenF&& Array.isArray(culprit.tests) && culprit.tests.length&& culprit.tests.every((failure) => typeof failure.file === 'string' && typeof failure.name === 'string'&& note.includes(`${failure.file}: ${failure.name}`) && note.includes(culprit.mergeCommit)));- const manual = manualLandingFailure(note);- if (!accepted || (!recorded && !manual)) return new Refused('LANDING_FAILURE_REQUIRED', `reopening verified item #${id} needs --note in the format <test file>: <test name>; merge commit <sha>`);+ const usesQuotedFailure = currentEngine >= QUOTED_LANDING_FAILURE_ENGINE+ && (quotedLandingFailure === true || manualLandingFailureQuoted(note));+ const offersQuotedFailureGuidance = currentEngine >= QUOTED_LANDING_FAILURE_ENGINE;+ const manual = manualLandingFailure(note, { quoted: usesQuotedFailure });+ if (!accepted || (!recorded && !manual)) return new Refused('LANDING_FAILURE_REQUIRED',+ `reopening verified item #${id} needs --note in the format <test file>: <test name>; merge commit <sha>${offersQuotedFailureGuidance ? ', or quote a test name containing a semicolon' : ''}`,+ offersQuotedFailureGuidance ? NEXT_STEPS.LANDING_FAILURE_REQUIRED : undefined);supersedes = accepted.event_id;landingFailure = recorded? { batch: recorded.batch.id, tests: recorded.culprit.tests, mergeCommit: recorded.culprit.mergeCommit }diff --git a/src/claims.js b/src/claims.jsindex 0c7b88ef..d6fd1c1a 100644--- a/src/claims.js+++ b/src/claims.js@@ -56,13 +56,86 @@ export function firstRefusalArgs(operation, args, config) {return [args[0], { ...args[1], reopenFirstRefusalMinutes: minutes }, ...args.slice(2)];}+/** Whether a manual landing note quotes a semicolon-delimited test name, including malformed attempts. */+export function manualLandingFailureQuoted(note) {+ if (typeof note !== 'string') return false;+ const generatedPrefix = /^Landing batch [a-z0-9_-]{1,80} failed /iu.exec(note);+ if (generatedPrefix) return false;+ const opening = /(?:^|;[ \t]*)(?:[\w.-]+\/)*[\w.-]+\.[a-z0-9]+:[ \t]*"/giu;+ for (const match of note.matchAll(opening)) {+ let escaped = false;+ let containsSeparator = false;+ for (let index = match.index + match[0].length; index < note.length; index += 1) {+ const character = note[index];+ if (character === ';') containsSeparator = true;+ if (character === '\r' || character === '\n') break;+ if (escaped) { escaped = false; continue; }+ if (character === '\\') { escaped = true; continue; }+ if (character === '"') break;+ }+ if (containsSeparator) return true;+ }+ return false;+}++/** Read a quoted test name and its end offset, refusing malformed escapes or multiline text. */+function quotedLandingTestName(text, start) {+ let escaped = false;+ for (let index = start + 1; index < text.length; index += 1) {+ const character = text[index];+ if (character === '\r' || character === '\n') return null;+ if (escaped) { escaped = false; continue; }+ if (character === '\\') { escaped = true; continue; }+ if (character !== '"') continue;+ let name;+ try { name = JSON.parse(text.slice(start, index + 1)); }+ catch { return null; }+ if (typeof name !== 'string' || !name.trim() || /[\r\n]/u.test(name)) return null;+ return { name, end: index + 1 };+ }+ return null;+}++/** Parse the manual failure list when its sealed move declares quoted names. */+function quotedManualLandingFailure(failureText, mergeCommit) {+ const tests = [];+ let offset = 0;+ while (offset < failureText.length) {+ const entry = /^(?<file>(?:[\w.-]+\/)*[\w.-]+\.[a-z0-9]+):[ \t]*/iu.exec(failureText.slice(offset));+ if (!entry) return null;+ offset += entry[0].length;+ let name;+ if (failureText[offset] === '"') {+ const quoted = quotedLandingTestName(failureText, offset);+ if (!quoted) return null;+ name = quoted.name;+ offset = quoted.end;+ while (failureText[offset] === ' ' || failureText[offset] === '\t') offset += 1;+ } else {+ const separator = failureText.indexOf(';', offset);+ const end = separator < 0 ? failureText.length : separator;+ name = failureText.slice(offset, end).trim();+ offset = end;+ }+ if (!name.trim() || /[\r\n]/u.test(name)) return null;+ tests.push({ file: entry.groups.file, name });+ if (offset === failureText.length) break;+ if (failureText[offset] !== ';') return null;+ offset += 1;+ while (failureText[offset] === ' ' || failureText[offset] === '\t') offset += 1;+ if (offset === failureText.length) return null;+ }+ return tests.length ? { tests, mergeCommit } : null;+}+/** Read test and merge-commit evidence from a hand-written landing note without checking Git. */-export function manualLandingFailure(note) {+export function manualLandingFailure(note, { quoted = false } = {}) {const generatedPrefix = /^Landing batch [a-z0-9_-]{1,80} failed /iu.exec(note);const body = generatedPrefix ? note.slice(generatedPrefix[0].length) : note;const evidence = body.match(/;[ \t]*merge commit[ \t]+(?<mergeCommit>[a-f0-9]{40}|[a-f0-9]{64})$/iu);if (!evidence) return null;const failureText = body.slice(0, evidence.index);+ if (quoted) return quotedManualLandingFailure(failureText, evidence.groups.mergeCommit);const firstTest = /(?<file>(?:[\w.-]+\/)*[\w.-]+\.[a-z0-9]+):[ \t]*/iu.exec(failureText);if (!firstTest) return null;const tests = failureText.slice(firstTest.index).split(/;[ \t]*/u).map((entry) => {diff --git a/src/engine-metadata.js b/src/engine-metadata.jsindex 904b5987..3587a9ec 100644--- a/src/engine-metadata.js+++ b/src/engine-metadata.js@@ -28,6 +28,7 @@ export function discoverEngines(directory = new URL('./', import.meta.url)) {}export { REOPEN_FIRST_REFUSAL_ENGINE } from './reopen-first-refusal-engine.js';+export { QUOTED_LANDING_FAILURE_ENGINE } from './quoted-landing-failure-engine.js';/** Every feature engine by name, discovered from the *-engine.js files beside this one. */export const ENGINE_REGISTRY = discoverEngines();diff --git a/src/engine.js b/src/engine.jsindex 85a0c830..3bb88441 100644--- a/src/engine.js+++ b/src/engine.js@@ -29,6 +29,7 @@ import { GATE_RUN_ENGINE } from './gate-run-engine.js';import { requireBound } from './quarantine.js';import {REOPEN_FIRST_REFUSAL_ENGINE,+ QUOTED_LANDING_FAILURE_ENGINE,CAUSE_ENGINE,ENGINE_VERSION,VERIFIER_STANDING_ENGINE,@@ -42,7 +43,7 @@ import {canonicalMilestoneTarget,} from './milestones.js';import { Refused } from './refused.js';-import { firstRefusal } from './claims.js';+import { firstRefusal, manualLandingFailureQuoted } from './claims.js';import {requestMoveProblem,recordRequestMove,@@ -92,6 +93,8 @@ const OPERATION_ENGINE = Object.freeze({ draftSpecRow: ROW_DRAFT_ENGINE, orderMi/** 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 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;@@ -105,19 +108,20 @@ function minimumOperationEngine(operation, args, board, at) {if (operation === 'shout' && args[0]?.item !== undefined) return ITEM_SHOUT_ENGINE;if (operation === 'landingLeaseMove' || args[0]?.landingFence !== undefined) return LANDING_LEASE_ENGINE;if (['verify', 'reopen'].includes(operation) && args[1]?.reopenFirstRefusalMinutes !== undefined- || ['claim', 'release'].includes(operation) && board && firstRefusal(board, args[0], at)) return REOPEN_FIRST_REFUSAL_ENGINE;+ || ['claim', 'release'].includes(operation) && board && firstRefusal(board, args[0], at)) return Math.max(REOPEN_FIRST_REFUSAL_ENGINE, quotedLandingFailureEngine);// A batch landed on the local trunk before it is published (#801).if (operation === 'recordLandingBatch' && args[0]?.batch?.state === 'trunk'|| operation === 'finishLandingBatch' && board && store.landingBatches(board).find(batch => batch.id === args[0]?.id)?.state === 'trunk') return LOCAL_LANDING_ENGINE;if (operation === 'recordFlakeObservation') return args[0]?.observation?.kind === 'ci' ? CI_FLAKE_ENGINE : NATIVE_FLAKE_ENGINE;if (operation === 'recordLandingBatch' && carriesFlakeDiagnostics(args[0]?.batch)) return NATIVE_FLAKE_ENGINE;- if (['proposeSentinel', 'decideSentinel', 'beginSentinelRun', 'finishSentinelRun'].includes(operation) || typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:')) return BOARD_SENTINEL_ENGINE;+ if (['proposeSentinel', 'decideSentinel', 'beginSentinelRun', 'finishSentinelRun'].includes(operation) || typeof args[1]?.cause === 'string' && args[1].cause.startsWith('sentinel:')) return Math.max(BOARD_SENTINEL_ENGINE, quotedLandingFailureEngine);if (['declareJob', 'recordJobRun'].includes(operation)) return RECURRING_JOB_ENGINE;if (operation === 'recordGateRun') return GATE_RUN_ENGINE;if (operation === 'recordHealthFindings') return HEALTH_SENTINEL_ENGINE;if (operation === 'reserveNextReview' && Array.isArray(args[0]?.skipIds) && args[0].skipIds.length) return REVIEW_SKIP_ENGINE;const options = args[1];- if (carriesConflict(operation, args)) return board && store.itemById(board, args[0])?.item_status === 'submitted' ? SUBMITTED_CONFLICT_ENGINE : CONFLICT_ENGINE;+ if (carriesConflict(operation, args)) return Math.max(board && store.itemById(board, args[0])?.item_status === 'submitted' ? SUBMITTED_CONFLICT_ENGINE : CONFLICT_ENGINE,+ quotedLandingFailureEngine);if (operation === 'submit' && options?.submissionProof !== undefined|| operation === 'recordLandingBatch' && args[0]?.batch?.invariantEvidence !== undefined) return SUBMISSION_PROOF_ENGINE;const given = (name) => Boolean(options && typeof options === 'object' && Object.hasOwn(options, name) && options[name] !== undefined && options[name] !== null && options[name] !== false);@@ -130,12 +134,13 @@ function minimumOperationEngine(operation, args, board, at) {if (operation === 'verify' && options && Object.hasOwn(options, 'review')) return VERDICT_REVIEW_ENGINE;if (operation === 'recordLandingBatch' && args[0]?.batch&& ['items', 'candidates'].some(key => Array.isArray(args[0].batch[key]) && args[0].batch[key].some(entry => entry && typeof entry === 'object' && Object.hasOwn(entry, 'reviewedCommit')))) return VERDICT_REVIEW_ENGINE;- if (['verify', 'reopen', 'appendFact'].includes(operation) && (given('cause') || given('neverAgain') || given('asPerson'))) return CAUSE_ENGINE;+ if (['verify', 'reopen', 'appendFact'].includes(operation) && (given('cause') || given('neverAgain') || given('asPerson'))) return Math.max(CAUSE_ENGINE, quotedLandingFailureEngine);if (carriesImplies(operation, args)) return IMPLIES_ENGINE;if (carriesBarReason(operation, args)) return BAR_ENGINE;if (operation === 'editMilestone' && options && Object.hasOwn(options, 'target') && options.target !== undefined) return MILESTONE_SHIP_ENGINE;- return operation === 'editItem' && options && Object.hasOwn(options, 'after') && options.after !== undefined+ const operationEngine = operation === 'editItem' && options && Object.hasOwn(options, 'after') && options.after !== undefined? 10 : OPERATION_ENGINE[operation] ?? 1;+ return Math.max(operationEngine, quotedLandingFailureEngine);}/** Read a replica's committed prefix without trusting an independently saved transport cursor. */@@ -174,12 +179,14 @@ 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);- const values = args.map((value) => value && typeof value === 'object' ? { ...value } : value);if (operation === 'release') {const problem = store.reviewReleaseNoteProblem(board, values[0], values[1], values[2]);if (problem) throw problem;diff --git a/src/next-step-words.js b/src/next-step-words.jsindex cb930781..c79df764 100644--- a/src/next-step-words.js+++ b/src/next-step-words.js@@ -246,7 +246,7 @@ export const NEXT_STEPS = Object.freeze({ITEM_LEASE_LOST: 'read pullboard show <id>; if the item is free, claim it again for a build or reserve it with pullboard next --verify <id> for a review, then retry',ITEM_NOT_AVAILABLE: 'read the item from this API\'s board state',ITEM_NOT_OPEN: 'hold only open or claimed items; see pullboard list',- LANDING_FAILURE_REQUIRED: 'reopen with --note "<test file>: <test name>; merge commit <sha>", or with --conflict <file> for each conflicting file when it only conflicts with the trunk',+ LANDING_FAILURE_REQUIRED: 'reopen with --note "<test file>: <test name>; merge commit <sha>", or with --note \'<test file>: "<test name; with semicolon>"; merge commit <sha>\' when the test name contains a semicolon, or use --conflict <file> for each file that only conflicts with the trunk',NOT_CONFLICTING: 'merge it; reopen only after a red landing, with --note "<test file>: <test name>; merge commit <sha>"',CONFLICT_FILES: 'name only the files Git reports as conflicting with the trunk: pullboard reopen <id> --conflict <file> [--conflict <file>]',NOT_ACCEPTED: 'reopen a submission with --note "why"; --conflict is for accepted work',diff --git a/src/quoted-landing-failure-engine.js b/src/quoted-landing-failure-engine.jsnew file mode 100644index 00000000..8ec83cbe--- /dev/null+++ b/src/quoted-landing-failure-engine.js@@ -0,0 +1,4 @@+/** Engine whose reopen moves declare quoted manual landing-test names. */+import { unassignedEngine } from './engine-next.js';++export const QUOTED_LANDING_FAILURE_ENGINE = unassignedEngine();diff --git a/test/reopen.test.js b/test/reopen.test.jsindex 75997dc0..9be40698 100644--- a/test/reopen.test.js+++ b/test/reopen.test.js@@ -1,4 +1,4 @@-/** @pullboard-test-loads src/board.js src/engine.js src/exchange.js src/machine.js */+/** @pullboard-test-loads src/board.js src/claims.js src/engine.js src/exchange.js src/machine.js *//** Real Git, SQLite and ordered-engine coverage for coordinator criterion reopen [V2,V6,H16]. */import assert from 'node:assert/strict';import { spawnSync } from 'node:child_process';@@ -260,6 +260,126 @@ test('the coordinator reopens a submitted item without a verdict [V2,V6,O8]', (tassert.equal(store.getItem(board, 1).item_criterion, 'The page renders a heading.');});+test('a reopen note can cite a test whose name contains a semicolon [V2,V6,H16]', async () => {+ const box = landingProject();+ const item = submitLandingFixture(box, 61, 'export const status = "PASS_QUOTED";\n');+ acceptLandingFixture(box, item);+ const mergeCommit = 'b'.repeat(40);+ const note = `web/landing.test.js: "keeps; the \\"landed\\" behavior"; web/other.test.js: "finds; the event"; merge commit ${mergeCommit}`;+ const malformed = box.run(box.repo, 'reopen', String(item.id), '--note',+ `web/landing.test.js: "keeps; the landed behavior; merge commit ${mergeCommit}`, '--json');+ assert.equal(malformed.code, 1);+ assert.equal(JSON.parse(malformed.out).error.code, 'LANDING_FAILURE_REQUIRED');+ const malformedUnquoted = box.run(box.repo, 'reopen', String(item.id), '--note',+ `web/landing.test.js: ; merge commit ${mergeCommit}`, '--json');+ assert.equal(malformedUnquoted.code, 1);+ assert.equal(JSON.parse(malformedUnquoted.out).error.code, 'LANDING_FAILURE_REQUIRED');+ assert.equal(readItem(box, item.id).item_status, 'verified', 'an unclosed quoted attempt cannot fall back to the historical parser');++ const board = store.openBoard(join(box.repo, '.git', 'pullboard', 'board.sqlite'));+ let snapshot;+ try {+ snapshot = exportBoard(board);+ }+ finally { store.closeBoard(board); }++ const reopened = box.run(box.repo, 'reopen', String(item.id), '--note', note, '--json');+ assert.equal(reopened.code, 0, [reopened.err, reopened.out].filter(Boolean).join('\n'));+ assert.match(JSON.parse(malformed.out).error.next,+ /--note '<test file>: "<test name; with semicolon>"; merge commit <sha>'/u,+ 'the refusal shows a shell-valid quoted form for a semicolon in the test name');+ assert.match(JSON.parse(malformedUnquoted.out).error.next,+ /--note '<test file>: "<test name; with semicolon>"; merge commit <sha>'/u,+ 'a current-engine refusal for an invalid unquoted note also shows the quoted form');+ const moveBoard = store.openBoard(join(box.repo, '.git', 'pullboard', 'board.sqlite'));+ let move;+ try {+ move = prepareEngineMove(moveBoard, 'reopen', [item.id, { agentId: 'coordinator', note }]);+ assert.equal(move.args[1].quotedLandingFailure, true);+ const { QUOTED_LANDING_FAILURE_ENGINE } = await import('../src/machine.js');+ assert.ok(move.engine >= QUOTED_LANDING_FAILURE_ENGINE);+ }+ finally { store.closeBoard(moveBoard); }++ const markedReplica = store.openBoard(':memory:');+ try {+ importBoard(markedReplica, snapshot);+ const beforeOldFloor = exportBoard(markedReplica);+ assert.throws(() => applyRelayMove(markedReplica, { ...move, engine: move.engine - 1 }, {+ sequence: 1, at: '2026-10-24T12:00:00.000Z', kind: 'move',+ sender: { kind: 'agent', userId: 'fixture-user', agent: 'coordinator' },+ }), (error) => error.code === 'RELAY_MOVE');+ assert.deepEqual(exportBoard(markedReplica), beforeOldFloor, 'an unmarked pre-feature engine cannot partially apply the new grammar');+ const result = applyRelayMove(markedReplica, move, {+ sequence: 1, at: '2026-10-24T12:00:00.000Z', kind: 'move',+ sender: { kind: 'agent', userId: 'fixture-user', agent: 'coordinator' },+ });+ assert.equal(result.error, undefined, JSON.stringify(result));+ assert.deepEqual(result.result.landingFailure.tests, [+ { file: 'web/landing.test.js', name: 'keeps; the "landed" behavior' },+ { file: 'web/other.test.js', name: 'finds; the event' },+ ]);+ }+ finally { store.closeBoard(markedReplica); }++ const expected = {+ batch: null,+ tests: [+ { file: 'web/landing.test.js', name: 'keeps; the "landed" behavior' },+ { file: 'web/other.test.js', name: 'finds; the event' },+ ],+ mergeCommit,+ };+ assert.deepEqual(JSON.parse(reopened.out).landingFailure, expected);+ const returned = readItem(box, item.id);+ assert.equal(returned.item_status, 'open');+ const event = returned.thread.findLast((entry) => entry.type === 'move' && entry.kind === 'reopen');+ assert.deepEqual(event.detail.landingFailure, expected);++ const historical = `test/a.test.js: "first; test/b.test.js: second"; merge commit ${'c'.repeat(40)}`;+ const legacyReplica = store.openBoard(':memory:');+ try {+ importBoard(legacyReplica, snapshot);+ const legacy = applyRelayMove(legacyReplica, {+ version: 1, engine: 10, id: 'legacy-quoted-manual', operation: 'reopen',+ args: [item.id, { agentId: 'coordinator', note: historical }], actor: 'coordinator',+ }, { sequence: 1, at: '2026-10-24T12:00:00.000Z', kind: 'move',+ sender: { kind: 'agent', userId: 'fixture-user', agent: 'coordinator' } });+ assert.equal(legacy.error, undefined, JSON.stringify(legacy));+ assert.deepEqual(legacy.result.landingFailure.tests, [+ { file: 'test/a.test.js', name: '"first' },+ { file: 'test/b.test.js', name: 'second"' },+ ], 'old unmarked moves retain the historical semicolon split');+ }+ finally { store.closeBoard(legacyReplica); }++ const legacyRefusalReplica = store.openBoard(':memory:');+ try {+ importBoard(legacyRefusalReplica, snapshot);+ const legacyRefusal = applyRelayMove(legacyRefusalReplica, {+ version: 1, engine: 10, id: 'legacy-quoted-refusal', operation: 'reopen',+ args: [item.id, { agentId: 'coordinator', note: 'not landing evidence' }], actor: 'coordinator',+ }, { sequence: 1, at: '2026-10-24T12:00:00.000Z', kind: 'move',+ sender: { kind: 'agent', userId: 'fixture-user', agent: 'coordinator' } });+ assert.equal(legacyRefusal.error?.code, 'LANDING_FAILURE_REQUIRED');+ assert.equal(legacyRefusal.error.message,+ `reopening verified item #${item.id} needs --note in the format <test file>: <test name>; merge commit <sha>`,+ 'an old unmarked refusal retains its recorded-engine message');+ assert.equal(store.getItem(legacyRefusalReplica, item.id).item_status, 'verified');+ }+ finally { store.closeBoard(legacyRefusalReplica); }++ const unquotedWorktree = join(box.dir, 'unquoted-web');+ const unquotedItem = submitLandingFixture(box, 62, 'export const status = "PASS_UNQUOTED";\n', unquotedWorktree);+ acceptLandingFixture(box, unquotedItem);+ const unquotedNote = `review context: web/landing.test.js: keeps the landed behavior; merge commit ${'c'.repeat(40)}`;+ const unquotedReopen = box.run(box.repo, 'reopen', String(unquotedItem.id), '--note', unquotedNote, '--json');+ assert.equal(unquotedReopen.code, 0, [unquotedReopen.err, unquotedReopen.out].filter(Boolean).join('\n'));+ assert.deepEqual(JSON.parse(unquotedReopen.out).landingFailure.tests,+ [{ file: 'web/landing.test.js', name: 'keeps the landed behavior' }],+ 'the current CLI preserves unquoted evidence found after prose');+});+test('a red landing gate returns a verified item to its builder [B3,V4]', async (t) => {const box = landingProject();const item = submitLandingFixture(box, 1, 'export const status = "RED";\n');