ach — Analysis of Competing Hypotheses
Heuer's method from Psychology of Intelligence Analysis (CIA, 1999) applied to debugging: list rival causes, rate every piece of evidence against all of them, and score only inconsistency, because consistent evidence usually fits several causes at once. The engine ranks the causes, flags evidence that does not discriminate, tests how fragile the conclusion is and recommends the test that best separates the leaders.
When to use
A bug, flaky test or incident with several plausible causes, where you are at risk of fixing the first one that comes to mind.
When NOT to use this
- The cause is already known or the reproduction points at one line: ACH adds paperwork, not insight.
- You cannot run anything: ratings without observations are opinions with a score.
- You need speed more than rigour and someone who knows the code is available: in the eval, maintainers reached the cause in one comment where the simulated ACH tests needed two or three.
Real case from the eval
Ten closed bugs (numpy, webpack, axios, jest, pytest, CPython, pydantic). A model wrote each matrix blind from the thread as it was before the cause was found. The real cause was among the hypotheses in 10/10 and, after the v0.2 fixes, still alive in 10/10 (7/10 before: a single heavy observation used to "refute" it). It led in only 5/10, and most proposed tests could not break a tie at the top. Details: evaluation.
Try it
clarent ach score methods/ach/examples/flaky-test.json
clarent ach next methods/ach/examples/flaky-test.json
methods/ach/CARD.md.