{"record":{"id":"3ed3e4c57b6515c8","repo":"tinyhumansai/openhuman","slug":"prompt-flagged-for-security-review-and-was-not-pro","errorCode":null,"errorMessage":"Prompt flagged for security review and was not processed.","messagePattern":"Prompt flagged for security review and was not processed\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/harness/session/runtime.rs","lineNumber":805,"sourceCode":"    /// This is the primary high-level method for programmatic interaction with the agent.\n    /// It wraps the core `turn` logic with telemetry events (`AgentTurnStarted`,\n    /// `AgentTurnCompleted`) and error sanitization.\n    pub async fn run_single(&mut self, message: &str) -> Result<String> {\n        let guard = enforce_prompt_input(\n            message,\n            PromptEnforcementContext {\n                source: \"agent.runtime.run_single\",\n                request_id: None,\n                user_id: Some(self.event_channel()),\n                session_id: Some(self.event_session_id()),\n            },\n        );\n        if !matches!(guard.action, PromptEnforcementAction::Allow) {\n            let user_message = match guard.action {\n                PromptEnforcementAction::Allow => \"Message accepted.\",\n                PromptEnforcementAction::Blocked => \"Prompt blocked by security policy.\",\n                PromptEnforcementAction::ReviewBlocked => {\n                    \"Prompt flagged for security review and was not processed.\"\n                }\n            };\n            let action_tag = match guard.action {\n                PromptEnforcementAction::Allow => \"allow\",\n                PromptEnforcementAction::Blocked => \"blocked\",\n                PromptEnforcementAction::ReviewBlocked => \"review_blocked\",\n            };\n            crate::core::observability::report_error(\n                user_message,\n                \"agent\",\n                \"prompt_injection_blocked\",\n                &[\n                    (\"session_id\", self.event_session_id()),\n                    (\"channel\", self.event_channel()),\n                    (\"action\", action_tag),\n                ],\n            );\n            BUS.publish(DomainEvent::AgentError {","sourceCodeStart":787,"sourceCodeEnd":823,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/harness/session/runtime.rs#L787-L823","documentation":"The prompt-injection/security guard flagged the incoming prompt for review rather than hard-blocking it: the turn was not processed and was parked for security review. The message content matched a review-triggering pattern of the enforcement policy in the agent runtime.","triggerScenarios":"Thrown at src/openhuman/agent/harness/session/runtime.rs:805 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Surface the review state to the user/operator and wait for the disposition instead of resubmitting","Check what in the prompt (injected instructions, suspicious links/attachments) triggered the classifier","Adjust the guard's review rules if legitimate prompts are repeatedly flagged"],"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-23T08:17:48.524Z"}