{"record":{"id":"2220ce603f17e31e","repo":"openai/codex","slug":"code-cell-initial-response-referenced-unknown-cell","errorCode":null,"errorMessage":"code cell initial response referenced unknown cell {code_cell_id}","messagePattern":"code cell initial response referenced unknown cell (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/rollout-trace/src/reducer/code_cell.rs","lineNumber":258,"sourceCode":"        runtime_cell_id: String,\n        status: CodeCellRuntimeStatus,\n    ) -> Result<()> {\n        if !self.rollout.code_cells.contains_key(&code_cell_id) {\n            if self.pending_code_cell_starts.contains_key(&code_cell_id) {\n                self.queue_code_cell_lifecycle_event(\n                    code_cell_id,\n                    PendingCodeCellLifecycleEvent {\n                        seq,\n                        wall_time_unix_ms,\n                        kind: PendingCodeCellLifecycleEventKind::InitialResponse {\n                            runtime_cell_id,\n                            status,\n                        },\n                    },\n                );\n                return Ok(());\n            }\n            bail!(\"code cell initial response referenced unknown cell {code_cell_id}\");\n        }\n        self.record_code_cell_initial_response(\n            seq,\n            wall_time_unix_ms,\n            code_cell_id,\n            runtime_cell_id,\n            status,\n        )\n    }\n\n    fn record_code_cell_initial_response(\n        &mut self,\n        seq: RawEventSeq,\n        wall_time_unix_ms: i64,\n        code_cell_id: CodeCellId,\n        runtime_cell_id: String,\n        status: CodeCellRuntimeStatus,\n    ) -> Result<()> {","sourceCodeStart":240,"sourceCodeEnd":276,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/rollout-trace/src/reducer/code_cell.rs#L240-L276","documentation":"Consistency guard in record_or_queue_code_cell_initial_response: an initial-response runtime event references a code cell id that is neither reduced nor pending, so it cannot be attached. Indicates an event ordering gap where the start event was never seen.","triggerScenarios":"Thrown at codex-rs/rollout-trace/src/reducer/code_cell.rs:258 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the rollout for a missing code cell start event before this response","Regenerate the trace; report missing-start events as a recorder issue"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}