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(resources): account for the added WebKit launcher [C7,O5]

Corey Olson5318df1f0ae7
diff --git a/test/test-resources.test.js b/test/test-resources.test.js
index 8b7c8c38..6b2f135b 100644
--- a/test/test-resources.test.js
+++ b/test/test-resources.test.js
@@ -341,12 +341,15 @@ test('only a file that reaches a browser launch takes a browser slot [C7,O5]', a
assert.equal(listed.status, 0, listed.stderr);
const tracked = listed.stdout.split('\0').filter(path => /\.test\.(?:js|mjs)$/u.test(path)).sort();
const bound = await browserBoundFiles(repository, tracked, { byLaunch: true });
- const missed = CENSUS_LAUNCHED.filter(file => tracked.includes(file) && !bound.includes(file));
- assert.deepEqual(missed, [], 'every file that launched Chrome in the census is classified browser-bound');
+ // #977 added this real WebKit launcher after the historical census; retain its own admission check.
+ const addedLaunchers = ['test/relay-local-origin.test.js'];
+ const missed = [...CENSUS_LAUNCHED, ...addedLaunchers].filter(file => tracked.includes(file) && !bound.includes(file));
+ assert.deepEqual(missed, [], 'every recorded browser launcher is classified browser-bound');
// Cockpit and journey files stay bound by rule until #741 guards the view fixture; the rest must reach a launch.
const reached = bound.filter(file => !file.startsWith('test/cockpit/') && file !== 'test/journeys.test.js');
- assert.ok(reached.length <= 20,
- `about 42 of ${tracked.length} test files are browser-bound by launch (the census's 15 non-cockpit launchers, plus cockpit and journey files until #741); got ${bound.length}, ${reached.length} outside cockpit: ${reached.join(', ')}`);
+ const censusReached = reached.filter(file => !addedLaunchers.includes(file));
+ assert.ok(censusReached.length <= 20,
+ `the historical census keeps its 20-file outside-cockpit ceiling, separately accounting for ${addedLaunchers.join(', ')}; got ${censusReached.length} historical, ${reached.length} total outside cockpit: ${reached.join(', ')}`);
const runner = runnerFixture(t, {
'test/plain.test.js': `import { spawnSync } from 'node:child_process';\nvoid spawnSync;\n${RECORD_MARKER('plain')}`,