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.

test(health): cover sentinel notices and replay [A6,H16]

Corey Olson2ff4721888ba
diff --git a/docs/api.md b/docs/api.md
index ab99a561..7cf7cc94 100644
--- a/docs/api.md
+++ b/docs/api.md
@@ -213,6 +213,8 @@ The causes, each with its owner:
The current release is the roadmap's first milestone with unverified local work; an unplanned item counts as current. A release is the newest tag named like `v1.2.3` or `1.2.3`, dated by its creation, and its landed work is every item first recorded merged after it. A repository with no such tag has no release deadline. The trunk is the primary checkout's branch, or the retained trunk when that checkout is detached.
+The health sentinel runs this read-only scan on `pullboard resume` and every ten minutes while the background view runs. New findings and resolutions arrive as ordinary shouts from `sentinel` to the coordinator and the finding’s owner, with its cause and next step. A continuing episode is not posted again. Ordered engine-42 receipts retain the observed revision; a concurrent board change defers the observation to a later resume instead of publishing stale findings. Health never changes claim state. Set `health.sentinel` to `false` in this repo’s `pullboard.json` or in machine settings to turn automatic scans off. Repeated `health-failure` receipts are visible to `pullboard rigor`, including a recurring work cause with no changed code commit.
+
`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`.
## Item threads
diff --git a/docs/formats.md b/docs/formats.md
index 49cd536f..27125326 100644
--- a/docs/formats.md
+++ b/docs/formats.md
@@ -113,7 +113,7 @@ The board file is in the repository's Git common directory at `.git/pullboard/bo
| `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` | `34` | `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` | `42` | `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.
@@ -134,6 +134,8 @@ Engine 24 adds the person's `acceptCheck`: an item's current check, named by its
Engine 30 lets a reject and a reopen carry a cause key (`cause`: `test:<file>::<title>`, `refusal:<CODE>`, `row:<id>` or `doctrine:<id>`) and lets the person record a never-again fact with `cause` and `neverAgain: true`, for `pullboard rigor`. Only a move that carries one of these needs engine 30; engine-29 and older moves replay unchanged, and clients on an older engine refuse an engine-30 move with `RELAY_MOVE` before changing their board or cursor. Engine 20 is the implied-items engine above; engine numbers 21 through 29 are allocated to other changes.
+Engine 42 adds ordered `recordHealthFindings` observations. A scan retains its board event revision, emits new and resolved sentinel notices once, and records `health-failure` receipts under their refusal cause keys. Rigor counts repeated health episodes without inventing a changed code commit. Older engines refuse this operation before replay; earlier move meanings and feature minima stay unchanged.
+
The CLI declares its engine in every relay request's `X-Pullboard-Engine` header.
A linked board requires at least engine 3 after issuing any agent token, including
revoked or expired tokens. Issuing any machine credential raises that board’s minimum to engine 6, including after revocation or expiry. The minimum survives reopening the auth database;
@@ -349,6 +351,9 @@ The `event` table is a SQLite schema object governed by `SCHEMA_VERSION`; its ap
| `unhold_item` | coordinator | `reason` |
| `guards` | board | `missing`, `changed`, `stale` |
| `shout` | sender | `shout`, `to`, `decision`, `request`, `answers` |
+| `health-scan` | observing agent | `active`, `engine` |
+| `health-failure` | sentinel | `key`, `cause`, `since`, `subject`, `owner`, `commit`, `engine` |
+| `health-resolved` | sentinel | `key`, `cause`, `since`, `subject`, `owner`, `commit`, `engine` |
| `pass` | coordinator | `shout`, `to`, `decision`, `request`, `answers` |
| `answer` | answerer | `shout`, `to`, `decision`, `request`, `answers`, `outcome`, `channel`, engine-20 `implies`, `supersedes` |
| `row_decision` | person | `record`, `channel` |
diff --git a/docs/formats.test.js b/docs/formats.test.js
index 5886351f..1b63a7c5 100644
--- a/docs/formats.test.js
+++ b/docs/formats.test.js
@@ -29,6 +29,7 @@ import {
recordLandingBatch,
recordLandingWaiver,
recordLandingFlake,
+ recordHealthFindings,
openBoard,
passDecision,
PERSON,
@@ -342,6 +343,13 @@ function recordEventContract() {
withdraw(board, withdrawn, { agentId: coordinator, reason: 'duplicate fixture' });
holdLane(board, 'view', { agentId: coordinator, reason: 'fixture hold' });
releaseLane(board, 'view', { agentId: coordinator });
+ // A synthetic health observation exercises receipt fields only; the health tests prove scanning.
+ const healthFinding = { key: `CLAIM_LAPSED:item:${corrected}`, cause: 'CLAIM_LAPSED', item: corrected,
+ subject: `#${corrected}`, title: 'claim lapsed', since: '2026-10-17T19:00:00.000Z',
+ why: 'the format example names its owner', next: `pullboard claim ${corrected}`, owner: { who: builder } };
+ const revision = () => events(board).at(-1)?.event_id ?? 0;
+ recordHealthFindings(board, { agentId: coordinator, observedRevision: revision(), findings: [healthFinding] });
+ recordHealthFindings(board, { agentId: coordinator, observedRevision: revision(), findings: [] });
const rows = events(board).map((row) => ({ ...row, detail: JSON.parse(row.event_detail) }));
closeBoard(board);
return { rows, actors: { [coordinator]: 'coordinator', [builder]: 'builder', [returnedBuilder]: 'builder', [reviewer]: 'reviewer', [PERSON]: 'person', board: 'board' } };
@@ -613,6 +621,9 @@ test('[A5] schema, versions, event kinds and event detail fields match live beha
shout: 'sender',
pass: 'coordinator',
answer: 'answerer',
+ 'health-scan': 'observing agent',
+ 'health-failure': 'sentinel',
+ 'health-resolved': 'sentinel',
};
for (const row of actualRows) {
const kind = row.event_kind;
diff --git a/src/next-steps.js b/src/next-steps.js
index 1c198732..57a54f85 100644
--- a/src/next-steps.js
+++ b/src/next-steps.js
@@ -11,6 +11,8 @@ import { RECORDED_GENERIC_NEXT } from './recorded-refusal.js';
/** @type {Readonly<Record<string, string>>} */
export const NEXT_STEPS = Object.freeze({
+ HEALTH_FINDINGS: 'run pullboard health to read the current findings, then run pullboard resume to capture a fresh observation',
+ HEALTH_SCAN_STALE: 'run pullboard resume again to scan the current board before posting sentinel notices',
A5_GRAMMAR_VERSION: 'upgrade Pullboard: npm install -g pullboard@latest',
AGENT_SESSION: 'run pullboard takeover from the agent session that should own this checkout',
ALREADY_ANSWERED: 'read the answer with pullboard inbox; ask again with a new pullboard shout <to> "<text>" --decision',
diff --git a/test/agent-model-engine.test.js b/test/agent-model-engine.test.js
index 5907aefc..31861391 100644
--- a/test/agent-model-engine.test.js
+++ b/test/agent-model-engine.test.js
@@ -1,3 +1,4 @@
+import { HEALTH_SENTINEL_ENGINE } from '../src/health-receipts.js';
/** Declared models replay with their recorded engine and survive board exchange [O8,O3,H16]. */
import assert from 'node:assert/strict';
import { test } from 'node:test';
@@ -11,7 +12,7 @@ import { tmpdir } from 'node:os';
import { join } from 'node:path';
test('model declarations and event snapshots retain engines 1 through 34 semantics [O8,O3,H16]', (t) => {
- assert.equal(ENGINE_VERSION, 34, 'the next writer preserves every historical model snapshot through main engine 33');
+ assert.ok(ENGINE_VERSION >= HEALTH_SENTINEL_ENGINE, 'the current writer retains the sentinel minimum and historical behavior');
for (const version of Array.from({ length: ENGINE_VERSION }, (_, index) => index + 1)) {
const board = store.openBoard(':memory:');
t.after(() => store.closeBoard(board));
diff --git a/test/health-sentinel.test.js b/test/health-sentinel.test.js
new file mode 100644
index 00000000..f919ac14
--- /dev/null
+++ b/test/health-sentinel.test.js
@@ -0,0 +1,180 @@
+/** Real board, ordered replay and background lifetime controls for the health sentinel [A6,H16]. */
+import assert from 'node:assert/strict';
+import { mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+import { dirname, join } from 'node:path';
+import { test } from 'node:test';
+import * as store from '../src/board.js';
+import { main } from '../src/cli.js';
+import { loadConfig } from '../src/config.js';
+import { loadDoctrine } from '../src/doctrine.js';
+import { applyRelayMove, appliedSequence, prepareEngineMove } from '../src/engine.js';
+import { exportBoard } from '../src/exchange.js';
+import { HEALTH_SENTINEL_ENGINE } from '../src/health-receipts.js';
+import { scanHealthSentinel } from '../src/health-sentinel.js';
+import { rigorReport } from '../src/rigor.js';
+import { startServeSentinel, HEALTH_SENTINEL_INTERVAL_MS } from '../src/serve-sentinel.js';
+import { machineSettingsFile } from '../src/settings.js';
+import { frozenCriterion, loadSpec } from '../src/spec.js';
+import { runFixtureGit } from './fixture-child.js';
+
+const HOUR = 3_600_000;
+
+/** Isolate the board, Git and machine home; test time is elapsed wall time plus an explicit offset. */
+function fixture(t) {
+ const directory = realpathSync(mkdtempSync(join(tmpdir(), 'pullboard-health-sentinel-')));
+ const root = join(directory, 'repo');
+ mkdirSync(root);
+ const overrides = { PULLBOARD_HOME: join(directory, 'home'), PULLBOARD_MACHINE_HOME: join(directory, 'machine'),
+ GIT_CONFIG_GLOBAL: '/dev/null', GIT_CONFIG_NOSYSTEM: '1' };
+ const original = Object.fromEntries(Object.keys(overrides).map(key => [key, process.env[key]]));
+ Object.assign(process.env, overrides);
+ const env = { ...process.env, GIT_AUTHOR_NAME: 'Corey Olson', GIT_AUTHOR_EMAIL: '[email protected]',
+ GIT_COMMITTER_NAME: 'Corey Olson', GIT_COMMITTER_EMAIL: '[email protected]' };
+ runFixtureGit(['init', '-q', '-b', 'main'], { cwd: root, env });
+ writeFileSync(join(root, 'pullboard.json'), JSON.stringify({ gate: 'true', lanes: { core: { owns: ['src/'] } } }));
+ writeFileSync(join(root, 'SPEC.md'), '# Fixture\n\n## A\n- A6 [approved, must] Report stuck work. | gate: review\n');
+ writeFileSync(join(root, 'DOCTRINE.md'), '# Fixture rules\n\n## PB\n- PB1 [approved, must] Keep the fixture isolated. | gate: review\n');
+ runFixtureGit(['add', '-A'], { cwd: root, env });
+ runFixtureGit(['commit', '-q', '-m', 'chore: initialize sentinel fixture [A6]'], { cwd: root, env });
+ const settings = machineSettingsFile();
+ mkdirSync(dirname(settings), { recursive: true });
+ writeFileSync(settings, JSON.stringify({ view: { background: false }, relay: { offerAtInit: false } }));
+ const clock = { offset: 0, now() { return new Date(Date.now() + this.offset); } };
+ const file = join(root, '.git/pullboard/board.sqlite');
+ const board = store.openBoard(file, clock);
+ store.register(board, { lane: 'coordinator', path: root });
+ const builders = [1, 2, 3].map(index => store.register(board, { lane: 'core', path: join(directory, `core-${index}`) }));
+ const config = loadConfig(root);
+ const freeze = item => frozenCriterion(loadSpec(root, config), item, loadDoctrine(root, config));
+ /** Make a genuine claim whose expiry the injected offset can advance past. */
+ const claimed = index => {
+ const id = store.addItem(board, { by: 'coordinator', lane: 'core', title: `Stuck fixture ${index}`, specIds: ['A6'], criterion: 'The fixture remains readable.' });
+ store.claim(board, id, { agentId: builders[index], lane: 'core', leaseMs: HOUR, freeze });
+ return id;
+ };
+ /** Read the real health snapshot and apply it through authenticated, versioned replay. */
+ const scan = () => {
+ const observation = scanHealthSentinel(file, { root, config: loadConfig(root), now: clock.now() });
+ if (!observation) return null;
+ const move = prepareEngineMove(board, 'recordHealthFindings', [{ agentId: 'coordinator', ...observation }], { actor: 'coordinator' });
+ const result = applyRelayMove(board, move, { sequence: appliedSequence(board) + 1, at: clock.now().toISOString(), kind: 'move',
+ sender: { kind: 'agent', agent: 'coordinator', userId: 'fixture-user' } });
+ assert.equal(result.error, undefined, JSON.stringify(result));
+ return result.result;
+ };
+ t.after(() => {
+ store.closeBoard(board); rmSync(directory, { recursive: true, force: true });
+ for (const [key, value] of Object.entries(original)) { if (value === undefined) delete process.env[key]; else process.env[key] = value; }
+ });
+ return { root, file, board, builders, clock, claimed, scan, freeze, config, settings };
+}
+
+test('a new stuck finding reaches the coordinator and owner once [A6]', t => {
+ const box = fixture(t);
+ const id = box.claimed(0);
+ box.clock.offset += 2 * HOUR;
+ const originalObservation = scanHealthSentinel(box.file, { root: box.root, config: box.config, now: box.clock.now() });
+ const rawClaim = box.board.db.prepare('SELECT item_status, item_owner FROM item WHERE item_id = ?').get(id);
+ assert.deepEqual(box.scan().added, [`CLAIM_LAPSED:item:${id}`]);
+ const notices = store.allShouts(box.board);
+ assert.equal(notices.length, 2);
+ assert.deepEqual(notices.map(notice => notice.shout_to).sort(), ['coordinator', box.builders[0]].sort());
+ for (const notice of notices) {
+ assert.equal(notice.shout_from, 'sentinel');
+ assert.match(notice.shout_text, /CLAIM_LAPSED/u);
+ assert.ok(notice.shout_text.includes(box.builders[0]), 'the complete owner address stays in the notice');
+ assert.ok(notice.shout_text.includes(`pullboard claim ${id}`));
+ }
+ assert.deepEqual(box.board.db.prepare('SELECT item_status, item_owner FROM item WHERE item_id = ?').get(id), rawClaim,
+ 'a health observation does not change claim state');
+ const before = exportBoard(box.board);
+ assert.deepEqual(store.recordHealthFindings(box.board, { agentId: 'coordinator', findings: originalObservation.findings,
+ observedRevision: store.events(box.board).at(-1).event_id }), { added: [], resolved: [] }, 'the board also deduplicates an already observed episode');
+ assert.deepEqual(exportBoard(box.board), before, 'a second observer cannot duplicate the episode');
+ for (let index = 0; index < 3; index += 1) assert.equal(box.scan(), null);
+ assert.deepEqual(exportBoard(box.board), before, 'persisting findings create no repeated events or shouts');
+ store.claim(box.board, id, { agentId: box.builders[0], lane: 'core', leaseMs: HOUR, freeze: box.freeze });
+ store.release(box.board, id, box.builders[0]);
+ assert.deepEqual(box.scan().resolved, [`CLAIM_LAPSED:item:${id}`]);
+ assert.equal(store.allShouts(box.board).filter(notice => notice.shout_text.startsWith('Resolved:')).length, 2,
+ 'one resolution reaches each reader');
+ assert.equal(box.scan(), null);
+ assert.equal(store.events(box.board).filter(event => event.event_kind === 'health-failure').length, 1);
+ assert.equal(store.events(box.board).filter(event => event.event_kind === 'health-resolved').length, 1);
+});
+
+test('a stuck cause that recurs is noticed by rigor [A6,D1]', t => {
+ const box = fixture(t);
+ for (let index = 0; index < 3; index += 1) box.claimed(index);
+ box.clock.offset += 2 * HOUR;
+ assert.equal(box.scan().added.length, 3);
+ const report = rigorReport(store.events(box.board), { person: store.PERSON });
+ assert.equal(report.uncaused, 0);
+ assert.equal(report.causes.length, 1);
+ assert.equal(report.causes[0].key, 'refusal:CLAIM_LAPSED');
+ assert.equal(report.causes[0].occurrences, 3);
+ assert.equal(report.causes[0].items.length, 3);
+ assert.deepEqual(report.causes[0].items.map(item => item.commits), [[], [], []], 'work receipts invent no code commit');
+ box.scan();
+ assert.deepEqual(rigorReport(store.events(box.board), { person: store.PERSON }), report);
+});
+
+test('sentinel replay refuses older engines and stale observations without a false notice [A6,H16]', t => {
+ const box = fixture(t);
+ box.claimed(0); box.clock.offset += 2 * HOUR;
+ const observation = scanHealthSentinel(box.file, { root: box.root, config: box.config, now: box.clock.now() });
+ const move = prepareEngineMove(box.board, 'recordHealthFindings', [{ agentId: 'coordinator', ...observation }], { actor: 'coordinator' });
+ const receipt = { sequence: 1, at: box.clock.now().toISOString(), kind: 'move', sender: { kind: 'agent', agent: 'coordinator', userId: 'fixture-user' } };
+ const before = exportBoard(box.board);
+ assert.throws(() => applyRelayMove(box.board, { ...move, engine: HEALTH_SENTINEL_ENGINE - 1 }, receipt), error => error.code === 'RELAY_MOVE');
+ assert.deepEqual(exportBoard(box.board), before);
+ store.shout(box.board, { from: 'coordinator', to: box.builders[0], text: 'A concurrent board change', lanes: ['core'] });
+ const eventCount = store.events(box.board).length;
+ const refused = applyRelayMove(box.board, move, receipt);
+ assert.equal(refused.error.code, 'HEALTH_SCAN_STALE');
+ assert.equal(appliedSequence(box.board), 1, 'an ordinary current-engine refusal retains its receipt and advances its prefix');
+ assert.equal(store.events(box.board).length, eventCount);
+ assert.equal(store.allShouts(box.board).filter(notice => notice.shout_from === 'sentinel').length, 0);
+ assert.equal(box.scan().added.length, 1, 'a fresh observation succeeds after the stale one');
+});
+
+test('resume publishes health and the board and machine off switches suppress it [A6]', async t => {
+ const box = fixture(t);
+ box.claimed(0); box.clock.offset += 2 * HOUR;
+ let stdout = ''; let stderr = '';
+ const code = await main(['resume', '--json'], { cwd: box.root, clock: box.clock,
+ stdout: { isTTY: false, write: value => { stdout += value; } }, stderr: { write: value => { stderr += value; } } });
+ assert.equal(code, 0, stderr);
+ assert.doesNotThrow(() => JSON.parse(stdout));
+ assert.equal(store.allShouts(box.board).filter(notice => notice.shout_from === 'sentinel').length, 2);
+ box.claimed(1); box.clock.offset += 2 * HOUR;
+ const config = JSON.parse(readFileSync(join(box.root, 'pullboard.json'), 'utf8'));
+ writeFileSync(join(box.root, 'pullboard.json'), JSON.stringify({ ...config, health: { sentinel: false } }));
+ assert.equal(scanHealthSentinel(box.file, { root: box.root, config: loadConfig(box.root), now: box.clock.now() }), null);
+ writeFileSync(join(box.root, 'pullboard.json'), JSON.stringify(config));
+ writeFileSync(box.settings, JSON.stringify({ health: { sentinel: false }, view: { background: false } }));
+ assert.equal(scanHealthSentinel(box.file, { root: box.root, config: loadConfig(box.root), now: box.clock.now() }), null);
+});
+
+test('the background sentinel uses the ten minute cadence, skips overlaps and drains on close [A6]', async () => {
+ let tick; let interval; let cancelled = false; let release;
+ const entered = []; const aborted = [];
+ const observer = startServeSentinel({ projects: () => [{ root: '/one' }, { root: '/one' }, { root: '/two' }], enabled: () => true,
+ every: (callback, ms) => { tick = callback; interval = ms; return { unref() {} }; }, cancel: () => { cancelled = true; },
+ run: (root, signal) => new Promise(resolve => {
+ entered.push(root); release = resolve;
+ signal.addEventListener('abort', () => { aborted.push(root); resolve(); }, { once: true });
+ }) });
+ assert.equal(interval, HEALTH_SENTINEL_INTERVAL_MS);
+ assert.equal(interval, 600_000);
+ const pending = tick(); await Promise.resolve();
+ assert.equal(tick(), pending);
+ assert.deepEqual(entered, ['/one']);
+ await observer.close();
+ assert.equal(cancelled, true);
+ assert.deepEqual(aborted, ['/one']);
+ assert.deepEqual(entered, ['/one'], 'shutdown never starts another project');
+ assert.equal(tick(), null);
+ release();
+});
diff --git a/test/pending-refreeze.test.js b/test/pending-refreeze.test.js
index ef73ed35..f9a15d76 100644
--- a/test/pending-refreeze.test.js
+++ b/test/pending-refreeze.test.js
@@ -1,3 +1,4 @@
+import { HEALTH_SENTINEL_ENGINE } from '../src/health-receipts.js';
/** Pending coordinator corrections keep a live claim until its frozen bar is adopted [V2,H16]. */
import assert from 'node:assert/strict';
import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
@@ -261,7 +262,7 @@ async function checkDependencyLegacyClients(cleanup, directory, snapshot, target
}
test('dependency edits replay the same on every engine [B3,V2,H16]', async (t) => {
- assert.equal(ENGINE_VERSION, 34, 'the next writer retains all recorded dependency-edit behavior');
+ assert.ok(ENGINE_VERSION >= HEALTH_SENTINEL_ENGINE, 'the current writer retains the sentinel minimum and historical behavior');
const directory = mkdtempSync(join(tmpdir(), 'pullboard-dependency-engines-'));
const cleanup = [];
t.after(() => {