{"record":{"id":"00ef23ca51cdc58e","repo":"tinyhumansai/openhuman","slug":"missing-flavour-parameter","errorCode":null,"errorMessage":"Missing 'flavour' parameter","messagePattern":"Missing 'flavour' parameter","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/flavour.rs","lineNumber":242,"sourceCode":"    }\n\n    fn permission_level(&self) -> PermissionLevel {\n        // Genuinely read-only: this tool never ingests, seals, or writes\n        // memory content. Overridden explicitly (not relying on the trait\n        // default) so a future default change can't silently loosen this.\n        PermissionLevel::ReadOnly\n    }\n\n    fn permission_level_with_args(&self, _args: &serde_json::Value) -> PermissionLevel {\n        // No arg combination for this tool escalates past ReadOnly.\n        PermissionLevel::ReadOnly\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        let flavour_raw = args\n            .get(\"flavour\")\n            .and_then(|v| v.as_str())\n            .ok_or_else(|| anyhow::anyhow!(\"Missing 'flavour' parameter\"))?;\n\n        match lookup_flavour(&self.config, flavour_raw) {\n            Err(hard) => Err(anyhow::anyhow!(hard)),\n            Ok(FlavourLookup::Profile(body)) => Ok(ToolResult::success(body)),\n            Ok(FlavourLookup::NotBuilt(msg)) => Ok(ToolResult::success(msg)),\n            Ok(FlavourLookup::Failed(msg)) => Ok(ToolResult::error(msg)),\n        }\n    }\n}\n\n#[cfg(test)]\nmod tests {\n    use super::*;\n    use tempfile::TempDir;\n\n    fn test_config() -> (TempDir, Arc<Config>) {\n        let tmp = TempDir::new().unwrap();\n        let mut cfg = Config::default();","sourceCodeStart":224,"sourceCodeEnd":260,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/flavour.rs#L224-L260","documentation":"Required-parameter guard in a memory flavour-listing tool's execute: the `flavour` argument selecting which flavour to query is absent or not a string. The tool is read-only (PermissionLevel::ReadOnly, explicitly pinned) so this fires before any guard/driver access and nothing is written.","triggerScenarios":"Thrown at src/openhuman/memory/tools/flavour.rs:242 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass the required \"flavour\" string from the tool's documented enum","Check the tool call included all required fields"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}