When Agents Disagree
Why This Matters
The flaky analyst says intermittent. The root-cause investigator says broken by commit 8f3c2a1. Both cite evidence. A coordinator that silently picks one hides exactly the uncertainty a tester needs to see.
Detect it in code
A conflict is easy to detect: two findings for the same failure with incompatible verdicts.
const conflicts = byTest(findings).filter(([, fs]) => new Set(fs.map(toCategory)).size > 1);
Do not ask the model whether there is a conflict; your code already knows.
Weigh evidence, not confidence
Two agents can both be 0.8 confident. Confidence tells you how sure each one feels; evidence tells you what is true. Some evidence is simply stronger:
| Stronger | Weaker |
|---|---|
| A commit diff that touches the code under test | A history of past flakiness in the same suite |
| An API response confirming the wrong value | A timeout without further detail |
| A failure that reproduces on rerun | A single failure |
Write this ranking into the coordinator’s brief, and let it explain which evidence decided.
Report the disagreement
Never average it away. The report shows both findings:
t-004 search suggestions — DISPUTED
flaky analyst: intermittent (3 of 8 recent runs failed; response arrived after assertion)
root-cause investigator: regression (commit a91f… changed debounce from 100 to 600 ms)
coordinator: likely regression; the commit explains both the timing and the new failure pattern
→ needs a human decision
A tester can settle this in a minute with both arguments in front of them.
When to ask a human
Escalate a conflict when:
- the two verdicts lead to different actions (rerun vs. file a bug)
- the failure is on a release branch or marked critical
- neither finding has decisive evidence
Otherwise the coordinator may decide, as long as it records why.
Exercise
Create a failure where both specialists have a plausible case (like the t-004 example above). Implement conflict detection and the disputed-report format, and decide in code when it goes to a human.
Compare with solution/lesson-40-triage-team, which covers lessons 34–40 (see docs/exercises.md, module 5).