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): integrate accepted background baseline [V2,H16]
Corey Olson6fbe86366c80
diff --cc CHANGELOG.mdindex de8702b8,13726d34..92e57b6c--- a/CHANGELOG.md+++ b/CHANGELOG.md@@@ -4,6 -4,33 +4,37 @@@ Notable changes to Pullboard, for peopl## [Unreleased]++### Changed++++- Background check results replay with move engine 4. Upgrade every linked device before using these moves; older clients stop replay with upgrade guidance before changing their board or cursor.+++ ## [0.8.1] - 2026-10-09++ ### Added++ - Your board on your phone: pullboard.dev shows Pullboard View to a signed-in person, and what you do there reaches your board as a request.+ - Approve or decline proposed spec rows from the Spec tab, one at a time or a whole section at once.+ - An item's detail shows its thread as one timeline.+ - `pullboard stats` prints the board's proof numbers.+ - The tour's demo board appears in Pullboard View.++ ### Changed++ - The agents' house rules are DOCTRINE.md everywhere; a PRACTICE.md is still read under its old name.+ - Submit and accept refuse work that can't merge onto the trunk.+ - Accept installs the repo's dependencies before the frozen check, and every accept records whether a check ran.+ - Only `pullboard answer` closes a decision, over the relay too.+ - A replayed verify obeys the item's frozen policy.+ - Every relay client declares its engine, and the relay refuses clients too old to judge agent moves; upgrade every linked device to 0.8.1.+ - Offline, a linked board reads locally and refuses moves.++ ### Fixed++ - Retrying a move after a lost reply never duplicates it.+ - Merging main into a lane branch commits cleanly; edits outside the lane are still refused.+ - Test runs keep a private machine home, so they no longer add projects to Pullboard View.+ - Chrome and port tests hold up on a busy machine.+## [0.8.0] - 2026-10-08### Addeddiff --cc docs/formats.mdindex 1a5165f2,9312bf9d..7103da80--- a/docs/formats.md+++ b/docs/formats.md@@@ -72,10 -72,10 +72,10 @@@ The board file is in the repository's G| `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` | `3` | `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` | `4` | `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. The first change to released move semantics raises the engine once for the next release; later changes developed before that release keep the same version. Engine 2 records a fresh explicit-build claim's skipped-review snapshot and captured background-baseline completions. Older clients refuse engine-2 moves before changing rows or replay cursors; engine 2 still accepts engine-1 moves.-Pullboard 0.6.1 released engine 1. The first change to released move semantics raises the engine once for the next release; later changes developed before that release keep the same version. Engine 2 records a fresh explicit-build claim's skipped-review snapshot. Older clients refuse engine-2 moves before changing rows or replay cursors; engine 2 still accepts engine-1 moves. Engine 3 includes lane-sensitive graft refusals; it retains support for older moves. This next-release version is shared by all unreleased move changes.++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 4 retains support for older moves. Upgrade every linked device before using the new moves. The first change to released move semantics raises the engine once for the next release; all further move changes developed before that release share engine 4.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 --cc src/machine.jsindex 06d019a8,92940caf..0fd0f016--- a/src/machine.js+++ b/src/machine.js@@@ -10,7 -10,7 +10,7 @@@*//** Executable move semantics; bump once per release after a released move's meaning changes [H16]. */--export const ENGINE_VERSION = 3;++export const ENGINE_VERSION = 4;/** @typedef {'agent' | 'coordinator' | 'clock'} Role */diff --cc test/engine.test.jsindex c541b85a,c541b85a..6c33de30--- a/test/engine.test.js+++ b/test/engine.test.js@@@ -1,12 -1,12 +1,14 @@@/** Real-SQLite tests for the deterministic, sequence-ordered move engine [H3,H16]. */import assert from 'node:assert/strict';++import { execFileSync } from 'node:child_process';import { mkdtempSync, rmSync } from 'node:fs';import { tmpdir } from 'node:os';--import { join } from 'node:path';++import { join, resolve } from 'node:path';++import { pathToFileURL } from 'node:url';import { test } from 'node:test';import * as store from '../src/board.js';import { exportBoard, importBoard, restoreRelaySnapshot } from '../src/exchange.js';--import { applyEngineMove, applyRelayMove, prepareEngineMove, appliedSequence, engineReceipt, startRelayEpoch } from '../src/engine.js';++import { applyEngineMove, applyRelayMove, prepareEngineMove, appliedSequence, engineReceipt, startRelayEpoch, checkpointSequence, ENGINE_OPERATIONS } from '../src/engine.js';import { ENGINE_VERSION } from '../src/machine.js';import { Refused } from '../src/refused.js';@@@ -178,6 -178,6 +180,39 @@@ test('future engine relay records stop}});++test('released engine 3 stops a background completion before changing rows or its cursor [V2,H16]', async t => {++ const { directory, copies, item } = engineCopies(t);++ const archive = execFileSync('git', ['archive', 'v0.8.1'], { cwd: resolve(import.meta.dirname, '..'), maxBuffer: 32 * 1024 * 1024 });++ execFileSync('tar', ['-x', '-C', directory], { input: archive });++ const released = await import(pathToFileURL(join(directory, 'src/engine.js')).href);++ const releasedMachine = await import(pathToFileURL(join(directory, 'src/machine.js')).href);++ assert.equal(releasedMachine.ENGINE_VERSION, 3, 'exercise the actual released client');++ assert.equal(released.ENGINE_OPERATIONS.includes('completeCheckBaseline'), false);++ assert.ok(ENGINE_OPERATIONS.includes('completeCheckBaseline'));++ const expected = { command: 'true', main: 'a'.repeat(40), request: '12345678-1234-1234-1234-123456789abc' };++ const baseline = { ...expected, result: 'green' };++ const sender = { kind: 'agent', userId: 'fixture-user', agent: 'coordinator' };++ for (const board of copies) {++ store.editItem(board, item, { agentId: 'coordinator', check: expected.command, checkBaseline: { ...expected, result: 'pending' } });++ checkpointSequence(board, 7);++ const move = prepareEngineMove(board, 'completeCheckBaseline', [item, { agentId: 'coordinator', expected, baseline }]);++ assert.equal(move.engine, 4);++ const before = exportBoard(board);++ assert.throws(() => released.applyRelayMove(board, move, { sequence: 8, at: CLAIM_AT, kind: 'move', sender }), error => {++ assert.equal(error.code, 'ENGINE_VERSION');++ assert.match(error.message, /version 4.*version 3.*upgrade/i);++ return true;++ });++ assert.deepEqual(exportBoard(board), before, 'no refusal, receipt, item or replay metadata changes');++ assert.equal(released.appliedSequence(board), 7);++ const receipt = applyRelayMove(board, move, { sequence: 8, at: CLAIM_AT, kind: 'move', sender });++ assert.equal(Boolean(receipt.error), false);++ assert.equal(receipt.result, true);++ assert.equal(appliedSequence(board), 8);++ assert.equal(store.events(board).at(-1).event_kind, 'check-baseline');++ }++});++test('a relay refusal receipt failure rolls back its log and cursor together [H2,H16]', t => {const { copies, item } = engineCopies(t);const board = copies[0];diff --cc test/relay-sealed.test.jsindex 74f262e7,93982d66..66ea1883--- a/test/relay-sealed.test.js+++ b/test/relay-sealed.test.js@@@ -303,9 -303,9 +303,11 @@@ test('sealed agent shout cannot answer});test('two real clients stop before sender checks for newer operations and actor layouts without advancing [H16]', async t => {-- const unknown = { version: 1, engine: 4, id: 'future-operation', operation: 'futureOp', args: [{ agentId: 'remote-1' }] };-- const shifted = { version: 1, engine: 4, id: 'future-claim', operation: 'claim', args: [1, {}, { agentId: 'remote-1' }] };-- for (const [name, moves] of [['new operation', [unknown]], ['new actor layout', [shifted]], ['current engine sender checks', [unknown, shifted].map(move => ({ ...move, engine: 3 }))]]) {++ const futureEngine = ENGINE_VERSION + 1;++ const versionMessage = new RegExp(`engine version ${futureEngine}.*engine version ${ENGINE_VERSION}`);++ const unknown = { version: 1, engine: futureEngine, id: 'future-operation', operation: 'futureOp', args: [{ agentId: 'remote-1' }] };++ const shifted = { version: 1, engine: futureEngine, id: 'future-claim', operation: 'claim', args: [1, {}, { agentId: 'remote-1' }] };++ for (const [name, moves] of [['new operation', [unknown]], ['new actor layout', [shifted]], ['current engine sender checks', [unknown, shifted].map(move => ({ ...move, engine: ENGINE_VERSION }))]]) {await t.test(name, async sub => {const box = await fixture(sub);const source = store.openBoard(join(box.root, '.git/pullboard/board.sqlite'));@@@ -347,8 -347,8 +349,8 @@@const result = await replayResult(roots[index], envs[index], 'export');assert.equal(result.status, 0);results.push(result.document);-- if (moves[0].engine === 4) {-- assert.match((result.document.diagnostics ?? []).join('\n'), /\[ENGINE_VERSION\].*engine version 4.*engine version 3.*upgrade pullboard/, 'future records stop before interpreting the sending agent');++ if (moves[0].engine === futureEngine) {++ assert.match((result.document.diagnostics ?? []).join('\n'), new RegExp(`\\[ENGINE_VERSION\\].*${versionMessage.source}.*upgrade pullboard`), 'future records stop before interpreting the sending agent');assert.deepEqual(result.document.tables, document.tables, 'no board row, receipt or persisted cursor changes');assert.equal(readFileSync(links[index], 'utf8'), originalLinks[index], 'the saved transport cursor is unchanged');const retried = await replayResult(roots[index], envs[index], 'export');@@@ -358,7 -358,7 +360,7 @@@const attempted = await replayResult(roots[index], envs[index], 'add', document.tables.item[0].item_lane, 'Later local move must wait');assert.equal(attempted.status, 1);assert.equal(attempted.document.error.code, 'ENGINE_VERSION');-- assert.match(attempted.document.error.message, /engine version 4.*engine version 3/);++ assert.match(attempted.document.error.message, versionMessage);assert.equal(readFileSync(links[index], 'utf8'), originalLinks[index]);const board = store.openBoard(join(roots[index], '.git/pullboard/board.sqlite'));try { assert.deepEqual(JSON.parse(JSON.stringify(exportBoard(board))).tables, document.tables, 'a later local mutation cannot pass the future record'); }@@@ -606,6 -606,6 +608,35 @@@ test('two real clients enforce the veri]);});++test('relay accepts engine 4 clients carrying sealed background completions [V2,H16]', async t => {++ const box = await fixture(t);++ const headers = { 'x-pullboard-engine': '4' };++ assert.equal(ENGINE_VERSION, 4);++ const snapshot = await box.call(box.path + '/state', {++ method: 'PUT', token: box.person.token, headers,++ body: { sequence: 0, sealed: box.clientSeal(box.document, 'snapshot', 0) },++ });++ assert.equal(snapshot.status, 200);++ const board = store.openBoard(join(box.root, '.git/pullboard/board.sqlite'));++ let move;++ try {++ const expected = { command: 'true', main: 'a'.repeat(40), request: '12345678-1234-1234-1234-123456789abc' };++ move = prepareEngineMove(board, 'completeCheckBaseline', [1, {++ agentId: 'client-one', expected, baseline: { ...expected, result: 'green' },++ }]);++ } finally { store.closeBoard(board); }++ const uploaded = await box.call(box.path + '/moves', {++ method: 'POST', headers, body: { sequence: 1, sealed: box.clientSeal(move, 'move', 1) },++ });++ assert.equal(uploaded.status, 200);++ const read = await box.call(box.path + '/events?after=0', { token: box.two.token, headers });++ assert.equal(read.status, 200);++ assert.equal(read.body.events.length, 1);++ const [record] = read.body.events;++ assert.deepEqual(record.sender, { kind: 'agent', userId: box.person.user.id, agent: 'client-one' });++ assert.deepEqual(box.clientOpen(record.sealed, record.kind, record.event_id), move);++});++test('[A4,H7] two clients append sealed moves in one order and no plaintext or client key reaches storage', async (t) => {const box = await fixture(t);const listed = await box.call('/api/v1/boards');