Skip to content

fleet bridge: per-verb --help for every bridge verb - #13213

Merged
dezren39 merged 1 commit into
mainfrom
lane-rt-13197
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-rt-13197

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Closes #13197.

What

fleet bridge <verb> --help now prints that verb's own usage instead of the one shared whole-domain text the issue reported:

  • fleet-bridge: new verb_usage(verb) returning each verb's section of USAGE (send, agents, log, hello, inbox, post, ack, health) plus the shared footer. The footer is factored out as USAGE_FOOTER, and a test pins USAGE to end with it so the two cannot drift.
  • run(): help still wins over every other argument (the repo-queue CLI has no discoverable usage: every --help is rejected and bare list hides actionable work #10838 convention) — <verb> --help/-h prints the verb's own usage, an unknown verb falls back to the whole-domain USAGE, and bare/top-level help is byte-for-byte what it was.
  • Book (DOC-01 docs-sync): book/reference/bridge.md and book/concepts/bridge.md drop the "known discrepancy" note and state the per-verb help as it now behaves.

Verification (laptop worktree at the PR head)

  • cargo test -p fleet-bridge — 17 passed / 0 failed, including the new every_verb_has_its_own_help oracle: every verb execute() dispatches has help that starts with its own usage line, ends with the shared footer, and is not the shared USAGE text; an unknown verb returns None.
  • cargo fmt --check -p fleet-bridge — clean.
  • Built binary, end-to-end: fleet bridge send --help prints send's own usage + footer (exit 0); fleet bridge ack --help prints ack's; fleet bridge bogus --help falls back to the whole-domain usage; fleet bridge --help still prints the domain page.
  • Clippy note: cargo clippy -p fleet-bridge fails in this worktree with a pre-existing toolchain-cache error (E0514, serde compiled by an incompatible rustc, in unrelated dependency crates) before reaching this crate's code; the test build compiles the change cleanly. CI on main is the clippy gate.

Show it working
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The bridge domain's status line advertises `fleet bridge <command>
--help`, but run() answered every help request with the one shared
whole-domain USAGE text. Add verb_usage(): each verb (send, agents,
log, hello, inbox, post, ack, health) returns its own section of
USAGE plus the shared defaults/exit-codes footer (USAGE_FOOTER, pinned
by a test to stay USAGE's own tail). run() now prints the verb's own
usage for `<verb> --help`/`-h`, falls back to USAGE for unknown verbs,
and keeps bare/top-level help unchanged — the #10838
help-wins convention the queue client already follows.

Book (DOC-01): the bridge reference and concepts chapters no longer
carry the known-discrepancy note; they state the per-verb help as it
now behaves.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

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 15 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: 51252606-6192-439c-ad34-ffed4c87a59c
Commits

Reviewing files that changed from the base of the PR and between 095714b and 847bfd6.

Files selected for processing: 4

  • pkgs/fleet/book/concepts/bridge.md
  • pkgs/fleet/book/reference/bridge.md
  • pkgs/fleet/crates/fleet-bridge/src/lib.rs
  • pkgs/fleet/crates/fleet-bridge/src/tests.rs
  • 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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
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-23T11:02:17.883745Z 847bfd6 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fleet bridge: status line advertises per-verb --help, but every verb returns one shared USAGE text

1 participant