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
fix(milestones): use assigned engine 45 [H16]
Corey Olsona5ab9b21f83e
diff --git a/docs/api.md b/docs/api.mdindex f742c509..207e924d 100644--- a/docs/api.md+++ b/docs/api.md@@ -354,7 +354,7 @@ The coordinator maintains the roadmap with `milestone add <name> [--note ...] [-An item counts as done only once it has landed on main: it is verified and its merge commit is recorded. `pullboard roadmap` prints milestones in order as `N/M landed`, with the target, `past target` for an unshipped milestone whose target has passed, or the commit it shipped at, and each item as `landed`, `accepted` (verified, not landed) or its status. Its JSON results and API state use `{ name, note, target, pastTarget, shipped, items: [{ id, title, status, state }], landed, done, total }` for each milestone: `target` is ISO text or `null`, `shipped` is `{ commit, at, by }` or `null`, `state` is `landed`, `accepted` or the status, and `done` equals `landed`.-`milestone ship` is the coordinator's move. It records the milestone as shipped at the main checkout's commit and moves every local item that has not landed into the next unshipped milestone after it, or into `--next`, recording a `milestone_moved` event on each moved item's thread. A withdrawn local item stays in place. A `repo#id` reference also stays in place because its board belongs to another repository; every such reference is listed in `notMoved` in JSON and named as “not moved across boards” in text output. Its JSON result is `{ milestone, into, moved, notMoved }`. A shipped milestone takes no new items: `milestone items <name> --add` refuses `MILESTONE_SHIPPED`. Shipping refuses `NO_NEXT_MILESTONE` when unlanded local items have nowhere to go, and `MILESTONE_COMMIT` when main has no commit. Targets and shipping are engine 39 moves.+`milestone ship` is the coordinator's move. It records the milestone as shipped at the main checkout's commit and moves every local item that has not landed into the next unshipped milestone after it, or into `--next`, recording a `milestone_moved` event on each moved item's thread. A withdrawn local item stays in place. A `repo#id` reference also stays in place because its board belongs to another repository; every such reference is listed in `notMoved` in JSON and named as “not moved across boards” in text output. Its JSON result is `{ milestone, into, moved, notMoved }`. A shipped milestone takes no new items: `milestone items <name> --add` refuses `MILESTONE_SHIPPED`. Shipping refuses `NO_NEXT_MILESTONE` when unlanded local items have nowhere to go, and `MILESTONE_COMMIT` when main has no commit. Targets and shipping are engine 45 moves.<!-- api-http-shapes:start -->| Response | Required top-level fields |diff --git a/docs/formats.md b/docs/formats.mdindex d2baebd3..f4298ad2 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` | `42` | `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` | `45` | `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.@@ -136,7 +136,7 @@ Engine 30 lets a reject and a reopen carry a cause key (`cause`: `test:<file>::<Engine 38 records submission test selections and normalized landing evidence. A `submit` carrying `submissionProof` or a `recordLandingBatch` carrying `invariantEvidence` requires engine 38; earlier engines refuse these envelopes before applying them, and a missing or malformed proof is refused with `SUBMISSION_PROOF` on a modern submit before its item or events change. Moves recorded under engines 37 and earlier replay without inferred coverage. Recorded invariant evidence is append-only when a landing batch is adopted; adopting or finishing a batch already carrying that evidence requires engine 38, even when the incoming move omits the evidence field. Engine slots 25 through 37 are allocated to earlier train changes; preserve their semantics when composing this item.-Engine 39 gives a milestone a target and a shipment. An `editMilestone` move may carry `target`, an ISO date or date-time with an explicit zone (the CLI and `prepareEngineMove` turn a typed local time into UTC before the move is sealed, so every replica stores the same instant; a bare local time in an envelope is refused with `MILESTONE_TARGET`), or `none` to clear it. A `shipMilestone` move records the milestone as shipped at main's commit and moves every local item that has not landed and is not withdrawn into the next unshipped milestone, or `--next`, writing a `milestone_moved` event on each moved item; repo-qualified references stay in place and are listed as not moved across boards. A shipped milestone refuses new items with `MILESTONE_SHIPPED`. Either makes the move an engine-39 move, and an older engine refuses it with `RELAY_MOVE` before changing its board or cursor. The coordinator assigned engines 34, 35, 36, 37 and 38 to #794, #579, #777, #408 and #696 respectively; engine 39 is assigned to this milestone feature. Engine 30 carries the cause-key behavior above; engine 33 retains the checked-review behavior described above.+Engine 45 gives a milestone a target and a shipment. An `editMilestone` move may carry `target`, an ISO date or date-time with an explicit zone (the CLI and `prepareEngineMove` turn a typed local time into UTC before the move is sealed, so every replica stores the same instant; a bare local time in an envelope is refused with `MILESTONE_TARGET`), or `none` to clear it. A `shipMilestone` move records the milestone as shipped at main's commit and moves every local item that has not landed and is not withdrawn into the next unshipped milestone, or `--next`, writing a `milestone_moved` event on each moved item; repo-qualified references stay in place and are listed as not moved across boards. A shipped milestone refuses new items with `MILESTONE_SHIPPED`. Either makes the move an engine-45 move, and an older engine refuses it with `RELAY_MOVE` before changing its board or cursor. The coordinator assigned engines 34, 35, 36, 37 and 38 to #794, #579, #777, #408 and #696 respectively; engine 42 is assigned to #772, 43 to #774 and 44 to #796; engine 45 is assigned to this milestone feature. Engine 30 carries the cause-key behavior above; engine 33 retains the checked-review behavior described above.Engine 42 adds ordered `recordHealthFindings` observations. A scan retains its board event revision, emits new and resolved sentinel notices once, and records `health-failure` receipts under their refusal cause keys. Rigor counts repeated health episodes without inventing a changed code commit. Older engines refuse this operation before replay; earlier move meanings and feature minima stay unchanged.diff --git a/src/machine.js b/src/machine.jsindex e11f776b..1151274b 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 = 42;+export const ENGINE_VERSION = 45;/** The engine at which a reject, reopen or person fact can carry a cause key (#713); older moves replay unchanged [D1,H16]. */export const CAUSE_ENGINE = 30;diff --git a/src/milestones.js b/src/milestones.jsindex 2a3a8857..e291c02a 100644--- a/src/milestones.js+++ b/src/milestones.js@@ -22,7 +22,7 @@ import {} from './board.js';/** The engine at which a milestone carries a target and ships; older moves replay as they did. */-export const MILESTONE_SHIP_ENGINE = 39;+export const MILESTONE_SHIP_ENGINE = 45;/** The engine a move runs under: its recorded one during replay, else this client's. */function engineOf(board) {@@ -246,7 +246,7 @@ export function moveMilestone(board, name, { agentId, before }) {/*** Rename a milestone, update its note, or set its target without touching its items. A target is- * an engine-39 meaning, so an older engine's edit replays exactly as it did.+ * an engine-45 meaning, so an older engine's edit replays exactly as it did.*/export function editMilestone(board, name, { agentId, newName, note, target }) {requireCoordinator(agentId);diff --git a/test/agent-model-engine.test.js b/test/agent-model-engine.test.jsindex 31861391..7114b17e 100644--- a/test/agent-model-engine.test.js+++ b/test/agent-model-engine.test.js@@ -11,8 +11,8 @@ import { mkdtempSync, rmSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { join } from 'node:path';-test('model declarations and event snapshots retain engines 1 through 34 semantics [O8,O3,H16]', (t) => {- assert.ok(ENGINE_VERSION >= HEALTH_SENTINEL_ENGINE, 'the current writer retains the sentinel minimum and historical behavior');+test('model declarations and event snapshots retain engines 1 through 45 semantics [O8,O3,H16]', (t) => {+ assert.equal(ENGINE_VERSION, 45, 'the current writer retains historical behavior through engine 44');for (const version of Array.from({ length: ENGINE_VERSION }, (_, index) => index + 1)) {const board = store.openBoard(':memory:');t.after(() => store.closeBoard(board));diff --git a/test/milestones.test.js b/test/milestones.test.jsindex 3d71e681..9eb0ca1a 100644--- a/test/milestones.test.js+++ b/test/milestones.test.js@@ -7,6 +7,7 @@ import { join, resolve } from 'node:path';import { after, test } from 'node:test';import * as store from '../src/board.js';import { submitFixture } from './board-submit-fixture.js';+import { ENGINE_VERSION } from '../src/machine.js';const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');const HOUR = 3_600_000;@@ -211,7 +212,7 @@ test('[N26] milestone ship leaves external references in place and names them as'human output names every foreign reference that stayed in place');});-test('[N26,H16] engine 38 cannot ship a milestone or set its target', async (t) => {+test('[N26,H16] engine 44 cannot ship a milestone or set its target', async (t) => {const box = fixture(t);box.json('milestone', 'add', 'A');box.json('milestone', 'add', 'B');@@ -220,18 +221,18 @@ test('[N26,H16] engine 38 cannot ship a milestone or set its target', async (t)const main = box.git('rev-parse', 'main');const moves = [prepareEngineMove(box.board, 'shipMilestone', ['A', { agentId: 'coordinator', commit: main, next: 'B' }],- { id: 'engine38-milestone-ship', actor: 'coordinator' }),+ { id: 'engine44-milestone-ship', actor: 'coordinator' }),prepareEngineMove(box.board, 'editMilestone', ['A', { agentId: 'coordinator', target: '2026-10-20T18:00:00Z' }],- { id: 'engine38-milestone-target', actor: 'coordinator' }),+ { id: 'engine44-milestone-target', actor: 'coordinator' }),];const before = exportBoard(box.board);for (const move of moves) {- const oldEnvelope = { ...move, engine: 38 };+ const oldEnvelope = { ...move, engine: 44 };assert.throws(() => applyEngineMove(box.board, oldEnvelope, { sequence: 1, at: '2026-10-17T12:00:00.000Z' }),- (error) => error.code === 'RELAY_MOVE' && /introduced in engine 39/u.test(error.message),- `${move.operation} was introduced in engine 39 and must not run as engine 38`);- assert.deepEqual(exportBoard(box.board), before, 'an unsupported engine-38 meaning changes no rows or event history');+ (error) => error.code === 'RELAY_MOVE' && /introduced in engine 45/u.test(error.message),+ `${move.operation} was introduced in engine 45 and must not run as engine 44`);+ assert.deepEqual(exportBoard(box.board), before, 'an unsupported engine-44 meaning changes no rows or event history');assert.equal(appliedSequence(box.board), 0, 'pre-validation refusal does not advance the relay cursor');assert.equal(engineReceipt(box.board, move.id), null, 'pre-validation refusal creates no move receipt');}@@ -256,8 +257,8 @@ test('[N26,H16] an older-engine client cannot add work after a milestone ships',assert.equal(added.error, undefined, 'an engine38 addition to an unshipped milestone stays replayable');assert.deepEqual(store.milestones(board)[1].items, [id]);const ship = prepareEngineMove(board, 'shipMilestone',- ['A', { agentId: 'coordinator', commit: '1'.repeat(40) }], { id: 'ship39', actor: 'coordinator' });- assert.equal(ship.engine, 39, 'the current milestone writer is exercised');+ ['A', { agentId: 'coordinator', commit: '1'.repeat(40) }], { id: 'ship45', actor: 'coordinator' });+ assert.equal(ship.engine, ENGINE_VERSION, 'the current milestone writer is exercised');const shipped = applyRelayMove(board, ship, { sequence: 2, at: '2026-10-18T01:00:01.000Z', sender, kind: 'move' });assert.equal(shipped.error, undefined, JSON.stringify(shipped));assert.equal(store.milestones(board)[0].shipped.commit, '1'.repeat(40));diff --git a/test/pending-refreeze.test.js b/test/pending-refreeze.test.jsindex f9a15d76..a09b867a 100644--- a/test/pending-refreeze.test.js+++ b/test/pending-refreeze.test.js@@ -262,7 +262,7 @@ async function checkDependencyLegacyClients(cleanup, directory, snapshot, target}test('dependency edits replay the same on every engine [B3,V2,H16]', async (t) => {- assert.ok(ENGINE_VERSION >= HEALTH_SENTINEL_ENGINE, 'the current writer retains the sentinel minimum and historical behavior');+ assert.equal(ENGINE_VERSION, 45, 'the current writer retains historical behavior through engine 44');const directory = mkdtempSync(join(tmpdir(), 'pullboard-dependency-engines-'));const cleanup = [];t.after(() => {