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
test: fix local-first relay fixtures [H21,H16]
Corey Olson8c7c28fe1af7
diff --git a/test/relay-auth-expired.test.js b/test/relay-auth-expired.test.jsindex ffb75811..7e22fef7 100644--- a/test/relay-auth-expired.test.js+++ b/test/relay-auth-expired.test.js@@ -218,7 +218,7 @@ test('moves stay local while the machine credential expires, then replay after s'replay does not duplicate the locally completed add');assert.equal(afterRelink.event.filter(event => event.item_id === claimId && event.event_kind === 'claim').length, 1,'replay does not duplicate the locally completed next claim');- assert.equal((await box.cli('status')).document.relay.outbox.length, 0, 'the reauthorized machine drains the queued moves');+ assert.equal(((await box.cli('status')).document.relay.outbox ?? []).length, 0, 'the reauthorized machine drains the queued moves');});diff --git a/test/relay-client.test.js b/test/relay-client.test.jsindex 0667960f..795f5bfd 100644--- a/test/relay-client.test.js+++ b/test/relay-client.test.js@@ -520,7 +520,7 @@ test('[H1,H3,H7,H15,H16] relay on snapshots and orders ciphertext, refuses offlidelete afterOffWithoutEvents.event;assert.deepEqual(afterOffWithoutEvents, beforeOffWithoutEvents, 'unlink preserves the local board rows and counters');assert.deepEqual(afterOffTables.event.slice(0, -1), localBeforeOff.tables.event, 'unlink appends one exclusion fact without changing earlier events');- assert.equal(afterOffTables.event.at(-1).event_kind, 'relay_exclusion', 'the person's opt-out intent stays in local history');+ assert.equal(afterOffTables.event.at(-1).event_kind, 'relay_exclusion', 'the person\'s opt-out intent stays in local history');assert.deepEqual(await auth.boardsFor(person.token), [{ id: boardId, repository: 'fixture/repository', linkedAt }],'zero-tap local unlink leaves the remote board linked');const session = await fetch(relay.origin + '/auth/session', { headers: { 'x-pullboard-engine': String(ENGINE_VERSION), authorization: `Bearer ${person.token}` } });