Failure analysis
Perseval starts from structured behavior, not from “all red spans are defects.” The goal is a defensible claim connected to exact evidence.
Error, finding, and group
Section titled “Error, finding, and group”- An error span is producer telemetry: an operation reported Error.
- A finding is a detector claim supported by bounded evidence and a stated certainty.
- A failure group collects findings with the same exact deterministic signature.
An error can remain outside the Failure Inbox when work was optional, recovery was verified, or required behavioral facts are missing.
Detector eligibility
Section titled “Detector eligibility”Detectors consider operation identity, requiredness, status/result, effect, retry safety, attempts, observed state, root outcome, events, and links as relevant to the rule. They do not infer these facts from free-form assistant text or a tool name.
The Finding inspector reports:
- detector and version;
- severity and recovery;
- exact, bounded-inference, or inconclusive rule match;
- missing facts and semantic coverage;
- evidence references and provenance.
Common diagnoses
Section titled “Common diagnoses”Examples include a required operation that ended without compatible recovery, an uncertain mutation that was not verified, repeated tool failure, or a loop. The precise detector set can evolve; detector version stays attached to immutable analysis identity.
Recovery
Section titled “Recovery”Recovery is evidence, not optimism. A later successful call must be compatible with the failed operation and state. Compensation or verification should be explicit. A root “completed” claim does not erase an unrecovered required failure.
Exact grouping versus similarity
Section titled “Exact grouping versus similarity”Exact failure signatures remain canonical and drive recurrence, review, and eval candidates. Optional feature-similarity cohorts are secondary navigation metadata; they cannot merge exact groups or change draft eval identity.
Recurrence and trends
Section titled “Recurrence and trends”Recurrence uses a shared eligible-run denominator for the active project/environment/build/session/time scope. It answers “in how many eligible runs did this exact pattern occur?”
Trends compare rates across observed time buckets, not raw counts. No eligible population is different from a true 0% failure rate. Recurrence measures repetition; it does not prove that a diagnosis is true.
No finding is a result
Section titled “No finding is a result”If an errored run produces no group:
- open it from Runs;
- expand the relevant branch in Full Trace;
- select the error span;
- read the missing telemetry named in the Finding inspector;
- inspect Attributes, instrument the missing facts, and send a new run.
Do not rewrite old finalized evidence. The new run provides a reviewable comparison.