{"record":{"id":"294c20f42595ae6e","repo":"tinyhumansai/openhuman","slug":"workspace-reset-persona-e","errorCode":null,"errorMessage":"workspace_reset_persona: {e}","messagePattern":"workspace_reset_persona: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/config/workspace/tools.rs","lineNumber":144,"sourceCode":"    fn description(&self) -> &str {\n        \"Reset an allowlisted persona file (`filename`) to its bundled default, \\\n         overwriting any customization. Default-OFF (opt-in).\"\n    }\n    fn parameters_schema(&self) -> serde_json::Value {\n        json!({\n            \"type\": \"object\",\n            \"properties\": { \"filename\": { \"type\": \"string\", \"enum\": [\"SOUL.md\", \"IDENTITY.md\"] } },\n            \"required\": [\"filename\"]\n        })\n    }\n    fn permission_level(&self) -> PermissionLevel {\n        PermissionLevel::Write\n    }\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][workspace] reset_persona invoked\");\n        let filename = req_str(&args, \"filename\")?;\n        let outcome = rpc::reset_workspace_file(&self.config.workspace_dir, &filename)\n            .map_err(|e| anyhow::anyhow!(\"workspace_reset_persona: {e}\"))?;\n        Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))\n    }\n}\n\n/// Scaffold the workspace. Default-OFF.\npub struct WorkspaceInitTool;\n#[async_trait]\nimpl Tool for WorkspaceInitTool {\n    fn name(&self) -> &str {\n        \"workspace_init\"\n    }\n    fn description(&self) -> &str {\n        \"Scaffold the workspace (memory/sessions/state dirs, bundled prompts, \\\n         HEARTBEAT.md). `force` re-initializes existing files. Default-OFF \\\n         (opt-in).\"\n    }\n    fn parameters_schema(&self) -> serde_json::Value {\n        json!({","sourceCodeStart":126,"sourceCodeEnd":162,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/config/workspace/tools.rs#L126-L162","documentation":"Resetting the named persona file (SOUL.md/IDENTITY.md) to its bundled default failed at the ops layer; wrapped with the tool name. The filename passed enum validation, so the failure is in locating/overwriting the file or reading the bundled default.","triggerScenarios":"Thrown at src/openhuman/config/workspace/tools.rs:144 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run workspace_init to restore missing bundled scaffolding","Check workspace write permissions","Inspect the wrapped error for the underlying cause"],"exampleFix":null,"handlingStrategy":"try-catch","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"}