{"record":{"id":"9b59b26eb70d4c59","repo":"tinyhumansai/openhuman","slug":"missing-required-boolean-argument-is-outbound","errorCode":null,"errorMessage":"missing required boolean argument `is_outbound`","messagePattern":"missing required boolean argument `is_outbound`","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/memory/tools/people.rs","lineNumber":330,"sourceCode":"                \"person_id\": { \"type\": \"string\", \"description\": \"Person id (UUID).\" },\n                \"is_outbound\": { \"type\": \"boolean\", \"description\": \"True if the user sent it (required).\" },\n                \"length\": { \"type\": \"integer\", \"minimum\": 0, \"description\": \"Depth proxy (default 0).\" }\n            },\n            \"required\": [\"person_id\", \"is_outbound\"]\n        })\n    }\n\n    fn permission_level(&self) -> PermissionLevel {\n        PermissionLevel::Write\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][people] record_interaction invoked\");\n        let person_id = parse_person_id(&args)?;\n        let is_outbound = args\n            .get(\"is_outbound\")\n            .and_then(serde_json::Value::as_bool)\n            .ok_or_else(|| anyhow::anyhow!(\"missing required boolean argument `is_outbound`\"))?;\n        let length = args\n            .get(\"length\")\n            .and_then(serde_json::Value::as_u64)\n            .unwrap_or(0) as u32;\n        let interaction = PersonInteraction {\n            person_id,\n            at: Utc::now().to_rfc3339(),\n            is_outbound,\n            length,\n        };\n        let guard = people_guard().await?;\n        guard\n            .as_people()\n            .expect(\"checked\")\n            .record_interaction(&interaction)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"people_record_interaction: {e}\"))?;\n        Ok(ToolResult::success(serde_json::to_string(","sourceCodeStart":312,"sourceCodeEnd":348,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/memory/tools/people.rs#L312-L348","documentation":"record_interaction found no boolean \"is_outbound\" in the args — the field distinguishing user-sent from received interactions is required and has no default; as_bool() on a missing or non-boolean value triggers this.","triggerScenarios":"Thrown at src/openhuman/memory/tools/people.rs:330 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass is_outbound as a JSON boolean (true if the user sent it)","Check the field was not serialized as a string \"true\""],"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-14T05:17:10.506Z"}