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(relay): inspect settled pairing address and history [H5,H15,H17]
Corey Olson4de274186bda
diff --git a/test/relay-setup-once.test.js b/test/relay-setup-once.test.jsindex 89aa9496..cb0e6df5 100644--- a/test/relay-setup-once.test.js+++ b/test/relay-setup-once.test.js@@ -210,7 +210,16 @@ test('set up once links three registered boards, later registration and a persisassert.equal(completed.document.linked.length, 3);assert.equal(completed.document.paired, true);await pageWait(chrome, 'initial pairing renders registered boards', "document.querySelectorAll('#proj-list .proj.repo').length === 3");- assert.equal(await pageEvaluate(chrome, 'initial pairing strips the one-use fragment', 'location.hash'), '', 'the one-use secret is stripped from browser history');+ // Rows render before the router replaces the stripped fragment with the board's ordinary address.+ await pageWait(chrome, 'initial pairing settles the board address', "history.state?.tab === 'home' && typeof history.state.root === 'string' && location.hash === '#repository/home'");+ const pairedUrl = await pageEvaluate(chrome, 'initial pairing reads the settled address', 'location.href');+ const navigation = await chrome.send('Page.getNavigationHistory');+ assert.ok(navigation.entries.length > 0, 'the actual browser history is inspected');+ for (const url of [pairedUrl, ...navigation.entries.map(entry => entry.url)]) {+ assert.equal(url.includes('device='), false, 'the one-use pairing fragment is absent from the address and history');+ assert.equal(url.includes(pending.locator), false, 'the pairing locator is absent from the address and history');+ assert.equal(url.includes(pending.secret), false, 'the one-use secret is absent from the address and history');+ }const device = await pageEvaluate(chrome, 'initial pairing reads the persisted device key', browserDeviceExpression());assert.equal(device.extractable, false, 'the private phone key is persisted non-extractable in IndexedDB');assert.equal(JSON.parse(readFileSync(machineFile, 'utf8')).devices[0].deviceId, device.id);