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(view): a timed-out hosted wait names its state, proven [N26]
Corey Olson4a4223e53b24
diff --git a/test/cockpit/local-origin.test.js b/test/cockpit/local-origin.test.jsindex 8dfffbb3..7474307d 100644--- a/test/cockpit/local-origin.test.js+++ b/test/cockpit/local-origin.test.js@@ -1114,3 +1114,21 @@ test('an item whose detail read is dropped once loads on its own [N26]', { timeo}}});++test('a hosted wait that times out names the page state and Chrome\'s network service [N26]', { timeout: 60_000 }, async () => { // budget: hang ceiling for one Chrome and one deliberately failed wait.+ const executable = chromeExecutable();+ assert.ok(executable, 'the named-wait control needs real Chrome');+ const profile = mkdtempSync(join(tmpdir(), 'pullboard-named-wait-'));+ let chrome;+ try {+ chrome = namedWaits(await openSnapshotChrome(executable, 'about:blank', profile), profile);+ // A wait that can never pass: its error must carry what the page showed and Chrome's network-service pids (#908).+ const error = await chrome.waitFor('false', 1_000).then(() => null, (failure) => failure); // budget: hang ceiling for a condition that never holds.+ assert.ok(error, 'the impossible wait failed');+ assert.match(error.message, /; the hosted page showed \{"origin":"[^"]*","search":"[^"]*","note":[^,]*,"rows":\d+,"detail":"[^"]*","relaySession":/u, 'the failure names the page state');+ assert.match(error.message, /; chrome \{"networkService":\{"atStart":\[\d*\],"now":\[\d*\]\}/u, 'and Chrome\'s network-service pids, start and now');+ } finally {+ try { if (chrome) await closeSnapshotChrome(chrome); }+ finally { rmSync(profile, { recursive: true, force: true }); }+ }+});