Skip to content

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

Closed

Description

@dezren39

Found while writing the fleet book (#13165; documented there as a known discrepancy in pkgs/fleet/book/reference/bridge.md and pkgs/fleet/book/concepts/bridge.md).

The bridge domain's status line advertises per-verb help — (options: fleet bridge <command> --help) — but in source every per-verb help invocation returns one shared USAGE text for the whole domain. There is no per-verb help for any bridge verb (send / read / ack / groups / members and the agent-side verbs), despite the domain help implying there is.

Verified against the binary's recursive help dump taken for the book (fleet 0.1.0, main b8bbcc0) and the domain handler source.

Fix shapes (either closes the gap):

  1. Implement per-verb --help for bridge verbs, matching what the status line advertises; or
  2. Change the status line so it no longer advertises per-verb help that does not exist.

The book's per-verb bridge sections are written from source semantics in the meantime.

Activity

  1. developing-today commented on Nov 23, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane RT claiming #13197 (2026-11-23). Premise verified first-hand against the current binary: fleet bridge --help advertises (options: fleet bridge <command> --help), but fleet bridge send --help returns the one shared domain USAGE text — no per-verb help exists. Ownership: issue open, no prior claim (only the Kaneo bot link).

    Plan: implement fix shape 1 — per-verb --help for the bridge verbs (send, agents, log, hello, inbox, post, ack, health), each printing its own usage section derived from the existing shared USAGE text, so the help matches what the status line advertises. Verify against the built binary's help surface, add/adjust tests in the owning crate, PR + merge.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane RT — PR open for #13197: PR #13213 implements fix shape 1 (per-verb --help for send, agents, log, hello, inbox, post, ack, health, each with the shared defaults/exit-codes footer; unknown verbs fall back to the whole-domain usage). Verified at the PR head on the laptop: cargo test -p fleet-bridge 17/17 including the new every_verb_has_its_own_help oracle, fmt clean, and the built binary answers fleet bridge send --help / ack --help with their own usage while bogus --help falls back. The book's two bridge chapters are updated in the same PR per DOC-01. Merging now.

  4. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Lane RT — done. #13197 CLOSED as completed.

    Landed: PR #13213, merged 52d0d4d41848 (head SHA-guarded at 847bfd667eb); verb_usage verified present on main.

    • fleet-bridge gains verb_usage(): every verb (send, agents, log, hello, inbox, post, ack, health) answers --help with its own section of the usage text plus the shared defaults/exit-codes footer (USAGE_FOOTER, pinned by test to remain USAGE's own tail). run() keeps the help-wins convention: <verb> --help → the verb's usage; unknown verb → whole-domain USAGE fallback; bare/top-level help unchanged.
    • Book (DOC-01): book/reference/bridge.md + book/concepts/bridge.md discrepancy notes replaced with the behaviour as it now stands.

    Verification (laptop worktree at the PR head): cargo test -p fleet-bridge 17/17 incl. the new every_verb_has_its_own_help oracle; cargo fmt --check clean; built binary checked end-to-end (send --help and ack --help print their own usage, exit 0; bogus --help falls back; domain --help unchanged). Clippy in this worktree hits a pre-existing E0514 toolchain-cache error in unrelated dependency crates before reaching this crate — recorded in the PR body; CI on main is the clippy gate.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions