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 current main before approval review [S1,P6]

Corey Olsona7173ca3cedf
diff --cc src/needs-state.js
index cd789416,1654f9cf..dd12c68b
--- a/src/needs-state.js
+++ b/src/needs-state.js
@@@ -25,11 -24,12 +25,12 @@@ import
/** Borrow an existing connection or open a read-only one; retain exact row-decision matching. */
export function personNeedsState(root, { board: providedBoard = null, includeRigorUndrafted = false } = {}) {
const info = repoInfo(root);
- const board = providedBoard ?? { db: store.openBoardReadOnly(join(info.commonDir, 'pullboard', 'board.sqlite')) };
+ // A held item is judged against the board's clock (#974), so the read-only board carries the CLI's clock.
+ const board = providedBoard ?? { db: store.openBoardReadOnly(join(info.commonDir, 'pullboard', 'board.sqlite')), clock: store.systemClock };
try {
const decisions = store.rowDecisions(board);
- const state = projectFit(pendingFit(info.commonDir), projectRowDecisions(decisions, projectState(root, { board })));
const config = loadConfig(root);
+ const state = projectSpecApprovals(projectFit(pendingFit(info.commonDir), projectRowDecisions(decisions, projectState(root, { board }))), specApprovalState(root, { board, config }));
const rows = projectRowDecisions(decisions, { root, spec: loadSpec(root, config).rows, practice: loadDoctrine(root, config).rows });
const rigorDrafts = rigorDraftNeeds(rows);
const projected = { ...state, rigorDrafts, sentinelDrafts: sentinelDraftNeeds(sentinels(board)), ...(includeRigorUndrafted