Skip to content

flare-cli, debian: sync flare.1 subcommands and fix "an orbit" wording - #687

Merged
lukealonso merged 1 commit into
NVIDIA:mainfrom
jcartu:fix/debian-manpage-and-orbit-grammar
Dec 3, 2026
Merged

lukealonso merged 1 commit into
NVIDIA:mainfrom
jcartu:fix/debian-manpage-and-orbit-grammar

Conversation

@jcartu

@jcartu jcartu commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #452

The Debian manual page packaging/debian/flare.1 documented only three of the nine visible flare CLI subcommands (run, agent, and orbit), omitting download, inspect, doctor, trust, models, and parallax, and its run summary omitted downloading prepared cores from Hugging Face. Separately, four strings and doc comments in flare-cli/src/orbit/ used "a orbit" instead of "an orbit", including the user-visible systemd unit Description installed by flare agent install and the core-access error returned by flare orbit run.

Before this change, packaging/debian/flare.1 .SH COMMANDS listed only run, agent, and orbit, and four locations under flare-cli/src/orbit/ wrote "a orbit". After this change:

  • packaging/debian/flare.1 .SH COMMANDS documents all nine visible subcommands defined in flare-cli/src/cli.rs (run, download, inspect, doctor, agent, orbit, trust, models, and parallax) in CLI help order with summaries aligned with flare --help.
  • flare-cli/src/orbit/agent.rs changes the generated systemd user unit Description from a orbit's to an orbit's; flare-cli/src/orbit/controller.rs changes the node-held core resolution error message and the CoreReference::Node doc comment from a orbit to an orbit; and flare-cli/src/orbit/mod.rs changes the PROTOCOL_VERSION doc comment from a orbit to an orbit.
  • flare-cli/src/cli.rs adds cli::tests::debian_man_page_documents_every_visible_subcommand to verify that packaging/debian/flare.1 .SH COMMANDS matches the visible subcommands in Cli::command(), and flare-cli/src/orbit/agent.rs extends orbit::agent::tests::systemd_unit_quotes_core_cache_with_spaces_and_percent to assert the updated Description line.

As a result, man 1 flare installed by the flare-inference Debian package documents every visible flare subcommand accurately, future CLI subcommand additions are checked against packaging/debian/flare.1 by flare-cli unit tests, and Orbit systemd unit metadata and diagnostics use grammatical English without changing runtime behavior or core compatibility.

Validation:

  • Built the release flare binary (cargo build --locked --release --manifest-path flare-cli/Cargo.toml --bin flare) and compared flare --help directly against packaging/debian/flare.1.
  • Checked troff warnings and rendered output with groff -man -Tutf8 -ww -z packaging/debian/flare.1 (zero warnings) and groff -man -Tutf8 packaging/debian/flare.1.
  • Ran cargo test --locked --release --manifest-path flare-cli/Cargo.toml: 246 executed tests passed across src/main.rs (220 passed, 3 ignored), tests/cache_commands.rs (9 passed), tests/cli.rs (6 passed), tests/inspect.rs (4 passed), and tests/unverified_payload.rs (7 passed), including cli::tests::debian_man_page_documents_every_visible_subcommand and orbit::agent::tests::systemd_unit_quotes_core_cache_with_spaces_and_percent. The 3 ignored unit tests require explicit multi-host or legacy-core fixtures (export_signed_payload_distribution_fixture, receive_rank_accepts_old_metadata_with_empty_platform, serve_ring_transfer_fixture) and were not run.
  • Ran grep -rni "a orbit" . --exclude-dir=.git and confirmed zero matches across the repository.
  • Unrun checks: the Docker .deb package build (./scripts/build_deb.sh) and systemctl --user service installation were not run.

Discord: jcartu

The Debian manual page `packaging/debian/flare.1` listed only three of the
nine visible `flare` CLI subcommands (`run`, `agent`, and `orbit`), omitting
`download`, `inspect`, `doctor`, `trust`, `models`, and `parallax`, while its
`run` summary did not mention downloading prepared cores from Hugging Face.
Separately, four strings and doc comments in `flare-cli/src/orbit/` used the
indefinite article "a orbit" instead of "an orbit", including the user-visible
systemd unit `Description` installed by `flare agent install` and the core
resolution error returned by `flare orbit run`.

