{"record":{"id":"c4fa552d44a1e4bb","repo":"atuinsh/atuin","slug":"unknown-kv-record-version-other","errorCode":null,"errorMessage":"unknown kv record version {other:?}","messagePattern":"unknown kv record version (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin-kv/src/store/record.rs","lineNumber":97,"sourceCode":"                    let (value, bytes) =\n                        decode::read_str_from_slice(bytes).map_err(error_report)?;\n                    (Some(value.to_owned()), bytes)\n                } else {\n                    (None, bytes)\n                };\n\n                if !bytes.is_empty() {\n                    bail!(\"trailing bytes in encoded kvrecord. malformed\");\n                }\n\n                Ok(Self {\n                    namespace: namespace.to_owned(),\n                    key: key.to_owned(),\n                    value,\n                })\n            }\n            other => {\n                bail!(\"unknown kv record version {other:?}\");\n            }\n        }\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use atuin_domain::record::RecordVersion;\n    use rstest::rstest;\n\n    use super::{DecryptedData, KvRecord};\n\n    #[rstest]\n    #[case::some(\n        Some(\"baz\".to_owned()),\n        &[0x94, 0xa3, b'f', b'o', b'o', 0xa3, b'b', b'a', b'r', 0xc3, 0xa3, b'b', b'a', b'z']\n    )]\n    #[case::none(None, &[0x94, 0xa3, b'f', b'o', b'o', 0xa3, b'b', b'a', b'r', 0xc2])]","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/atuinsh/atuin/blob/c0c717ab04c881764bcad4b3d169a507e2432643/crates/atuin-kv/src/store/record.rs#L79-L115","documentation":"Decoder guard in KvRecord::deserialize: the record's version discriminant is not V0, so the record was written by an Atuin version whose KV wire format this client does not implement. The client declines to decode rather than risk misreading an unknown layout.","triggerScenarios":"Thrown at crates/atuin-kv/src/store/record.rs:97 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade Atuin to a build that supports KV record version {other:?}","Re-sync or re-encode the KV store with a compatible client"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c0c717ab04c881764bcad4b3d169a507e2432643","analyzedAt":"2026-09-12T07:40:01.341Z","contentChangedAt":"2026-09-12T07:40:01.341Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}