Skip to content

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.

fix(milestones): compose current trunk receipts [H16]

Corey Olson3e6028851086
diff --cc docs/formats.md
index d0f275a9,31a2239e..d2baebd3
--- a/docs/formats.md
+++ b/docs/formats.md
@@@ -134,8 -134,9 +134,11 @@@ Engine 24 adds the person's `acceptChec
Engine 30 lets a reject and a reopen carry a cause key (`cause`: `test:<file>::<title>`, `refusal:<CODE>`, `row:<id>` or `doctrine:<id>`) and lets the person record a never-again fact with `cause` and `neverAgain: true`, for `pullboard rigor`. Only a move that carries one of these needs engine 30; engine-29 and older moves replay unchanged, and clients on an older engine refuse an engine-30 move with `RELAY_MOVE` before changing their board or cursor. Engine 20 is the implied-items engine above; engine numbers 21 through 29 are allocated to other changes.
+ 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 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.
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, including
diff --cc src/engine.js
index 247c6b47,67c9f68a..ff14534f
--- a/src/engine.js
+++ b/src/engine.js
@@@ -42,18 -43,21 +47,22 @@@ export const ENGINE_OPERATIONS = Object
'register', 'ensureCoordinator', 'addItem', 'editItem', 'completeCheckBaseline', 'escalate', 'recordAttempt',
'claim', 'release', 'submit', 'reserveReview', 'reserveNextReview', 'verify', 'merged',
'withdraw', 'refreeze', 'reopen', 'shout', 'passDecision', 'answerDecision', 'holdLane', 'releaseLane', 'holdItem', 'releaseItemHold',
- 'addMilestone', 'editMilestoneItems', 'orderMilestoneItems', 'moveMilestone', 'editMilestone', 'removeMilestone',
+ 'addMilestone', 'editMilestoneItems', 'orderMilestoneItems', 'moveMilestone', 'editMilestone', 'removeMilestone', 'shipMilestone',
'recordRowDecisions', 'applyRowDecisions', 'appendFact',
'recordLandingBatch', 'recordLandingWaiver', 'recordLandingFlake', 'finishLandingBatch', 'acceptCheck',
+ 'recordHealthFindings',
]);
/** Engine version at which each ordered operation first has stable replay semantics. */
-const OPERATION_ENGINE = Object.freeze({ orderMilestoneItems: MILESTONE_RANK_ENGINE, reopen: 8, recordLandingBatch: 8, recordLandingWaiver: 8, recordLandingFlake: 8, finishLandingBatch: 8, acceptCheck: CHECK_ACCEPT_ENGINE });
+const OPERATION_ENGINE = Object.freeze({ orderMilestoneItems: MILESTONE_RANK_ENGINE, reopen: 8, recordLandingBatch: 8, recordLandingWaiver: 8, recordLandingFlake: 8, finishLandingBatch: 8, acceptCheck: CHECK_ACCEPT_ENGINE,
+ shipMilestone: MILESTONE_SHIP_ENGINE });
- /** Dependency edits, bar reasons, cause keys, checked reviews, and milestone targets retain their distinct recorded engine meanings. */
-/** Dependency edits, causes, sealed reviews and submission proofs retain distinct recorded engine meanings. */
++/** Dependency edits, causes, sealed reviews, submission proofs, health observations and milestone targets retain distinct recorded engine meanings. */
function minimumOperationEngine(operation, args, board) {
+ if (operation === 'recordHealthFindings') return HEALTH_SENTINEL_ENGINE;
const options = args[1];
+ if (operation === 'submit' && options?.submissionProof !== undefined
+ || operation === 'recordLandingBatch' && args[0]?.batch?.invariantEvidence !== undefined) return SUBMISSION_PROOF_ENGINE;
const given = (name) => Boolean(options && typeof options === 'object' && Object.hasOwn(options, name) && options[name] !== undefined && options[name] !== null && options[name] !== false);
if (board && ['recordLandingBatch', 'finishLandingBatch'].includes(operation)) {
const id = operation === 'recordLandingBatch' ? args[0]?.batch?.id : args[0]?.id;
diff --cc test/milestones.test.js
index e20a16e4,00000000..3d71e681
mode 100644,000000..100644
--- a/test/milestones.test.js
+++ b/test/milestones.test.js
@@@ -1,270 -1,0 +1,271 @@@
+/** The roadmap counts what landed on main, and shipping a milestone carries the rest forward [N26]. */
+import assert from 'node:assert/strict';
+import { execFileSync, spawnSync } from 'node:child_process';
+import { chmodSync, mkdirSync, mkdtempSync, rmSync, writeFileSync } from 'node:fs';
+import { tmpdir } from 'node:os';
+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';
+
+const BIN = resolve(import.meta.dirname, '../bin/pullboard.js');
+const HOUR = 3_600_000;
+const TEMP_DIRS = [];
+
+after(() => {
+ for (const dir of TEMP_DIRS) rmSync(dir, { recursive: true, force: true });
+});
+
+/**
+ * A real repo on main with an initialized board and a builder agent, and items in each state
+ * the roadmap tells apart: landed (verified with a merge commit), accepted (verified only) and open.
+ * Git runs with every GIT_* variable stripped, so a hook's repository never leaks into the fixture.
+ */
+function fixture(t) {
+ const dir = mkdtempSync(join(tmpdir(), 'pullboard-milestones-'));
+ TEMP_DIRS.push(dir);
+ const repo = join(dir, 'repo');
+ const bin = join(dir, 'bin');
+ mkdirSync(bin);
+ // The repo's hooks call pullboard by name, so the fixture puts this checkout's CLI on PATH.
+ const word = (value) => `'${String(value).replaceAll("'", "'\\''")}'`;
+ writeFileSync(join(bin, 'pullboard'), `#!/bin/sh\nexec ${word(process.execPath)} ${word(BIN)} "$@"\n`);
+ chmodSync(join(bin, 'pullboard'), 0o755);
+ const env = { ...process.env };
+ for (const key of Object.keys(env)) if (key.startsWith('GIT_')) delete env[key];
+ Object.assign(env, { HOME: join(dir, 'home'), PULLBOARD_HOME: join(dir, 'pullboard-home'),
+ PULLBOARD_MACHINE_HOME: join(dir, 'machine-home'), GIT_CONFIG_GLOBAL: '/dev/null', GIT_CONFIG_NOSYSTEM: '1',
+ GIT_AUTHOR_NAME: 'Milestone fixture', GIT_AUTHOR_EMAIL: '[email protected]',
+ GIT_COMMITTER_NAME: 'Milestone fixture', GIT_COMMITTER_EMAIL: '[email protected]', PATH: `${bin}:${process.env.PATH}` });
+ execFileSync('git', ['init', '-q', '-b', 'main', repo], { env });
+ /** Run Git inside the fixture repo with its private identity. */
+ const git = (...args) => execFileSync('git', args, { cwd: repo, env, encoding: 'utf8', stdio: 'pipe' }).trim();
+ /** Run pullboard from the main checkout, where it acts as the coordinator. */
+ const run = (...args) => {
+ const result = spawnSync(process.execPath, [BIN, ...args], { cwd: repo, env, encoding: 'utf8' });
+ return { status: result.status, stdout: result.stdout ?? '', stderr: result.stderr ?? '' };
+ };
+ /** Run a command that must succeed and return its JSON document. */
+ const json = (...args) => {
+ const result = run(...args, '--json');
+ assert.equal(result.status, 0, `${args.join(' ')}: ${result.stdout}${result.stderr}`);
+ return JSON.parse(result.stdout);
+ };
+ const initialized = run('init');
+ assert.equal(initialized.status, 0, initialized.stdout + initialized.stderr);
+ writeFileSync(join(repo, 'SPEC.md'), '# Fixture\n\n## G · Goals\n- G1 [approved, must] Work is tracked. | gate: true\n');
+ writeFileSync(join(repo, 'pullboard.json'), JSON.stringify({ gate: 'true', verify: 'any', lanes: { web: { owns: ['web/'], specs: ['G1'] } }, shared: [] }));
+ git('add', '-A');
+ git('commit', '-q', '-m', 'chore: initialize fixture');
+ const board = store.openBoard(join(repo, '.git', 'pullboard', 'board.sqlite'));
+ t.after(() => store.closeBoard(board));
+ store.ensureCoordinator(board, repo);
+ const builder = store.register(board, { lane: 'web', path: join(dir, 'builder'), model: 'Fixture Model' });
+ const freeze = () => ({ text: 'Tracked work', digest: 'digest:tracked' });
+ /** File an item and take it to the named state: open, accepted or landed. */
+ const item = (title, state) => {
+ const id = store.addItem(board, { by: 'coordinator', lane: 'web', title, criterion: 'Tracked work', specIds: ['G1'] });
+ if (state === 'open') return id;
+ const commit = String(id).repeat(40).slice(0, 40);
+ store.claim(board, id, { agentId: builder, lane: 'web', leaseMs: HOUR, freeze });
- store.submit(board, id, { agentId: builder, commit, tree: 'tree' });
++ submitFixture(board, id, { agentId: builder, commit, tree: 'tree' });
+ store.verify(board, id, { agentId: 'coordinator', decision: 'ACCEPT', note: 'checked it', head: commit, digest: 'digest:tracked', policy: 'any' });
+ if (state === 'landed') store.merged(board, id, { agentId: 'coordinator', commit: git('rev-parse', 'HEAD') });
+ return id;
+ };
+ return { repo, git, run, json, board, builder, item };
+}
+
+/** The milestone named `name` in a roadmap document. */
+function milestone(document, name) {
+ return document.milestones.find((entry) => entry.name === name);
+}
+
+/** The milestone moves recorded on an item's thread. */
+function moves(box, id) {
+ return box.json('show', String(id)).thread.filter((entry) => entry.kind === 'milestone_moved');
+}
+
+test('[N26] a milestone ships what landed and moves the rest', async (t) => {
+ const box = fixture(t);
+ const landed = box.item('Landed work', 'landed');
+ const accepted = box.item('Accepted work', 'accepted');
+ const open = box.item('Open work', 'open');
+ const later = box.item('Later work', 'open');
+ box.json('milestone', 'add', 'A', '--items', `${landed},${accepted},${open}`);
+ box.json('milestone', 'add', 'B', '--items', String(later));
+
+ // The target: set on A and shown in the roadmap and its JSON; a passed one is marked.
+ const edited = box.json('milestone', 'edit', 'A', '--target', '2026-01-02T03:04Z');
+ assert.equal(edited.milestone.target, '2026-01-02T03:04:00.000Z', 'the edit stores the target');
+ const before = box.json('roadmap');
+ assert.equal(milestone(before, 'A').target, '2026-01-02T03:04:00.000Z', 'the roadmap JSON shows the target');
+ assert.equal(milestone(before, 'A').pastTarget, true, 'an unshipped milestone past its target is marked');
+ assert.equal(milestone(before, 'B').pastTarget, false, 'a milestone with no target is never past it');
+
+ // Landed counting: only the merged item counts; each item shows landed, accepted or its status.
+ assert.equal(milestone(before, 'A').landed, 1, 'only the item merged onto main counts as landed');
+ assert.equal(milestone(before, 'A').done, 1, 'done means landed, so accepted work is not done');
+ assert.equal(milestone(before, 'A').total, 3);
+ assert.deepEqual(milestone(before, 'A').items.map(({ id, state }) => [id, state]),
+ [[landed, 'landed'], [accepted, 'accepted'], [open, 'open']], 'each item shows its roadmap state');
+ const text = box.run('roadmap');
+ assert.equal(text.status, 0, text.stdout + text.stderr);
+ assert.match(text.stdout, /^A: 1\/3 landed · target 2026-01-02T03:04:00\.000Z, past target$/m, 'the text shows N/M landed, the target and past target');
+ assert.match(text.stdout, /^ {2}#\d+ Landed work — landed$/m);
+ assert.match(text.stdout, /^ {2}#\d+ Accepted work — accepted$/m);
+ assert.match(text.stdout, /^ {2}#\d+ Open work — open$/m);
+
+ // Shipping is the coordinator's move, not a builder's.
+ assert.throws(() => store.shipMilestone(box.board, 'A', { agentId: box.builder, commit: box.git('rev-parse', 'main') }),
+ (error) => error.code === 'COORDINATOR_ONLY');
+
+ // Ship: A records main's commit, and the two unlanded items move into B.
+ const main = box.git('rev-parse', 'main');
+ const shipped = box.json('milestone', 'ship', 'A');
+ assert.equal(shipped.milestone.shipped.commit, main, "the milestone is shipped at main's commit");
+ assert.equal(shipped.into, 'B', 'the next milestone is the one after it');
+ assert.deepEqual(shipped.moved, [accepted, open]);
+ assert.deepEqual(shipped.notMoved, [], 'no external references were left behind');
+ const after = box.json('roadmap');
+ assert.equal(milestone(after, 'A').shipped.commit, main, "the roadmap shows main's commit on the shipped milestone");
+ assert.deepEqual(milestone(after, 'A').items.map(({ id }) => id), [landed], 'only the landed item stays in the shipped milestone');
+ assert.equal(milestone(after, 'A').pastTarget, false, 'a shipped milestone is no longer past its target');
+ assert.deepEqual(milestone(after, 'B').items.map(({ id }) => id), [later, accepted, open], 'the unlanded items are now in B');
+
+ // The threads: each moved item records the move; the landed one records none.
+ for (const id of [accepted, open]) {
+ const recorded = moves(box, id);
+ assert.equal(recorded.length, 1, `#${id}'s thread records its move`);
+ assert.equal(recorded[0].detail.from, 'A');
+ assert.equal(recorded[0].detail.to, 'B');
+ assert.equal(recorded[0].detail.commit, main);
+ }
+ assert.deepEqual(moves(box, landed), [], 'a landed item does not move');
+
+ // The refusal: a shipped milestone takes no new items.
+ const refused = box.run('milestone', 'items', 'A', '--add', String(later), '--json');
+ assert.notEqual(refused.status, 0, refused.stdout + refused.stderr);
+ assert.equal(JSON.parse(refused.stdout).error.code, 'MILESTONE_SHIPPED', 'adding to a shipped milestone is refused');
+ assert.deepEqual(milestone(box.json('roadmap'), 'A').items.map(({ id }) => id), [landed], 'the refusal changes nothing');
+
+ // A target means one instant on every replica: the move carries UTC, and a bare local time
+ // in an ordered envelope is refused alike in every zone instead of read in each one's own.
+ const { prepareEngineMove, applyEngineMove } = await import('../src/engine.js');
+ const { exportBoard, importBoard } = await import('../src/exchange.js');
+ store.addMilestone(box.board, { agentId: 'coordinator', name: 'Z' });
+ const snapshot = exportBoard(box.board);
+ const prepared = prepareEngineMove(box.board, 'editMilestone', ['Z', { agentId: 'coordinator', target: '2026-10-20T18:00' }], { id: 'zone-target', actor: 'coordinator' });
+ assert.match(prepared.args[1].target, /Z$/u, 'the prepared move carries the instant in UTC');
+ const bare = { ...prepared, id: 'bare-target', args: ['Z', { agentId: 'coordinator', target: '2026-10-20T18:00' }] };
+ const zone = process.env.TZ;
+ const replicas = [];
+ try {
+ for (const name of ['UTC', 'America/Chicago']) {
+ const dir = mkdtempSync(join(tmpdir(), 'pullboard-target-zone-'));
+ TEMP_DIRS.push(dir);
+ const replica = store.openBoard(join(dir, 'board.sqlite'));
+ t.after(() => store.closeBoard(replica));
+ importBoard(replica, snapshot);
+ process.env.TZ = name;
+ const refused = applyEngineMove(replica, bare, { sequence: 1, at: '2026-10-17T04:00:00.000Z' });
+ assert.equal(refused.error?.code, 'MILESTONE_TARGET', `a bare local time is refused in ${name}: ${JSON.stringify(refused)}`);
+ const applied = applyEngineMove(replica, prepared, { sequence: 2, at: '2026-10-17T04:00:01.000Z' });
+ assert.equal(applied.error, undefined, JSON.stringify(applied));
+ replicas.push(store.milestones(replica).find((row) => row.name === 'Z').target);
+ }
+ } finally {
+ if (zone === undefined) delete process.env.TZ;
+ else process.env.TZ = zone;
+ }
+ assert.equal(replicas[0], replicas[1], `every replica stores the same target: ${JSON.stringify(replicas)}`);
+});
+
+test('[N26] milestone ship --next names where the unlanded items go', (t) => {
+ const box = fixture(t);
+ const open = box.item('Open work', 'open');
+ box.json('milestone', 'add', 'A', '--items', String(open));
+ box.json('milestone', 'add', 'B');
+ box.json('milestone', 'add', 'C');
+ const shipped = box.json('milestone', 'ship', 'A', '--next', 'C');
+ assert.equal(shipped.into, 'C', '--next overrides the milestone after it');
+ const document = box.json('roadmap');
+ assert.deepEqual(milestone(document, 'B').items, [], 'the milestone after it gets nothing');
+ assert.deepEqual(milestone(document, 'C').items.map(({ id }) => id), [open], 'the --next milestone gets the unlanded item');
+ assert.equal(moves(box, open)[0].detail.to, 'C', 'the thread names the --next milestone');
+});
+
+test('[N26] milestone ship leaves external references in place and names them as not moved', (t) => {
+ const box = fixture(t);
+ box.json('milestone', 'add', 'JSON release', '--items', 'other-repo#17,third-repo#29');
+ const shipped = box.json('milestone', 'ship', 'JSON release');
+ assert.deepEqual(shipped.notMoved, ['other-repo#17', 'third-repo#29'], 'JSON lists each reference that remains on another board');
+ assert.deepEqual(shipped.moved, [], 'shipping does not move foreign items');
+ assert.deepEqual(milestone(box.json('roadmap'), 'JSON release').items.map(({ id }) => id),
+ ['other-repo#17', 'third-repo#29'], 'the foreign references remain on the shipped milestone');
+
+ box.json('milestone', 'add', 'Text release', '--items', 'other-repo#31,third-repo#33');
+ const text = box.run('milestone', 'ship', 'Text release');
+ assert.equal(text.status, 0, text.stdout + text.stderr);
+ assert.match(text.stdout, /not moved across boards: other-repo#31, third-repo#33/,
+ '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) => {
+ const box = fixture(t);
+ box.json('milestone', 'add', 'A');
+ box.json('milestone', 'add', 'B');
+ const { applyEngineMove, appliedSequence, engineReceipt, prepareEngineMove } = await import('../src/engine.js');
+ const { exportBoard } = await import('../src/exchange.js');
+ 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' }),
+ prepareEngineMove(box.board, 'editMilestone', ['A', { agentId: 'coordinator', target: '2026-10-20T18:00:00Z' }],
+ { id: 'engine38-milestone-target', actor: 'coordinator' }),
+ ];
+ const before = exportBoard(box.board);
+
+ for (const move of moves) {
+ const oldEnvelope = { ...move, engine: 38 };
+ 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');
+ 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');
+ }
+});
+
+/** Supported older clients can add before shipment, then obey the receiver's shipped state. */
+test('[N26,H16] an older-engine client cannot add work after a milestone ships', async (t) => {
+ const { applyRelayMove, prepareEngineMove } = await import('../src/engine.js');
+ const dir = mkdtempSync(join(tmpdir(), 'pullboard-milestone-legacy-'));
+ const board = store.openBoard(join(dir, 'board.sqlite'));
+ t.after(() => { store.closeBoard(board); rmSync(dir, { recursive: true, force: true }); });
+ store.ensureCoordinator(board, dir);
+ const id = store.addItem(board, { by: 'coordinator', lane: 'core', title: 'Still owed',
+ criterion: 'An obligation remains recorded', specIds: [] });
+ store.addMilestone(board, { agentId: 'coordinator', name: 'A', items: [] });
+ store.addMilestone(board, { agentId: 'coordinator', name: 'B', items: [] });
+ const sender = { kind: 'person', userId: 'milestone-fixture-user' };
+ const before = prepareEngineMove(board, 'editMilestoneItems',
+ ['B', { agentId: 'coordinator', add: [id], remove: [] }], { id: 'before38', actor: 'coordinator' });
+ before.engine = 38;
+ const added = applyRelayMove(board, before, { sequence: 1, at: '2026-10-18T01:00:00.000Z', sender, kind: 'move' });
+ 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');
+ 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));
+ const after = prepareEngineMove(board, 'editMilestoneItems',
+ ['A', { agentId: 'coordinator', add: [id], remove: [] }], { id: 'after38', actor: 'coordinator' });
+ after.engine = 38;
+ const outcome = applyRelayMove(board, after, { sequence: 3, at: '2026-10-18T01:00:02.000Z', sender, kind: 'move' });
+ assert.equal(outcome.error?.code, 'MILESTONE_SHIPPED', 'a supported older client cannot add work after shipment');
+ assert.deepEqual(store.milestones(board)[0].items, [], 'refusal preserves the shipped milestone membership');
+ assert.deepEqual(store.milestones(board)[1].items, [id], 'the legacy addition before shipment remains');
+});