{"record":{"id":"a4bae818e0f9cca8","repo":"openai/codex","slug":"invalid-unix-timestamp-secs","errorCode":null,"errorMessage":"invalid unix timestamp: {secs}","messagePattern":"invalid unix timestamp: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/state/src/model/backfill_state.rs","lineNumber":72,"sourceCode":"            BackfillStatus::Pending => \"pending\",\n            BackfillStatus::Running => \"running\",\n            BackfillStatus::Complete => \"complete\",\n        }\n    }\n\n    pub fn parse(value: &str) -> Result<Self> {\n        match value {\n            \"pending\" => Ok(Self::Pending),\n            \"running\" => Ok(Self::Running),\n            \"complete\" => Ok(Self::Complete),\n            _ => Err(anyhow::anyhow!(\"invalid backfill status: {value}\")),\n        }\n    }\n}\n\nfn epoch_seconds_to_datetime(secs: i64) -> Result<DateTime<Utc>> {\n    DateTime::<Utc>::from_timestamp(secs, 0)\n        .ok_or_else(|| anyhow::anyhow!(\"invalid unix timestamp: {secs}\"))\n}\n","sourceCodeStart":54,"sourceCodeEnd":74,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/state/src/model/backfill_state.rs#L54-L74","documentation":"Validation guard: chrono could not construct a DateTime from the persisted unix seconds (out of representable range), so the timestamp cannot be converted to a datetime.","triggerScenarios":"Thrown at codex-rs/state/src/model/backfill_state.rs:72 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix or sanitize the stored timestamp to a valid range","Clamp extreme values to the minimum/maximum representable datetime"],"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"}