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.

feat(submit): submit asks why when an existing test is edited [C7,V4]

Corey Olsondd3d651b61fe
diff --cc src/cli.js
index a2e13bee,ecaf27ff..5483472e
--- a/src/cli.js
+++ b/src/cli.js
@@@ -2741,9 -2741,9 +2744,10 @@@ async function submitHere(ctx, id, infr
if (stray.length) throw new Refused('UNTRACKED', `commit or ignore ${stray.length} untracked file(s), e.g. ${stray[0]}`);
const commit = headCommit(root);
if (!commit) throw new Refused('NO_COMMIT', 'nothing committed yet');
+ withBoard(ctx, (board) => submitPreflight(board, id, { agentId: me.id, commit, tree: headTree(root) ?? '' }));
const trunk = requireTrunkMerge(root, commit);
withBoard(ctx, (board) => refuseUnverifiedStack(root, board, held, commit, trunk));
+ const infraRecord = infraNotes.infraNote({ root, claimHead, files: filesSince(root, id, claimHead, commit), gates: [ctx.config.gate, acceptedMain.config.gate], infra });
// Doctrine counts only fall: accepted main's rules, at this exact commit (D1). No rule, no change.
const doctrine = hasSubmitRules(root, acceptedMain.commit, acceptedMain.config.practice)
? await withGateSlot(root, () => holdDoctrine(root, { mainCommit: acceptedMain.commit, commit, practice: acceptedMain.config.practice, timeoutMs: acceptedMain.config.check?.timeoutMs }),
diff --cc src/next-steps.js
index fa5403c1,fa5403c1..85f09d37
--- a/src/next-steps.js
+++ b/src/next-steps.js
@@@ -269,6 -269,6 +269,7 @@@ export const NEXT_STEPS = Object.freeze
GATE_SLOT_LEASE_REQUIRED: 'start the child test process with the live gate lease',
GATE_SLOT_MARKER_INVALID: 'restart the child with gateSlotEnvironment(lease)',
GATE_SLOT_TOKEN_REQUIRED: 'restart the child with gateSlotEnvironment(lease)',
++ INFRA_NOTE_REQUIRED: 'run pullboard submit <id> --infra "<why>" with the reason the edit to an existing test or gate file is needed',
SHORT_SLOT_FULL_SUITE: 'run the whole suite outside the short check, where it queues for an ordinary gate slot; short slots are only for runs that name their test files',
GIT_GRAFTS: 'ask the coordinator to remove the git graft file: pullboard shout coordinator "please remove .git/info/grafts"',
HEAD_NOT_NEW: 'commit the rework, then pullboard submit <id>',