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: distinguish cause minimum from current engine [D1,H16]
Corey Olson4622e2510ae9
diff --git a/test/rigor.test.js b/test/rigor.test.jsindex 77c1b3ae..5e7cb4e2 100644--- a/test/rigor.test.js+++ b/test/rigor.test.js@@ -8,7 +8,7 @@ import { after, test } from 'node:test';import { runFixtureChild, runFixtureGit } from './fixture-child.js';import * as store from '../src/board.js';import { applyEngineMove, prepareEngineMove } from '../src/engine.js';-import { CAUSE_ENGINE } from '../src/machine.js';+import { CAUSE_ENGINE, ENGINE_VERSION } from '../src/machine.js';import { rigorReport } from '../src/rigor.js';import { unpackRelease } from './release-archive.js';@@ -200,7 +200,8 @@ test('a cause key is checked, recorded on reject and reopen, and the person alonconst second = board.add('Sealed');board.submit(second);const move = prepareEngineMove(board.board, 'verify', [second, { agentId: 'app-2', decision: 'REJECT', reason: 'TEST_FAILURE', note: 'red', cause: 'row:G1', head: store.getItem(board.board, second).item_commit, digest: 'digest:Sealed', policy: 'any' }]);- assert.equal(move.engine, CAUSE_ENGINE);+ assert.equal(CAUSE_ENGINE, 30, 'cause moves keep their stable minimum engine');+ assert.equal(move.engine, ENGINE_VERSION, 'new envelopes declare the current engine independently of the feature minimum');for (const older of [19, CAUSE_ENGINE - 1]) {assert.throws(() => applyEngineMove(board.board, { ...move, engine: older }, { sequence: 1, at: new Date().toISOString() }),(error) => error.code === 'RELAY_MOVE', `an engine-${older} move cannot carry a cause key`);