Before this change, `packaging/debian/flare.1` `.SH COMMANDS` documented only
`run`, `agent`, and `orbit`, and four locations in `flare-cli/src/orbit/`
contained "a orbit". After this change:
- `packaging/debian/flare.1` `.SH COMMANDS` documents all nine visible
  subcommands defined in `flare-cli/src/cli.rs` (`run`, `download`, `inspect`,
  `doctor`, `agent`, `orbit`, `trust`, `models`, and `parallax`) in CLI help
  order with summaries matching `flare --help`.
- `flare-cli/src/orbit/agent.rs` updates the generated systemd unit
  `Description` from `a orbit's` to `an orbit's`;
  `flare-cli/src/orbit/controller.rs` updates the core-access error message
  and the `CoreReference::Node` doc comment from `a orbit` to `an orbit`; and
  `flare-cli/src/orbit/mod.rs` updates the `PROTOCOL_VERSION` doc comment from
  `a orbit` to `an orbit`.
- `flare-cli/src/cli.rs` adds `cli::tests::debian_man_page_documents_every_visible_subcommand`
  to assert that `packaging/debian/flare.1` `.SH COMMANDS` matches the visible
  subcommands in `Cli::command()`, and `flare-cli/src/orbit/agent.rs` extends
  `orbit::agent::tests::systemd_unit_quotes_core_cache_with_spaces_and_percent`
  to assert the updated `Description` line.

Debian package users reading `man 1 flare` now see the complete set of visible
CLI subcommands with accurate descriptions, future CLI subcommand additions
cannot silently drift from `packaging/debian/flare.1` without failing
`flare-cli` unit tests, and Orbit systemd unit metadata and diagnostics use
grammatical English without changing runtime behavior or core compatibility.

Validation:
- Built the release `flare` binary (`cargo build --locked --release --manifest-path flare-cli/Cargo.toml --bin flare`)
  and verified `flare --help` against `packaging/debian/flare.1`.
- Checked troff formatting and rendering with
  `groff -man -Tutf8 -ww -z packaging/debian/flare.1` (zero warnings) and
  `groff -man -Tutf8 packaging/debian/flare.1`.
- Ran `cargo test --locked --release --manifest-path flare-cli/Cargo.toml`:
  all 246 executed tests passed across `src/main.rs` (220 passed, 3 ignored),
  `tests/cache_commands.rs` (9 passed), `tests/cli.rs` (6 passed),
  `tests/inspect.rs` (4 passed), and `tests/unverified_payload.rs` (7 passed),
  including `cli::tests::debian_man_page_documents_every_visible_subcommand`
  and `orbit::agent::tests::systemd_unit_quotes_core_cache_with_spaces_and_percent`.
  The 3 ignored unit tests require explicit multi-host or legacy-core fixtures
  (`export_signed_payload_distribution_fixture`,
  `receive_rank_accepts_old_metadata_with_empty_platform`,
  `serve_ring_transfer_fixture`) and were not run.
- Ran `grep -rni "a orbit" . --exclude-dir=.git` and confirmed zero matches.
- Limitations: the full Docker Debian package build (`./scripts/build_deb.sh`)
  and `systemctl --user` service installation were not executed in this
  environment.

Fixes NVIDIA#452

Signed-off-by: Joshua Cartu <jcartu@users.noreply.github.com>
Design-Signed-Off-By: Antigravity (Gemini 4 Neon); design-review=2e5b
@flare-autobot

Copy link
Copy Markdown
Collaborator

A case file has been opened for 687.
Case File Intake Report

Future reviews will auto-run 90 minutes after code updates are pushed.

  • Re-review sooner: Call @flare-autobot after push.
  • Opt-out: Include #autobot:ignore in the PR or any comment.

@flare-autobot flare-autobot added area:packaging Package assembly, verification, distribution, inspection, and loading. bug Something isn't working triage:review Proposed change needs code review; this does not imply merge readiness. labels Dec 2, 2026
@flare-autobot

Copy link
Copy Markdown
Collaborator

Autobot Review

Full Review · Value Proposition · Case File

Recommendation: Ready To Merge

