GeezerVison is showing github.com — feat(fleet): fleet bridge send/receive and a command channel for Muse lanes by dezren39 · Pull Request #12167 · developing-today/code
Conversation
dezren39
commented
Nov 21, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Before: the fleet binary had no way to send or receive messages, and there was no channel for central to tell Muse lanes (or any fleet agent) to do something.
After: fleet bridge sends and receives through new fleet mailboxes on the message bridge. Central sends a message or a command to one agent, a group (group:muse) or all; each lane reads its mailbox at the start of a run, acts on commands and answers with --reply-to, which marks the command handled.
Stacked on #12144 (OAuth) and #12166 (ChatGPT event wake-ups), both already live on the bridge, so deploying this from main doesn't roll either back. Merge those first, or this PR carries their commits.
How:
- Bridge (
pkgs/message-bridge/worker/src/fleet.js, ~13 lines of hooks in index.js/routes.js): two tables created in the existing Durable Object (no migration), agent routes under /fleet/<fleet token>/{hello,inbox,ack,send}, owner routes under /api/<token>/fleet/{agents,messages,send}. The fleet token is HMAC-SHA256 of the access token, so it needs no new Worker secret; it can't send commands. 10 new node tests (60/60 pass).
- Fleet binary (
crates/fleet-bridge, capability bridge, full build): send, agents, log for central; hello, inbox [--commands] [--take] [--wait], post [--reply-to], ack for agents. Tokens resolved by name through fleet-secrets and scrubbed from every error. 15 unit tests including a fake-server round trip and an HMAC vector cross-checked against the bridge; cargo test --workspace passes.
- Command channel:
doc/agents/fleet-command-channel.md (pointer in AGENTS.md, 7,947 bytes), plus scripts/fleet/bridge-mailbox.py for installs whose fleet binary predates the verb (the sandbox's root-provisioned ~/tools/fleet).
- Fleet agents poll rather than subscribe to webhooks: they have no callback address. The bridge README says how this lines up with the
message.created events.
Generated by Claude Code

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
Claude's connector was set to https://bridge.security.cab with no token
path, so every call got a 404 and the tools never stayed connected. The
bare address (/ and /mcp) now serves the same MCP server behind OAuth 2.1:
discovery metadata, dynamic client registration, PKCE S256 approval and
refresh tokens, all stateless HMAC blobs keyed from ACCESS_TOKEN.
Approving takes one tap in a browser that opened the history page, or the
pasted page link. Path-token routes are unchanged.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e clients, CORS
Review follow-ups on the OAuth sign-in: codes are claimed once and refresh
tokens rotate per family in the Durable Object (replaying an old one
revokes the family); each registration gets a random id so identical
metadata never shares a client id or secret; authenticated MCP answers on
the bare address carry CORS headers.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude registered twice and never opened the approval page; the signed
client ids ran to a few hundred characters. Clients now live in the
Durable Object under mbc_<22 chars>, an unset auth method answers
client_secret_post, and /api/<token>/oauth-events shows the last sign-in
steps without secrets.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… follow its token
The approval page sent Referrer-Policy: no-referrer, so browsers posted
the Allow form with Origin: null and got a 403. It now uses same-origin,
and a null or missing Origin passes when Sec-Fetch-Site is same-origin.
ChatGPT grants carry a digest of CHATGPT_TOKEN, so rotating it revokes
them. Clients are marked used only after a successful grant.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Random operation sequences run against the routes with a refresh-family
model as the oracle (rotation, replay revocation, single-use codes, PKCE,
client isolation, channel). Property runs over sealed blobs found that a
change to the signature's last character could still verify (spare
base64url bits), so decoding now accepts canonical base64url only.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l registry evicts stale pending ones
Used clients now stay as long as a refresh token could (a year from last
use, not 90 days). A full registry makes room by dropping the oldest
never-used registration older than ten minutes, so anonymous registrations
can't lock the owner out; used clients are never evicted.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the owner page
Claude stops after registering against the OAuth address (a claude.ai-side
failure: it never opens /authorize). The page now shows the token address
for /mcp in a collapsed box with a Copy button, so connecting needs no
sign-in step.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Ten per ten minutes per address (counted as a keyed hash), so one source
can't keep the registry full while others still onboard.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ives
ChatGPT's channel now advertises events and answers events/list,
events/subscribe and events/unsubscribe for message.created. A message
for ChatGPT sent from the page or the API posts a signed Standard
Webhooks event to every live subscription, so the subscribed chat wakes
up. Callbacks are verified with a signed challenge, limited to OpenAI
hosts (plus EVENTS_CALLBACK_HOSTS), and end on 410, unsubscribe or a
ChatGPT token rotation.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The message bridge gains per-agent fleet mailboxes (/fleet/<fleet token>/...)
and owner routes to send messages or commands to one agent, a group or
all. The fleet binary gains the fleet-bridge crate: send, agents and log
for central; hello, inbox, post and ack for agents.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
# pkgs/message-bridge/worker/src/index.js
…nnel runbook
fleet bridge is compiled into the full build (capability bridge). Lanes
read central commands at the start of each run (doc/agents/
fleet-command-channel.md); scripts/fleet/bridge-mailbox.py covers
installs whose fleet binary predates the verb. The bridge README says
how fleet mailboxes relate to the ChatGPT event wake-ups.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Nov 21, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 56 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
1bd4f39f-6c0f-4244-8a70-fde46a476f2c
Commits
-
Reviewing files that changed from the base of the PR and between be65d89 and 1eb31fd.
Files ignored due to path filters: 1
-
pkgs/fleet/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 29
-
AGENTS.md
doc/agents/fleet-command-channel.md
pkgs/fleet/Cargo.toml
pkgs/fleet/README.md
pkgs/fleet/crates/fleet-bridge/Cargo.toml
pkgs/fleet/crates/fleet-bridge/src/lib.rs
pkgs/fleet/crates/fleet-bridge/src/tests.rs
pkgs/fleet/crates/fleet-config/src/lib.rs
pkgs/fleet/crates/fleet-registry/src/lib.rs
pkgs/fleet/crates/fleet/Cargo.toml
pkgs/fleet/crates/fleet/src/main.rs
pkgs/fleet/docs/verbs.md
pkgs/fleet/smoke.sh
pkgs/message-bridge/worker/README.md
pkgs/message-bridge/worker/src/auth.js
pkgs/message-bridge/worker/src/events.js
pkgs/message-bridge/worker/src/fleet.js
pkgs/message-bridge/worker/src/index.js
pkgs/message-bridge/worker/src/mcp.js
pkgs/message-bridge/worker/src/messages.js
pkgs/message-bridge/worker/src/oauth.js
pkgs/message-bridge/worker/src/page.js
pkgs/message-bridge/worker/src/routes.js
pkgs/message-bridge/worker/test/bridge.test.mjs
pkgs/message-bridge/worker/test/events.test.mjs
pkgs/message-bridge/worker/test/fleet.test.mjs
pkgs/message-bridge/worker/test/oauth.model.test.mjs
pkgs/message-bridge/worker/test/oauth.test.mjs
scripts/fleet/bridge-mailbox.py
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-21T05:55:28.004690Z |
8bdca6a |
Draft marked ready |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…claude/project-thread-c53ycw
# Conflicts:
# pkgs/fleet/crates/fleet/Cargo.toml
This was referenced Nov 21, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|