Repository navigation
Description
Problem
Nothing in sumo-qa notices when a test's own execution has a real-world cost or side effect, and the omission produced a live near-miss while driving #662.
Slice 2 of the eval-runner epic changed the runner's CLI so that an invocation with no mode flag performed a live graded run instead of being refused. A test inherited from slice 1 called that entry point with no flag:
def test_running_without_dry_run_is_refused_in_this_slice(capsys):
code = ccli.main(["--config-dir", str(PROMPTFOO_DIR)])Under the new default that line launched the entire 218-case matrix against the real Claude subscription: two model calls per case, spending real allowance, from inside pytest. It was caught only because the suite hung and stray claude -p processes were visible in ps.
Every existing sumo-qa move looked at this and saw nothing wrong. sumo-qa-reviewing-before-merge reads the diff for correctness; sumo-qa-implementing-with-tdd walks red to green; the techniques catalogue covers what a test should assert, never what running it does. The change that made the test dangerous was in a different file from the test.
Expected outcome
A sumo-qa move that flags the class: a test whose execution reaches something outside the process that costs money, mutates shared state, or is rate-limited — a metered API, a subscription allowance, a deploy, a real mailbox, a shared database.
Two halves worth having:
- A review probe. When a diff changes the default behaviour of an entry point, find the existing tests that invoke that entry point and check whether the new default is safe to execute. The dangerous edit and the endangered test are in different files, so a per-file review will not see it.
- A catalogue concept naming the safe shape: the cost-free mode is the one you get by accident, and spending is opt-in behind an explicit flag. That is the fix that landed in [Task]: Claude candidate/judge tier — Anthropic SDK, llm-rubric grading, quota fail-fast, cost report #662 (
--live), and it is a general rule, not a detail of that runner.
Related but not the same: #668 is about asserting a forbidden side effect does not occur; this is about a test that performs a costly one.
Context
Logged as a mandatory gap close-out from the /work-issue run on #662. Found by hitting it, not by inspection.
Roadmap fields
Status: Backlog; Priority: P2; Size: M; Depends on: none.
Acceptance criteria
- A named sumo-qa move flags tests that can spend money, mutate shared state, or consume a rate-limited external allowance when run.
- The move handles the cross-file case where an entry-point default changes and existing tests call it without the newly required opt-in flag.
- Guidance states the safe default: cost-free by accident, live spend only behind an explicit opt-in.
Test plan
Add a representative fixture based on the #662 no-flag live-run hazard, with one positive control that routes to the new move and one nearby safe dry-run control.
Non-goals
- Reworking the Claude eval runner itself.
- Covering ordinary mocked network calls that cannot reach a live paid service.
Activity
sumithr commentedon Sep 29, 2026
Triaged under the review-miss policy (epic #753): this is a pattern miss (a careful reviewer applying the generic lens reaches it), category
test-adequacy. Recorded on the review-miss ledger: #752 (comment)It is absorbed by the category issue #756, which strengthens the review lens for test-adequacy as a whole.
Closing as not planned in favour of that record. Reopen if this turns out to be a class gap (sumo-qa steered the run wrong or had no move for the step).