Skip to content

[Bug]: Cross-agent orchestration can be blocked by default session visibility after upgrade #90443

Closed

Description

@ramitrkar-hash

Summary

After upgrading to 2026.6.1, direct Jarvis -> Billy orchestration attempts were blocked before reaching Billy with:

Session send visibility is restricted. Set tools.sessions.visibility=all to allow cross-agent access.

This is confusing because the local config already allowed Jarvis to delegate to Billy through agents.list[].subagents.allowAgents, and Billy was alive via heartbeat. The failure looked like "Billy is flaky/dead" from the operator side, but the clean direct health-check call was rejected by session visibility policy before it reached Billy.

Environment

  • OpenClaw: 2026.6.1 (2e08f0f)
  • Previous version before upgrade: 2026.5.18 (50a2481)
  • Platform: macOS arm64
  • Gateway: LaunchAgent, loopback 127.0.0.1:18789
  • Agents: main/Jarvis, billy, farber, scout, maverick, lumbergh
  • Jarvis subagent config already included:
"subagents": {
  "allowAgents": ["billy", "farber", "scout", "maverick", "lumbergh"]
}

Observed behavior

Jarvis attempted a direct health-check style call to Billy's main session (agent:billy:main) and OpenClaw rejected it with:

Session send visibility is restricted. Set tools.sessions.visibility=all to allow cross-agent access.

This happened while Billy heartbeat was still alive, so the issue was not that Billy was missing. It was a policy/runtime gate blocking direct cross-agent session access.

A second layer exists in 6.1: the schema says tools.sessions.visibility=all controls cross-session visibility, but cross-agent access also requires tools.agentToAgent.

Relevant schema/docs text in the built runtime:

tools.sessions.visibility: Controls which sessions can be targeted by sessions_list/sessions_history/sessions_send. ("tree" default = current session + spawned subagent sessions; "self" = only current; "agent" = any session in the current agent id; "all" = any session; cross-agent still requires tools.agentToAgent).

Local recovery patch/config

To restore intentional Jarvis -> Billy/direct specialist access, I backed up config and added explicit scoped policy:

"tools": {
  "sessions": {
    "visibility": "all"
  },
  "agentToAgent": {
    "enabled": true,
    "allow": [
      "main",
      "billy",
      "farber",
      "scout",
      "maverick",
      "lumbergh"
    ]
  }
}

Then:

openclaw config validate
openclaw gateway restart --wait 120s
openclaw health --json
openclaw channels status --json

Validation after restart:

  • config validates
  • Gateway health OK
  • Discord Jarvis/main connected after startup stagger
  • no plugin load errors

Expected behavior

One of these should happen for multi-agent orchestration configs:

  1. If agents.list[].subagents.allowAgents permits a target agent, direct agent-to-agent/session-send orchestration should either work automatically or produce a clear migration hint that mentions both required knobs: tools.sessions.visibility=all and tools.agentToAgent.enabled=true / tools.agentToAgent.allow.
  2. openclaw doctor / config validate should warn when an agent has cross-agent delegation configured but the session tools policy blocks direct cross-agent send/history/status operations.
  3. The error should not imply that only tools.sessions.visibility=all is required when tools.agentToAgent can be the next blocker.

Actual behavior

The first operator-visible failure only mentioned tools.sessions.visibility=all. It did not mention that cross-agent sends also need tools.agentToAgent, nor did doctor/config validation flag the mismatch between allowed subagents and blocked session sends.

Impact

Operators can misdiagnose this as target-agent failure or model/provider instability. In this case Billy also had separate provider timeout issues, but the direct Jarvis -> Billy health-check failure was OpenClaw-side policy gating, not CrofAI/model behavior.

Suggested fix

  • Improve the forbidden error for cross-agent session send/history/status to include both required controls when applicable.
  • Add a doctor/config lint for subagents.allowAgents or multi-agent orchestration configs where tools.sessions.visibility and tools.agentToAgent would block direct cross-agent access.
  • Consider a migration prompt or guided config command for intentional multi-agent operators to enable a scoped tools.agentToAgent.allow list safely instead of requiring broad manual discovery.

