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(core): drop the scratch key case [H21]

Corey Olson22046f5f175c
diff --git a/src/relay-key.js b/src/relay-key.js
index 3452dd13..ac309d32 100644
--- a/src/relay-key.js
+++ b/src/relay-key.js
@@ -113,7 +113,7 @@ export function readBoardKey(boardId) {
}
}
if (process.env.PULLBOARD_RELAY_KEY !== undefined) return decodeBoardKey(process.env.PULLBOARD_RELAY_KEY);
- throw new Refused('RELAY_KEY_MISSING', 'the board key is missing on this device; set PULLBOARD_RELAY_KEY from your local secret store, pair this device again, or run pullboard relay off then relay on to upload a new sealed snapshot; run this command where the key is available, or pair this device' + ' STACK ' + new Error().stack.split('\n').slice(1, 12).join(' | '));
+ throw new Refused('RELAY_KEY_MISSING', 'the board key is missing on this device; set PULLBOARD_RELAY_KEY from your local secret store, pair this device again, or run pullboard relay off then relay on to upload a new sealed snapshot; run this command where the key is available, or pair this device');
}
/** Remove the device key after a successful unlink, leaving all local board records untouched. */
diff --git a/test/zz-debug-1013.test.js b/test/zz-debug-1013.test.js
deleted file mode 100644
index 3e51e0e0..00000000
--- a/test/zz-debug-1013.test.js
+++ /dev/null
@@ -1,18 +0,0 @@
-/** Scratch: inbox without the board key on a linked board [H21]. */
-import assert from 'node:assert/strict';
-import { readdirSync, renameSync } from 'node:fs';
-import { join } from 'node:path';
-import test from 'node:test';
-import { relayClientFixture } from './relay-client-fixture.js';
-
-test('scratch inbox without key [H21]', async t => {
- const box = await relayClientFixture(t);
- assert.equal((await box.link()).code, 0);
- assert.equal((await box.cli('add', box.lane, 'Read from any session')).code, 0);
- const keys = join(box.env.PULLBOARD_HOME, 'relay-keys');
- renameSync(keys, keys + '.parked');
- try {
- const read = await box.cli('inbox');
- assert.equal(read.code, 0, JSON.stringify(read.document));
- } finally { renameSync(keys + '.parked', keys); }
-});