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 static guards with current trunk [C7]

Corey Olsonb83ae85b091d
diff --cc src/cli.js
index 5e892b3f,acfdd3b7..6ba39bf2
--- a/src/cli.js
+++ b/src/cli.js
@@@ -3573,7 -3584,8 +3585,6 @@@ function workCommands(io, args)
});
const check = frozenCheck(item);
if (!check) throw new Refused('NO_CHECK', `#${item.item_id} has no check command; its proof is the project gate: pullboard gate`);
- const policy = item.item_claim_head ? itemPolicy(ctx.info.root, item) : mainPolicy(ctx.info.root);
- if (item.item_claim_head) itemPolicy(ctx.info.root, item);
- else mainPolicy(ctx.info.root);
const by = author || 'unknown (legacy)';
const authorName = author ? agentDisplayName(agents, ctx.config, author) : by;
const notice = `check #${item.item_id} set by ${authorName}: ${check}`;
@@@ -3587,7 -3599,6 +3598,7 @@@
throw new Refused('CHECK_CONFIRM', `the check set by ${authorName} was not run: ${check}; run pullboard check ${item.item_id} --yes after reading the command, or answer yes at the prompt`);
}
}
- await runStaticChecks(ctx.info.root, policy.config, { agent: caller, item: String(item.item_id), onWait: queuedItemLease(ctx, item, caller, 'build'), onBrowserFallback: browserAdmissionReporter(io, values.json) });
++ await runStaticChecks(ctx.info.root, (item.item_claim_head ? itemPolicy(ctx.info.root, item) : mainPolicy(ctx.info.root)).config, { agent: caller, item: String(item.item_id), onWait: queuedItemLease(ctx, item, caller, 'build'), onBrowserFallback: browserAdmissionReporter(io, values.json) });
const browser = !browserFreeChecksEnabled() || await checkNeedsBrowser(ctx.info.root, check, { onFallback: browserAdmissionReporter(io, values.json) });
const shortEligible = Boolean(await explicitCheckFiles(ctx.info.root, check));
const run = await withGateSlot(ctx.info.root, (lease) => runProfiledShell(ctx.info.root, check, { waitMs: lease.waitMs, artifactPrefix: `pullboard-check-${item.item_id}`, persistLog: true, gateLease: lease }), { browser, agent: caller, item: String(item.item_id), kind: 'check', itemCheck: true, shortEligible, onWait: queuedItemLease(ctx, item, caller, 'build') });