Stability & Safe Auto-Quarantine
Plan: Stability grades and the flaky list are on every plan. Quarantining (manual and automatic) and the Release Readiness Gate are included from the Starter plan. After a downgrade, tests already quarantined stay quarantined, and automatic quarantine stops.
The Stability page shows how healthy your suite is over time: which tests are flaky, which are quarantined, and which have started failing outright. Open it from Stability in the sidebar. It needs no AI; the flakinessDetective feature only adds the AI analysis.
Every result is linked to its test case by a stable test key (spec file path + test title path). Hosted runs and the Playwright reporter use the same key, and health is tracked per project. Local runs (source: "local") never count toward stability, flakiness or quarantine.
Stability Timeline (0 AI tokens)
The timeline card at the top of the page charts the project's daily pass rate over the last 7, 14 or 30 days (UTC days, finished runs only, local runs excluded).
- Commit markers. When GitHub is connected, the commits that landed each day appear as markers under that day. Hover over a day to see its pass rate, run count and commits. The card also lists the latest commits, with links to GitHub.
- Zero LLM tokens. The timeline is built from your run history and GitHub's commit list. It makes no AI calls and doesn't need an AI key.
- Always loads. If GitHub is unavailable, the chart still loads without markers. A window with no runs shows an empty state instead of a chart.
Commit markers come from the App Repository when one is set; otherwise from the test repository (see below).
Test Health Lists
Quarantined Tests
Each quarantined test shows:
- How it was quarantined: Auto-quarantined or Quarantined manually, and since when.
- Reason: Flaky: pass/fail oscillation, Flaky: passes only on retry or Manual. Hover to see the engine's evidence, or the note a person wrote.
- Release progress: for automatic quarantines, for example 1/3 passes to release, which becomes Ready to Restore (3/3 passed).
- Protected tag warning: when a person quarantined a test that carries a protected tag.
- Owner and TTL (Nd left, or Expired · Nd overdue), plus actions to extend the TTL or restore the test.
Flaky & Failing Tests
This list holds tests graded C, D or F, plus every test marked Likely regression (it has failed several runs in a row), even while its overall grade is still good. Likely regressions are listed first.
Inspect a test
Click Inspect on a test in either list to open it in a drawer, without leaving the Stability page. The address includes the open test, so you can refresh or share it. The drawer needs no AI and is available to every role. It shows:
- Quarantine & ownership: whether the quarantine is Active or Expired (or the test is Not Quarantined), the progress to auto-release, the expiry date, and the reason, owner and ticket. Admins and Developers can quarantine or un-quarantine the test, extend the TTL and edit these details; everyone else sees them read-only.
- Last 20 runs: each finished CI or hosted run as Passed, Flaky / Retry, Failed or Skipped, with its time, branch and duration, and the browser when the uploaded report names it. Each run links to its details.
- Latest failure: the error and failure signature of the most recent failed or flaky run that recorded one, with a copy button.
- Linked to recent runs: Jira, Linear and Monday.com issues linked to those runs. An issue belongs to the whole run, so it may be about another test. With a tracker connected, Admins and Developers can report the latest failing run from here.
View in Test Cases opens the test case record.
On-demand flaky test analysis
Click Analyze on a row of the Flaky & Failing Tests list to have AI explain why that test is unstable. Agnox combines:
- the test's recent pass/fail history, including runs that passed only after a retry and the distinct errors it hit;
- with GitHub connected, the test's code and the last 3 commits that changed its file, each with that file's patch, capped at 6,000 characters (about 1,500 tokens).
The result lists concrete causes, the evidence for each, and suggested fixes. When code was used, a GitHub context badge names the file and commits. The analysis runs only when you click; nothing runs on page load. Results aren't saved, and Re-analyze runs it again.
Requires: the
flakinessDetectivefeature, your organization's AI key (BYOK), and the Admin, Developer, Manual Tester or Product Manager role.
App Repository
Settings → Run Settings → GitHub → App Repository is optional. Set it when your application's code lives in a different repository from your test suite.
- Enter
owner/repoor paste the repository's GitHub URL. Agnox stores it asowner/repo. Leave it empty to clear it. - Commit markers on the timeline read from the App Repository when it's set. Otherwise they fall back to the test repository: the repository of the project's most recent GitHub CI run (local and GitLab-routed runs are ignored).
- Test code (snippets for RCA and flaky analysis, and file history) always comes from the test repository.
- It works in every execution mode, External CI included. Private repositories work when the connected GitHub token has
contents: readaccess to them.
Base Branches
Settings → Run Settings → Base Branches lists the project's primary branches, for example next or develop. The default is main and master.
- Runs on these branches are the baseline for stability and auto-quarantine: a test that is flaky there can be quarantined automatically. Failures confined to any other single branch are treated as a pull request regression.
- Your list replaces the default, so include
mainif it is still a primary branch. - Separate names with commas: up to 20 names of up to 100 characters each. Names must match exactly; patterns such as
release/*aren't supported. Leave the field empty to go back to the default. - Only Admins can change it. A change applies from each test's next run.
Safe Auto-Quarantine
Quarantine keeps a test running and reporting, but its failures stop failing the run. Safe Auto-Quarantine applies this automatically, only to tests that are genuinely flaky. It never hides a regression.
Turn it on per project with Settings → Run Settings → Auto-Quarantine Flaky Tests. Manual quarantine works whether it's on or off.
Flakiness-only trigger
After each run, Agnox looks at the test's last 10 runs (retries collapsed into one result per run). A test is quarantined automatically only when the latest run shows the flake (it failed, or passed only after a retry) and one of these holds:
| Signal | Rule | Reason code |
|---|---|---|
| Oscillation | At least 3 flips between pass and fail, with at least 2 failures | auto_flaky_oscillation |
| Passes on retry | At least 2 runs passed only after a retry | auto_flaky_retry |
Example: PASS → FAIL → PASS → FAIL is quarantined.
If the failures all happened on a single feature branch while the project's base branches (and scheduled runs) stayed green, the test is treated as a probable pull request regression and is not quarantined.
Regression protection
A consistent failure streak means 3 or more most recent runs failed with no pass between them, for example PASS → PASS → FAIL → FAIL → FAIL or FAIL → FAIL → FAIL. Such a test:
- is marked Likely regression in the Flaky & Failing list;
- is never auto-quarantined, even if it was flaky before;
- keeps failing the Quality Gate until it is fixed, or until someone quarantines it on purpose.
Protected tags
Tests with a protected tag are never auto-quarantined, however flaky they are. The defaults are @p0, @critical and @smoke. Change them per project in Settings → Run Settings → Protected tags (comma-separated); an empty field protects nothing.
A tag matches when it appears in the test case's tags, or as an @token in the test title (for example checkout completes @p0). Matching ignores case and works with or without the leading @.
People can still quarantine a protected test manually. The test then shows a Protected warning badge.
Safer auto-release
With Auto-release stabilized tests turned on (Settings → Run Settings, off by default), an automatically quarantined test is released after a number of consecutive passes:
- Set the number in Consecutive passes to release: default 3, range 1–20.
- Only passes on the first attempt count: a failure, or a pass that needed a retry, resets the count.
- Manual quarantines are never released automatically. A person decides when the fix is in.
With auto-release off, the count is still tracked, and the test shows Ready to Restore once it reaches the threshold so you can restore it in one click.
Audit trail and metadata
Every quarantine records:
| Field | Meaning |
|---|---|
| Reason code | auto_flaky_oscillation, auto_flaky_retry or manual |
| Quarantined by | The user, or auto-quarantine for the engine |
| Reason note | Free text. A person's note, or the engine's evidence (for example "flipped between pass and fail 3 times in the last 4 runs") |
| Owner, ticket | Who follows up (auto-quarantine for the engine), and an optional ticket link. Both can be changed in the Inspect drawer. |
| TTL | Expiry date: 7 days by default (a project can default to 14 or 30 through the project settings API). Extend it to 7, 14 or 30 days from the row's actions. An expired quarantine is flagged Expired and stops hiding the test's failures: they fail runs and the Release Readiness Gate again until you extend it. |
Every quarantine and release, whether automatic or manual, is written to the test case's history.
After a manual release, only runs that happen afterwards count toward auto-quarantine.
Quality Gate
- Agnox Hosted runs: failures of quarantined tests don't fail the run.
- External CI runs reported by
@agnox/playwright-reporter: the final status returned byPOST /api/ingest/teardownturns a FAILED run PASSED only when:- at least one test failed and every failed test is in an active quarantine (skipped tests and tests that passed on retry don't matter), and
- the server is certain it received every result (no lost event batch, and result counts match the reporter's totals).
- A run that failed outside of tests (setup or teardown, with no failed test) is never turned green.
- Teardown answers with the evaluation:
data: { status, quarantineBypassed, quarantinedFailuresCount }.quarantineBypassedistrueonly when the run failed and Agnox turned it PASSED;quarantinedFailuresCountis the number of failed tests whose active quarantine suppresses the failure (also counted when other failures keep the run FAILED). With sharding, each shard's run is evaluated on its own results. - CI exit status: the reporter (2.8.0+) uses this answer to exit your CI job green when Agnox bypassed the run (
softFailQuarantined, on by default;AGNOX_SOFT_FAIL_QUARANTINED=falseturns it off). It never does so for a timed-out or interrupted run, a run that stopped before every test ran (maxFailures), or when Agnox could not be reached. See Quarantine soft-fail.
Because likely regressions are never auto-quarantined, a test that starts failing consistently always fails the gate.