Repository navigation
[ENG-19421] fix web chat sub-agent spawn authorization - #189
Merged
Merged
Conversation
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Collaborator
Author
|
/cr |
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
There was a problem hiding this comment.
Reviewed the diff + auth boundary + ran the tests locally (52/52 pass).
Fix is targeted and correct:
agentmethod's canonical scope ISoperator.write(core-descriptors.ts:203) — the PR pins exactly the minimum required, not admin.forceSyntheticClient+syntheticScopesis the same pre-existing mechanism the codebase already uses for thesessions.deleteadmin cleanup path (server-plugins.ts:651). This PR extends the pattern to child-agent startup, not a new capability.- Explicit caller scopes remain authoritative (
params.scopes ?? ...); HTTP plugin routes themselves gain no write access. - Regression test
subagent-spawn.in-process.test.tsdrives the real gateway authorization path (scope-less context rejects unpinned dispatch, accepts pinned spawn) — right shape, right seam. - Slack unchanged; Web chat + Google Chat go from broken → working with least-privilege.
Ship it. 🧙
orswn
enabled auto-merge (squash)
September 3, 2026 16:20
orswn
disabled auto-merge
September 3, 2026 16:20
orswn
enabled auto-merge (squash)
September 3, 2026 16:21
insomnius
approved these changes
Sep 3, 2026
gabriel-tama
approved these changes
Sep 3, 2026
orswn
added a commit
that referenced
this pull request
Sep 8, 2026
…206) ## Release 2026.6.11-boon.38 Ships channel-owned sub-agent completion replies for Boon web chat. ### Contents (merged onto `boon` since boon.37) - **#205 (ENG-19421)** — a plugin can register a completion owner for its channel; the announce flow hands the sub-agent completion to the owner and falls back to the existing delivery path when none is registered, so other channels are unchanged. `sessions_yield` runs its tool batch sequentially so a `message` send in the same turn is no longer aborted. Carries upstream openclaw#97657 and openclaw#98835 (`reply session initialization conflicted`). Smoke-tested on a local stack; evidence in #205. - **#202** — plugin-sdk read of the gateway live run count. - **#201** — internal identifiers removed from the public tree. ### Release prep - Root version boon.37 → boon.38; `pnpm release:prep` regenerated the lockstep set (211 files) → `[release-preflight] OK`. - `CHANGELOG.md` `## 2026.6.11-boon.38` section added; `scripts/package-changelog.mjs` extractor returns 2496 packaged bytes. ### After merge Tag `v2026.6.11-boon.38` → `boon-release.yml`. The fleet is pinned to `boon.36`, so the roll also picks up boon.37 (#189, #194–#198). Gateway roll first (gated `fleet-roll`), then the anychat-boon-web release that pins this tarball.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where Boon web chat and Google Chat turns could not delegate work to sub-agents. Every
sessions_spawnchild dispatch from an HTTP plugin route failed withmissing scope: operator.write, so long-running work stayed inline and could consume the parent turn budget.Related: ENG-19421
Why This Change Was Made
The trusted sub-agent lifecycle now dispatches its child
agentcall with exactly the write scope required by the gateway. Admin lifecycle calls keep their existing admin scope, explicit caller scopes remain authoritative, and unrelated plugin requests remain scope-free and default-denied.This changes the sub-agent owner path instead of granting write access to HTTP plugin routes.
User Impact
Web chat and Google Chat agents can start sub-agents for long-running work. Slack behavior remains unchanged. This makes the existing fleet delegation preference effective on HTTP plugin channels.
Evidence
agentdispatch withmissing scope: operator.write.sessions_spawnthrough the trusted lifecycle path.operator.write.operator.admin.oxfmt,oxlint, andgit diff --checkpassed.Live web chat and Google Chat pilot checks require a release and rollout, so they were not run in this PR.
Summary by cubic
Fixes ENG-19421 so Boon web chat and Google Chat turns can delegate work to sub-agents;
sessions_spawnfrom HTTP plugin routes no longer fails withmissing scope: operator.writeand long-running work no longer has to run inline.agentcalls with exactlyoperator.write; admin lifecycle calls keepoperator.admin, and unrelated plugin requests remain scope-free and default-denied.Written for commit 0251ddd. Summary will update on new commits.