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.

test: release suite follows #960, #964 and #985 [H5,I1,V19]

Corey Olsona6a17edba700
diff --git a/test/item-hold.test.js b/test/item-hold.test.js
index 42ba7fe8..187bf088 100644
--- a/test/item-hold.test.js
+++ b/test/item-hold.test.js
@@ -105,8 +105,10 @@ test('lifting a hold makes the item offerable again [N2,N22,H16,M1]', t => {
const hold = prepareEngineMove(board, 'holdItem', [id, { agentId: 'coordinator', reason: 'review the release' }]);
const at = '2026-10-09T12:00:00.000Z';
const transport = { kind: 'move', sender: { kind: 'agent', userId: 'fixture-user', agent: 'coordinator' } };
+ // The project board also holds the spec baseline its init recorded, so event ids differ from the bare peer's (#960).
+ const unnumbered = (moved) => ({ ...moved, events: moved.events.map(({ event_id, ...event }) => event) });
const applied = applyRelayMove(board, hold, { ...transport, sequence: 1, at });
- assert.deepEqual(applyRelayMove(peer, hold, { ...transport, sequence: 1, at }), applied);
+ assert.deepEqual(unnumbered(applyRelayMove(peer, hold, { ...transport, sequence: 1, at })), unnumbered(applied));
assert.equal(store.getItem(peer, id).item_hold_reason, 'review the release');
const holdEvent = store.events(peer, { itemId: id }).at(-1);
assert.equal(holdEvent.event_kind, 'hold_item');
@@ -131,7 +133,7 @@ test('lifting a hold makes the item offerable again [N2,N22,H16,M1]', t => {
const release = prepareEngineMove(board, 'releaseItemHold', [id, { agentId: 'coordinator' }]);
const releaseAt = '2026-10-09T12:01:00.000Z';
const released = applyRelayMove(board, release, { ...transport, sequence: 2, at: releaseAt });
- assert.deepEqual(applyRelayMove(peer, release, { ...transport, sequence: 2, at: releaseAt }), released);
+ assert.deepEqual(unnumbered(applyRelayMove(peer, release, { ...transport, sequence: 2, at: releaseAt })), unnumbered(released));
assert.equal(store.events(peer, { itemId: id }).at(-1).event_kind, 'unhold_item');
for (const replica of [board, peer]) {
const item = store.getItem(replica, id);
diff --git a/test/relay-browser.test.js b/test/relay-browser.test.js
index b14cde3e..75333a7d 100644
--- a/test/relay-browser.test.js
+++ b/test/relay-browser.test.js
@@ -771,7 +771,8 @@ async function revokeBrowser(box, _chrome, device) {
await revoke.waitForOutput('Sign in with GitHub: open ');
assert.ok(box.calls.slice(before).some(record => record.path === '/auth/device/start'),
'the only phone is removed through a fresh provider sign-in');
- assert.equal(box.calls.slice(before).some(record => record.path === '/api/v1/devices/approvals'), false,
+ // The page may read pending approvals (#985); approving is the POST.
+ assert.equal(box.calls.slice(before).some(record => record.method === 'POST' && record.path === '/api/v1/devices/approvals'), false,
'the target browser never approves its own removal');
box.providerState.deviceAuthorized = true;
const result = await revoke.closed;
diff --git a/test/release.test.js b/test/release.test.js
index 5f5718fb..640e34e5 100644
--- a/test/release.test.js
+++ b/test/release.test.js
@@ -58,7 +58,7 @@ test('a packed release installs with no network and runs the whole loop from a f
const repo = join(dir, 'repo');
mkdirSync(repo);
git(repo, 'init', '-q', '-b', 'main');
- const initialized = pullboard(repo, 'init');
+ const initialized = pullboard(repo, 'init', '--verbose');
for (const line of ['wrote pullboard.json', 'wrote SPEC.md', 'wrote .githooks/pre-commit', 'set core.hooksPath to .githooks', 'opened the board in the git dir; this checkout is the coordinator']) {
assert.ok(initialized.includes(line), `init says: ${line}`);
}
diff --git a/test/verdict-check.test.js b/test/verdict-check.test.js
index 72686062..44c212b2 100644
--- a/test/verdict-check.test.js
+++ b/test/verdict-check.test.js
@@ -48,6 +48,8 @@ function project(box) {
const web = join(box.dir, 'web-1');
mkdirSync(repo);
box.git(repo, 'init', '-q', '-b', 'main');
+ // The spec is in place before init, so the board's approval baseline holds its approved rows as the person's (#960).
+ writeFileSync(join(repo, 'SPEC.md'), SPEC);
assert.equal(box.run(repo, 'init').code, 0);
writeFileSync(join(repo, 'pullboard.json'), JSON.stringify({
gate: 'test ! -f RED', spec: 'SPEC.md', verify: { policy: 'any', family: 'off' },