Kandryn
Guide

Write acceptance criteria an agent can implement.

The acceptance criteria are the part of a work item that decides whether an implementation is correct. They are also what the proposals are ranked against and what the test cases are written from. Run these tests against a draft before you start a run.

No organization, policy or record named here is real. The examples are written for this page.

What a run is given

Each of the tests below follows from this list. The criteria are one of four inputs, and they are the only one written for this particular change.

The work item
Title, description and acceptance criteria, as written.
The items above it
The story and the epic, up to three hops, as background rather than authority.
Your documents
Passages retrieved for this item from documents your team uploaded, as reference.
The repository
A small set of files the change planner selects as relevant, and a listing of file names.

Where those inputs disagree, the prompt tells the agents that the acceptance criteria govern. That is worth knowing because it tells you where to put the decisive sentence. It is an instruction in the prompt rather than a check the server runs, so it is the right way to write the criteria and the wrong thing to rely on. Read the proposal.

6 tests for a draft

Each test has a line that fails it and the same line rewritten. The weak versions are not strawmen: they are the shapes acceptance criteria actually take when somebody writes them in a hurry.

  1. Does it name the rule, or only the outcome?

    A run reads the work item's title, description and acceptance criteria. The story and epic above it arrive as background. Passages retrieved from documents your team uploaded arrive as reference. On a conflict, the prompt tells the agents that the acceptance criteria govern. So a criterion that states the outcome and leaves the rule unsaid leaves the rule to be inferred from whatever else happens to be in scope.

    Fails
    The operations report shows accurate review days.
    Passes
    Review days exclude any day on which requested documents were outstanding.
  2. Is there one example, with numbers, and the answer you expect?

    The example is what a reviewer holds the proposal against. It is also the most useful thing you can give test generation, which receives the criteria line by line. A criterion with no example is agreed by everyone in the room and understood differently by each of them.

    Fails
    Paused clocks are handled correctly.
    Passes
    A claim with 2 days in review, 3 waiting for documents and 1 more in review shows 3 review days across 6 elapsed days.
  3. Does it say what is excluded?

    The change planner selects a small set of repository files it judges relevant to the item and works from those. What a criterion does not mention is not narrowed later, it is simply absent. A proposal that counts every record is a reasonable reading of a criterion that excluded none.

    Fails
    Count review days for each claim.
    Passes
    Withdrawn and duplicate claims are out of scope for this measure.
  4. Is each criterion on its own line?

    Test generation receives the acceptance criteria split on newlines, one criterion per line. A paragraph holding three requirements arrives as one requirement, and comes back as one case covering the easiest of the three. This is the cheapest of the six tests to pass and the one most often failed.

    Fails
    Exclude pending days, round part-days up, and leave the existing total column unchanged.
    Passes
    Three lines. Exclude pending days. Round part-days up. Leave the existing total column unchanged.
  5. Could a reviewer write a test that fails?

    Acceptance-criteria coverage is one of six dimensions the proposals are ranked on. A criterion nobody can fail cannot be covered or missed either, so it contributes nothing to the ranking and nothing to the review. If you cannot imagine the failing case, the criterion is a preference.

    Fails
    The report should be intuitive for the operations team.
    Passes
    The report shows, for each claim, which days were excluded and why.
  6. Does it name who settles what you left open?

    A first run is most useful for the questions it surfaces rather than the ones it resolves. A criterion that names its owner turns one of those questions into a decision somebody can make. One that does not leaves the agents to pick, and leaves your reviewer unsure whether a difference of opinion is a defect.

    Fails
    Use the standard rounding.
    Passes
    Round part-days up. If that is wrong, the claims operations lead decides and this line changes.

The same request, rewritten

Nothing in the second version is new information. All of it was known to the person who wrote the first, and none of it reached the run.

Sample
The request
Add review days to the claims operations report.
The rule behind it
Pause the review clock while requested documents are outstanding.

As written

  • Report shows review days.
  • Should handle paused claims correctly and be intuitive for the operations team.

Rewritten

  • Review days exclude any day on which requested documents were outstanding.
  • Worked example: A claim with 2 days in review, 3 waiting for documents and 1 more in review shows 3 review days across 6 elapsed days.
  • Withdrawn and duplicate claims are out of scope for this measure.
  • The report shows, for each claim, which days were excluded and why.
  • Round part-days up. If that is wrong, the claims operations lead decides and this line changes.

Same request, same rule, 5 lines instead of 2. Nothing in the second version is new information: all of it was known to the person who wrote the first, and none of it reached the run.

What happens to the criteria after this

They are given to the change planner and to both generation agents. Acceptance-criteria coverage is one of six dimensions the proposals are ranked on, reported as a single figure out of ten. And if you ask for tests on a committed change, the criteria are what the cases are written from, split one per line.

Test generation is something a person asks for, on a change that is already committed. It proposes Given, When and Then cases and one runnable script. Committing that script and pushing the cases back to your tracker are two further things a person does.

Bring a request whose meaning depends on a rule written somewhere else.

Write the criteria using the tests above, then bring the item to a walkthrough. We will go through the context Kandryn identifies, the change it proposes, and what your reviewers would inspect.

Request a walkthroughSee the pilot guide
Request access

Queue the work tonight. Read the pull requests in the morning.

Request accessSee the pilot guide