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(claim): a sealed move carries the current engine [B13,C7]
Corey Olson8583263e068e
diff --git a/test/claim-reopen.test.js b/test/claim-reopen.test.jsindex 00284368..323a5df0 100644--- a/test/claim-reopen.test.js+++ b/test/claim-reopen.test.js@@ -140,6 +140,9 @@ test('[B13,B5] releasing another review cannot cancel the builder reservation',test('[B13,B5,H16] a sealed return persists one window and notice across replay and snapshots', async (t) => {const { REOPEN_FIRST_REFUSAL_ENGINE } = await import('../src/machine.js');+ // A sealed move carries the current engine, which a later feature may raise past this one.+ const { ENGINE_VERSION } = await import('../src/machine.js');+ assert.ok(ENGINE_VERSION >= REOPEN_FIRST_REFUSAL_ENGINE);const { firstRefusalArgs } = await import('../src/claims.js');const f = fixture(t);const id = store.addItem(f.board, { by: 'coordinator', lane: 'core', title: 'replay', route: 'mid',@@ -149,7 +152,7 @@ test('[B13,B5,H16] a sealed return persists one window and notice across replayconst args = firstRefusalArgs('verify', [id, { agentId: f.other, decision: 'REJECT', reason: 'OTHER',note: 'proof', head: COMMIT, digest: 'digest:bar', policy: 'any' }], configFromSource('{"claim":{"reopenFirstRefusalMinutes":30}}'));const move = prepareEngineMove(f.board, 'verify', args);- assert.equal(move.engine, REOPEN_FIRST_REFUSAL_ENGINE);+ assert.equal(move.engine, ENGINE_VERSION);assert.throws(() => applyEngineMove(f.board, { ...move, engine: REOPEN_FIRST_REFUSAL_ENGINE - 1 },{ sequence: 1, at: '2026-01-01T00:00:00Z' }), /engine/);const receipt = { sequence: 1, at: '2026-01-01T00:00:00Z' };@@ -165,7 +168,7 @@ test('[B13,B5,H16] a sealed return persists one window and notice across replayconst claimMove = prepareEngineMove(replica, 'claim', [id, { agentId: f.other, lane: 'core', leaseMs: 7_200_000, freeze: () => null }]);assert.throws(() => applyEngineMove(replica, { ...claimMove, engine: REOPEN_FIRST_REFUSAL_ENGINE - 1 }, { sequence: 2, at: '2026-01-01T00:05:00Z' }), /engine/);assert.equal(store.getItem(replica, id).item_owner, null);- assert.equal(prepareEngineMove(replica, 'release', [id, f.builder]).engine, REOPEN_FIRST_REFUSAL_ENGINE);+ assert.equal(prepareEngineMove(replica, 'release', [id, f.builder]).engine, ENGINE_VERSION);store.release(replica, id, f.builder);store.claim(replica, id, { agentId: f.other, lane: 'core', leaseMs: 7_200_000, freeze: () => null });});