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(core): merge trunk into accepted receipt work [V4,H16]

Corey Olson2ac8a58ac0dd
diff --cc src/board.js
index 035963b2,e0df1501..9b64b801
--- a/src/board.js
+++ b/src/board.js
@@@ -1,7 -1,13 +1,17 @@@
+import {
+ submissionItemValues,
+ recordSubmissionEvent,
+} from './submission-record.js';
+ import { applyLaneLead } from './lane-lead-policy.js';
+ import { applyHealthFindings } from './board-health.js';
+ import {
+ isLaneEscalation,
+ laneLeads,
+ leadOwnsDecision,
+ routeLaneMessage,
+ } from './lane-lead.js';
+ export { laneLeads };
+
import { companionPlan } from './companion.js';
import { applyCompanionRequest } from './companion.js';
export { readBoardMembers, setBoardMembers } from './board-members.js';
@@@ -1213,14 -1191,8 +1214,14 @@@ export function submit(board, id, { age
gateGreen: null,
proofRecorded: null, // The CLI records and validates native receipts before sealing submit; replay needs no origin files.
treeStillDuringGate: null,
+ ...(carry ? {
+ mergeOnlyRecorded: carriedProblem,
+ atSubmittedCommit: null, // The same post-gate HEAD check binds both submission paths.
+ notBuilder: found => retainedVerifierIdentityProblem(board, found, basis.by),
+ proofNoted: () => typeof mergeOnly?.resolutionDiff === 'string' ? null : new Refused('PROOF_REQUIRED', 'record the actual merge resolution diff'),
+ } : {}),
submissionProofValid: () => {
- if ((board.executionEngineVersion ?? ENGINE_VERSION) >= SUBMISSION_PROOF_ENGINE) recordedProof = submissionProof(proof);
+ if ((board.executionEngineVersion ?? ENGINE_VERSION) >= SUBMISSION_PROOF_ENGINE) recordedProof = submissionProof(proof, board.executionEngineVersion ?? ENGINE_VERSION);
if ((board.executionEngineVersion ?? ENGINE_VERSION) >= FLOW_SIZE_ENGINE) recordedSize = submissionSize(size, commit);
return null;
},
diff --cc src/commands/submit.js
index 60b61d05,4b510a8f..f20d35fc
--- a/src/commands/submit.js
+++ b/src/commands/submit.js
@@@ -231,10 -247,10 +247,11 @@@ export async function submitHere(ctx, i
refuseUnverifiedStack(root, board, store.getItem(board, id), commit, currentTrunk);
// The waived run is written to the item's thread before the submission, so no waived proof reads as green.
if (waived) await ordered(ctx, board, 'appendFact', [id, { agentId: me.id, kind: 'measurement', text: `submission proof at ${commit.slice(0, 12)} was red and is recorded as waived, not green; every failure is covered by a live person waiver:\n${waivedLines.join('\n')}` }]);
+ if (knownMainFailures) await ordered(ctx, board, 'appendFact', [id, { agentId: me.id, kind: 'measurement', text: `submission proof at ${commit.slice(0, 12)} remains red; known main failures at ${knownMainFailures.main}: ${knownMainFailures.failures.map(row => `${row.file} (${row.name})`).join('; ')}. The item check passed; no new or unaccounted failure is accepted.` }]);
return await ordered(ctx, board, 'submit', [id, { agentId: me.id, commit, tree: headTree(root) ?? '', files: filesSince(root, id, claimHead, commit), policyCommit: acceptedMain.commit, ...(infraRecord ? { infra: infraRecord } : {}),
+ gateGreen: gate.isGreen && !waived,
...(size ? { submissionSize: size } : {}),
- submissionProof: { version: 1, files: gate.files, full: gate.full, deferred: gate.deferred, reason: gate.reason, ...(gate.deferredFiles ? { deferredFiles: gate.deferredFiles } : {}) },
+ submissionProof: { version: 1, files: gate.files, full: gate.full, deferred: gate.deferred, reason: gate.reason, ...(gate.deferredFiles ? { deferredFiles: gate.deferredFiles } : {}), ...(knownMainFailures ? { knownMainFailures } : {}) },
...(gate.deferred ? { note: gate.deferredFiles ? deferredSelectionNote(gate.deferredFiles) : 'full suite deferred to the landing gate' } : {}) }]);
});
// A large submit still goes through; the note only suggests a chain of smaller items (#1162).