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(test): old-engine replays seed pre-grant seats [E21,H16]
Corey Olsonc7c3c4b2078c
diff --git a/test/board.test.js b/test/board.test.jsindex 1785b939..f412a578 100644--- a/test/board.test.js+++ b/test/board.test.js@@ -11,6 +11,7 @@ import { tmpdir } from 'node:os';import { join } from 'node:path';import { beforeEach, test } from 'node:test';import * as store from '../src/board.js';+import { AGENT_GRANT_ENGINE } from '../src/agent-grant-engine.js';import { displayAgentName } from '../src/agent-names.js';import { projectState } from '../src/serve.js';import { applyEngineMove, prepareEngineMove } from '../src/engine.js';@@ -87,10 +88,13 @@ beforeEach(() => {let at = Date.parse('2026-10-04T12:00:00Z');clock = { now: () => new Date(at), advance: (ms) => { at += ms; } };board = store.openBoard(':memory:', clock);+ // The seats predate agent grants (#348), so this board's replays at older engines stay legitimate.+ board.executionEngineVersion = AGENT_GRANT_ENGINE - 1;store.register(board, { lane: 'coordinator', path: '/repo' });store.register(board, { lane: 'web', path: '/repo-web-1' });store.register(board, { lane: 'web', path: '/repo-web-2' });store.register(board, { lane: 'api', path: '/repo-api-1' });+ delete board.executionEngineVersion;});test('[B14] notes in parentheses are not paths, and a foreign path still refuses', async (t) => {diff --git a/test/relay-upload-pause.test.js b/test/relay-upload-pause.test.jsindex bf4b684a..de8624b7 100644--- a/test/relay-upload-pause.test.js+++ b/test/relay-upload-pause.test.js@@ -6,6 +6,7 @@ import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';import { join } from 'node:path';import { test } from 'node:test';import * as store from '../src/board.js';+import { PROOF_RUN_ENGINE } from '../src/proof-run-engine.js';import { relayClientFixture } from './relay-client-fixture.js';import { findChromeExecutable, startChrome } from './relay-browser-fixture.js';@@ -62,6 +63,8 @@ test('quota-paused checkpoints keep exact pending bytes, permit ordered moves anconst box = await relayClientFixture(t, { accountStorageBytes: 256_000 });await box.link();const board = store.openBoard(join(box.root, '.git/pullboard/board.sqlite'));+ // A large shout from before the 400-character limit (#1109), as an upgraded board holds it.+ board.executionEngineVersion = PROOF_RUN_ENGINE - 1;try { store.shout(board, { from: 'coordinator', to: 'all', lanes: [box.lane], text: randomBytes(300_000).toString('base64') }); }finally { store.closeBoard(board); }const refused = await box.cli('status');diff --git a/test/rigor.test.js b/test/rigor.test.jsindex aefd8dcb..58995f3c 100644--- a/test/rigor.test.js+++ b/test/rigor.test.js@@ -12,6 +12,7 @@ import { pathToFileURL } from 'node:url';import { after, test } from 'node:test';import { runFixtureChild, runFixtureGit } from './fixture-child.js';import * as store from '../src/board.js';+import { AGENT_GRANT_ENGINE } from '../src/agent-grant-engine.js';import { applyEngineMove, applyRelayMove, appliedSequence, prepareEngineMove } from '../src/engine.js';import { executeMove } from '../src/api.js';import { main } from '../src/cli.js';@@ -491,11 +492,14 @@ test('reject, reopen and fact moves without a cause replay unchanged from engineconst old = legacyStore.openBoard(join(directory, `old-${version}.sqlite`), fixed);const current = store.openBoard(join(directory, `current-${version}.sqlite`), fixed);t.after(() => { legacyStore.closeBoard(old); store.closeBoard(current); });+ // The current replica's seats predate agent grants (#348), as on the board the released client wrote.+ current.executionEngineVersion = AGENT_GRANT_ENGINE - 1;for (const [replica, module] of [[old, legacyStore], [current, store]]) {module.register(replica, { lane: 'coordinator', path: '/fixture/main' });module.register(replica, { lane: 'app', path: '/fixture/app-1', model: 'Builder model' });module.register(replica, { lane: 'app', path: '/fixture/app-2', model: 'Reviewer model' });}+ delete current.executionEngineVersion;const first = '1'.repeat(40);const second = '2'.repeat(40);const journal = [