By Abhijith N M · Reviewed 24 October 2026 · Editorial standards
A suite that costs too much gets moved to nightly. A suite that flakes gets a 're-run' button. Both are the beginning of the end. Neither is inevitable.
daily cost = suites x cases x runs_per_day x calls_per_case
x tokens_per_call / 1e6 x price_per_million
core suite: 60 cases x 10 PRs x 2 calls x 1200 tokens x $3/M = $4.32/day
full suite: 240 cases x 1 nightly x 2 calls x 1200 tokens x $3/M = $1.73/day
plus drift checks on 3 model variants = $5.19/dayNumbers like that are fine — the problem usually is not the total, it is the surprise. Make it visible: log cost per run next to pass rate, and alert if a run costs more than double its trailing average (usually prompt bloat or a retry storm).
Track, per suite, the fraction of runs that fail and then pass on rerun. That is your flake rate. Some targets:
| Flake rate | Verdict | Action |
|---|---|---|
| < 2% | Healthy | None |
| 2–10% | Tolerable | Quarantine the worst cases, investigate quarterly |
| 10–25% | Damaging | A named owner, a fix this sprint |
| > 25% | The suite is not a signal | Stop the line: fix the harness before adding tests |
Key takeaways
Make cost visible per run and alert on outliers.
Capture once and score many; prompt caching and small judges cut cost most.
Track flake rate per suite — above 25% the suite is not a signal.
Never retry quality failures; count transport retries instead.
Written and edited by the nexGenCoders team. Spotted a mistake? Tell us and we will fix it.
Don't lose this lesson
Create a free account to save your progress, keep your streak, and work toward a shareable certificate.