Repository navigation
Closed
Labels
app/fleetpkgs/fleet multicall binary + platform cratespkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
fleet(proxy): proxy connect --help and init --help report help through the error channel — exit 2 on stderr instead of usage on stdout at exit 0
Summary
Two fleet proxy leaves answer a help request as if it were a usage
error. Every other leaf in the binary prints its usage to stdout and
exits 0 when asked (proxy serve --help since #5575, dispatch status/launch/enqueue --help since #5560, search --help, the root
and domain help). These two are the remaining outliers:
fleet proxy connect --help/-h— exit 2, usage text on
stderr prefixedfleet:, nothing on stdout.fleet init --help/-handfleet proxy init --help— exit
2, stderrfleet: fleet init takes no arguments (got "--help"):
the help flag is reported as an illegal argument.
Scripts and agents that probe a leaf with --help (the standard
"how do I call this" check, and the smoke-harness pattern) read a
failure where the binary was simply asked for its own usage.
Evidence (verified this run, real binary built from laptop primary @4733d598f, temp HOME)
$ fleet proxy connect --help → exit 2, stdout empty, stderr: fleet: usage: fleet proxy connect [--print-path] [--stdio [--host H] [--port N]] [--request METHOD PATH [--service-port N] [--token-file F] [--body JSON]]
$ fleet proxy connect -h → exit 2 (same)
$ fleet init --help → exit 2, stderr: fleet: fleet init takes no arguments (got "--help")
$ fleet init -h → exit 2 (same)
$ fleet proxy init --help → exit 2 (same)
controls:
$ fleet proxy serve --help → exit 0, usage on stdout
$ fleet dispatch status --help → exit 0, usage on stdout
$ fleet search --help → exit 0, usage on stdout
$ fleet --help → exit 0
Root cause (file:line at 4733d59)
pkgs/fleet/crates/fleet-proxy/src/client.rs:335-343—
ConnectArgs::parsehandles--help/-hby returning
Err(ClientError::Usage(<usage text>));ClientError::Usage
maps to exit 2 (client.rsexit_code()), and the caller in
pkgs/fleet/crates/fleet/src/main.rs:589-595prints it with
eprintln!("fleet: {e}"). The usage text exists — it is only
reachable through the error channel.pkgs/fleet/crates/fleet-proxy/src/client.rs:435-446—
run_initrejects any non-empty argv with the usage error
before checking for a help flag, so--help/-hhit the
"takes no arguments" rejection. Both entry points land here:
rootfleet init(main.rs:692→cmd_init→run_init_call,
main.rs:610) andfleet proxy init(main.rs:605).
No pinning test covers either leaf's help behavior (client.rs
has no test module).
Why it matters
- Consistency is the multicall binary's contract (epic epic: one
fleetmulticall binary — search, queue, dispatch, proxy — with capability-selected builds #5412): the
fleet: serve <role> --help (and the queue-broker/secrets-broker argv0 aliases) starts the daemon instead of printing help #5488/fleet dispatch status silently ignores all arguments — --help performs a live GET /health and typos are swallowed #5560/fleet:proxy serve --help(and any trailing argument) silently starts the session-proxy daemon #5575 fixes established "help flag at a leaf prints
usage, exit 0, no side effects" leaf by leaf; these are the two
leaves that series missed. fleet initis the autostart door run from shell/tool startup
lines — the leaf an operator is most likely to probe with
--helpwhen wiring it up, and the one that currently answers
with an error naming the help flag as illegal input.
Acceptance criteria
fleet proxy connect --helpand-hprint the connect usage to
stdout and exit 0, with no broker connection or spawn attempted.fleet init --help/-handfleet proxy init --help/-h
print the init usage to stdout and exit 0, with no probe, spawn,
or shim sync attempted.- Non-help argument handling is unchanged:
fleet init <bogus>
still exits 2 naming the argument;proxy connectunknown
arguments still exit 2. - New pinning tests cover both leaves' help forms (and the init
non-help rejection), in the style of the existing
proxy_serve_args_classify_help_and_reject_strays/
status_help_and_rejection_need_no_servicetests. cargo test -p fleet -p fleet-proxygreen on the laptop or CI;
cargo fmtclean.
Metadata
Metadata
Assignees
Labels
app/fleetpkgs/fleet multicall binary + platform cratespkgs/fleet multicall binary + platform crateskind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/lowNice to have; do when convenientNice to have; do when convenientsource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 4, 2026
CODE-1392
dezren39 commentedon Nov 4, 2026
🤖 Agent note · filed
proxy connect --help/-handinit --help/-h(both entry points) print usage to stdout at exit 0, mirroring the fleet dispatch status silently ignores all arguments — --help performs a live GET /health and typos are swallowed #5560/fleet:proxy serve --help(and any trailing argument) silently starts the session-proxy daemon #5575 leaf-help pattern; non-help rejection unchanged; pinning tests added.creator-a/5619-proxy-help-exit(pending)fix(fleet-proxy): proxy connect/init --help prints usage at exit 0 (#…
dezren39 commentedon Nov 4, 2026
🤖 Agent note · done
proxy connect --help/-handinit --help/-h(root +proxy init) now print usage to stdout at exit 0; non-help rejection unchanged.cargo test -p fleet -p fleet-proxygreen on the laptop (new pinsproxy_connect_and_init_help_exit_ok,init_help_succeeds_without_touching_the_broker); fixed binary re-probed (all help forms exit 0 on stdout,--bogusforms still exit 2).