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
test(core): pin current replay writer for #1221 [H16,C7]
Corey Olsonbdf34b3be1b4
diff --git a/test/move-registry.test.js b/test/move-registry.test.jsindex ec9ede8a..4bc8f97e 100644--- a/test/move-registry.test.js+++ b/test/move-registry.test.js@@ -21,6 +21,7 @@ import { importsIn } from '../src/module-imports.js';import { readdirSync } from 'node:fs';import { minimumMoveEngine } from '../src/move-registry.js';import { SPEC_REVISION_ENGINE } from '../src/spec-revision-engine.js';+import { ENGINE_VERSION } from '../src/machine.js';const SNAPSHOT = JSON.parse(readFileSync(new URL('./move-registry-baseline.json', import.meta.url), 'utf8'));const CONSUMERS = ['src/engine.js', 'src/relay-sender.js', 'src/next-step-words.js'];@@ -64,7 +65,12 @@ test('today\'s move order, actors, recovery text and recorded SQLite prefix areassert.deepEqual(applyEngineMove(board, move, options), outcome, move.operation);assert.deepEqual(applyEngineMove(board, move, options), outcome, 'same-position retry returns its immutable receipt');}- assert.equal(JSON.stringify(exportBoard(board)), JSON.stringify(SNAPSHOT.replay.acceptedExpected), 'items, events, receipts and replay cursor retain accepted-main bytes for the exact historical moves');+ const expected = structuredClone(SNAPSHOT.replay.acceptedExpected);+ const writer = expected.tables.board_meta.find(row => row.meta_key === 'relay_engine_version');+ assert.equal(writer.meta_value, '107', 'the historical golden retains its original writer engine');+ // Replay always records the current writer version, independently of each historical move's engine.+ writer.meta_value = String(ENGINE_VERSION);+ assert.equal(JSON.stringify(exportBoard(board)), JSON.stringify(expected), 'items, events, receipts and replay cursor retain accepted-main bytes, with the current writer engine');});test('two new board moves declared in two files need no edit to engine.js, relay-sender.js or next-step-words.js [C7,V4,H3,H16]', t => {