{"record":{"id":"ff3131b552b82289","repo":"affaan-m/ECC","slug":"recorded-evidence-exceeds-bounded-score-or-candida","errorCode":null,"errorMessage":"recorded evidence exceeds bounded score or candidate limits","messagePattern":"recorded evidence exceeds bounded score or candidate limits","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"ecc2/src/harness_eval.rs","lineNumber":380,"sourceCode":"impl RecordedEvaluator {\n    #[cfg(test)]\n    pub fn new(scores: BTreeMap<(String, u64), f64>, health_ok: bool) -> Self {\n        Self {\n            name: \"recorded-v1\".into(),\n            scores,\n            health_ok,\n            health_candidate: None,\n            calls: Vec::new(),\n        }\n    }\n\n    pub fn from_evidence(evidence: RecordedEvidence) -> Result<Self> {\n        if evidence.evaluator != \"recorded-v1\" {\n            bail!(\"CLI evidence evaluator must be recorded-v1\");\n        }\n        let score_count = evidence.scores.values().map(BTreeMap::len).sum::<usize>();\n        if score_count > 20_000 || evidence.scores.keys().any(|id| id.len() != 64) {\n            bail!(\"recorded evidence exceeds bounded score or candidate limits\");\n        }\n        if evidence.health.len() != 1 {\n            bail!(\"exactly one candidate-keyed health assertion is required\");\n        }\n        let (health_candidate, health_ok) = evidence\n            .health\n            .into_iter()\n            .next()\n            .context(\"candidate-keyed health evidence is required\")?;\n        let scores = evidence\n            .scores\n            .into_iter()\n            .flat_map(|(id, values)| {\n                values\n                    .into_iter()\n                    .map(move |(seed, score)| ((id.clone(), seed), score))\n            })\n            .collect();","sourceCodeStart":362,"sourceCodeEnd":398,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/ecc2/src/harness_eval.rs#L362-L398","documentation":"RecordedEvaluator::from_evidence bounds evidence size: at most 20,000 total score entries and every candidate key must be exactly 64 characters. The error fires when recorded evidence exceeds those limits, guarding against oversized or malformed evidence payloads.","triggerScenarios":"Thrown at ecc2/src/harness_eval.rs:380 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the number of scores or candidates in the recorded evidence to the bounded limits.","Split the evaluation run into smaller batches that each fit the limits."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"06c5e118c4d3e6c3b7f9445f973a2194c82de193","analyzedAt":"2026-08-18T11:27:13.915Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}