{"record":{"id":"c44a3e2cf001873d","repo":"atuinsh/atuin","slug":"unknown-dotfiles-var-record-type-n","errorCode":null,"errorMessage":"unknown Dotfiles var record type {n}","messagePattern":"unknown Dotfiles var record type (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin-dotfiles/src/store/var.rs","lineNumber":85,"sourceCode":"                    // delete\n                    1 => {\n                        let nfields = decode::read_array_len(&mut bytes).map_err(error_report)?;\n                        ensure!(nfields == 1, \"too many entries in v0 dotfiles var delete record\");\n\n                        let bytes = bytes.remaining_slice();\n\n                        let (key, bytes) =\n                            decode::read_str_from_slice(bytes).map_err(error_report)?;\n\n                        if !bytes.is_empty() {\n                            bail!(\"trailing bytes in encoded dotfiles var record. malformed\");\n                        }\n\n                        Ok(Self::Delete(key.to_owned()))\n                    }\n\n                    n => {\n                        bail!(\"unknown Dotfiles var record type {n}\");\n                    }\n                }\n            }\n            other => {\n                bail!(\"unknown var record version {other:?}\");\n            }\n        }\n    }\n}\n\n#[derive(Debug, Clone)]\npub struct VarStore {\n    pub store: SqliteStore,\n    pub host_id: HostId,\n    pub encryption_key: paseto_v4::Key,\n}\n\nimpl VarStore {","sourceCodeStart":67,"sourceCodeEnd":103,"githubUrl":"https://github.com/atuinsh/atuin/blob/c0c717ab04c881764bcad4b3d169a507e2432643/crates/atuin-dotfiles/src/store/var.rs#L67-L103","documentation":"Decoder guard in VarRecord::deserialize: a dotfiles var record's tag byte is neither 0 (Create) nor 1 (Delete), so the record type is unknown to this client. Usually means the record was written by a newer Atuin version, or the stored payload is corrupted.","triggerScenarios":"Thrown at crates/atuin-dotfiles/src/store/var.rs:85 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade the Atuin client to the latest version","Locate and remove the malformed record, then re-sync the dotfiles data"],"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-14T05:17:10.506Z"}