{"record":{"id":"78d18423437253b2","repo":"atuinsh/atuin","slug":"unknown-aliasrecord-type-n","errorCode":null,"errorMessage":"unknown AliasRecord type {n}","messagePattern":"unknown AliasRecord type (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/atuin-dotfiles/src/store.rs","lineNumber":107,"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 shell alias 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 shell alias record. malformed\");\n                        }\n\n                        Ok(Self::Delete(key.to_owned()))\n                    }\n\n                    n => {\n                        bail!(\"unknown AliasRecord type {n}\");\n                    }\n                }\n            }\n            other => {\n                bail!(\"unknown alias record version {other:?}\");\n            }\n        }\n    }\n}\n\n#[derive(Debug, Clone)]\npub struct AliasStore {\n    pub store: SqliteStore,\n    pub host_id: HostId,\n    pub encryption_key: paseto_v4::Key,\n}\n\nimpl AliasStore {","sourceCodeStart":89,"sourceCodeEnd":125,"githubUrl":"https://github.com/atuinsh/atuin/blob/c0c717ab04c881764bcad4b3d169a507e2432643/crates/atuin-dotfiles/src/store.rs#L89-L125","documentation":"Decoder guard in AliasRecord::deserialize: an alias record's tag byte is neither 0 (Create) nor 1 (Delete), so the local client cannot interpret a record in the synced dotfiles store. Typically caused by a record written by a newer Atuin version, or a corrupted/truncated record payload.","triggerScenarios":"Thrown at crates/atuin-dotfiles/src/store.rs:107 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Upgrade the Atuin client to the latest version so it understands newer record types","Identify and delete the offending record from the store, or re-sync the affected data","Check disk integrity if records are repeatedly corrupted"],"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"}