{"record":{"id":"e8e32abbbacec488","repo":"openai/codex","slug":"duplicate-inference-start-for","errorCode":null,"errorMessage":"duplicate inference start for {}","messagePattern":"duplicate inference start for (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/rollout-trace/src/reducer/inference.rs","lineNumber":47,"sourceCode":"}\n\nimpl TraceReducer {\n    /// Starts an inference call and reduces its request payload into conversation items.\n    ///\n    /// Requests are model-visible transcript evidence, so the inference object is only\n    /// inserted after the request snapshot has been normalized and linked to the turn.\n    pub(super) fn start_inference_call(\n        &mut self,\n        seq: RawEventSeq,\n        wall_time_unix_ms: i64,\n        started: StartedInferenceCall,\n    ) -> Result<()> {\n        if self\n            .rollout\n            .inference_calls\n            .contains_key(&started.inference_call_id)\n        {\n            bail!(\n                \"duplicate inference start for {}\",\n                started.inference_call_id\n            );\n        }\n\n        let inference_call_id = started.inference_call_id.clone();\n        let thread_id = started.thread_id.clone();\n        let codex_turn_id = started.codex_turn_id.clone();\n        let request_payload = started.request_payload.clone();\n        let Some(turn) = self.rollout.codex_turns.get(&codex_turn_id) else {\n            bail!(\n                \"inference start {inference_call_id} referenced unknown codex turn {codex_turn_id}\"\n            );\n        };\n        if turn.thread_id != thread_id {\n            bail!(\n                \"inference start {inference_call_id} used thread {thread_id}, \\\n                 but codex turn {codex_turn_id} belongs to {}\",","sourceCodeStart":29,"sourceCodeEnd":65,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rollout-trace/src/reducer/inference.rs#L29-L65","documentation":"Error \"duplicate inference start for {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rollout-trace/src/reducer/inference.rs:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}