Kandryn
Use case

Route work according to the procedure your team follows.

The reason for a status change often determines whose turn it is.

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

The task

A report returned for correction belongs with its author until resubmission. The change has to preserve both handoffs. Reviewing one returned report and one submitted report makes an incorrect queue filter visible immediately, which is why the transition table below is worth writing before the code.

When to reach for this

  • A queue shows work the person reading it cannot act on.
  • One record moves between people, and the handoff is written down in a procedure.
  • The status alone does not say whose turn it is.

What to bring

  • The procedure that names the handoffs.
  • The states a record can hold, and the events that move it between them.
  • Who owns the next action in each state, by role rather than by name.
  • Two records in different states that a correct queue would separate.

One incident, two reports, two owners

Two reports belong to the same incident. One is submitted and sits with the supervisor. The other was returned for correction and sits with its author. A filter that reads incident-level state puts both in the supervisor's queue, and the supervisor stops trusting the queue.

Sample
Current stateEventNext stateResponsible roleQueue visibility
DraftAuthor submitsSubmittedSupervisorSupervisory review
SubmittedSupervisor returnsReturned for correctionAuthorAuthor correction queue
Returned for correctionAuthor resubmitsSubmittedSupervisorSupervisory review
SubmittedSupervisor approvesApprovedNobodyNeither queue
Every transition, with the role that owns the next action and where the record becomes visible.

RPT-1182-A in supervisory review. RPT-1182-B in the author correction queue.

State is held on the report, not on the incident. No personal data appears in this example.

The third row is the one a first implementation usually misses, because the happy path never exercises it. A queue change that cannot show a resubmitted report is not finished.

What comes back

  • A proposed filter on its own branch, reading state at the level the procedure describes.
  • Transition tests covering the return and the resubmission, not only the submission.
  • The transition table, which outlives the change and is the thing the next person reads.
  • The references the run recorded, so a reviewer can see which procedure passages informed it.

How this usually goes wrong

The filter reads the parent record instead of the child.

An incident, a case or an order is the thing people talk about, so it is the thing a filter tends to be written against. The individual report, task or line is where ownership actually lives. The two agree until one child moves and the other does not, which is precisely the situation a queue exists to handle.

What a reviewer checks

Hold these against the proposal before accepting it. They are the things that separate a change that works from one that returns the right answer today.

  • A submitted record appears in the approver queue.
  • A returned record appears in its author queue and nowhere else.
  • Resubmission moves the record back, and there is a test that proves it.
  • An approved record appears in neither queue.
  • Every state in the table has exactly one responsible role.

What to measure in a pilot

Incorrect inclusions and exclusions against an agreed set of test records, and whether the resubmission transition was covered without being asked for.

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

Choose one improvement your team wants to make. We will walk through the context behind it, the proposed change, and the decisions your reviewers would make.

Request a walkthroughSee the pilot guide
Request access

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

Request accessSee the pilot guide