Skip to main content
PandaProbe includes two session-level metrics that aggregate trace-level signals into scores capturing agent behavior across an entire session. Both are pure mathematical functions — they receive precomputed per-trace signals and perform zero LLM or embedding calls.

Agent Reliability

Registry name: agent_reliability · Default threshold: 0.5 · Method: Max-compose + top-k tail risk
Measures worst-case failure risk across a session. A session with one catastrophic trace scores poorly even if all other traces are fine. Use this metric to catch agents that are generally good but occasionally fail badly.

Algorithm

For each trace in the session, the metric computes a per-trace risk from the precomputed signals:
1

Convert signals to risks

Each signal score is inverted to become a risk value:
2

Weight and max-compose per trace

Each risk is multiplied by its signal weight, and the maximum weighted risk becomes the trace’s risk:
Only signals that are present for a trace are included — missing signals are skipped, not treated as zero.
3

Top-k tail risk aggregation

Per-trace risks are sorted in descending order. The top 15% (at least 1) are selected:
4

Ensemble and final score

The raw session risk blends the top-k mean with the single worst trace:

Why max-compose + top-k

  • Max-compose ensures each trace’s risk is driven by its worst signal. An agent that has great tool selection but terrible coherence on one trace still gets flagged.
  • Top-k focuses on the tail of the distribution. A session with 100 traces where 3 have high risk will be scored based on those 3, not diluted by the 97 good ones.
  • The 10% max-risk blend gives extra weight to the single worst trace, preventing a handful of high-risk traces from being averaged away.

Flagged traces

Traces with per_trace_risk > 0.5 are flagged in the metadata. This lets you quickly identify which specific traces are dragging down the session’s reliability score.

Metadata returned

Interpreting the score


Agent Consistency

Registry name: agent_consistency · Default threshold: 0.5 · Method: Weighted RMS aggregation
Measures overall stability across a session. Unlike reliability (which focuses on worst moments), consistency penalizes any trace that deviates from smooth operation. Many moderate issues score poorly even if no single trace is catastrophic.

Algorithm

1

Filter traces

Only traces with a confidence signal are included. Traces missing confidence are skipped entirely (unlike reliability, which includes traces with any signal subset).
2

Compute weighted uncertainty per trace

For each trace:
The penalty terms amplify the confidence risk. A trace with low confidence and poor tool correctness gets a higher uncertainty than one with low confidence alone.
3

RMS aggregation

The root mean square of all weighted uncertainties becomes the raw instability:

Why RMS

RMS (root mean square) is sensitive to variation. Unlike a simple average:
  • A session where all traces have moderate uncertainty (e.g., all at 0.3) gets the same RMS as that average
  • A session where most traces are fine but a few have high uncertainty gets a higher RMS due to the squaring
This means consistency captures the spread of issues, not just their average severity.

Why amplification

The confidence signal is the foundation — it’s the only required signal. But confidence alone doesn’t tell the whole story. The penalty terms from other signals amplify the base confidence risk:
  • If an agent is uncertain (low confidence) and using wrong tools, the combined uncertainty is worse than either alone
  • If an agent is uncertain but coherent with correct tools, the uncertainty is less concerning
This multiplicative interaction captures real-world failure modes where problems compound.

Metadata returned

Interpreting the score


Reliability vs. Consistency

These two metrics complement each other: A session can have:
  • High reliability + High consistency — agent is both safe and smooth
  • High reliability + Low consistency — no catastrophic failures, but uneven performance
  • Low reliability + High consistency — consistently mediocre (not great, but predictable)
  • Low reliability + Low consistency — unreliable and unstable

Edge cases

Both metrics handle edge cases gracefully:

Next steps

Run via API

Create session eval runs programmatically.

Scheduling

Set up automated recurring evaluations.