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.

fix(test): preserve discovery refusal diagnostics before admission [C7]

Corey Olsone52877f2593a
diff --git a/bin/run-tests.js b/bin/run-tests.js
index b4762581..4a85e887 100644
--- a/bin/run-tests.js
+++ b/bin/run-tests.js
@@ -1302,9 +1302,16 @@ async function main(args) {
const actions = await (await import('../src/test-action-cache.js')).planTestActions(process.cwd(), args, { fullSuite, landing: process.env[LANDING_RUN_ENV] === '1', listFiles: () => fullSuite ? trackedDefaultTestFiles(process.cwd(), process.env) : explicitTestFiles(args) });
if (actions.done) return;
const { testsNeedGui } = await import('../src/gui-admission.js');
- const guiFiles = actions.files ?? (fullSuite
- ? (isGitWorkTree(process.cwd(), process.env) ? trackedDefaultTestFiles(process.cwd(), process.env) : [])
- : explicitTestFiles(args));
+ let guiFiles;
+ try {
+ guiFiles = actions.files ?? (fullSuite
+ ? (isGitWorkTree(process.cwd(), process.env) ? trackedDefaultTestFiles(process.cwd(), process.env) : [])
+ : explicitTestFiles(args));
+ } catch (error) {
+ process.stderr.write(`run-tests: could not list tracked test files: ${error.message}\n`);
+ process.exitCode = 1;
+ return;
+ }
const gui = testsNeedGui(process.cwd(), guiFiles);
let signal = null;
/** Keep sandbox lifetime inside the held lease, including the complete child process. */