PR #687 cleanly fixes both halves of maintainer-confirmed issue #452: flare.1 .SH COMMANDS now matches all nine visible subcommands (with a regression test), and all four "a orbit" → "an orbit" occurrences are fixed. Every changed line was verified at head 4130f7a; wait for the Native serving CI workflow (ubuntu-24.04, windows-2022) to report green before merging.

  • Blockers: 0 · Should fix: 0 · Subtract/Simplify: 1 · Nits: 1
Walkthrough
  • packaging/debian/flare.1:12-43: Expands .SH COMMANDS from 3 entries (run, agent, orbit) to all 9 visible subcommands in Cli::command() declaration/help order (run, download, inspect, doctor, agent, orbit, trust, models, parallax with .BR worker . alias), updating run to cover Hugging Face prepared-core downloads.
  • flare-cli/src/cli.rs:2421-2456: Adds cli::tests::debian_man_page_documents_every_visible_subcommand, parsing .B <cmd> entries in .SH COMMANDS and asserting ordered equality against visible subcommands from Cli::command().
  • flare-cli/src/orbit/agent.rs:2610,4888-4890: Changes the generated systemd user unit Description= from "a orbit's" to "an orbit's" and adds an assertion covering the updated Description= line in systemd_unit_quotes_core_cache_with_spaces_and_percent.
  • flare-cli/src/orbit/controller.rs:204,1163: Fixes "a orbit" → "an orbit" in the CoreReference::Node doc comment and the node-held core resolution error message.
  • flare-cli/src/orbit/mod.rs:36: Fixes "a orbit" → "an orbit" in the PROTOCOL_VERSION doc comment.
Merge Risk: Low · up to 4130f7a
  • Touches only Debian man-page prose (packaging/debian/flare.1), two doc comments, one error-message literal (flare-cli/src/orbit/controller.rs:1163), one systemd unit Description= literal (flare-cli/src/orbit/agent.rs:2610), and unit tests.
  • Zero runtime hot-path, concurrency, memory, wire-protocol, or core-compatibility impact (PROTOCOL_VERSION remains 7 at flare-cli/src/orbit/mod.rs:37; systemd_unit() directives After=, ExecStart=, Restart=, RestartSec=, and WantedBy= are unchanged).
  • The new unit test (flare-cli/src/cli.rs:2421-2456) uses str::lines() (safe on both LF and Windows CRLF checkouts) and filters hidden subcommands including Unix-only CheckpointTransport (cli.rs:61-66), so Linux and Windows CI test parity holds.
Pre-merge checks: ✅ 3 passed · ⚠️ 1 warning
  • ✅ Security / malicious screen: Pure docs, English grammar string fixes, and a read-only unit test; no executable behavior, network, auth, or dependency changes.
  • ✅ Charter & value fit: Directly resolves maintainer-triaged issue Debian man page documents 3 of the 7 CLI subcommands, and the agent unit reads "a orbit's" #452 (bad docs + user-visible wording bug) with a minimal, well-scoped diff and no non-goal expansion.
  • ✅ Related / duplicate / conflict check: No competing or overlapping open PRs; no commits on main since branch point touch the five changed files or alter Command subcommands; repo-wide case-insensitive search for "a orbit" at 4130f7a returns zero matches.
  • ⚠️ Tests & verification evidence: Author verified groff -man -Tutf8 -ww -z (zero warnings) and cargo test --locked --release --manifest-path flare-cli/Cargo.toml (246 passed, 3 fixture-gated ignored), and explicitly noted ./scripts/build_deb.sh and systemctl --user install unrun (acceptable given no packaging-script or unit-directive changes); however, no CI check run has reported yet on head 4130f7a — confirm .github/workflows/native-serving.yml passes on both ubuntu-24.04 and windows-2022 before merging.

Have your agent review the Full Review for complete verified findings, file:line citations, and suggested changes.

To opt out, include #autobot:ignore in your post or comment.

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

Labels

area:packaging Package assembly, verification, distribution, inspection, and loading. bug Something isn't working triage:review Proposed change needs code review; this does not imply merge readiness.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Debian man page documents 3 of the 7 CLI subcommands, and the agent unit reads "a orbit's"

3 participants