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 HEAD
Corey Olson9cc0e4bcac5a
diff --cc src/board.jsindex 7781a72e,5bb79ec8..000d93ec--- a/src/board.js+++ b/src/board.js@@@ -1154,8 -1135,9 +1154,9 @@@ export function prepareMergeOnlySubmit(* @param {{ agentId: string, commit: string, tree: string, files?: string[], policyCommit?: string, note?: string }} at - `files`: what the* item's own commits changed since its claim; a rework adds to what the first attempt changed.*/- export function submit(board, id, { agentId, commit, tree, files = [], policyCommit = null, note, submissionProof: proof, infra = null, gateGreen, mergeOnly: recordedCarry }) {-export function submit(board, id, { agentId, commit, tree, files = [], policyCommit = null, note, submissionProof: proof, submissionSize: size, infra = null }) {++export function submit(board, id, { agentId, commit, tree, files = [], policyCommit = null, note, submissionProof: proof, submissionSize: size, infra = null, gateGreen, mergeOnly: recordedCarry }) {let recordedProof;+ let recordedSize;if (note !== undefined && (typeof note !== 'string' || !note.trim() || /[\r\n\u2028\u2029]/u.test(note))) {throw new Refused('USAGE', 'a submission note, when present, is one nonempty line');}@@@ -1189,14 -1163,9 +1190,15 @@@gateConfigured: null, queuedItemLease: null,gateGreen: null,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) >= FLOW_SIZE_ENGINE) recordedSize = submissionSize(size, commit);return null;},childrenDone: () => {@@@ -1239,8 -1206,7 +1241,9 @@@...(criterionDigest ? { criterionDigest } : {}),...(note === undefined ? {} : { note: note.trim() }),...(recordedProof ? { submissionProof: recordedProof } : {}), ...(infra ? { infra } : {}),+ ...(modern && gateGreen !== undefined ? { gateGreen: gateGreen === true } : {}),+ ...(carry ? { mergeOnly } : {}),+ ...(recordedSize ? { submissionSize: recordedSize } : {}),});});}diff --cc src/commands/submit.jsindex 004a695e,763cda0d..c85db684--- a/src/commands/submit.js+++ b/src/commands/submit.js@@@ -222,7 -226,7 +226,8 @@@ export async function submitHere(ctx, i// 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')}` }]);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 } : {}) },...(gate.deferred ? { note: gate.deferredFiles ? deferredSelectionNote(gate.deferredFiles) : 'full suite deferred to the landing gate' } : {}) }]);});diff --cc src/engine.jsindex 48bd7b4a,ebb8a67c..28ad88e5--- a/src/engine.js+++ b/src/engine.js@@@ -93,12 -93,7 +94,13 @@@ export function prepareEngineMove(boardif (operation === 'reopen' && values[1] && typeof values[1] === 'object'&& manualLandingFailureQuoted(values[1].note)) values[1].quotedLandingFailure = true;if (operation === 'submit' && ENGINE_VERSION >= SUBMISSION_PROOF_ENGINE) submissionProof(values[1]?.submissionProof);+ // Derive once before sealing; replicas never re-decide a recorded carry from their local objects.+ if (operation === 'submit' && ENGINE_VERSION >= MERGE_ONLY_VERDICT_ENGINE && values[1]) {+ const carry = store.prepareMergeOnlySubmit(board, values[0], values[1]);+ delete values[1].mergeOnly;+ if (carry) values[1].mergeOnly = carry;+ }+ if (operation === 'submit') submissionSize(values[1]?.submissionSize, values[1]?.commit);if (operation === 'claim' && ['wipPerReviewer', 'takeoverMinutes'].some(key => typeof lineSettings(board)[key] === 'number')) {values[1] = { ...values[1], lineCapacity: true };}diff --cc src/moves/submit.jsindex c761d35a,f8256683..bec665aa--- a/src/moves/submit.js+++ b/src/moves/submit.js@@@ -1,5 -1,5 +1,6 @@@import { RIGOR_AUTO_ENGINE } from '../rigor-auto-engine.js';+import { MERGE_ONLY_VERDICT_ENGINE } from '../merge-only-verdict-engine.js';+ import { FLOW_SIZE_ENGINE } from '../flow-size-engine.js';/** Routing metadata owned by submit, discovered without a shared registry edit [C7,V4,H16]. */import { BAR_READY_ENGINE } from '../bar-ready-engine.js';import { barReadySetting } from '../bar-ready-setting.js';@@@ -27,7 -27,7 +28,8 @@@ function existingEngine(args, board, at/** Keep outside-source isolation as the original maximum over the older engine rule. */function minimumEngine(args, board, at) {const outside = board && Boolean(outsideSource(board, args[0]));- return Math.max(args[1]?.submissionSize !== undefined ? FLOW_SIZE_ENGINE : 1,+ return Math.max(args[1]?.gateGreen !== undefined ? MERGE_ONLY_VERDICT_ENGINE : 1,++ args[1]?.submissionSize !== undefined ? FLOW_SIZE_ENGINE : 1,outside ? OUTSIDE_INTAKE_ENGINE : 1, existingEngine(args, board, at));}