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.

feat(core): escalate repeated route rejections [B15,B13]

Corey Olsond43f4f48566d
diff --cc docs/api.md
index 2a1d12d0,2a1d12d0..c6189643
--- a/docs/api.md
+++ b/docs/api.md
@@@ -214,6 -214,6 +214,10 @@@ The current release is the roadmap's fi
`pullboard.json` sets the thresholds under `health`, each a duration like `90m`, `2h` or `1d`: `stuck` (default `1h`), `holds` (default `1d`) and `release` (default `1d`). A value that is not a duration is refused as `BAD_CONFIG`.
++## Automatic escalation
++
++Starting with engine 41, the second REJECT verdict since an item's latest route change records the existing escalation move automatically. Releases do not count as failed attempts. One `escalate` event carries both rejection records, including their reason, note, commit, digest, checked head and timestamp. A hand escalation or a route edit starts a new count; strong remains the ceiling. Sealed operations from engines below 41 retain their prior replay behavior.
++
## Item threads
`pullboard fact <id> <kind> "<text>"` appends a fact to an existing item. The observation kinds are `capture`, `measurement`, `note` and `diff`; any registered agent may append them. The judgement kinds are `decision`, `rejection`, `supersession` and `root-cause`; only the item's live lease holder or the coordinator may append them. An expired lease gives no judgement permission. Facts do not change the item's status or its claim.
diff --cc docs/formats.md
index e6137d4b,e6137d4b..42b475ad
--- a/docs/formats.md
+++ b/docs/formats.md
@@@ -113,7 -113,7 +113,7 @@@ The board file is in the repository's G
| `row grammar` | `1` | `SPEC_GRAMMAR_VERSION` in `src/spec.js`; optional `<!-- pullboard-grammar N -->` line in either file (absence means the current grammar) | Both files share the version. A declared version must match; an incompatible grammar change requires a coordinated version bump and compatible files. No automatic conversion occurs. |
| `board schema` | `2` | `SCHEMA_VERSION` in `src/board.js`, persisted as `PRAGMA user_version` | Create missing tables and indexes, add missing columns in place with declared defaults, restore missing or changed triggers, and remove stale machine triggers without replacing rows. |
| `event log` | `1` | `EVENT_LOG_VERSION` in `src/board.js`, persisted in `board_meta` as `event_log_version` | Older event-log versions upgrade in place; newer versions are refused with `EVENT_LOG_VERSION`. Preserve event rows when the board schema changes. |
--| `move engine` | `33` | `ENGINE_VERSION` in `src/machine.js`, carried as `engine` in every sealed executable move | Bump when a move's meaning changes, independently of the event log and sealed envelope. A newer engine is refused with `ENGINE_VERSION`, naming both versions and asking you to upgrade Pullboard. |
++| `move engine` | `41` | `ENGINE_VERSION` in `src/machine.js`, carried as `engine` in every sealed executable move | Bump when a move's meaning changes, independently of the event log and sealed envelope. A newer engine is refused with `ENGINE_VERSION`, naming both versions and asking you to upgrade Pullboard. |
<!-- format-versions:end -->
Pullboard 0.6.1 released engine 1. Engine 2 records a fresh explicit-build claim's skipped-review snapshot. Pullboard 0.8.1 released engine 3, including lane-sensitive graft refusals and authenticated relay senders. Engine 4 adds captured background-baseline completions through `completeCheckBaseline`; released engine-3 clients stop with `ENGINE_VERSION` before interpreting this new operation or advancing their replay cursor. Engine 5 requires a one-line reason when releasing a review and gives that reviewer a one-hour cooldown for the current submission. Each sealed move replays under its recorded engine version: engines 1 through 4 retain the original release event and review-reservation behavior. Engine 5 retains support for older moves, including engine-4 baseline completions. Pullboard 0.8.3 released engine 6, adding board-scoped machine credentials and permitting machine execution only for one exact, earlier authenticated phone request, including its payload digest. Engine 7 adds ordered item holds through `holdItem` and `releaseItemHold`; engine-6 clients stop with `ENGINE_VERSION` before interpreting either operation or advancing their replay cursor. Engine 8, shared by the 0.8.5 move changes, retains merged-item exception notes, selects the next review in roadmap order, and adds coordinator-only `reopen` for a submission returned without a verdict; engine-7 clients stop with `ENGINE_VERSION` before interpreting this new operation or advancing their replay cursor. Recorded engines 1 through 7 retain their original tier-first review selection. Engine 8 also adds durable refusal recovery for blocked relay positions; each explicit skip publishes the readable prefix even when another unsupported record follows. Engine 8 also permits coordinator criterion/check edits on a live claim as pending corrections; the holder cannot renew or submit until a refreeze adopts the correction while preserving the claim. Older request receipts retain their recorded engine semantics. Upgrade every linked device before using the new moves. Each release shares one engine bump across its changed moves. Engine 8 also retains declared model labels on registration and records each registered agent move's model snapshot; engines 1 through 7 retain their original registration and event details without these model fields. Pullboard 0.8.8 released engine 9, which allows resubmitting the same rejected commit after a corrected criterion is refrozen, but only when the rejection names a different frozen digest. Engine 8 retains its HEAD_NOT_NEW refusal and prior submit-event detail. Engine-9 submit events add `criterionDigest`, and engine-8 boards replay with the original refusal and event history.
@@@ -128,6 -128,6 +128,8 @@@ Engine 19 makes a corrected bar record
Engine 33 binds a review to the immutable submitted commit, the exact checked composition, its reviewed trunk and sorted candidate paths. A stale, unmerged acceptance can be re-reviewed without rewriting the submission; landing uses its accepted checked composition. New review metadata and landing batches carrying `reviewedCommit` require engine 33, including later updates to those batches. Previously recorded outcomes replay before this state-dependent version check, and previously released engines retain their original review and landing behavior. Older clients refuse engine-33 moves before changing their board or replay cursor; upgrade linked clients before using checked-composition reviews. The coordinator assigned engine 33 to this change. Merge the actual trunk before landing.
++Engine 41 automatically advances a rejected item one route after two REJECT verdicts on the current route. A release is not a rejection; a manual escalation or an actual route edit starts a new count. The existing escalation event records both rejection receipts. The strong route remains the ceiling. Moves below engine 41 retain their earlier behavior and do not automatically escalate. Upgrade linked boards before using automatic rejection escalation.
++
Engine 20 lets a decision name the items it changes. An `appendFact`, `answerDecision` or `verify` move may carry `implies`, a list of existing item ids, and an `answerDecision` move may carry `supersedes`, the shout id of an earlier answer. Either makes the move an engine-20 move: an older engine refuses it with `RELAY_MOVE` before changing its board or cursor, and a board replaying an older engine refuses `implies` with `ENGINE_VERSION`. Engine 20 also tells implied items when a decision is superseded: by a fact's `supersedes`, by an answer's `supersedes`, or by the next verdict on the same item. Moves recorded under engines 19 and earlier replay without these notices. Engine numbers 13 to 18 are allocated to other changes; whichever lands later renumbers, keeping every earlier engine's replay unchanged.
Engine 24 adds the person's `acceptCheck`: an item's current check, named by its SHA-256 digest, accepted so a check already green on main no longer holds the item on a board whose `checks.provesNothing` is `"hold"`. Only the person may send it, from the terminal or the view; the relay refuses it from an agent or a machine. A move from an older engine is refused before it changes the board or replay cursor, and older clients refuse engine-24 moves before interpreting them. Engines 21 through 23 are allocated to other changes.
diff --cc src/board.js
index 38f376bc,38f376bc..45bc3fd0
--- a/src/board.js
+++ b/src/board.js
@@@ -15,7 -15,7 +15,7 @@@ import { DatabaseSync } from 'node:sqli
import { boardNotWritable } from './board-access.js';
import { briefFiles, briefSections } from './brief.js';
import { COORDINATOR } from './config.js';
--import { ENGINE_VERSION, VERDICT_REVIEW_ENGINE, GUARDS, IN_STATE, MOVES, STATES, UNKNOWN_MOVE, effectiveGuards, storeTriggers } from './machine.js';
++import { AUTO_ESCALATE_ENGINE, ENGINE_VERSION, VERDICT_REVIEW_ENGINE, GUARDS, IN_STATE, MOVES, STATES, UNKNOWN_MOVE, effectiveGuards, storeTriggers } from './machine.js';
import { Refused } from './refused.js';
import { causeProblem, requireNeverAgain } from './rigor.js';
import { barCorrectionFields } from './bar-corrections.js';
@@@ -998,10 -998,10 +998,10 @@@ const onlyCoordinator = (agentId, what
*
* @param {any} board
* @param {number} id
-- * @param {{ agentId: string, note: string, attempt?: string }} why
++ * @param {{ agentId: string, note: string, attempt?: string, rejections?: object[] }} why
* @returns {{ from: string, to: string }}
*/
--export function escalate(board, id, { agentId, note, attempt = '' }) {
++export function escalate(board, id, { agentId, note, attempt = '', rejections }) {
return atomic(board, () => {
const nextRoute = (route) => ROUTES[Math.min(ROUTES.indexOf(route) + 1, ROUTES.length - 1)];
const item = moveItem(board, id, 'escalate', {
@@@ -1019,7 -1019,7 +1019,9 @@@
});
const from = item.item_route;
const to = nextRoute(from);
-- logEvent(board, agentId, 'escalate', id, { from, to, note: note.trim(), ...(attempt ? { attempt } : {}) });
++ logEvent(board, agentId, 'escalate', id, {
++ from, to, note: note.trim(), ...(attempt ? { attempt } : {}), ...(rejections ? { rejections } : {}),
++ });
return { from, to };
});
}
@@@ -1475,6 -1475,6 +1477,61 @@@ function reserveWithin(board, id, { age
return getItem(board, id);
}
++/** Return rejected verdict receipts since the item's most recent route change [B15,B13].
++ *
++ * @param {any} board
++ * @param {number} id
++ * @returns {object[]}
++ */
++function rejectionsSinceRouteChange(board, id) {
++ const thread = events(board, { itemId: id });
++ let lastRouteChange = -1;
++ for (const [index, event] of thread.entries()) {
++ if (event.event_kind === 'escalate') {
++ lastRouteChange = index;
++ continue;
++ }
++ if (event.event_kind === 'edit' && Object.hasOwn(JSON.parse(event.event_detail), 'route')) lastRouteChange = index;
++ }
++ const verdictEvents = thread.filter((event) => ['accept', 'reject'].includes(event.event_kind));
++ const verdicts = verdictsFor(board, id);
++ const byEvent = new Map(verdictEvents.map((event, index) => [event.event_id, verdicts[index]]));
++ return thread.slice(lastRouteChange + 1).flatMap((event) => {
++ if (event.event_kind !== 'reject') return [];
++ const verdict = byEvent.get(event.event_id);
++ if (!verdict || verdict.verdict_decision !== 'REJECT') return [];
++ return [{
++ eventId: event.event_id,
++ verdictId: verdict.verdict_id,
++ by: verdict.verdict_by,
++ reason: verdict.verdict_reason,
++ note: verdict.verdict_note,
++ commit: verdict.verdict_commit,
++ digest: verdict.verdict_digest,
++ head: verdict.verdict_head,
++ at: verdict.verdict_at,
++ }];
++ });
++}
++
++/** Automatically apply the existing escalation move when the current route has two rejects [B15].
++ *
++ * @param {any} board
++ * @param {number} id
++ * @param {number} engine
++ */
++function autoEscalateRejectedItem(board, id, engine) {
++ if (engine < AUTO_ESCALATE_ENGINE) return;
++ const rejections = rejectionsSinceRouteChange(board, id).slice(-2);
++ if (rejections.length < 2) return;
++ const item = itemById(board, id);
++ escalate(board, id, {
++ agentId: COORDINATOR,
++ note: `Two REJECT verdicts at the ${item.item_route} route`,
++ rejections,
++ });
++}
++
/**
* Record a verdict on submitted work, or a sealed re-review of unlanded work (E8,V1,V3,V8).
* An accept verifies it; a reject
@@@ -1548,6 -1548,6 +1605,7 @@@ export function verify(board, id, { age
if (isAccept && check !== undefined) detail.check = check;
if (newReview) detail.review = { commit: review.commit, ...(Object.hasOwn(review, 'head') ? { head: review.head } : {}), trunk: review.trunk, paths: [...review.paths] };
logEvent(board, agentId, verb, id, implies?.length ? { ...detail, implies } : detail);
++ if (!isAccept) autoEscalateRejectedItem(board, id, engine);
tellVerdictImplications(board, (by, itemId, fact) => logEvent(board, by, 'fact', itemId, fact), id, { seed: impliesId, implies });
return { decision, reason: code, ...(isAccept && check !== undefined ? { check } : {}) };
});
diff --cc src/machine.js
index d569abe7,d569abe7..8a4555f4
--- a/src/machine.js
+++ b/src/machine.js
@@@ -10,7 -10,7 +10,10 @@@
*/
/** Executable move semantics, carried by every sealed move and retained during replay [H16]. */
--export const ENGINE_VERSION = 33;
++export const ENGINE_VERSION = 41;
++
++/** First engine that automatically escalates an item's second rejection at its current route [B15]. */
++export const AUTO_ESCALATE_ENGINE = 41;
/** The engine at which a reject, reopen or person fact can carry a cause key (#713); older moves replay unchanged [D1,H16]. */
export const CAUSE_ENGINE = 30;
diff --cc test/agent-model-engine.test.js
index d0bca12b,d0bca12b..e48255b5
--- a/test/agent-model-engine.test.js
+++ b/test/agent-model-engine.test.js
@@@ -4,14 -4,14 +4,14 @@@ import { test } from 'node:test'
import * as store from '../src/board.js';
import { applyEngineMove, prepareEngineMove } from '../src/engine.js';
import { exportBoard, importBoard } from '../src/exchange.js';
--import { ENGINE_VERSION } from '../src/machine.js';
++import { AUTO_ESCALATE_ENGINE, ENGINE_VERSION } from '../src/machine.js';
import { configProblems, defaults, loadConfig } from '../src/config.js';
import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';
test('model declarations and event snapshots retain engines 1 through 33 semantics [O8,O3,H16]', (t) => {
-- assert.equal(ENGINE_VERSION, 33, 'the next writer preserves every historical model snapshot through main engine 30');
++ assert.ok(ENGINE_VERSION >= AUTO_ESCALATE_ENGINE, 'the current writer includes automatic escalation and preserves historical model snapshots');
for (const version of Array.from({ length: ENGINE_VERSION }, (_, index) => index + 1)) {
const board = store.openBoard(':memory:');
t.after(() => store.closeBoard(board));
diff --cc test/board.test.js
index c2774495,c2774495..84eece66
--- a/test/board.test.js
+++ b/test/board.test.js
@@@ -16,13 -16,13 +16,15 @@@ import { exportBoard } from '../src/exc
import { main } from '../src/cli.js';
import { briefFiles } from '../src/brief.js';
import { JSON_SHAPES } from '../src/json.js';
--import { ENGINE_VERSION } from '../src/machine.js';
++import { AUTO_ESCALATE_ENGINE, ENGINE_VERSION } from '../src/machine.js';
import { pathToFileURL } from 'node:url';
import { unpackRelease } from './release-archive.js';
const HOUR = 3_600_000;
const SHA_A = 'a'.repeat(40);
const SHA_B = 'b'.repeat(40);
++const SHA_C = 'c'.repeat(40);
++const SHA_D = 'd'.repeat(40);
let board;
let clock;
@@@ -310,6 -310,6 +312,22 @@@ function submitted()
const verdict = (id, fields) =>
store.verify(board, id, { head: SHA_A, digest: 'digest:Page', policy: 'any', note: 'broke the fix; its test failed; restored it', ...fields });
++/** Submit one new revision and record its rejection on the item's real SQLite board [B15,V6].
++ *
++ * @param {number} id
++ * @param {string} commit
++ * @param {string} note
++ */
++function rejectRevision(id, commit, note) {
++ if (store.getItem(board, id).item_status === 'open') claimAs(id, 'web-1', 'web');
++ const item = store.getItem(board, id);
++ store.submit(board, id, { agentId: 'web-1', commit, tree: `tree-${commit[0]}` });
++ verdict(id, {
++ agentId: 'web-2', decision: 'REJECT', reason: 'TEST_FAILURE', note,
++ head: commit, digest: `digest:${item.item_title}`,
++ });
++}
++
test('the builder never verifies its own work [V1]', () => {
const id = submitted();
assert.throws(() => verdict(id, { agentId: 'web-1', decision: 'ACCEPT' }), /SELF_VERIFY/);
@@@ -848,6 -848,6 +866,109 @@@ test('escalate frees an item one tier u
assert.deepEqual(JSON.parse(first.event_detail), { from: 'light', to: 'mid', note: 'check failed twice', attempt: 'refs/pullboard/attempts/1/abc', model: 'unknown' }, 'the failure and the pinned attempt travel with it');
});
++test('two failed attempts at a route escalate the item one route up [B15,B13]', () => {
++ const id = routed('Automatic escalation', 'light');
++ claimAs(id, 'web-1', 'web');
++ store.release(board, id, 'web-1');
++ rejectRevision(id, SHA_A, 'first reject: missing parser output');
++ assert.equal(store.getItem(board, id).item_route, 'light', 'a release is not a failed attempt');
++ assert.equal(store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate').length, 0);
++
++ rejectRevision(id, SHA_B, 'second reject: parser still drops the row');
++ const item = store.getItem(board, id);
++ assert.deepEqual([item.item_status, item.item_route, item.item_owner], ['open', 'mid', null]);
++ const escalations = store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate');
++ assert.equal(escalations.length, 1, 'the second rejection writes one existing escalation event');
++ const detail = JSON.parse(escalations[0].event_detail);
++ assert.deepEqual([detail.from, detail.to], ['light', 'mid']);
++ assert.equal(detail.rejections.length, 2, 'the single escalation receipt carries both rejections');
++ assert.deepEqual(detail.rejections.map((entry) => entry.note), [
++ 'first reject: missing parser output', 'second reject: parser still drops the row',
++ ]);
++ assert.deepEqual(detail.rejections.map((entry) => entry.reason), ['TEST_FAILURE', 'TEST_FAILURE']);
++ assert.deepEqual(detail.rejections.map((entry) => [entry.commit, entry.head]), [[SHA_A, SHA_A], [SHA_B, SHA_B]]);
++ assert.ok(detail.rejections.every((entry) => entry.verdictId && entry.eventId && entry.digest && entry.at));
++});
++
++test('a hand escalation starts a new route rejection count [B15,B13]', () => {
++ const id = routed('Manual route reset', 'light');
++ rejectRevision(id, SHA_A, 'old-route reject');
++ assert.equal(store.getItem(board, id).item_route, 'light');
++ store.escalate(board, id, { agentId: 'coordinator', note: 'manual route handoff' });
++
++ rejectRevision(id, SHA_B, 'first mid-route reject');
++ assert.equal(store.getItem(board, id).item_route, 'mid', 'the prior light rejection does not carry over');
++ assert.equal(store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate').length, 1);
++ rejectRevision(id, SHA_C, 'second mid-route reject');
++ assert.equal(store.getItem(board, id).item_route, 'strong');
++ const escalations = store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate');
++ assert.equal(escalations.length, 2);
++ assert.deepEqual(JSON.parse(escalations[1].event_detail).rejections.map((entry) => entry.note), [
++ 'first mid-route reject', 'second mid-route reject',
++ ]);
++});
++
++test('a coordinator route edit starts a new rejection count [B15,B13]', () => {
++ const id = routed('Edited route reset', 'light');
++ rejectRevision(id, SHA_A, 'old light-route reject');
++ store.editItem(board, id, { agentId: 'coordinator', route: 'mid' });
++
++ rejectRevision(id, SHA_B, 'first edited mid-route reject');
++ assert.equal(store.getItem(board, id).item_route, 'mid');
++ assert.equal(store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate').length, 0);
++
++ rejectRevision(id, SHA_C, 'second edited mid-route reject');
++ assert.equal(store.getItem(board, id).item_route, 'strong');
++ const escalations = store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate');
++ assert.equal(escalations.length, 1);
++ assert.deepEqual(JSON.parse(escalations[0].event_detail).rejections.map((entry) => entry.note), [
++ 'first edited mid-route reject', 'second edited mid-route reject',
++ ]);
++});
++
++test('an item at strong stays at strong after more failures [B15,B13]', () => {
++ const id = routed('Strong ceiling', 'strong');
++ rejectRevision(id, SHA_A, 'strong reject one');
++ rejectRevision(id, SHA_B, 'strong reject two');
++ assert.equal(store.getItem(board, id).item_route, 'strong');
++ rejectRevision(id, SHA_C, 'strong reject three');
++ rejectRevision(id, SHA_D, 'strong reject four');
++ assert.equal(store.getItem(board, id).item_route, 'strong');
++ const escalations = store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate');
++ assert.equal(escalations.length, 2, 'each pair records one ceiling escalation');
++ assert.ok(escalations.every((event) => {
++ const detail = JSON.parse(event.event_detail);
++ return detail.from === 'strong' && detail.to === 'strong' && detail.rejections.length === 2;
++ }));
++});
++
++test('engine 40 reject moves replay without automatic escalation [B15,H16]', () => {
++ const id = routed('Legacy engine', 'light');
++ const legacyFreeze = (item) => ({
++ text: JSON.stringify({
++ criterion: item.item_criterion,
++ policy: { version: 1, commit: SHA_A, verify: { policy: 'any', family: 'off' } },
++ }),
++ digest: `digest:${item.item_title}`,
++ });
++ let sequence = 0;
++ const applyLegacyMove = (operation, args) => {
++ sequence += 1;
++ const move = prepareEngineMove(board, operation, args, { id: `engine-40-auto-escalation-${sequence}` });
++ move.engine = AUTO_ESCALATE_ENGINE - 1;
++ const result = applyEngineMove(board, move, { sequence, at: `2026-10-18T00:00:0${sequence}.000Z` });
++ assert.equal(result.error, undefined, `${operation} replays on engine 40`);
++ };
++ applyLegacyMove('claim', [id, { agentId: 'web-1', lane: 'web', leaseMs: HOUR, freeze: legacyFreeze }]);
++ applyLegacyMove('submit', [id, { agentId: 'web-1', commit: SHA_A, tree: 'tree-a' }]);
++ applyLegacyMove('verify', [id, { agentId: 'web-2', decision: 'REJECT', reason: 'TEST_FAILURE', note: 'legacy reject one', head: SHA_A, digest: `digest:${store.getItem(board, id).item_title}`, policy: 'any' }]);
++ applyLegacyMove('claim', [id, { agentId: 'web-1', lane: 'web', leaseMs: HOUR, freeze: legacyFreeze }]);
++ applyLegacyMove('submit', [id, { agentId: 'web-1', commit: SHA_B, tree: 'tree-b' }]);
++ applyLegacyMove('verify', [id, { agentId: 'web-2', decision: 'REJECT', reason: 'TEST_FAILURE', note: 'legacy reject two', head: SHA_B, digest: `digest:${store.getItem(board, id).item_title}`, policy: 'any' }]);
++ assert.equal(store.getItem(board, id).item_route, 'light');
++ assert.equal(store.events(board, { itemId: id }).filter((event) => event.event_kind === 'escalate').length, 0);
++});
++
test('a fresh claim records where the work started; submit records what it changed, reworks included [N21]', () => {
const id = store.addItem(board, { by: 'coordinator', lane: 'web', title: 'Page' });
const claimAt = (head) => store.claim(board, id, { agentId: 'web-1', lane: 'web', leaseMs: 2 * HOUR, freeze, head });
diff --cc test/pending-refreeze.test.js
index 03fb0767,03fb0767..3a6437a1
--- a/test/pending-refreeze.test.js
+++ b/test/pending-refreeze.test.js
@@@ -8,7 -8,7 +8,7 @@@ import { test } from 'node:test'
import * as store from '../src/board.js';
import { appliedSequence, applyRelayMove, engineReceipt, prepareEngineMove } from '../src/engine.js';
import { exportBoard, importBoard } from '../src/exchange.js';
--import { ENGINE_VERSION } from '../src/machine.js';
++import { AUTO_ESCALATE_ENGINE, ENGINE_VERSION } from '../src/machine.js';
import { createE2eHelpers } from './e2e-helpers.js';
import { unpackRelease } from './release-archive.js';
@@@ -261,7 -261,7 +261,7 @@@ async function checkDependencyLegacyCli
}
test('dependency edits replay the same on every engine [B3,V2,H16]', async (t) => {
-- assert.equal(ENGINE_VERSION, 33, 'the next writer retains all recorded dependency-edit behavior');
++ assert.ok(ENGINE_VERSION >= AUTO_ESCALATE_ENGINE, 'the current writer retains recorded dependency-edit behavior and automatic escalation');
const directory = mkdtempSync(join(tmpdir(), 'pullboard-dependency-engines-'));
const cleanup = [];
t.after(() => {