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.

Merge remote-tracking branch 'origin/main' into core/671-luna-transport

Corey Olson8bd19fcba78f
diff --cc src/cli.js
index 2250ea99,59023459..9a9ccb9b
--- a/src/cli.js
+++ b/src/cli.js
@@@ -2133,8 -2134,7 +2134,8 @@@ async function submitHere(ctx, id)
withBoard(ctx, (board) => refuseUnverifiedStack(root, board, held, commit, trunk));
// Every submit proves its frozen check and reachable tests anew on this exact commit (V4,V16).
// A full-gate stamp never substitutes for either proof; only an actual full fallback may stamp.
- const gate = await runSubmitGate(root, ctx.config, { base: claimHead, trunk: acceptedMain.commit, check: frozenCheck(held), agent: me.id, item: String(id), onWait: gateWaitReporter(ctx.io), onBrowserFallback: browserAdmissionReporter(ctx.io, ctx.io.relayJson) });
+ const submitConfig = { ...ctx.config, submitGate: acceptedMain.config.submitGate };
- const gate = await runSubmitGate(root, submitConfig, { base: claimHead, trunk: acceptedMain.commit, check: frozenCheck(held), agent: me.id, item: String(id), onWait: gateWaitReporter(ctx.io) });
++ const gate = await runSubmitGate(root, submitConfig, { base: claimHead, trunk: acceptedMain.commit, check: frozenCheck(held), agent: me.id, item: String(id), onWait: gateWaitReporter(ctx.io), onBrowserFallback: browserAdmissionReporter(ctx.io, ctx.io.relayJson) });
if (!gate.isGreen) {
const message = `the submission proof is red at ${commit.slice(0, 12)}; fix it, commit, submit again. ${submitGateReport(gate)}`;
// No submission can follow this verdict. Read-only main comparisons must not retain the seat's write lease.
diff --cc src/gate.js
index 9f502e41,54c70c30..f8ca0ebb
--- a/src/gate.js
+++ b/src/gate.js
@@@ -351,9 -358,7 +358,10 @@@ export async function runSubmitGate(roo
const selection = config.affectedTests
? selectAffectedTests(root, { base, trunk, changed })
: { full: true, reason: 'affected-test selection is not enabled for this project', files: [] };
- const browser = (check ? await checkNeedsBrowser(root, check, { onFallback: onBrowserFallback }) : false) || selection.full || await testsNeedBrowser(root, selection.files, { onFallback: onBrowserFallback });
+ const deferred = config.submitGate === 'landing';
+ const deferFullFallback = deferred && selection.full;
- const browser = Boolean(check) || (!deferFullFallback && (selection.full || await testsNeedBrowser(root, selection.files)));
++ const checkUsesBrowser = check ? await checkNeedsBrowser(root, check, { onFallback: onBrowserFallback }) : false;
++ const browser = checkUsesBrowser || (!deferFullFallback && (selection.full || await testsNeedBrowser(root, selection.files, { onFallback: onBrowserFallback })));
return await withGateSlot(root, (lease) => {
const startedAt = Date.now();
const log = gitPath(root, 'pullboard-submit.log');