{"record":{"id":"f5fba2abde4f6b21","repo":"JuliusBrussee/caveman","slug":"cachebench-observation-request-q-provider-epoch","errorCode":null,"errorMessage":"cachebench: observation request %q provider/epoch mismatch","messagePattern":"cachebench: observation request %q provider/epoch mismatch","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cacheengine/cachebench/observed.go","lineNumber":62,"sourceCode":"\t\t}\n\t\tif _, exists := byID[request.RequestID]; exists {\n\t\t\treturn Report{}, fmt.Errorf(\"cachebench: duplicate trace request %q\", request.RequestID)\n\t\t}\n\t\tif strings.TrimSpace(request.Provider) == \"\" || strings.TrimSpace(request.Epoch) == \"\" || !validUniqueJSONObject(request.Body) || request.BodySHA256 == \"\" || request.BodySHA256 != bodyDigest(request.Body) {\n\t\t\treturn Report{}, fmt.Errorf(\"cachebench: trace request %q has invalid identity, body, or digest\", request.RequestID)\n\t\t}\n\t\tif request.StableSegmentCount < 0 || request.StableSegmentCount > len(request.Prefix) || !validPrefix(request.Prefix) {\n\t\t\treturn Report{}, fmt.Errorf(\"cachebench: trace request %q has invalid prefix\", request.RequestID)\n\t\t}\n\t\tbyID[request.RequestID] = request\n\t}\n\tfor _, record := range records {\n\t\trequest, exists := byID[record.RequestID]\n\t\tif !exists {\n\t\t\treturn Report{}, fmt.Errorf(\"cachebench: observation request %q absent from trace\", record.RequestID)\n\t\t}\n\t\tif record.Provider != request.Provider || record.Epoch != request.Epoch {\n\t\t\treturn Report{}, fmt.Errorf(\"cachebench: observation request %q provider/epoch mismatch\", record.RequestID)\n\t\t}\n\t\tif record.RequestBodySHA256 == \"\" || record.RequestBodySHA256 != request.BodySHA256 {\n\t\t\treturn Report{}, fmt.Errorf(\"cachebench: observation request %q body digest mismatch\", record.RequestID)\n\t\t}\n\t}\n\treport, err := EvaluateObserved(records, target)\n\tif err != nil {\n\t\treturn Report{}, err\n\t}\n\treport.EvidenceLimitations = append([]string{\n\t\t\"observation population exactly joined to supplied request trace by request ID and body SHA-256\",\n\t}, report.EvidenceLimitations...)\n\treturn report, nil\n}\n\n// ObservationReadLimits bounds JSONL evidence decoding.\ntype ObservationReadLimits struct {\n\tMaxLineBytes int","sourceCodeStart":44,"sourceCodeEnd":80,"githubUrl":"https://github.com/JuliusBrussee/caveman/blob/766dce6b1394ebb56a3090748d5a0240a5aefb36/cacheengine/cachebench/observed.go#L44-L80","documentation":"The observation record's provider or epoch does not match the trace record joined by the same request id. Provider/epoch mismatch means the observation was captured under a different deployment context than the trace.","triggerScenarios":"Thrown at cacheengine/cachebench/observed.go:62 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run observation capture against the same provider and epoch as the trace","Correct the provider/epoch stamps if they were mislabelled"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"766dce6b1394ebb56a3090748d5a0240a5aefb36","analyzedAt":"2026-08-18T03:14:35.516Z","contentChangedAt":"2026-08-18T03:14:35.516Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}