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(runners): distinguish GUI header from code literals [C7,V4]

Corey Olsone608c0a91972
diff --git a/test/gui-admission.test.js b/test/gui-admission.test.js
index 126aac15..9c73cf93 100644
--- a/test/gui-admission.test.js
+++ b/test/gui-admission.test.js
@@ -30,3 +30,12 @@ test('GUI-domain observations distinguish confirmed presence, known absence, and
assert.equal(guiSession({ platform: 'darwin', getuid: () => -1, run: () => { throw new Error('must not run'); } }), null);
assert.equal(guiSession({ platform: 'linux', run: () => { throw new Error('must not run'); } }), null);
});
+
+test('GUI marker text in code does not turn an ordinary file into desktop work [C7,V4]', t => {
+ const root = mkdtempSync(join(tmpdir(), 'pullboard-gui-literal-'));
+ t.after(() => rmSync(root, { recursive: true, force: true }));
+ writeFileSync(join(root, 'literal.test.js'), '/** Ordinary source test. */\nconst example = "/** @pullboard-test-gui */";');
+ assert.equal(testsNeedGui(root, ['literal.test.js']), false, 'code strings are not header annotations');
+ writeFileSync(join(root, 'licensed.test.js'), '/** License. */\n/** @pullboard-test-gui */\nconst flags = ["--headless=new"];');
+ assert.equal(testsNeedGui(root, ['licensed.test.js']), true, 'the explicit marker may follow a leading license comment');
+});