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(core): prove outsiders cannot decrypt handed board keys [H15,E17]
Corey Olsondfb2cce69ff1
diff --git a/test/team.test.js b/test/team.test.jsindex bc34e04f..1392ed33 100644--- a/test/team.test.js+++ b/test/team.test.js@@ -1039,6 +1039,10 @@ test('a relay supplied outside login receives no board key despite a valid SSH vreturn deliveries[0];}const refused = await answer(outsider);+ const leaked = refused.wrapped ? await unwrapDeviceBoardKey(outsider.device.privateKey,+ JSON.parse(Buffer.from(refused.wrapped, 'base64url').toString('utf8')),+ { board: state.board, device: outsider.device.deviceId, engine: PEOPLE_VERSION }) : null;+ assert.equal(leaked !== null && Buffer.from(leaked).equals(boardKey), false, 'the outsider cannot decrypt the actual board key');assert.equal(refused.refused?.code, 'RELAY_KEY_VOUCH', 'a valid outsider signature cannot establish trusted board membership');assert.equal(Object.hasOwn(refused, 'wrapped'), false, 'the relay receives no key ciphertext it could unwrap as the outsider');const allowed = await answer(member);