GeezerVison is showing github.com — fleet step 3 (#5431): the proxy domain — serve, connect, init, hello, shims by dezren39 · Pull Request #5515 · developing-today/code
Conversation
dezren39
commented
Nov 4, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Step 3 of epic #5412, closing #5431: the proxy domain.
What ships (pkgs/fleet):
- New crate
fleet-proxy: fleet proxy serve — the session broker on the historical socket path with the Python broker's semantics (per-port CONNECT-tunnel pools 4799/4800/4801, token files read per request and never stored, startup preconnect, keepalive that never resets the idle exit); fleet proxy connect / fleet init — the client (ensure-broker autostart, hello negotiation, PATH shim regeneration from the negotiated services map, a --request diagnostic round-trip, and the --stdio ProxyCommand relay).
- The hello (fleet-proxy-proto) rides the client↔broker leg; the services map it returns IS the routing table. The broker also serves the legacy proto-0 dialect (peeked first frame) and the client falls back to it — both migration directions work at once. Out-of-window hello →
proto_too_old → exit 69.
fleet-proxy-proto framing corrected to the live wire: 8-byte big-endian length prefix. The design note §4 said 4-byte and step 1 implemented 4-byte; nothing live ever spoke it, and it had silently broken fleet-secrets' broker source (masked by its bws fallback). fleet-config's secrets token default now matches the live system (~/tools/secrets-broker-token); a broker default token file constant added for the same reason.
fleet init restored as a top-level verb (step 2's dispatch rework had dropped it): strict no-op when a broker answers, spawns only when none does.
- fleet-queue's broker auto-start prefers a sibling
fleet binary (fleet proxy serve), Python spawn kept for the standalone rollback builds.
- smoke.sh: hermetic proxy end-to-end section (auto-start, round-trips on both routed ports, shim materialization + stale-shim removal on a services-map change, init no-op with broker-identity check, connect-variant behavior, legacy proto-0 interop, idle-exit-under-keepalive) — 55/55. Workspace tests 42/42, clippy clean. Connect sizes: 751,168 (dynamic) / 902,560 (static) — inside the D7 gate.
Live migration, as sequenced by the note (additive first): the new client proved itself against the still-running Python broker (legacy fallback, real /health); then the broker role flipped on the same socket path; then every consumer re-proved: laptop-agent.py health, repo-queue health (the live queue), secrets-broker /health, fleet proxy connect (proto 1), fleet init no-op, and a one-off SSH session through fleet proxy connect --stdio. Sandbox ~/tools/fleet runs this branch's head rev; init-ensure prefers fleet with the Python fallback.
Not taken, per the note's own gate: the SSH ProxyCommand re-point. "SSH retires last … only after SSH-through-fleet proven over days, not minutes." laptop-proxy-connect.py and laptop-ssh.sh are untouched and remain the default; the proof period started 2026-11-04.
One implementation finding from the live proof: std::io::copy (splice(2) on Linux) stalls mid-stream between a socket and a pipe under the sandbox runtime — the stdio relay uses explicit read/write pumps, the Python relay's exact syscall shape.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
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
… shims
fleet-proxy crate: the session broker (fleet proxy serve) with the
Python brokers semantics — 8-byte framed JSON on the historical
socket, per-port CONNECT-tunnel pools, per-request token files,
keepalive that never resets the idle exit — plus the client
(fleet proxy connect / fleet init): ensure-and-hello, PATH shim
regeneration from the negotiated services map, and the --stdio
ProxyCommand relay.
fleet-proxy-proto framing corrected to the live wires 8-byte
big-endian prefix (the design note and step 1 said 4-byte; nothing
live ever spoke it — it silently broke fleet-secrets broker
source, which also pointed at a token path the live system does
not have; fleet-configs default now matches ~/tools/).
Interoperability both directions: the fleet broker serves the
legacy proto-0 dialect (peeked first frame) and the fleet client
falls back to it when a legacy broker answers the hello; an
out-of-window hello gets proto_too_old and exit 69.
fleet init restored as a top-level verb (dropped in step 2s
dispatch rework) with strict no-op-when-running semantics;
repo-queues broker auto-start prefers a sibling fleet binary.
smoke.sh: hermetic proxy end-to-end section (auto-start,
round-trips, shim add/remove on map change, init no-op, legacy
interop, idle exit) replacing the skeleton-stub assertions.
…ault port is the concrete 4799, Python parity); stub wording names the domain
io::copy lowers to splice(2) on Linux; under the sandbox runtime
splice between a socket and a pipe stalls mid-stream — the SSH
handshake through fleet proxy connect --stdio froze after a few KB
in either direction (banner/KEX phases, varying stall points)
while laptop-proxy-connect.py (recv/sendall) ran the same path
instantly. The pump now uses the Pythons exact syscall shape;
SSH-through-fleet verified live.
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 29 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:
637cb168-d139-4ee6-b217-68bc8beaae3f
Commits
-
Reviewing files that changed from the base of the PR and between 2b520e5 and 0377b9a.
Files ignored due to path filters: 1
-
pkgs/fleet/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 16
-
pkgs/fleet/Cargo.toml
pkgs/fleet/README.md
pkgs/fleet/crates/fleet-config/src/lib.rs
pkgs/fleet/crates/fleet-proxy-proto/src/lib.rs
pkgs/fleet/crates/fleet-proxy/Cargo.toml
pkgs/fleet/crates/fleet-proxy/src/client.rs
pkgs/fleet/crates/fleet-proxy/src/http.rs
pkgs/fleet/crates/fleet-proxy/src/lib.rs
pkgs/fleet/crates/fleet-proxy/src/serve.rs
pkgs/fleet/crates/fleet-proxy/src/shims.rs
pkgs/fleet/crates/fleet-proxy/src/stdio.rs
pkgs/fleet/crates/fleet-proxy/src/tunnel.rs
pkgs/fleet/crates/fleet-queue/src/client.rs
pkgs/fleet/crates/fleet/Cargo.toml
pkgs/fleet/crates/fleet/src/main.rs
pkgs/fleet/smoke.sh
- 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
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-04T14:51:38.906106Z |
0377b9a |
PR opened |
ℹ️ 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.
This was referenced Nov 4, 2026
This was referenced Nov 5, 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.
|