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.

chore(merge): integrate accepted pairing and rule ids [H17,H15,A5]

Corey Olson88238a0f667e
diff --cc src/cli.js
index 68835fc9,71560c17..61b1d334
--- a/src/cli.js
+++ b/src/cli.js
@@@ -13,8 -13,8 +13,8 @@@ import { CONFIG_FILE, COORDINATOR, load
import { doctrineHistory, loadDoctrine } from './doctrine.js';
import { requirePersonChannel } from './person.js';
import { decisionProjection, planRowApply, prepareRowDecisions, restoreRowApply, writeRowApply } from './row-decisions.js';
- import { digestOf, gateReport, runGate, runShell } from './gate.js';
+ import { digestOf, gateReport, runGate, runShell, withGateSlot } from './gate.js';
-import { bareWorktreeFinding, contains, differFromHead, git, headCommit, headTree, isClean, mainCheckout, repoInfo, resolveCommit, tryGit, untracked } from './git.js';
+import { bareWorktreeFinding, contains, differFromHead, git, gitChildEnv, headCommit, headTree, isClean, mainCheckout, repoInfo, resolveCommit, tryGit, untracked } from './git.js';
import {
FIX_NOTE,
applyFixers,
@@@ -2371,14 -2311,13 +2376,16 @@@ async function hookCommand(io, { first
problems = preCommitProblems({ root: info.root, isMain: info.isMain, config: ctx.config, agent, boardFile: ctx.file });
} else if (first === 'commit-msg') {
const message = readFileSync(second ?? '', 'utf8');
- problems = commitMsgProblems(message, { rules: ctx.config.commits, spec: loadSpec(info.root, ctx.config) });
+ const spec = loadSpec(info.root, ctx.config);
+ commitCitationWarnings(message, { spec, doctrine: ctx.doctrine })
+ .forEach((warning) => io.say(`pullboard commit-msg: warning: ${warning}`));
+ problems = commitMsgProblems(message, { rules: ctx.config.commits, spec, doctrine: ctx.doctrine });
} else if (first === 'pre-push') {
- problems = prePushProblems(info.root, await readStdin(io.stdin));
+ const refsText = await readStdin(io.stdin);
+ problems = prePushProblems(info.root, refsText);
if (!problems.length) {
- const gate = await runGate(info.root, ctx.config, { onWait: gateWaitReporter(io) });
+ const landing = pushesTrunk(refsText, trunkRef(info.root));
+ const gate = await runGate(info.root, ctx.config, { landing, onWait: gateWaitReporter(io) });
if (gate.isCached) io.say('pre-push: the gate passed on this exact tree; not running it twice');
if (!gate.isGreen) problems = [`the gate is red; fix it before pushing. ${gateReport(gate)}`];
}
diff --cc src/doctor.js
index 287b262c,d047f324..26cd0250
--- a/src/doctor.js
+++ b/src/doctor.js
@@@ -10,7 -10,7 +10,8 @@@ import { BLANKS, STATES, storeTriggers
import { readEventLogVersion, SCHEMA_VERSION } from './board.js';
import { staleFrozenItems, staleItemFinding } from './approved-rows.js';
import { loadSpec } from './spec.js';
+import { loadDoctrine } from './doctrine.js';
+ import { preMergeHookProblems } from './hooks.js';
const blankCharacters = new Set(BLANKS.map((point) => String.fromCodePoint(point)));
/** Offer a working tracked or untracked rename without rewriting the repo's doctrine [D1,D2]. */