Repository navigation
Description
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 --jsonValidation 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:
- If
agents.list[].subagents.allowAgentspermits 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=allandtools.agentToAgent.enabled=true/tools.agentToAgent.allow. openclaw doctor/config validateshould warn when an agent has cross-agent delegation configured but the session tools policy blocks direct cross-agent send/history/status operations.- The error should not imply that only
tools.sessions.visibility=allis required whentools.agentToAgentcan 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.allowAgentsor multi-agent orchestration configs wheretools.sessions.visibilityandtools.agentToAgentwould block direct cross-agent access. - Consider a migration prompt or guided config command for intentional multi-agent operators to enable a scoped
tools.agentToAgent.allowlist safely instead of requiring broad manual discovery.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Jun 4, 2026
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
mainand 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
allreachescrossVisibilityMessagebefore A2A checks, and current tests still encode the single-knob denial text.Root-cause cluster
Relationship:
canonicalCanonical: #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:
fixed_by_candidate: fix(sessions): clarify cross-agent visibility guidance #90489 - The PR uses closing syntax for this issue and updates the shared session visibility helper to include both required controls.superseded: Improve sessions_send cross-agent visibility error guidance #35717 - That closed stale issue asked for the same cross-agent visibility error guidance, but this issue carries the current upgrade reproduction and open linked PR.superseded: fix: include agentToAgent.enabled hint in cross-agent visibility errors (closes #35717) #47056 - That closed unmerged PR attempted similar diagnostic wording, so it is not a viable canonical fix.adjacent_distinct: sessions_send blocked by visibility guard even when a2a policy allows cross-agent messaging #57447 - That issue tracks the broader authorization model for a2a-gated sends under tree visibility, while this issue is about misleading diagnostics and validation.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
allreachescrossVisibilityMessagebefore 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:
Codex review notes: model internal, reasoning high; reviewed against d1cbe29f3d52.
Label changes
Label changes:
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:
src/plugin-sdk/session-visibility.ts:329Any follow-up should keep
tools.sessions.visibilityandtools.agentToAgentas explicit operator-controlled gates unless maintainers intentionally choose a broader model.Confidence: 0.86
What I checked:
crossVisibilityMessagestill returns cross-agent visibility errors that only tell operators to settools.sessions.visibility=all. (src/plugin-sdk/session-visibility.ts:248, d1cbe29f3d52)createSessionVisibilityRowCheckerreturns the visibility message before checkingtools.agentToAgent.enabledor allow rules. (src/plugin-sdk/session-visibility.ts:329, d1cbe29f3d52)tools.sessions.visibility=allmessage for cross-agent visibility denials. (src/agents/tools/sessions-access.test.ts:281, d1cbe29f3d52)v2026.6.9contains the same single-knob cross-agent visibility denial, so the issue is not shipped fixed. (src/plugin-sdk/session-visibility.ts:248, c645ec4555c0)src/plugin-sdk/session-visibility.ts:248, c9758bf2a090)Likely related people:
sessions_sendsurface 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)tools.sessionsandtools.agentToAgentcontract. (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)2c716f5677deintroducedsrc/plugin-sdk/session-visibility.tswhile 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)src/plugin-sdk/session-visibility.ts,src/agents/tools/sessions-access.test.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.