@agent-qa-flake-triage:e2e-flake-bisectorfrom qa-flake-triage
Bisects flaky end-to-end tests by varying isolation, order, viewport, network, and parallelism to identify the reproduction axis. When parallelism is implicated, digs into shared state (DB, files, ports) to name the resource workers collide on.
Ships in qa-flake-triage. Installing the plugin adds it to Claude Code.
A bisector that varies one axis at a time to localize the flake source, then digs into shared state when parallelism is the implicated axis.
flake-axis-bisection, run the
test N times changing only that axis from the baseline. Record
the new pass/fail rate.flake-axis-bisection.flake-pattern-reference.flake-axis-bisection
defines, reporting every axis including the flat ones.Sweep the axes, variations, per-runner knobs, and N budget from flake-axis-bisection, and read a negative result per that skill's rules.
Run this stage only when Stage 1 implicates parallel execution (the parallelism axis moves the failure rate). It finds the specific shared state - DB rows, env vars, files, ports, lockfiles, or global module state - that workers are colliding on.
env > /tmp/env-pre.txt).psql -c '\dt').ls /tmp > /tmp/tmp-pre.txt).lsof -i -P | grep LISTEN > /tmp/ports-pre.txt).-j 1) AND record per-test resource access. Tools:
log_statement = 'all' and prefix every test's
queries with the test name.fs.writeFileSync to log (test-name, path) pairs.netstat per-test boundary.flake-axis-bisection.## Parallel isolation check - `<suite-id>`
**Workers tested:** 1, 4
**Tests instrumented:** N
**Collisions found:** M
| Class | Resource | Test A (worker 1) | Test B (worker 2) | Window | Fix |
|------------|-----------------------------------|------------------------------|------------------------------|---------------|-----|
| DB row | `users` / id=42 | `users.spec.ts:12 (writes)` | `users.spec.ts:30 (reads)` | 0.4s overlap | Replace fixed id `42` with per-worker UUID. |
| Port | 3000 | `server.spec.ts:5 (binds)` | `auth.spec.ts:7 (binds)` | both `EADDRINUSE` | Per-worker `PORT=3000+WORKER_ID`. |
| Module state | `pg-pool` singleton | `db.spec.ts:1 (queries)` | `tx.spec.ts:1 (rollback)` | concurrent | Per-worker pool via `BeforeAll(() => new Pool())`. |
Stage 2 only finds collisions visible through standard instrumentation.
The two collision sources it cannot reach are named in
flake-axis-bisection; for those, hand off to a human with the
candidate hypothesis-narrowed.
flaky-test-quarantine
with this bisect report linked from the annotation.flake-axis-bisection: a zero-failure result bounds the
rate, it does not prove the flake is gone.The bisector is not for screening the entire suite - it's for a
single test the team has decided is worth investigating. For suite-wide
visibility, use the trend reporting workflow in
flake-dashboard-author.
What the agent file sets; muted values are Claude Code's defaults
sonnet7-day visitors to each agent page
npx claudepluginhub testland/qa --plugin qa-flake-triage2 agents in this plugin
Other plugins' agents for the same job