{"record":{"id":"6b3ea0e8848f15ca","repo":"Hmbown/CodeWhale","slug":"exceeds-the-tombstone-size-limit","errorCode":null,"errorMessage":"{} exceeds the tombstone size limit","messagePattern":"(.+?) exceeds the tombstone size limit","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/telemetry/src/buffer.rs","lineNumber":123,"sourceCode":"/// Read the exact tombstone generation, or `None` when collection has never\n/// been disabled in this home.\npub(crate) fn tombstone_generation(root: &Path) -> Result<Option<TombstoneGeneration>> {\n    let path = tombstone_path(root);\n    let file = match File::open(&path) {\n        Ok(file) => file,\n        Err(error) if error.kind() == std::io::ErrorKind::NotFound => return Ok(None),\n        Err(error) => {\n            return Err(\n                anyhow::Error::new(error).context(format!(\"failed to open {}\", path.display()))\n            );\n        }\n    };\n    let mut bytes = Vec::new();\n    file.take(MAX_TOMBSTONE_BYTES + 1)\n        .read_to_end(&mut bytes)\n        .with_context(|| format!(\"failed to read {}\", path.display()))?;\n    if bytes.len() as u64 > MAX_TOMBSTONE_BYTES {\n        anyhow::bail!(\"{} exceeds the tombstone size limit\", path.display());\n    }\n    Ok(Some(TombstoneGeneration(bytes)))\n}\n\n/// Create the telemetry directory `0700`, if it is missing.\npub fn ensure_dir(root: &Path) -> Result<()> {\n    if root.is_dir() {\n        return Ok(());\n    }\n    let mut builder = DirBuilder::new();\n    builder.recursive(true);\n    #[cfg(unix)]\n    {\n        use std::os::unix::fs::DirBuilderExt as _;\n        builder.mode(0o700);\n    }\n    builder\n        .create(root)","sourceCodeStart":105,"sourceCodeEnd":141,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/crates/telemetry/src/buffer.rs#L105-L141","documentation":"Error \"{} exceeds the tombstone size limit\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at crates/telemetry/src/buffer.rs:123 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8880682c63083a91624de936797efa3ce9e498fd","analyzedAt":"2026-08-16T11:31:27.956Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}