Flow
Decision tables and expectation checks
A decision table is the product owner’s approved definition of a calculation rule: given these inputs, the result is this. AI Testing Probe uses approved tables to check the expected values in AI-drafted test cases independently, before the cases are approved. The check never edits a case; it only tells reviewers whether the expected values agree with the rule.
What a decision table is (Demonstrated)
A decision table belongs to one requirement and covers one rule, usually a calculation. It has input columns, output columns and rows that are tried in order; the first row whose conditions match gives the result. Columns are typed as numbers, text or yes/no values.
A fictional example for the Acme Retail web shop and STORY-142 Order cancellation: the cancellation fee depends on how many days have passed since the order.
| Days since order | Order shipped | Cancellation fee |
|---|---|---|
| 0 to 2 | no | 0.00 EUR |
| 3 to 14 | no | 5.00 EUR |
| any | yes | cancellation not allowed |
Tables are written in a small expression language that Testing Probe evaluates itself; no code is executed. The analyst can try a table with sample inputs (“try with an example”) before sending it for approval. The portal interface is in Turkish today; the screen and button names on this page are translations.
Who writes and approves a table
Decision tables follow the same kind of gate as other assets: drafts are worked on by one role and approved by another.
- Analyst: creates a table by hand or asks AI for a draft, edits it while it is a draft, sends it to the product owner, withdraws it or reopens an approved table.
- Product owner: approves the table in the portal or requests changes with a written reason. Approval is the only way a table becomes approved.
- Test specialist and analyst: can ask for the expectation check of a case to run again.
An AI draft sees only the product-owner-approved requirement and the product owner’s answers; it does not see code, data, cases or existing tables. Every drafted row is validated, invalid rows are dropped and reported, and valid ones are saved as drafts marked as AI-generated. The decision table draft step has not completed its live model evaluation yet; in REPLAY mode its output carries a REPLAY badge.
If the requirement changes after approval, the table becomes stale and is no longer used for checks until it is reviewed again.
How the expectation check works
The check runs for every draft, approved and published case whose acceptance criteria overlap an approved, current table. It has a model step and a deterministic step.
- Fact extraction: a model reads the case and extracts facts, such as “days since order = 5”, each with an exact quote from a named field of the case. It sees only the column definitions of the tables, not the expected results.
- Verification in code: each quote must appear word for word in that field, and the value must match the quote. Facts that fail are discarded, never corrected.
- Calculation and comparison: the table is evaluated with the verified inputs and the expected values in the case are compared with the table’s outputs. Numbers must be equal; there is no tolerance.
The result is stored against the exact content of the case. If the case or the covering tables change, the old result no longer counts and the check runs again. The fact extraction step has not completed its live model evaluation yet.
Check results and the approval gate
Each check ends with one of these results:
| Result | Meaning |
|---|---|
| Match | The expected values agree with the approved table |
| Partial | Some values could be compared; others were missing from the case |
| Mismatch | At least one expected value disagrees with the table |
| Could not check | The facts could not be extracted or the call failed |
| Out of scope | No approved table covers the case’s acceptance criteria |
The result affects approval. For a high-risk case, a mismatch or an unchecked result blocks acceptance and final approval unless the reviewer writes an exception with a justification. Exceptions are stored in an append-only table and recorded in the audit log, and the same exception is reused only for the same content and the same tables. For other cases, the result is shown as a warning on the card and recorded with the decision. If an approved or published case later turns out to disagree with its table, the event is listed in the Control Tower.
See Two-step and bulk approval for where the gate sits in the review.
Extra cases from approved relations
A metamorphic relation describes how the result should change when an input changes, for example “doubling the quantity doubles the refund”. Relations are written by the analyst, linked to an approved decision table and approved by the product owner, just like tables.
When a relation is approved, the analyst can derive extra cases from existing ones. For each source case with a matching check result, Testing Probe rewrites the inputs and expected values according to the relation. This derivation is deterministic: it is not an AI output, and the new cases are not counted in AI accuracy measures. Each derived case is saved as a draft and goes through the normal review, so a person still accepts and approves it. A case with the same content as an existing case is not created twice.
The current label for these checks is on the Capabilities page.
Updated: