PR #687 — flare-cli, debian: sync flare.1 subcommands and fix "an orbit" wording
Author: jcartu · Open, ready for review · +69/−7 in 5 files · head 4130f7aa · fixes #452
Key findings
- The new test enforces subcommand names and order, not summaries.
cli::tests::debian_man_page_documents_every_visible_subcommand(flare-cli/src/cli.rs:2421-2456) collects every.Bline between.SH COMMANDSand the next.SHandassert_eq!s that list againstCli::command()'s visible subcommands (cli.rs:2446-2455). The summary text under each tag is never compared. Issue #452's "Expected" asked for entries "with the same one-line summary the binary prints"; those summaries can still drift silently. The PR body's wording is "summaries aligned withflare --help", which is accurate but weaker than the issue's ask — the new summaries are paraphrases (e.g.agentadds ", or install and manage the agent service" overcli.rs:57;orbitadds ", pairing hosts and managing multi-host serving groups" overcli.rs:59). - The man page's prose outside
.SH COMMANDSis still stale..SH NAMEstill says "serve prepared model packages" (packaging/debian/flare.1:3) and.SH DESCRIPTIONstill reads "The executable also includes a host agent and Orbit cluster management" with no mention ofdoctor,trust,models, orparallax(flare.1:8-11). The PR (and #452) scope only.SH COMMANDS, so "the man page now matches the CLI" holds for the command list alone; the file also still says "model package" where the CLI now says "core" (cli.rs:31), the same chore tracked open atdocs/TODO.txt:164-166. - The test introduces new cross-directory coupling. It reads
env!("CARGO_MANIFEST_DIR")/../packaging/debian/flare.1withstd::fs::read_to_string(cli.rs:2426-2429) and panics if absent. Any build/test offlare-clioutside a full repo checkout now fails.flare-cli/Cargo.toml:7setspublish = false, so no crates.io tarball can hit it, and the.debDocker stage only runscargo build, not tests — but it is a new dependency offlare-cli's test suite onpackaging/(the only comparable read in the crate is a helios test fixture,flare-cli/src/distribution/cache_tests.rs:852-853). - The artifact is Debian-only.
flare.1is hand-maintained (not generated) and installed bypackaging/debian/package.sh:25-26into/usr/share/man/man1/flare.1inside theflare-inference.deb. It ships in no release archive (packaging/archive.pyhas no man page) and not in the container image (Dockerfile:44-46copies binary + LICENSE/NOTICE/PyTorch.txt only);docs/debian.mdnever mentions it. The test therefore guards a surface only.debusers see. - Nothing exercised the page or unit end to end. No CI run on 4130f7aa ("no checks"), zero reviews/comments/reactions, no labels, opened and last updated in the same minute (2026-12-02 20:48). The author ran the 246-test suite,
groff -ww -z(zero warnings) and thegrep -rni "a orbit"sweep, and explicitly declares./scripts/build_deb.shandsystemctl --userinstall unrun — so no evidence the page renders inside a real .deb or the installed unit Description changed on a host.
Change
+69/−7, 5 files, one commit, verified against pr/687:
packaging/debian/flare.1(+25/−3) —.SH COMMANDS(flare.1:12-43) grows from three.TP/.Bentries to nine, incli.rs:42-77declaration order:run,download,inspect,doctor,agent,orbit,trust,models,parallax.runis rewritten from "Load and serve a prepared model package." to "Serve a local core, or download and serve a prepared core from Hugging Face." (fixing the omission of HF core download);agentandorbitsummaries are expanded;parallaxends with.BR worker .so the alias renders "Alias: worker."..SH NAME,.SH DESCRIPTION,.SH OPTIONS,.SH FILES,.SH SEE ALSOare untouched.flare-cli/src/cli.rs(+37) — the new test, in the cross-platform#[cfg(test)] mod tests(module opens atcli.rs:1314), immediately before the Unix-onlymod cache_cli_testsatcli.rs:2459; it importsclap::CommandFactoryinside the test body, adding no production import surface. "Visible" means!is_hide_set(), and the two hidden subcommands (HardwareRevisioncli.rs:52-56,CheckpointTransportcli.rs:61-66) plus clap's generatedhelpare filtered out (cli.rs:2448) — matchingflare --help.flare-cli/src/orbit/agent.rs(+4/−1) — systemd unitDescription"a orbit's" → "an orbit's" (agent.rs:2610, insidesystemd_unit()at:2605-2612), plus three new assert lines pinning that Description in the existing testsystemd_unit_quotes_core_cache_with_spaces_and_percent(agent.rs:4885-4904, assertion at:4888-4890). NoExecStart,Restart,AfterorWantedBychange.flare-cli/src/orbit/controller.rs(+2/−2) —CoreReference::Nodedoc comment "A core a orbit node holds…" → "an orbit node" (controller.rs:204) and the user-visible resolution error "…with NODE a orbit node" → "NODE an orbit node" (controller.rs:1163).flare-cli/src/orbit/mod.rs(+1/−1) —PROTOCOL_VERSIONdoc comment → "of an orbit must share" (mod.rs:36). The constant stays7(mod.rs:37), so no protocol or core-compatibility change.
Nothing in the diff goes beyond the description, and nothing the description claims is missing from the diff.
Why
Issue #452 "Debian man page documents 3 of the 7 CLI subcommands, and the agent unit reads 'a orbit's'" — opened 2026-11-21 18:42 by shieldstar, labels area:packaging, bug, still open, with a precise repro pinned to commit 21a40f05 (build --locked --release, Linux aarch64, no GPU needed). At that commit the CLI had 7 visible subcommands; the man page documented 3 (flare.1:12-21 then), and run's summary lagged --help.
Triage by yatesdr 9 minutes later confirmed both halves and widened the grammar half: besides the unit literal, "the same error also appears in the user-visible text at flare-cli/src/orbit/controller.rs:1140 and in two comments." PR #687 covers exactly those four sites, so the wording fix is issue-driven, not author-invented scope.
The PR is current against main, not the issue's snapshot: doctor was added 2026-11-23 (commit 0067b242, plus DGX Spark checks in #506) and parallax 2026-11-24 (f646bebc / #507), so the page documents 9 where #452 listed 7. The repository's own design doc already lists all nine (docs/cli-design.md:122-143 (not opened)), making the man page the last lagging command surface. docs/TODO.txt has no entry about the man page or flare.1, so #452 was the only tracker. The issue had 2 participants and 1 comment in its 11-day life; interest is issue-level, not community-scale.
Related work
No competing or overlapping PR exists. related_items(687) returns only #452; search_items("man page subcommands") and items_touching("packaging/debian/flare.1") return only #452 and this PR. Nothing proposes generating flare.1 from clap; no open PR touches the systemd Description literal, and no open PR touches flare.1. Nothing is stacked on, superseded by, or undone by this change.
File history: 0a4ecd38 2026-10-19 Jason Cook "Build Ubuntu Debian packages and signed binary APT repositories" created the page with three commands; e7b8c016 2026-10-20 Luke Alonso "Remove specific publishing destinations pending a release path"; 4130f7aa 2026-12-02 this PR. The 3-entry page was written once and never updated through six weeks of subcommand growth.
Adjacent, same spirit, still open: docs/TODO.txt:164-166 "Replace 'package' with 'core' in Ignition help text" — the same wording chore this PR leaves half-done in flare.1:3,10.
Recent activity
No commit on main since the PR branched (c513e46) touches any of its five files. Last 60 days: flare-cli/src — Luke Alonso 21 commits, eugr 4, yatesdr 4; packaging/debian — Luke Alonso 7, yatesdr 5, Jason Cook 2.
The churn that produced the drift: 21b2eae3 (2026-11-23, Hub download), 0067b242 (2026-11-23, Linux PCIe TP>1 flare doctor), f646bebc/#507 (2026-11-24, flare parallax), 5c0d9c67/#666, bf7562ae/#646 (2026-11-30, unify Orbit rank cache + harden flare-agent — the most recent edit around the unit generator), 1fbcc3c9/#667 (2026-12-01, latest merged change in flare-cli/src and controller.rs). Notably #646 and #667 both passed through systemd_unit() and controller.rs without noticing the "a orbit" strings, and no maintainer updated flare.1 for doctor/parallax — the PR conflicts with and reverses none of that work.
People
jcartu (Joshua Cartu), association CONTRIBUTOR. Last 180 days: 3 merged (#505 core-declared FP32 params, #418 strict function-tool schemas, #416 prefix-cache recency — helios/runtime plus docs), 3 closed (#520, #517 Xid 31 report, #404), 4 open (#686, #642, #621, #461). #687 is their first change touching flare-cli/src or packaging/debian; their merged footprint is elsewhere.
Area owners: flare-cli/src — Luke Alonso (21 commits/180d); packaging/debian — Luke Alonso (7), yatesdr (5), Jason Cook (2). The man page was authored by Jason Cook (0a4ecd38) and edited by Luke Alonso (e7b8c016) — neither has engaged with #687, and neither has the triager (yatesdr) or the reporter (shieldstar). jcartu is not one of the charter-named priority contributors (@voipmonitor, @original-el8, @lukealonso), so the PR stands on merits; it addresses a maintainer-confirmed bug and bad docs, which the charter lists under "what gets merged".
Community
Zero engagement so far: 0 comments, 0 reviews, 0 reactions, no labels, single commit, opened and updated 2026-12-02 20:48. The body follows the repo's AGENTS.md:72-80 four-part shape (why / what changed / claimed result / evidence) and ends with "Discord: jcartu", matching the contributor-intake convention.
CI that would exercise the new test: .github/workflows/native-serving.yml:69-73 (not opened) runs cargo test --locked --release --manifest-path flare-cli/Cargo.toml from a full checkout on ubuntu-24.04 and windows-2022, so the Windows job will also run the man-page test (path handling and std::fs are cross-platform; flare.1 is LF-checked-in with no * text=auto rule rewriting it, so the line == ".SH COMMANDS" comparison is safe). The release workflow only builds (release.yml:77) and smoke-tests run|agent|orbit --help (release.yml:118-120), so it never reads the man page.
Project fit
Lines up with the charter ("What gets merged: PRs that address … a reproducible bug, … or bad docs") and with AGENTS.md:43-50 (repo-prose skill for documentation), AGENTS.md:517 (small follow-ups go to docs/TODO.txt), AGENTS.md:238 (Debian package work maps to docs/debian.md). No non-goal is engaged: no new hardware, model, flag, dependency, default or code path. Total footprint is ~37 test lines, ~25 doc lines and four one-word string/comment fixes.
Where it does not line up: the charter's evidence expectations are only partly met (see Claims); and the change sits in a command surface the project documents nowhere else in user-facing prose — docs/debian.md does not mention man 1 flare, and no docs file contains a man 1 flare or manpage reference.
Claims and evidence
| Claim (PR body) | Backing |
|---|---|
| Man page documents all nine visible subcommands in CLI help order | Verified: flare.1:12-43 order equals cli.rs:42-77 visible order, hidden ones excluded |
…"summaries aligned with flare --help" |
Alignment only; the strings are paraphrases, and the new test does not check them (see Key finding 1) |
grep -rni "a orbit" → zero matches |
Verified at pr/687: repo-wide search returns nothing; the four sites now read "an orbit" (agent.rs:2610, controller.rs:204, controller.rs:1163, mod.rs:36) |
246 tests pass (220 main, 9 cache_commands, 6 tests/cli.rs, 4 inspect, 7 unverified_payload; 3 ignored) |
Author-run only; no CI record on the head commit. The 3 ignored unit tests (export_signed_payload_distribution_fixture, receive_rank_accepts_old_metadata_with_empty_platform, serve_ring_transfer_fixture) need multi-host/legacy-core fixtures and are correctly out of scope |
groff -man -Tutf8 -ww -z → zero warnings |
Author-run, plausible: the only new macros are .TP/.B/.BR, and .BR worker . closes with a period argument rendering "worker." |
Explicitly unrun: ./scripts/build_deb.sh, systemctl --user install |
No end-to-end evidence for either the packaged page or the installed unit Description |
No performance or memory claims, so the charter's benchmark rule is not engaged.
Reach
Users: Debian/Ubuntu amd64+arm64 installs of flare-inference see an accurate man 1 flare command list. Every host running flare agent install (source builds included) gets the corrected unit Description, visible in the generated unit file and in systemctl --user status/list-units. flare orbit run users get the corrected core-access error text. Operators, config, defaults, dependencies, protocol: unaffected (PROTOCOL_VERSION stays 7, mod.rs:37).
Risk concentrated in the test: it fails whenever flare-cli is built or tested without the sibling packaging/ directory, and its ordered-equality assertion means any reorder/rename/hide of a visible subcommand — or any future non-command .B line placed inside .SH COMMANDS — must be accompanied by a flare.1 edit in the same commit. That is the stated intent, but it is a new cross-directory contract between flare-cli tests and packaging/.
Related but pre-existing: docs/TODO.txt:150-156 claims the Debian build is broken because the Dockerfile builds flare-cli/Cargo.toml without copying flare-cli/; that part is now stale (packaging/debian/Dockerfile:19 does COPY flare-cli/ flare-cli/, and Dockerfile.dockerignore:11-15 admits it). The remaining items are still true — scripts/build_deb.sh:51 omits flare-cli from its dirty-tree check and Dockerfile.dockerignore:51-52 admits only helios/licenses/PyTorch.txt while package.sh:22 installs helios/licenses/*.txt — so the author's declared-unrun .deb build would still face unrelated gaps.
Process
Ready for review (not draft); branch fix/debian-manpage-and-orbit-grammar → main; single squash-shaped commit 4130f7aa; no reviews requested or received; no CI checks on the head commit; zero labels (the issue it fixes carries area:packaging + bug); opened 2026-12-02, so age is under a day.
Open check, not a finding: .githooks/commit-msg:56-63 requires exactly one Design-Signed-Off-By: <identity>; design-review=<4 hex> trailer (digest = first 4 hex of sha256 of docs/design-review.md; docs/design-review.md:294-310, with :338-340 conceding --no-verify bypass, so it is "an attention check, not proof of review"). The stale-digest failure mode is real: the #489 review (original-el8, 2026-11-28) asked the author to "rebase and refresh the Design-Signed-Off-By digest (eb2f is stale on main)". Whether 4130f7aa carries a current trailer could not be verified — only the subject line was reachable.
Open questions / could not verify
- Does
4130f7aacarry a currentDesign-Signed-Off-Bytrailer (see above)? - Does the page render correctly and install into
/usr/share/man/man1/inside an actual.deb? The author declares./scripts/build_deb.shunrun; the pre-existingbuild_deb.sh:51/Dockerfile.dockerignore:51-52gaps above are additional friction, unrelated to this diff. - Will the new test be green on the Windows CI entry (
native-serving.yml:69-73)? It should be — relative path +std::fs, LF file — but no run exists yet. - Nobody who owns these areas (Luke Alonso, Jason Cook) or triaged #452 (yatesdr) has reviewed, so ownership of the summary-text drift this test leaves unchecked is still unassigned.