Run analytics
The Analytics page answers four questions from every finished run: is quality improving, which scenarios are flaky, what is getting slower, and is this build better than the last one.
1. What is kept
Section titled “1. What is kept”As a run finishes, the Platform keeps its outcome: the verdict, the build, a fingerprint of the scenario file, the duration and each step’s status and latency. No messages or fields. Outcomes stay for 400 days (ISO8583SIM_PLATFORM_ANALYTICS_RETENTION_DAYS changes that), longer than the data policy keeps the runs themselves, so a trend covers a year even when runs are removed after a month.
2. Trends
Section titled “2. Trends”Pick a window (the last 7 days to the last year) and, if you like, one scenario. The tiles give the runs, the pass rate with its change against the window before, how many scenarios are flaky, and the p95 run time. The chart stacks passed, failed and errored runs by day. The scenarios table lists each scenario’s runs, pass rate and its change, median run time and latest verdict, worst first.
3. Flaky scenarios
Section titled “3. Flaky scenarios”A scenario is flaky when its verdict changed between runs of the same file, at least twice in the window. Runs of an edited file don’t count as a change, and nor do errors (a runner or host that was unreachable is not the test’s fault). When runs name builds, a change of verdict across builds is not counted either: the system changed. A flaky scenario shows a badge in the table and in its own list, with how many times the verdict changed.
4. Slowest steps
Section titled “4. Slowest steps”Every step’s latency is kept, so the page lists the steps with the highest p95 across the window, with their p50 and maximum. A step that creeps up is visible before it fails its max_latency_ms.
5. Builds
Section titled “5. Builds”The CI client sends the build under test with every run, from what the CI system names: the commit on GitHub Actions, GitLab, Azure Pipelines, CircleCI and Buildkite, or the build number; --build sets it by hand, and API callers put build in the run request. The builds table shows each build’s runs and pass rate; pick two to compare them scenario by scenario, from each build’s latest run: what the second build fixed, what it broke, and what only one of them ran.
python iso8583sim-run.py --url https://platform.example.com --token "$TOKEN" --build "$GITHUB_SHA" scenarios/*.yamlThe same report is at GET /api/analytics?days=30 (with scenario_id or build to narrow it) and GET /api/analytics/builds?a=…&b=….
6. Failures
Section titled “6. Failures”The Failures card answers why runs failed and since when. As a run finishes, each failed step’s failure lines are kept on the outcome as a signature that names the cause and not the instance: “Field 39 is ‘05’, expected ‘00’” and “Field 39 is ‘51’, expected ‘00’” share the signature “Field 39 expected ‘00’”, a timeout at 3,001 and one at 3,120 milliseconds share one. The window’s failures are grouped by scenario, step and signature; the clusters still failing (the scenario’s latest run fails this way) come first, then the ones with the most runs.
Each cluster places its regression: the last run of the scenario that passed before the cluster’s first failure, and that first failure, with their builds and times. When the CI client names builds, that is the build that introduced the failure and the one before it; a file edited between the two is said so, since the test changed as well as the system. The latest few runs of the cluster are one click away.
The same report is at GET /api/analytics/failures?days=30, with scenario_id or environment to narrow it. Outcomes kept before signatures existed are given theirs from the runs still kept, once, when the api starts.
Why does it fail? Under a cause, the assistant offers to say why, when the install allows failure triage among its AI features. It reads, as you, the cluster, the latest failed run’s failing step with its masked exchange and failure lines, the scenario file, the simulated host’s rules as they are now, and the changes to the scenario and the host since the last run that passed; the model names the likely causes in order, each with the evidence it rests on and what to check or change next: the scenario’s expectation, the host’s rules, or the system under test. The answer says what was read, so you can judge it against the run and the rules before changing anything. Nothing is taken from the browser but the cluster’s id, and the request is in the AI audit like every other.