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(badge): retain doctrine checks during landing [B3,V1]

Corey Olsona5e10f84e0f9
diff --cc src/land.js
index 7380e61c,fc5d5b1a..5a486bfd
--- a/src/land.js
+++ b/src/land.js
@@@ -209,14 -208,15 +210,22 @@@ async function mergeGroup(state, items
.find((commit) => tryGit(batch.root, ['merge-base', '--is-ancestor', checked, commit]).status === 0);
merged.push({ id: item.item_id, commit: item.item_commit, ...(checked !== item.item_commit ? { reviewedCommit: checked } : {}), merge: first });
}
+ if (merged.length) {
+ const changed = writeBadges(batch.root, badgeCounts(state.board));
+ if (changed.length) {
+ git(batch.root, ['add', '--', ...changed]);
+ git(batch.root, ['commit', '-m', 'chore: refresh board badge counts']);
+ }
+ }
- return { items: merged, conflicts, tip: headCommit(batch.root) };
+ let doctrineCounts = [];
+ try {
+ if (merged.length) doctrineCounts = await tightenLandingDoctrine(batch.root, state.config, { onWait: state.onWait });
+ } catch (error) {
+ await save(state, { state: 'blocked', items: merged, conflicts, tip: headCommit(batch.root), doctrineCounts: [] });
+ throw error;
+ }
+ for (const change of doctrineCounts) state.say(`doctrine ${change.id}: ${change.before} -> ${change.count}`);
+ return { items: merged, conflicts, tip: headCommit(batch.root), doctrineCounts };
}
/** Read positive TAP completion counts while rejecting the canonical runner's incomplete accounts. */