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 commit 'ab629d29e92a7c647474d4784207858c8425501b' into HEAD

Corey Olson080fcc90ead6
diff --cc src/commands/submit.js
index 9514de44,6ed10c73..1166377b
--- a/src/commands/submit.js
+++ b/src/commands/submit.js
@@@ -196,24 -192,15 +196,25 @@@ export async function submitHere(ctx, i
// Empty frozen gates adopt accepted main setup; only a full fallback may stamp its tree.
const submitConfig = { ...ctx.config, gate: ctx.config.gate.trim() ? ctx.config.gate : acceptedMain.config.gate, submitGate: acceptedMain.config.submitGate, staticChecks: acceptedMain.config.staticChecks,
submitInvariants: acceptedMain.config.submitInvariants, submitDeferAbove: acceptedMain.config.submitDeferAbove,
+ registryGuards: acceptedMain.config.registryGuards,
// The accepted project runner interprets its current invariant files; candidate config cannot replace it.
- ...(acceptedMain.config.submitInvariants.length ? { affectedTests: acceptedMain.config.affectedTests } : {}) };
+ ...(acceptedMain.config.submitInvariants.length || acceptedMain.config.registryGuards.length ? { affectedTests: acceptedMain.config.affectedTests } : {}) };
const gate = await runSubmitGate(root, submitConfig, { base: claimHead, trunk: acceptedMain.commit, check: frozenCheck(held), agent: me.id, item: String(id), onWait: queuedItemLease(ctx, held, me.id, 'build'), onBrowserFallback: browserAdmissionReporter(ctx.io, ctx.io.relayJson),
onFailure: nativeFlakes.observer(ctx, { kind: 'submit', main: acceptedMain.commit, config: submitConfig }, { ordered, withBoard, resourceAgent }) });
- // Only the person's live waivers can pass a red proof, failure by failure; the item's own check is never waived [B3].
+ // Only fully accounted exact-main failures or live person waivers pass a red proof; the item check stays mandatory [B3].
const waived = !gate.isGreen && gate.check?.green ? withBoard(ctx, (board) => waivedFailures(board, accountedFailures(gate, root))) : null;
- if (!gate.isGreen && !waived) {
- const message = `the submission proof is red at ${commit.slice(0, 12)}; fix it, commit, submit again. ${submitGateReport(gate)}`;
+ let comparison;
+ let knownMainFailures;
+ const failures = !gate.isGreen && gate.check?.green && !waived ? failureSignatures(gate, root) : null;
+ if (failures && mainFailureBase) {
+ try {
+ comparison = await compareMainFailures(root, gate.profile, gateWaitReporter(ctx.io), gate.output, { commit: mainFailureBase, detailed: true });
+ knownMainFailures = matchingMainFailures(failures, comparison, mainFailureBase);
+ } catch { /* Unavailable exact-main proof never authorizes a red submission. */ }
+ }
+ if (!gate.isGreen && !waived && !knownMainFailures) {
+ const accountingNote = gate.check?.green && !failures ? '\nknown-main acceptance unavailable: the proof has no complete named failure diagnostics' : '';
+ const message = `the submission proof is red at ${commit.slice(0, 12)}; fix it, commit, submit again. ${submitGateReport(gate)}${accountingNote}`;
// No submission can follow this verdict. Read-only main comparisons must not retain the seat's write lease.
CHECKOUT_LEASES.get(ctx.io)?.release();
CHECKOUT_LEASES.delete(ctx.io);