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
chore(merge): align submit invariant engine 34 [C7,V4]
Corey Olson35d706a19970
diff --git a/docs/formats.md b/docs/formats.mdindex c134957a..0d709c96 100644--- a/docs/formats.md+++ b/docs/formats.md@@ -113,7 +113,7 @@ The board file is in the repository's Git common directory at `.git/pullboard/bo| `row grammar` | `1` | `SPEC_GRAMMAR_VERSION` in `src/spec.js`; optional `<!-- pullboard-grammar N -->` line in either file (absence means the current grammar) | Both files share the version. A declared version must match; an incompatible grammar change requires a coordinated version bump and compatible files. No automatic conversion occurs. || `board schema` | `2` | `SCHEMA_VERSION` in `src/board.js`, persisted as `PRAGMA user_version` | Create missing tables and indexes, add missing columns in place with declared defaults, restore missing or changed triggers, and remove stale machine triggers without replacing rows. || `event log` | `1` | `EVENT_LOG_VERSION` in `src/board.js`, persisted in `board_meta` as `event_log_version` | Older event-log versions upgrade in place; newer versions are refused with `EVENT_LOG_VERSION`. Preserve event rows when the board schema changes. |-| `move engine` | `29` | `ENGINE_VERSION` in `src/machine.js`, carried as `engine` in every sealed executable move | Bump when a move's meaning changes, independently of the event log and sealed envelope. A newer engine is refused with `ENGINE_VERSION`, naming both versions and asking you to upgrade Pullboard. |+| `move engine` | `34` | `ENGINE_VERSION` in `src/machine.js`, carried as `engine` in every sealed executable move | Bump when a move's meaning changes, independently of the event log and sealed envelope. A newer engine is refused with `ENGINE_VERSION`, naming both versions and asking you to upgrade Pullboard. |<!-- format-versions:end -->Pullboard 0.6.1 released engine 1. Engine 2 records a fresh explicit-build claim's skipped-review snapshot. Pullboard 0.8.1 released engine 3, including lane-sensitive graft refusals and authenticated relay senders. Engine 4 adds captured background-baseline completions through `completeCheckBaseline`; released engine-3 clients stop with `ENGINE_VERSION` before interpreting this new operation or advancing their replay cursor. Engine 5 requires a one-line reason when releasing a review and gives that reviewer a one-hour cooldown for the current submission. Each sealed move replays under its recorded engine version: engines 1 through 4 retain the original release event and review-reservation behavior. Engine 5 retains support for older moves, including engine-4 baseline completions. Pullboard 0.8.3 released engine 6, adding board-scoped machine credentials and permitting machine execution only for one exact, earlier authenticated phone request, including its payload digest. Engine 7 adds ordered item holds through `holdItem` and `releaseItemHold`; engine-6 clients stop with `ENGINE_VERSION` before interpreting either operation or advancing their replay cursor. Engine 8, shared by the 0.8.5 move changes, retains merged-item exception notes, selects the next review in roadmap order, and adds coordinator-only `reopen` for a submission returned without a verdict; engine-7 clients stop with `ENGINE_VERSION` before interpreting this new operation or advancing their replay cursor. Recorded engines 1 through 7 retain their original tier-first review selection. Engine 8 also adds durable refusal recovery for blocked relay positions; each explicit skip publishes the readable prefix even when another unsupported record follows. Engine 8 also permits coordinator criterion/check edits on a live claim as pending corrections; the holder cannot renew or submit until a refreeze adopts the correction while preserving the claim. Older request receipts retain their recorded engine semantics. Upgrade every linked device before using the new moves. Each release shares one engine bump across its changed moves. Engine 8 also retains declared model labels on registration and records each registered agent move's model snapshot; engines 1 through 7 retain their original registration and event details without these model fields. Pullboard 0.8.8 released engine 9, which allows resubmitting the same rejected commit after a corrected criterion is refrozen, but only when the rejection names a different frozen digest. Engine 8 retains its HEAD_NOT_NEW refusal and prior submit-event detail. Engine-9 submit events add `criterionDigest`, and engine-8 boards replay with the original refusal and event history.@@ -130,7 +130,7 @@ Engine 20 lets a decision name the items it changes. An `appendFact`, `answerDecEngine 24 adds the person's `acceptCheck`: an item's current check, named by its SHA-256 digest, accepted so a check already green on main no longer holds the item on a board whose `checks.provesNothing` is `"hold"`. Only the person may send it, from the terminal or the view; the relay refuses it from an agent or a machine. A move from an older engine is refused before it changes the board or replay cursor, and older clients refuse engine-24 moves before interpreting them. Engines 21 through 23 are allocated to other changes.-Engine 29 records submission test selections and normalized landing evidence. A `submit` carrying `submissionProof` or a `recordLandingBatch` carrying `invariantEvidence` requires engine 29; earlier engines refuse these envelopes before applying them, and a malformed proof is refused with `SUBMISSION_PROOF`. Moves recorded under engines 28 and earlier replay without inferred coverage. Recorded invariant evidence is append-only when a landing batch is adopted. Engine slots 25 through 28 are allocated to earlier train changes; preserve their semantics when composing this item.+Engine 34 records submission test selections and normalized landing evidence. A `submit` carrying `submissionProof` or a `recordLandingBatch` carrying `invariantEvidence` requires engine 34; earlier engines refuse these envelopes before applying them, and a malformed proof is refused with `SUBMISSION_PROOF`. Moves recorded under engines 33 and earlier replay without inferred coverage. Recorded invariant evidence is append-only when a landing batch is adopted. Engine slots 25 through 33 are allocated to earlier train changes; preserve their semantics when composing this item.The CLI declares its engine in every relay request's `X-Pullboard-Engine` header.A linked board requires at least engine 3 after issuing any agent token, includingdiff --git a/docs/lifecycle.md b/docs/lifecycle.mdindex a87a98e0..d2857ff2 100644--- a/docs/lifecycle.md+++ b/docs/lifecycle.md@@ -151,7 +151,7 @@ Each move checks its guards in this order and refuses with the first one that do| REVIEW_COOLDOWN | the reviewer has not released this submission within the past hour, engine 5 or newer, only for the same reviewer and current submission | let another reviewer take it, or wait an hour or for a new submission || NOTE_REQUIRED | the move carries a note: what failed, what was tried, or why | --note "..." or --note-file <file> || ALREADY_MERGED | the item has no recorded merge receipt | a merged item cannot be reopened |-| SUBMISSION_PROOF | recorded test selection names literal project files and its full-fallback policy, engine 22 or later; absent legacy selection remains unknown | rerun submit with the current CLI |+| SUBMISSION_PROOF | recorded test selection names literal project files and its full-fallback policy, engine 34 or later; absent legacy selection remains unknown | rerun submit with the current CLI || LANDING_FAILURE_REQUIRED | a verified item note names the failing test and landing merge commit | cite the recorded batch, or name the test and merge commit in a manual note || LAND_HEADER | a displayed merge command fits the commit-header limit (accept result) | shorten the item title or cited rows so the merge header fits || ENGINE_VERSION | a verdict that implies items replays only under engine 20 or later (accept result) | upgrade Pullboard on every linked device before using --implies |diff --git a/src/engine.js b/src/engine.jsindex 6426a3ce..3c6523f6 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-29, without changing ordinary historical envelopes. */+/** Dependency edits add engine-10 meaning, edit reasons engine-19, implied items engine-20 and submission proofs engine-34, 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 64c710eb..04ec2bde 100644--- a/src/machine.js+++ b/src/machine.js@@ -10,7 +10,7 @@*//** Executable move semantics, carried by every sealed move and retained during replay [H16]. */-export const ENGINE_VERSION = 29;+export const ENGINE_VERSION = 34;/** @typedef {'agent' | 'coordinator' | 'clock'} Role */@@ -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 29 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 34 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/src/submit-invariants.js b/src/submit-invariants.jsindex 099b5ab0..dbc41102 100644--- a/src/submit-invariants.js+++ b/src/submit-invariants.js@@ -3,7 +3,7 @@ import { Refused } from './refused.js';import { isAbsolute } from 'node:path';import { relative } from 'node:path';-export const SUBMISSION_PROOF_ENGINE = 29;+export const SUBMISSION_PROOF_ENGINE = 34;const BUDGET_MS = 60_000;const COMMIT = /^[a-f0-9]{40,64}$/u;@@ -137,7 +137,7 @@ export function validateLandingBatch(batch, revision) {}}-/** Preserve earlier normalized gate and diagnostic receipts when an engine-29 batch is adopted. */+/** Preserve earlier normalized gate and diagnostic receipts when an engine-34 batch is adopted. */export function preserveInvariantEvidence(previous, evidence, engine) {if (previous?.invariantEvidence && engine >= SUBMISSION_PROOF_ENGINE) {for (const kind of ['gates', 'diagnostics']) {diff --git a/test/agent-model-engine.test.js b/test/agent-model-engine.test.jsindex 643bd6ba..56e51723 100644--- a/test/agent-model-engine.test.js+++ b/test/agent-model-engine.test.js@@ -11,7 +11,7 @@ import { tmpdir } from 'node:os';import { join } from 'node:path';test('model declarations and event snapshots retain engines 1 through 11 semantics [O8,O3,H16]', (t) => {- assert.equal(ENGINE_VERSION, 29, 'engine 29 preserves the released engine-8 through engine-11 model behavior');+ assert.equal(ENGINE_VERSION, 34, 'engine 34 preserves the released engine-8 through engine-11 model behavior');for (const version of [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ENGINE_VERSION]) {const board = store.openBoard(':memory:');t.after(() => store.closeBoard(board));diff --git a/test/pending-refreeze.test.js b/test/pending-refreeze.test.jsindex 3ee377bc..b005b67b 100644--- a/test/pending-refreeze.test.js+++ b/test/pending-refreeze.test.js@@ -261,7 +261,7 @@ async function checkDependencyLegacyClients(cleanup, directory, snapshot, target}test('dependency edits replay the same on every engine [B3,V2,H16]', async (t) => {- assert.equal(ENGINE_VERSION, 29);+ assert.equal(ENGINE_VERSION, 34);const directory = mkdtempSync(join(tmpdir(), 'pullboard-dependency-engines-'));const cleanup = [];t.after(() => {