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): preserve receipt replay bytes [C7,V4,H16]
Corey Olsonf6bb3a011d78
diff --git a/test/move-registry.test.js b/test/move-registry.test.jsindex ac717615..b4f25a76 100644--- a/test/move-registry.test.js+++ b/test/move-registry.test.js@@ -13,6 +13,7 @@ import { unpackRelease } from './release-archive.js';import * as store from '../src/board.js';import { exportBoard, importBoard } from '../src/exchange.js';import { applyEngineMove, ENGINE_OPERATIONS } from '../src/engine.js';+import { ENGINE_VERSION } from '../src/machine.js';import { relayMoveActor } from '../src/relay-sender.js';import { NEXT_STEPS } from '../src/next-step-words.js';import { REGISTRY_AT } from './move-registry-fixture.js';@@ -59,7 +60,28 @@ 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 replay = exportBoard(board);+ const acceptedExpected = SNAPSHOT.replay.acceptedExpected;+ const engineRows = acceptedExpected.tables.board_meta.filter(row => row.meta_key === 'relay_engine_version');+ assert.equal(engineRows.length, 1, 'the accepted snapshot has one receiver engine-version field');+ for (const { move } of SNAPSHOT.replay.records) {+ const key = `relay_receipt_${move.id}`;+ const expected = acceptedExpected.tables.board_meta.find(row => row.meta_key === key);+ const actual = replay.tables.board_meta.find(row => row.meta_key === key);+ assert.ok(expected, `${key} is part of the immutable accepted snapshot`);+ assert.equal(actual?.meta_value, expected.meta_value, `${key} retains its exact historical bytes`);+ }+ // Receiver capability advances with this engine; the historical move receipts stay pinned above.+ const replayExpected = {+ ...acceptedExpected,+ tables: {+ ...acceptedExpected.tables,+ board_meta: acceptedExpected.tables.board_meta.map(row => row.meta_key === 'relay_engine_version'+ ? { ...row, meta_value: String(ENGINE_VERSION) }+ : row),+ },+ };+ assert.equal(JSON.stringify(replay), JSON.stringify(replayExpected), 'items, events, receipts and replay cursor retain accepted-main bytes for the exact historical moves');});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 => {