Activity

  1. clawsweeper commented on Jun 4, 2026

    @clawsweeper
    Contributor

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 21, 2026, 7:39 AM ET / 11:39 UTC.

    Summary
    Keep this open: current main and latest release still have the single-knob cross-agent visibility denial, and the linked open pull request is the active fix candidate for the central diagnostic bug.

    Reproducibility: yes. at source level. A cross-agent target under visibility below all reaches crossVisibilityMessage before A2A checks, and current tests still encode the single-knob denial text.

    Root-cause cluster
    Relationship: canonical
    Canonical: #90443
    Summary: This issue is the canonical current diagnostics report; the open linked PR is the candidate fix, while older attempts are closed and the broader send-authorization issue is adjacent.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Next step
    No new repair job is needed because an open linked PR already contains the narrow fix candidate for the central diagnostic bug.

    Security
    Needs attention: The issue is security-sensitive because the fix must improve guidance without accidentally broadening cross-agent session visibility or A2A authorization.

    Review details

    Best possible solution:

    Review and land or reject #90489 for the shared denial message, then track any broader doctor/config lint separately.

    Do we have a high-confidence way to reproduce the issue?

    Yes, at source level. A cross-agent target under visibility below all reaches crossVisibilityMessage before A2A checks, and current tests still encode the single-knob denial text.

    Is this the best way to solve the issue?

    Yes for the central diagnostics bug. Updating the shared session visibility helper is the narrow maintainable fix because session send/history/list/status share that decision path; broader doctor lint can be a separate follow-up.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • The linked PR fixes the central denial text only; broader doctor/config lint or guided migration remains a separate maintainer choice if still desired.

    Codex review notes: model internal, reasoning high; reviewed against d1cbe29f3d52.

    Label changes

    Label changes:

    • add impact:security: The issue sits on the cross-agent visibility and authorization boundary, so follow-up must preserve explicit operator-controlled access gates.

    Label justifications:

    • P2: This is a normal-priority session tooling diagnostics bug that can block intentional cross-agent orchestration but has a bounded fix path.
    • impact:session-state: The issue concerns cross-agent session targeting and visibility policy for session send/history/status operations.
    • impact:security: The issue sits on the cross-agent visibility and authorization boundary, so follow-up must preserve explicit operator-controlled access gates.
    Evidence reviewed

    Security concerns:

    • [medium] Preserve cross-agent visibility boundaries — src/plugin-sdk/session-visibility.ts:329
      Any follow-up should keep tools.sessions.visibility and tools.agentToAgent as explicit operator-controlled gates unless maintainers intentionally choose a broader model.
      Confidence: 0.86

    What I checked:

    Likely related people:

    • vincentkoc: Current blame on the helper and decision-order lines points at Vincent Koc's current-source snapshot, and recent GitHub history also shows work on the sessions_send surface that consumes the guard. (role: current-source carrier and recent adjacent contributor; confidence: medium; commits: c9758bf2a090, 0ea08076c3b5, 3659ff8bbf71; files: src/plugin-sdk/session-visibility.ts, src/agents/tools/sessions-send-tool.ts)
    • steipete: GitHub commit history shows repeated recent work on the session visibility helper, plugin SDK docs, and config docs around the same tools.sessions and tools.agentToAgent contract. (role: recent area contributor; confidence: high; commits: 14690904f033, feffb6d02ff8, 0f83c93740b7; files: src/plugin-sdk/session-visibility.ts, docs/gateway/config-tools.md, src/agents/tools/sessions-access.test.ts)
    • nefainl: GitHub history shows commit 2c716f5677de introduced src/plugin-sdk/session-visibility.ts while moving session visibility enforcement into the shared SDK helper path. (role: introduced shared visibility helper; confidence: high; commits: 2c716f5677de; files: src/plugin-sdk/session-visibility.ts)
    • sahibzada-allahyar: The open linked PR changes the shared helper and focused session-access tests for this issue's central diagnostic path. (role: open linked fix author; confidence: medium; commits: cdacc32b5245; files: src/plugin-sdk/session-visibility.ts, src/agents/tools/sessions-access.test.ts)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2Normal backlog priority with limited blast radius.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
    clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    on Jun 4, 2026
  3. added
    clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.
    clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.
    clawsweeper:needs-security-reviewClawSweeper marked this issue as needing security-sensitive review.
    impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.
    and removed
    clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.
    clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.
    on Jun 15, 2026
  4. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Normal backlog priority with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.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.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:securitySecurity boundary, credential, authz, sandbox, or sensitive-data risk.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions