Skip to content

Inside Acceptance criteria

Ilia edited this page Nov 23, 2026 · 3 revisions

Step 1 agrees the acceptance criteria, and the rest of the cycle is measured against them. The plan says how the feature will be built; it is rewritten whenever development deviates from it, and by the end it describes what was done rather than what was asked for. The criteria are the other half: a numbered list of statements about observable behaviour, each one checkable on a deployment by somebody who has not read the code.

They are written before the implementation is worked out and they do not move with it. That is the whole point — a definition of done that development can edit is a definition of nothing.

The list lives in a comment of its own on the issue, between <!-- sclaude:ac --> and <!-- /sclaude:ac -->, posted by the orchestrator once the plan is approved. The pair of markers rather than one: the list has a heading above it and a note below, and QA may add a line of their own under it. QA ticks the boxes in that comment.

sclaude never edits an issue's description. It used to: step 1 kept a ## User request section in it, the approved criteria were appended to it, and the epilogue appended a Current status block — to descriptions a human wrote as well. A developer who opens such an issue cannot tell the task they were given from what a tool made of it, and so cannot trust that it has not changed under them. The request, the criteria and the status are three comments now, each found again by its marker and rewritten in place rather than repeated; a new issue gets a one-line body saying so. The markers are declared once, in issue_comments.py. Issues from before the change keep their sections: the criteria are still read from an old body, and nothing is written back to it.

Not a fifth artefact in .sclaude/local/feature/: the criteria have to outlive the worktree. sclaude done removes the tree the moment the PR merges, and the question the criteria answer — did this feature do what it was supposed to — is asked after that. The plan carries a copy, at its head, so that a step with no network still has the list; the issue is where a correction lands.

What the person decides after planning reaches the issue from the step it was decided in: step 2 and step 4 both add it to the User request comment (### Added during development, ### Added during review) and note it in the plan. A criterion that has to change is the person's decision: the session proposes the wording, and on their yes rewords it in the plan, under the same identifier. Step 2 asks it in the question that settles the change and, on the yes, rewrites that line in the issue's criteria comment itself — the person is there, so nothing waits for a later question. Once a review decision changed a criterion and only the code knew: the automatic QA ticked the old wording. Then the change was noted in the plan and left to the person to carry into the issue, and nobody did, with the same result. So as the review closes, before QA, sclaude adds a criterion new in the plan to the issue (extend_acceptance), shows each one the plan words otherwise beside the issue's text, and writes the plan's wording there at the person's yes, its box emptied (reword_acceptance, acceptance.py --reword). Asked, not written: a criterion the person reworded in GitHub differs from the plan too, and there the issue is right; a no is kept for that same difference.

Each criterion is identified AC1, AC2, and the identifier is what the rest of the cycle points at:

Step What it does with them
1. plan Agrees them with the human, writes them into the issue and puts them at the head of the plan
2. code Gets them in the prompt; commits name one in a Requirement: footer (Requirement: AC2. <the criterion's text>); the step's closing report goes through the list criterion by criterion
3. pr Copies them into the pull request's "Requested by the customer (for QA)" section as a plain list, without boxes (QA ticks them in the issue), and uses the footers to find criteria nothing was committed for
4. review, epilogue Read them; neither writes to the section, and neither ticks a box

The footer carries the identifier and the text. The pr skill's convention is that a Requirement: line reads on its own — it is collected into a pull request people read — and a bare AC2 would send a reader off to find out what it meant. The identifier is a prefix to it, not a replacement.

A friction review's commit carries no footer (_friction-body.md), whatever the product's commit rules ask: it rides on the feature's branch, and a footer there would join the criteria QA tests the feature against — a change to the tooling the customer never asked for, and one the feature's review may reword after the list was written.

Nothing ticks a box except a person. A tick is the claim that somebody looked at a deployment and it was right, and that is the one thing in this cycle no part of it can establish for itself — the same reason In QA → Done is a human's move. A step that could tick its own criteria would be marking its own homework. The one exception is a product's own choice: with qa set to both or auto (or auto-own on an issue its worker opened, qa_settle in qa.sh) sclaude ticks every box when it accepts the issue, and comments that it did.

A feature planned before any of this existed has no section and no criteria. Every reader handles that by saying so rather than by inventing them: the block is empty, its line drops out of the prompt, and the step is told to work from the plan alone. The same holds when there is no issue at all — the criteria then live only in the plan, and step 3 takes them from there.


Generated from docs/sclaude.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally