{"record":{"id":"66f1a78fd0758730","repo":"affaan-m/ECC","slug":"seed-count-exceeds-10000","errorCode":null,"errorMessage":"seed count exceeds 10000","messagePattern":"seed count exceeds 10000","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"ecc2/src/harness_eval.rs","lineNumber":470,"sourceCode":"\n#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]\npub struct PairedSample {\n    pub seed: u64,\n    pub candidate_score: f64,\n    pub baseline_score: f64,\n}\n\npub fn evaluate_paired(\n    evaluator: &mut dyn Evaluator,\n    candidate_id: &str,\n    baseline_id: &str,\n    seeds: &[u64],\n) -> Result<Vec<PairedSample>> {\n    if seeds.is_empty() {\n        bail!(\"at least one explicit seed is required\");\n    }\n    if seeds.len() > 10_000 {\n        bail!(\"seed count exceeds 10000\");\n    }\n    if seeds.iter().copied().collect::<BTreeSet<_>>().len() != seeds.len() {\n        bail!(\"seeds must be unique\");\n    }\n    seeds\n        .iter()\n        .map(|seed| {\n            Ok(PairedSample {\n                seed: *seed,\n                candidate_score: evaluator.evaluate(candidate_id, *seed)?,\n                baseline_score: evaluator.evaluate(baseline_id, *seed)?,\n            })\n        })\n        .collect()\n}\n\n#[derive(Debug, Clone, Copy, PartialEq, Serialize, Deserialize)]\npub struct PromotionPolicy {","sourceCodeStart":452,"sourceCodeEnd":488,"githubUrl":"https://github.com/affaan-m/ECC/blob/06c5e118c4d3e6c3b7f9445f973a2194c82de193/ecc2/src/harness_eval.rs#L452-L488","documentation":"Guard in evaluate_paired: the explicit seed list for a paired evaluation exceeds 10,000 entries. The cap bounds runtime and memory when running each seed through both candidate and baseline evaluators.","triggerScenarios":"Thrown at ecc2/src/harness_eval.rs:470 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Reduce the seed list to at most 10000 entries.","Sample or shard the seeds and run multiple evaluations if more coverage is needed."],"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-14T00:17:10.932Z"}