Skip to content

Model safety/alignment can block explicitly authorized operational tasks (e.g. SSH diagnostics) #48104

Description

@Lulu-Grant

Summary

OpenClaw sometimes refuses or avoids performing clearly authorized operational tasks because the underlying model applies overly broad safety / moral boundaries.

This is especially noticeable in admin / operator workflows such as:

  • connecting to a server via SSH
  • checking service health
  • reading logs
  • inspecting system state
  • running diagnostics on infrastructure owned by the user

In these cases, the user has already explicitly authorized the action, the environment is controlled, and the platform may already expose the necessary tools/capabilities — but the model still behaves as if it must protect the user from their own request.

The result is a “for your own good, I won’t do it” failure mode.

Why this is a serious problem

This is not just a minor UX issue.

For an agent system like OpenClaw, tool use is a core part of the product. If the model frequently overrides explicit operator intent, then:

  • installed capabilities become unreliable
  • infrastructure automation becomes inconsistent
  • operational trust drops significantly
  • debugging becomes much slower
  • the agent starts acting like a cautious chatbot instead of an operator assistant

This is especially damaging in SSH / DevOps / troubleshooting scenarios.

Example failure mode

A user asks OpenClaw to:

  • connect to their own server via SSH
  • inspect a failure
  • check logs / disk / memory / service status

Instead of entering the execution path, the model may:

  • repeatedly explain risks
  • suggest doing it manually
  • avoid actually attempting the connection
  • remain stuck in a “guidance only” mode
  • implicitly refuse despite explicit authorization

In practice, this can look like a connection problem, but the root cause is actually model-level over-alignment interfering with tool execution.

Important distinction

There are two very different failure modes here:

  1. Real technical failure

    • bad credentials
    • host unreachable
    • timeout
    • SSH config problem
    • network issue
  2. Model veto / soft refusal

    • the model never fully enters the tool-execution path
    • it prefers cautionary explanation over action
    • it treats normal admin operations as suspicious or disallowed
    • it behaves as if the user’s explicit authorization is not enough

The second category is the issue here.

Expected behavior

When the user is clearly operating in a trusted environment and explicitly authorizes an operational task:

  • OpenClaw should prefer execution over moralized refusal
  • read-only diagnostics should be treated as low-risk by default
  • the model should not generalize SSH / infra access into a malicious-hacking scenario
  • the system should respect the operator’s authority within configured permissions

Examples of actions that should generally be easier to allow:

  • SSH read-only diagnostics
  • checking logs
  • checking service status
  • inspecting processes / disk / CPU / memory
  • reading config files
  • gathering troubleshooting data

Write/destructive actions can still require stronger confirmation.

Possible direction

A few possible mitigations:

  1. Separate read-only diagnostics from write/destructive actions

    • read-only infra inspection should be much easier to allow
  2. Introduce a clearer operator / trusted-admin mode

    • when explicitly enabled, the model should stop second-guessing normal operational requests
  3. Route common infra requests through stronger skill/tool pathways

    • reduce the model’s chance to “morally improvise” instead of executing
  4. Improve prompting/policy layering

    • in trusted, user-authorized environments, do not replace execution with generic safety advice
  5. Add better observability

    • make it easier to distinguish:
      • tool failure
      • routing failure
      • model refusal
      • policy refusal

Why this matters

A tool-using agent that frequently refuses clearly authorized operational tasks becomes difficult to trust in real workflows.

For many users, the whole point of OpenClaw is not just conversation, but reliable execution inside a controlled environment.

If model alignment repeatedly overrides explicit operator intent, that undermines one of OpenClaw’s most important strengths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🦪 silver shellfishThin issue quality; more reproduction proof or environment detail is needed.staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions