Give business and engineering reviewers the same acceptance example.
A proposed change is easier to judge when both reviewers can see its source rule and expected result.
No organization, policy or record named here is real. The example is written for this page.
The task
For a partial promotional return, the business reviewer checks the refund policy and the amount. The engineer checks the transaction fields, the calculation and the test. Both are reading the same example, which is what lets a correction be specific rather than a general worry.
When to reach for this
- A change is ready and the two reviewers would otherwise read it separately.
- The correct answer depends on a rule that is not in the code.
- A reviewer has said the change looks fine and you are not sure they checked the same thing you would.
What to bring
- The source rule, and where it is written.
- The expected result for one concrete case.
- The fields the calculation reads, so the engineer can check it uses the right ones.
- Both reviewers, at the same example.
A partial return from a promotional bundle
An item with a $50 original price carried $10 of an allocated bundle discount. The policy refunds what was paid. The business reviewer checks the amount against the policy. The engineer checks which field the calculation read to get there, because two implementations produce $40 today and only one still will after a price change.
This returns the right number for the case in the ticket, but it reads the current catalog price. Under the returns policy the refund is the amount paid on the original transaction, so this only agrees with the policy while the price has not moved.
Can it read the allocated discount recorded on the transaction line instead, and can the test set a different catalog price so it fails if someone changes this back?
$40, from the recorded allocation rather than the current catalog price.
Tax and tender are out of scope for this example.
A correction is specific because the reviewer had the rule and the expected result in front of them. Without those, the same comment is "are we sure about this?", which is a question the author cannot act on.
What comes back
- The proposed change on its own branch, in the review process the team already runs.
- One acceptance example both reviewers read, stated in the language of the rule.
- The references the run recorded, so a reviewer can see which policy passages informed it.
- Whatever the reviewers decide, which is the point: Kandryn does not approve or merge anything.
How this usually goes wrong
The change passes review because it returns the right number today.
An implementation that reads the wrong field agrees with the correct one on every case where the two fields happen to match. That covers the example in the ticket and usually the test as well. Nothing surfaces until the values diverge, by which time the change is months old and nobody is looking at it. The test has to make them differ.
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.
- The business reviewer can state the rule the result follows from.
- The engineer can name the field the calculation read.
- A test exists where the wrong field would give a different answer.
- The acceptance example is written in the language of the rule, not of the code.
- Anything the reviewers could not settle is written down rather than assumed.
What to measure in a pilot
Corrections requested before acceptance, and whether the business reviewer could judge the change without an engineer translating it.
Other use cases
- Implement a Business RuleChoose the rule, its source, and one example that makes the correct outcome clear.
- Change an Operational ReportThe definition of a measure determines the dates, statuses and records that belong in it.
- Update a Workflow or Approval QueueThe reason for a status change often determines whose turn it is.
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.