{"record":{"id":"0287061cb0bd6c95","repo":"openai/codex","slug":"inference-completion-referenced-unknown-call-infe","errorCode":null,"errorMessage":"inference completion referenced unknown call {inference_call_id}","messagePattern":"inference completion referenced unknown call (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/rollout-trace/src/reducer/inference.rs","lineNumber":190,"sourceCode":"                    upstream_request_id,\n                    partial_response_payload,\n                    ..\n                } => (\n                    inference_call_id,\n                    ExecutionStatus::Cancelled,\n                    None,\n                    upstream_request_id,\n                    partial_response_payload,\n                ),\n                _ => bail!(\"complete_inference_call received a non-terminal inference event\"),\n            };\n\n        if !self\n            .rollout\n            .inference_calls\n            .contains_key(&inference_call_id)\n        {\n            bail!(\"inference completion referenced unknown call {inference_call_id}\");\n        }\n\n        let response_item_ids = response_payload\n            .as_ref()\n            .map(|payload| {\n                self.reduce_inference_response(wall_time_unix_ms, &inference_call_id, payload)\n            })\n            .transpose()?;\n        {\n            let Some(inference) = self.rollout.inference_calls.get_mut(&inference_call_id) else {\n                bail!(\"inference call {inference_call_id} disappeared during response reduction\");\n            };\n            inference.response_id = response_id;\n            // Turn-end cleanup can close a stream before the async mapper observes\n            // cancellation. Preserve that terminal status while still retaining any\n            // late partial response evidence from the mapper.\n            if inference.execution.status == ExecutionStatus::Running {\n                inference.execution.ended_at_unix_ms = Some(wall_time_unix_ms);","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rollout-trace/src/reducer/inference.rs#L172-L208","documentation":"Error \"inference completion referenced unknown call {inference_call_id}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/rollout-trace/src/reducer/inference.rs:190 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"}