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(rigor): honor accepted checks and engine minima [D1,H16,V2]
Corey Olson69baf3c75426
diff --git a/test/check-baseline.test.js b/test/check-baseline.test.jsindex e3982660..d5ef1714 100644--- a/test/check-baseline.test.js+++ b/test/check-baseline.test.js@@ -9,6 +9,7 @@ import { openBoard, closeBoard, getItem } from '../src/board.js';import { checkBaseline, prepareCheckBaseline } from '../src/check-baseline.js';import { exportBoard, importBoard } from '../src/exchange.js';import { applyEngineMove, prepareEngineMove } from '../src/engine.js';+import { ENGINE_VERSION } from '../src/machine.js';import { CHECK_ACCEPT_ENGINE, acceptCheck, checkDigest } from '../src/check-accept.js';import { refusePersonMove } from '../src/mcp.js';import { AGENT_SHELL_MARKERS, SSH_SHELL_MARKERS } from '../src/person.js';@@ -542,7 +543,8 @@ test('[V2,V4,B26,P6] a check green on main holds the item until the person accepassert.throws(() => refusePersonMove('check_accept'), { code: 'HUMAN_REQUIRED' }, 'MCP refuses a check acceptance as a person move');const digest = checkDigest(green);const move = withBoard(file, (board) => prepareEngineMove(board, 'acceptCheck', [item.item_id, { agentId: 'person', channel: 'terminal', digest }], { id: 'agent-relay-accept' }));- assert.equal(move.engine, CHECK_ACCEPT_ENGINE);+ assert.equal(CHECK_ACCEPT_ENGINE, 24, 'the released check-acceptance minimum stays engine 24');+ assert.equal(move.engine, ENGINE_VERSION, 'a new envelope declares the current engine independently of its minimum');assert.equal(relaySenderProblem(move, { kind: 'agent', userId: 'user-1', agent: 'web-1' }, 'move')?.code, 'RELAY_PERSON_ONLY', 'the relay refuses an agent sending the person’s acceptance');withBoard(file, (board) => {assert.throws(() => acceptCheck(board, item.item_id, { agentId: 'web-1', channel: 'terminal', digest }), { code: 'CHECK_ACCEPT_PERSON_ONLY' });diff --git a/test/rigor.test.js b/test/rigor.test.jsindex ed5578e0..77c1b3ae 100644--- a/test/rigor.test.js+++ b/test/rigor.test.js@@ -210,6 +210,8 @@ test('a cause key is checked, recorded on reject and reopen, and the person alon// The coordinator's reopen records --cause through the CLI.const reopenItem = json(box, 'add', 'coordinator', 'Reopen with a cause', '--criterion', 'Reopen records its cause.', '--check', 'true').item;+ // The private person's acceptance permits this intentionally pre-green fixture check.+ json(box, 'check', 'accept', String(reopenItem.item_id));json(box, 'claim', String(reopenItem.item_id));json(box, 'submit', String(reopenItem.item_id));refused(box.run('reopen', String(reopenItem.item_id), '--note', 'wrong bar', '--cause', 'wrong bar', '--json'), 'BAD_CAUSE', 'a reopen refuses a malformed cause');