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
Merge branch 'main' into core/luna1232-merge-673
Corey Olsona1f63339c0d5
diff --cc src/main-red.jsindex 7cfc6ce5,153ea8ea..86299cc7--- a/src/main-red.js+++ b/src/main-red.js@@@ -19,8 -19,7 +19,7 @@@ import { tmpdir } from 'node:os'import { stripVTControlCharacters } from 'node:util';import { fileURLToPath } from 'node:url';import {- runProfiledShellAsync,+ runProfiledShell,- runProfiledShellAsync,withGateSlot,} from './gate.js';import {@@@ -193,18 -185,20 +192,22 @@@ export async function compareMainFailurlet failed = null;for (const path of missing) {try {+ // The slot is taken on the clean main checkout, so a runner can take it even when this worktree is dirty.const measured = await withMainCheckout(root, main.commit, async checkout => {- // Match #1219: admission belongs to the clean exact-main checkout, including its runner source.- return withGateSlot(checkout, async lease => {- /** Run main's copy of the file under one gate slot, on a runner unless remote is false. */++ /** Run main's copy of the file under one gate slot, retaining detailed identity when requested. */+ const measure = remote => withGateSlot(checkout, async lease => {const command = `${policy.config.affectedTests.trimEnd()} ${shellWord('./' + path)}`;- const run = detailed ? runProfiledShell(checkout, command, { gateLease: lease, waitMs: lease.waitMs, stages: true })- : await runProfiledShellAsync(checkout, command, { gateLease: lease, waitMs: lease.waitMs });- const run = await runProfiledShellAsync(checkout, command, { gateLease: lease, waitMs: lease.waitMs });- return { result: run.isGreen ? 'green' : 'red' };++ const run = runProfiledShell(checkout, command, { gateLease: lease, waitMs: lease.waitMs, stages: detailed });+ const failures = detailed ? run.isGreen ? [] : failureSignatures(run, checkout) : null;+ if (detailed && !run.isGreen && !failures) throw new Error('focused main output has no complete named failure account');+ return { result: run.isGreen ? 'green' : 'red', ...(failures ? { failures } : {}) };- }, { diagnostic: true, browser: true, agent: process.env.PULLBOARD_AGENT, kind: 'main-red', onWait });+ }, { diagnostic: true, browser: true, remote, agent: process.env.PULLBOARD_AGENT, kind: 'main-red', onWait });+ // History a runner may not receive keeps the comparison on this machine, as it ran before runners.+ try { return await measure(true); }+ catch (error) { if (error?.code !== 'RUNNER_SECRET') throw error; return measure(false); }});if (measured.unavailable) throw new Error(measured.unavailable);+ // The cache lease excludes other comparisons; persist each result before yielding again.cache = readCache(file);cache.entries[main.commit] ??= {};cache.entries[main.commit][path] = measured;