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: retain stable check minimum with proposal engine [C7,V4]
Corey Olsone9e831cf699f
diff --git a/src/engine.js b/src/engine.jsindex eabc42de..6426a3ce 100644--- a/src/engine.js+++ b/src/engine.js@@ -26,7 +26,7 @@ export const ENGINE_OPERATIONS = Object.freeze([/** Engine version at which each ordered operation first has stable replay semantics. */const OPERATION_ENGINE = Object.freeze({ reopen: 8, recordLandingBatch: 8, recordLandingWaiver: 8, recordLandingFlake: 8, finishLandingBatch: 8, acceptCheck: CHECK_ACCEPT_ENGINE });-/** Dependency edits add engine-10 meaning, edit reasons engine-19, implied items engine-20 and submission proofs engine-22, without changing ordinary historical envelopes. */+/** Dependency edits add engine-10 meaning, edit reasons engine-19, implied items engine-20 and submission proofs engine-29, without changing ordinary historical envelopes. */function minimumOperationEngine(operation, args) {const options = args[1];if (operation === 'submit' && options?.submissionProof !== undefineddiff --git a/src/machine.js b/src/machine.jsindex 6189f448..64c710eb 100644--- a/src/machine.js+++ b/src/machine.js@@ -142,7 +142,7 @@ export const GUARDS = [{ id: 'reviewCooldownElapsed', refuse: 'REVIEW_COOLDOWN', rule: 'the reviewer has not released this submission within the past hour', next: 'let another reviewer take it, or wait an hour or for a new submission', source: 'board', when: 'engine 5 or newer, only for the same reviewer and current submission' },{ id: 'noteGiven', refuse: 'NOTE_REQUIRED', rule: 'the move carries a note: what failed, what was tried, or why', next: '--note "..." or --note-file <file>', source: 'board' },{ id: 'notMerged', refuse: 'ALREADY_MERGED', rule: 'the item has no recorded merge receipt', next: 'a merged item cannot be reopened', source: 'board' },- { id: 'submissionProofValid', refuse: 'SUBMISSION_PROOF', rule: 'recorded test selection names literal project files and its full-fallback policy', next: 'rerun submit with the current CLI', source: 'board', when: 'engine 22 or later; absent legacy selection remains unknown' },+ { id: 'submissionProofValid', refuse: 'SUBMISSION_PROOF', rule: 'recorded test selection names literal project files and its full-fallback policy', next: 'rerun submit with the current CLI', source: 'board', when: 'engine 29 or later; absent legacy selection remains unknown' },{ id: 'landingFailureRecorded', refuse: 'LANDING_FAILURE_REQUIRED', rule: 'a verified item note names the failing test and landing merge commit', next: 'cite the recorded batch, or name the test and merge commit in a manual note', source: 'board' },];diff --git a/test/check-baseline.test.js b/test/check-baseline.test.jsindex e3982660..12917b67 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, 'acceptCheck keeps its stable minimum engine');+ assert.equal(move.engine, ENGINE_VERSION, 'new envelopes use the current engine');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' });