Repository navigation
fix(fleet): close the remaining fleet help gaps (#13175) - #13232
Merged
Merged
Conversation
Every item verified against a binary built from current main first; the bridge per-verb bullet was already fixed by #13197 and is not repeated here. - queue TOP_USAGE: release/heartbeat/checkpoint/park/block/fail/ complete lines now list [--lane <id>]; the fallback line lists the full subcommand set (complete included). New parity test compares each single-verb TOP_USAGE line's flags against that verb's own usage synopsis so the two cannot drift apart again. - queue fallback GROUP_USAGE: scan line corrected to scan [--repo <repo>] [--limit <1..100>] [--lease-min <minutes>]. - queue session status/result --help: a help flag after the subcommand prints the session usage and exits 0 instead of being looked up as a session handle. - queue surfaces --help: prints a short usage instead of being ignored (it printed the registry JSON). - agent: per-verb help via verb_usage() on the #13197 bridge pattern (kinds/enroll/doctor/next/shortlist); unknown verbs keep the shared USAGE. USAGE_FOOTER pins the shared tail. - gh tiers --help prints its own usage (was exit 2); gh closures --help prints its own usage (was silent exit 0); the gh usage synopsis gains the missing closures line. - serve queue-broker/secrets-broker --help prints the role's own usage (env configuration surface); a serve list with --help prints the serve domain help instead of dying in parse_serve_list. - shell --help reaches the shell's own usage when the Agent capability is available, instead of the registry domain help that lists only targets. - built-ins: version/capabilities/help with a lone --help print their own short usage and exit 0; any other trailing argument still errors exit 2. - laptop-agent: a help token before the -- separator (not swallowed as an option value) prints USAGE and exits 0 before any transport; poll --help no longer polls a job named --help. Tests: fleet-queue 565 passed + 1 pre-existing failure on main (sweep_wiring call-shape drift, filed as #13230); fleet-agent 93; fleet-laptop-agent 20; fleet bin 122. Book chapters updated in the same change per DOC-01 (builtins, agent, gh, laptop-agent, queue-core, queue-lifecycle, queue-dispatch, queue-fallback, serve, shell, concepts/agents, concepts/placement, concepts/gh, and the dispatch tutorial); fleet-docs builds clean.
|
Warning Review limit reachedYou'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 42 minutes. View limit details
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. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
# Conflicts: # pkgs/fleet/book/reference/laptop-agent.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #13175.
Every bullet of #13175 was re-verified against a binary built from current main before fixing. One bullet was already stale: bridge per-verb help landed with #13197 (PR #13213), so it is not repeated here. One same-class gap found during verification is included:
queue surfaces --helpwas ignored and printed the registry JSON.What changed
[--lane <id>]; the fallback line lists the full subcommand set (completeincluded). New parity test (top_usage_lines_match_per_verb_usage) compares each single-verb TOP_USAGE line's flag set against that verb's own usage synopsis so the two cannot drift apart again.scan [--repo <repo>] [--limit <1..100>] [--lease-min <minutes>].status/resultprints the session usage, exit 0, instead of being looked up as a session handle (no session with handle --help).--helpprints a short usage instead of the registry.verb_usage()on the fleet bridge: status line advertises per-verb --help, but every verb returns one shared USAGE text #13197 bridge pattern (kinds/enroll/doctor/next/shortlist); unknown verbs keep the shared USAGE;USAGE_FOOTERpins the shared tail.tiers --helpprints its own usage (was exit 2);closures --helpprints its own usage (was silent exit 0); the gh usage synopsis gains the missingclosuresline.serve queue-broker --help/serve secrets-broker --helpprint the role's own usage (its environment configuration surface); a serve list with--helpprints the serve domain help instead of dying inparse_serve_list.fleet shell --helpreaches the shell's own usage when the Agent capability is available, instead of the registry domain help that lists onlytargets.version/capabilities/helpwith a lone--helpprint their own short usage, exit 0; any other trailing argument still errors exit 2.--separator (not swallowed as an option's value) prints USAGE and exits 0 before any transport;poll --helpno longer polls a job named--help.Verification
turso_queue::closed_bound::tests::sweep_wiring_runs_the_detective_beside_the_recheckersexpects a call shape thatcore.rsoutgrew when it gained.unwrap_or(200); both files are untouched by this PR) and is filed as fleet-queue: sweep_wiring test expects a stale call shape (core.rs gained .unwrap_or(200)) #13230.version extrastill exit 2,gh closureswith two items still exit 2).nix build .#fleet-docsbuilds clean.{ "direct_parent": null, "links": [], "lineage": { "design": null, "roadmap_item": null, "priority": null }, "pm_meta": 1, "provenance": { "queue_id": null, "scheduled_start": null, "picked_up_at": null, "work_started_at": null, "created_at": "2026-11-23T11:48:31Z", "session_id": null, "lane": null, "host": "amd", "worktree": "/home/user/wt-lane-sh-13175", "model": null, "lane_start_issues": [], "workspace_ref": { "kind": "worktree", "id": "/home/user/wt-lane-sh-13175", "repo": "developing-today/code", "branch": "lane-sh-13175", "sha": "8ea847091dad353fba2947b7f2d8a968b45af3f6" }, "auth_subject": "oc-code-04", "stamped_by": "fleet 0.1.0 (native)" } }Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.