tinyhumansai/openhuman · error · anyhow::Error

Prompt flagged for security review and was not processed.

Error message

Prompt flagged for security review and was not processed.

What it means

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.

Solutions

  1. Surface the review state to the user/operator and wait for the disposition instead of resubmitting
  2. Check what in the prompt (injected instructions, suspicious links/attachments) triggered the classifier
  3. Adjust the guard's review rules if legitimate prompts are repeatedly flagged
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/agent/harness/session/runtime.rs:805 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/3ed3e4c57b6515c8. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/harness/session/runtime.rs:805

    /// This is the primary high-level method for programmatic interaction with the agent.
    /// It wraps the core `turn` logic with telemetry events (`AgentTurnStarted`,
    /// `AgentTurnCompleted`) and error sanitization.
    pub async fn run_single(&mut self, message: &str) -> Result<String> {
        let guard = enforce_prompt_input(
            message,
            PromptEnforcementContext {
                source: "agent.runtime.run_single",
                request_id: None,
                user_id: Some(self.event_channel()),
                session_id: Some(self.event_session_id()),
            },
        );
        if !matches!(guard.action, PromptEnforcementAction::Allow) {
            let user_message = match guard.action {
                PromptEnforcementAction::Allow => "Message accepted.",
                PromptEnforcementAction::Blocked => "Prompt blocked by security policy.",
                PromptEnforcementAction::ReviewBlocked => {
                    "Prompt flagged for security review and was not processed."
                }
            };
            let action_tag = match guard.action {
                PromptEnforcementAction::Allow => "allow",
                PromptEnforcementAction::Blocked => "blocked",
                PromptEnforcementAction::ReviewBlocked => "review_blocked",
            };
            crate::core::observability::report_error(
                user_message,
                "agent",
                "prompt_injection_blocked",
                &[
                    ("session_id", self.event_session_id()),
                    ("channel", self.event_channel()),
                    ("action", action_tag),
                ],
            );
            BUS.publish(DomainEvent::AgentError {

View on GitHub (pinned to 7491200858)