flaky_quarantine_analyze
Analyze historical JUnit XML test runs to statistically separate broken tests from flaky ones and generate quarantine recommendations for intermittent CI failures.
Instructions
Analyzes multiple historical JUnit XML test run reports using two-state Markov chain transition matrices to statistically separate genuinely broken tests from nondeterministic flaky tests. Generates quarantine recommendations and test stability manifests. Use when: Triage of intermittent CI/CD pipeline failures, isolating nondeterministic test suites, and calculating test failure probability. Do not use when: Auditing unified git diffs or parsing database dumps. Alternative: Use agentpr_guard_audit for git security audits, or sqltwin_stream_anonymize for database anonymization. Execution: Runs locally in-memory (<10ms), read-only, idempotent, zero network calls, zero telemetry, air-gapped deterministic.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"junitXmlReports": "<junitXmlReports>"
},
"name": "flaky_quarantine_analyze"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| licenseKey | No | Optional TopAI Sovereign Pro offline license key (or set TOPAI_LICENSE_KEY env variable). | |
| junitXmlReports | Yes | Array of JUnit XML report strings representing chronological CI test runs. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | Aggregated suite statistics: total tests, failure rate, and transition counts. | |
| stableTests | Yes | List of tests verified as deterministic and reliable. | |
| quarantinedTests | Yes | List of tests classified as statistically flaky requiring quarantine. |