JuliusBrussee/caveman · error
cachebench: no replay evidence
Error message
cachebench: no replay evidence
What it means
Raised when summing replay evidence: the aggregated evidence population is empty, so no ReplayEvidenceSummary can be produced. This fires before token/latency aggregation when zero validated evidence records were supplied.
Solutions
- Run the replay to completion so at least one evidence record is emitted
- Check upstream filters that may have dropped every record before summarization
- Verify the evidence JSONL reader did not silently skip all lines
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at cacheengine/cachebench/replay.go:248 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of JuliusBrussee/caveman@766dce6b13 (2026-08-18).
Data as JSON: /api/errors/a2ec2af2295f3c5b.
Report an issue: GitHub.
Appendix: source
Thrown at cacheengine/cachebench/replay.go:248
// ReplayEvidenceSummary aggregates exact validated evidence population.
type ReplayEvidenceSummary struct {
Schema string `json:"schema"`
Requests int `json:"requests"`
Successful int `json:"successful"`
Failed int `json:"failed"`
QualityPassed int `json:"quality_passed"`
InputTokens int64 `json:"provider_total_input_tokens"`
OutputTokens int64 `json:"provider_output_tokens"`
TimingFaithful bool `json:"timing_faithful"`
InputBudgetClaimedProviderCounted bool `json:"input_budget_claimed_provider_counted"`
Latency LatencyDistribution `json:"latency"`
Providers []ProviderReplaySummary `json:"providers"`
}
// SummarizeReplayEvidence validates and aggregates replay records.
func SummarizeReplayEvidence(records []ReplayEvidenceRecord) (ReplayEvidenceSummary, error) {
if len(records) == 0 {
return ReplayEvidenceSummary{}, errors.New("cachebench: no replay evidence")
}
summary := ReplayEvidenceSummary{
Schema: ReplaySummarySchema, Requests: len(records),
TimingFaithful: true, InputBudgetClaimedProviderCounted: true,
}
type accumulator struct {
summary ProviderReplaySummary
latencies []int64
}
groups := map[string]*accumulator{}
seen := map[string]bool{}
latencies := make([]int64, 0, len(records))
for index, record := range records {
if err := validateReplayEvidence(record); err != nil {
return ReplayEvidenceSummary{}, fmt.Errorf("cachebench: replay evidence %d: %w", index, err)
}
if seen[record.RequestID] {
return ReplayEvidenceSummary{}, fmt.Errorf("cachebench: duplicate replay evidence request %q", record.RequestID)View on GitHub (pinned to 766dce6b13)