Reviews and acceptance on `done`
Problem
A task is done when someone with the authority to move it says so, and that is the whole record of
the decision. A peer can move its own assigned or handed-off task and so can the foreman or the
user, but there is no distinct recorded reviewer and no acceptance check anywhere: the board cannot
tell reviewed work from unreviewed work, because both look like status: done, and the only trace
of a check is whatever free-text note someone happened to leave. The evidence for a closure is
unstructured for the same reason: the interesting fact about finished work is usually a commit, a
path, a URL or a hash, and today that can only live as prose that nothing can check. So a policy
like "this class of task needs a second pair of eyes before it counts as finished" cannot be
expressed, and a mistake cannot be reopened cleanly, because there is no recorded acceptance to
revoke -- only a status to flip back. The gap: a task has no acceptance notion, so it describes the
work but not the condition under which the work counts as finished.
What cccc does today
task.moveis the whole lifecycle transition and accepts onlytask_idandstatus-- there is no second argument to attach to a closure --crates/cccc-core/src/context/task_apply.rs:110-124.- Callers can write only the fixed allow-list on
task.update; there is noevidence_ref, noacceptance, noclosure, noattempt, and no review op in the op list --crates/cccc-core/src/context/task_apply.rs:73-90,crates/cccc-core/src/context/apply.rs:29-41. - The daemon authorises a peer task op by matching the caller against the stored
assignee/handoff_to, and separately lets the foreman and the user past that ownership check for task ops; nothing in either path consults a reviewer or an acceptance --crates/cccc-daemon/src/ops/context.rs:130-170,:171-210. - The board's
attentionvalues areunassigned,blocked,waiting_userandhandoff, so a task ready for review is never surfaced as such --crates/cccc-daemon/src/ops/task_list.rs:9-10,crates/cccc-daemon/src/ops/task_list_query.rs:26-58,:136-147. - The MCP
cccc_tasksurface mirrors the same allow-lists --crates/cccc-mcp/src/mapping.rs:213-229,:239-255,:271-292.
Proposal
One new op, four new task fields, and one extra argument on task.move:
acceptance: { quorum: number, reviewers?: string[] } // task field; reviewers optional,
// default: unrestricted
attempt: number // task field, starts at 1
reviews: [ { id, verdict, evidence_ref, by, at, attempt } ] // task field
closure: { evidence_ref, review_ids, by, at } // task field, written on a
// successful move to done
task.review { task_id, verdict: "pass"|"fail",
evidence_ref: { kind: "commit"|"path"|"url", ref, sha256? },
text? }
Any actor except the assignee may review; if acceptance.reviewers is present and non-empty, only
those actors may, and an absent or empty reviewers list -- the default -- means unrestricted: any
actor except the assignee.
task.move to done takes an evidence_ref and is refused with acceptance_unmet unless, at the
current attempt, there are at least quorum pass verdicts and no fail, counting the latest
verdict per reviewer for that ref. Reviews are stored on the task itself, in reviews, each with a
daemon-assigned id; a successful closure records closure = { evidence_ref, review_ids, by, at },
where review_ids are the ids of the verdicts that satisfied quorum. attempt is a task field that
starts at 1 and is incremented whenever the task leaves done -- a reopened task is attempt 2, and
each reopened attempt needs fresh verdicts, even if it reuses the same evidence_ref, because a
verdict is counted only at the attempt it was given for. A task with no acceptance set behaves
exactly as today. One batch: task.review { task_id, verdict: "pass", evidence_ref: { kind: "commit", ref: "abc123" } } then task.move { task_id, status: "done", evidence_ref: { kind: "commit", ref: "abc123" } }; with quorum: 1 and one pass, the move succeeds and closure is
written.
Alternatives. A separate "reviewed" flag on the task (no evidence, no reviewer, no reopen record); evidence as a required prose field (uncheckable, and the actor writes it either way); the review as another task (does not tie a verdict to an artifact or an attempt); the acceptance decision left in the caller (it is why the board cannot answer the question today); a human-only acceptance (expressible as a named reviewer with quorum: 1).
Out of scope. Who the reviewers are and how they are chosen; any waiver or override path for a task that cannot reach quorum; reviewing anything other than a task; fetching or verifying the referenced evidence; notifications; per-task revision tokens.
We run this today in our own board tooling on top of cccc, and would send a PR if the direction suits.
Thank you for the detailed proposal. Distinguishing an author’s completion claim from an independent review is valuable.
After considering the scope, we’re not planning to add this acceptance mechanism to the core. Quorum, veto rules, attempt resets, and closure gates introduce workflow policy together with reviewer-availability and recovery requirements. We would prefer those decisions to remain in the board tooling or CI system that owns the workflow.
Existing task outcomes, notes, and messages can carry artifact references and review conclusions. If a concrete integration needs a small additional primitive, we can assess that separately, without committing to an acceptance engine.
Please don’t expand this proposal with more policy or override machinery. I’d suggest closing this issue as outside the core’s current scope. Thank you for checking the direction before investing in a PR.
Thank you for considering it. Understood that the acceptance mechanism is broader policy than the core wants to carry; we'll keep the review and acceptance gate in our own board tooling, and the narrow structured-decision piece continues in #182. Closing.