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
fix(test): a red file main lacks reads as a new failure [C7]
Corey Olsonf50fb7b8dc17
diff --git a/src/commands/test.js b/src/commands/test.jsindex 1046992b..657e566e 100644--- a/src/commands/test.js+++ b/src/commands/test.js@@ -17,7 +17,7 @@ export async function run(io, { first, second, rest, values }) {for (const entry of result.known) {io.err(entry.result === 'red'? `known main failure: ${entry.file} fails on main ${String(result.main).slice(0, 12)} too`- : `new failure: ${entry.file} passes on main ${String(result.main).slice(0, 12)}`);+ : `new failure: ${entry.file} ${entry.result === 'absent' ? 'is not on' : 'passes on'} main ${String(result.main).slice(0, 12)}`);}if (result.mainUnavailable) io.err(`main comparison unavailable: ${result.mainUnavailable}`);return result.green ? 0 : 1;diff --git a/src/test-run.js b/src/test-run.jsindex 5c6b7f7c..17d8db34 100644--- a/src/test-run.js+++ b/src/test-run.js@@ -105,7 +105,9 @@ export async function runTestFiles(root, config, files, { agent, onWait } = {})if (!run.isGreen) {const compared = await compareMainFailures(root, run.profile, onWait, run.output);result.main = compared.main;- result.known = compared.files;+ // A file main does not have yet cannot fail there: its failure is new, whatever main's run of it said.+ result.known = compared.files.map((entry) => compared.main && spawnSync('git', ['cat-file', '-e', `${compared.main}:${entry.file}`], { cwd: root, env: cleanGitEnvironment(), stdio: 'ignore' }).status !== 0+ ? { ...entry, result: 'absent' } : entry);if (compared.unavailable) result.mainUnavailable = compared.unavailable;}return result;