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(core): never revive an older acceptance after withdrawal [V2,V6]

Corey Olson318c35b64e3e
diff --git a/src/verdict-reviews.js b/src/verdict-reviews.js
index 12915ff6..52051848 100644
--- a/src/verdict-reviews.js
+++ b/src/verdict-reviews.js
@@ -37,8 +37,9 @@ export function verdictsFor(board, id) {
/** The latest matching acceptance; the submission stays immutable through later re-reviews. */
export function acceptedVerdict(board, item) {
- return verdictsFor(board, item.item_id).findLast(verdict =>
- verdict.verdict_decision === 'ACCEPT' && !verdict.withdrawn && verdict.verdict_commit === item.item_commit);
+ const latest = verdictsFor(board, item.item_id).findLast(verdict =>
+ verdict.verdict_decision === 'ACCEPT' && verdict.verdict_commit === item.item_commit);
+ return latest?.withdrawn ? undefined : latest;
}
/** The exact checked composition for a new acceptance, or the historical submitted candidate. */