POLARIS FIELD GUIDE / 4 MIN READ
Build a Regression Set for an Improving AI Workflow
A regression set preserves the behaviors an improving workflow must continue to get right. Combine resolved failures, normal work and boundary cases, then specify the expected decision or state transition for each. Version the inputs and rules together. In Polaris RSI, regression checks help determine whether a candidate improves the current workflow while retaining the results already established for that business scope.
Start with behaviors that would be expensive to lose
Choose cases that protect specific business rules. For reconciliation, cover account identity, amount agreement, duplicate handling and the boundary between a proposed correction and an open conflict. For support, cover confirmation after resolution and the new confirmation cycle that begins when a case reopens. Connect each case to the decision it protects.
Write the invariant next to the case. This gives future maintainers a reason to keep it when data formats or implementation details change.
Keep ordinary cases beside difficult ones
Include representative routine work alongside incident cases and report both groups. This shows how the candidate performs on common decisions as well as repaired failures. Maintain the evaluation population with explicit inclusion rules and review coverage whenever new incidents are added.
Add fresh examples of a repaired pattern, with different identifiers and values. Use them to check that the candidate applies the rule across new records. Retain the original incident case to preserve the evidence of the initial repair.
Specify observable expected behavior
Write concrete assertions: preserve the original reference, route amount disagreement to review, or clear confirmation after reopening. Record the expected action, state, evidence references and fields that remain unchanged. These observable outputs give reviewers a consistent comparison across implementations.
| Case | Expected behavior |
|---|---|
| Bank and invoice agree; ERP reference differs | Propose reference correction only when account and amount agree |
| Same reference, different accounts | Keep the conflict open |
| Confirmation before resolution | Require resolution before confirmation qualifies for closure |
| Reopened after closure | Begin a new confirmation cycle |
| Event after evaluation cutoff | Exclude it from the earlier snapshot |
Version fixtures and expected answers together
Keep a manifest with fixture identifiers, source snapshots, rule versions and checksums. When an approved policy changes the expected answer, version the contract and retain both answers with their effective boundaries. This gives historical replay and current evaluation their own explicit behavioral requirements.
The Polaris support replay checks source integrity before and after execution. Its verification covers data cleaning, state counts, proposed actions and the rule that assignment changes ownership while closure requires its own evidence. Each check protects a specific part of the workflow contract.
Separate development cases from final evaluation
Use a development suite to diagnose failures and a held-out suite to judge the candidate. If a held-out example repeatedly guides implementation, move it into development and replace its evaluation role with fresh cases. Track this movement in the manifest so a later reviewer can understand how familiar the candidate’s authors were with each set.
For a new market or product, add scope-specific cases and establish the new Polaris baseline. Preserve the common invariants across versions while reporting new-scope coverage separately.
Make the failure report useful to the next engineer
For every failed assertion, show the input reference, expected behavior, observed behavior and relevant rule. Group failures by mechanism, such as parsing, missing evidence or a changed business rule. Give each group the source links and reproduction steps needed for the next repair.
Review suite health after a release: obsolete cases, duplicated coverage, unresolved labels and missing slices. A regression set is a maintained operational artifact, with an owner and a clear relationship to the active business scope.
QUESTIONS & ANSWERS
Details that matter.
Which cases belong in a regression set?
Include resolved failures, representative routine work and boundary cases. Report their coverage separately so the suite protects common decisions and specific repaired behaviors.
How are expected answers updated when policy changes?
Version the policy and expected answers together. Retain historical expectations so earlier decisions remain replayable under their original rules.
What is the difference between a regression set and a held-out set?
Regression cases protect established behavior and guide development. A held-out set evaluates the candidate on fresh cases reserved for the final comparison.
Sources & further reading
- Polaris RSI: process and version checkpoints
- Polaris support closure replay: synthetic event history
- Polaris payment check: interactive deterministic example