From b992d76e378a66ad9e16ffaf142fc3a6196df48b Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 04:58:41 -0600 Subject: [PATCH] fleet: drop stale "later step of epic #5412" help wording (#13176) The gh and laptop-agent domains are fully implemented, but their domain-help status lines fell through to the default arm claiming the implementation "lands in a later step of epic #5412". Both now have explicit arms ("included in this build"), and the default arm no longer makes the later-step claim for any domain. The capability stub's Available (not-implemented) form no longer calls itself "the step-1 skeleton of epic #5412"; its third line now names the build and the not-implemented state, matching the other states (not-in-build / narrowed-by-name / disabled-by-config). Book chapters updated in the same change per the DOC-01 contract: the gh and laptop-agent "known discrepancy" notes for this wording are removed, and the three passages describing the stub form now describe the current text. --- pkgs/fleet/book/development/register-a-domain.md | 2 +- pkgs/fleet/book/getting-started/shape.md | 10 +++------- pkgs/fleet/book/library/registry-and-config.md | 4 ++-- pkgs/fleet/book/reference/gh.md | 2 -- pkgs/fleet/book/reference/laptop-agent.md | 2 +- pkgs/fleet/crates/fleet/src/main.rs | 9 +++++---- 6 files changed, 12 insertions(+), 17 deletions(-) diff --git a/pkgs/fleet/book/development/register-a-domain.md b/pkgs/fleet/book/development/register-a-domain.md index d3674d2f39..18df190571 100644 --- a/pkgs/fleet/book/development/register-a-domain.md +++ b/pkgs/fleet/book/development/register-a-domain.md @@ -79,7 +79,7 @@ When a domain is not `Available`, `fn stub(...)` in `main.rs` prints to stderr a - `NotInBuild`: `fleet: this build does not include ''.` plus `This is the build ().`, and ` The full build is 'fleet'.` when the build is not full. - `NarrowedByName`: `fleet: invoked as '', this build does not include ''.` plus the explanation that the invocation is name-scoped to the profile and that invoked as `fleet` it carries the full surface. - `DisabledByConfig`: `fleet: '' is disabled by config on this host.` plus the instruction to re-enable the domain under `[domains]` in the named `fleet.toml` path. -- `Available` (the step-1 form, for a surface compiled in with nothing behind it): `fleet: '' is included in this build but not implemented yet.` plus the step-1 skeleton wording of epic #5412. +- `Available` (for a surface compiled in with nothing behind it): `fleet: '' is included in this build but not implemented yet.` plus the line naming the build and the not-implemented state. Help renders the same states without stubbing: domain help is registry data and is always available, even where the domain is not. Help marks each domain `included in this build`, `not in this build — invoking it prints the capability stub (exit 69)`, `narrowed out by this invocation name — … (exit 69)`, or `disabled by config on this host (exit 69 if invoked)`, and top-level help closes with: "A domain this invocation cannot use answers with a stub and exit code 69." diff --git a/pkgs/fleet/book/getting-started/shape.md b/pkgs/fleet/book/getting-started/shape.md index 52931f9c84..449b0094c8 100644 --- a/pkgs/fleet/book/getting-started/shape.md +++ b/pkgs/fleet/book/getting-started/shape.md @@ -133,13 +133,9 @@ reason: set the domain to `false`; the stub names the config file to re-enable it in. This is the per-host shaping / incident lever: one host's fleet can have a domain switched off without a rebuild. -4. **Available but not implemented** — the step-1 skeleton form: "included in - this build but not implemented yet", with wording from the multicall - epic's first step. (The wording is stale step-1 text; the form remains in - the source. Where this book's research found help text claiming a domain - "lands in a later step" for a domain that is in fact fully implemented — - `gh` and `laptop-agent` are the two cases — the source behaviour is what - this book documents.) +4. **Available but not implemented** — "included in this build but not + implemented yet", with the stub's third line naming the build and the + not-implemented state. Every stub's second line is `Enabled capabilities: ` (`none` when empty), so a stub always tells you what the invocation _can_ do. diff --git a/pkgs/fleet/book/library/registry-and-config.md b/pkgs/fleet/book/library/registry-and-config.md index 1860f0cb39..60a58b6702 100644 --- a/pkgs/fleet/book/library/registry-and-config.md +++ b/pkgs/fleet/book/library/registry-and-config.md @@ -123,9 +123,9 @@ Every stub goes to stderr and returns exit **69** (`EX_UNAVAILABLE`). Its second line is always `Enabled capabilities: ` — the _usable_ set: the effective set minus every capability of every config-disabled domain — and its third line names the build. There is -also a step-1 skeleton form for a capability that is `Available` but has +also a not-implemented form for a capability that is `Available` but has nothing behind it yet: "included in this build but not implemented -yet", in frozen epic-#5412 wording. Help renders the same four states +yet", with the build named on the third line. Help renders the same four states inline (`[not in this build]`, `[narrowed out by this name]`, `[disabled by config]`), and renders them on _every_ variant — help never stubs. diff --git a/pkgs/fleet/book/reference/gh.md b/pkgs/fleet/book/reference/gh.md index 42d8539127..53ab407908 100644 --- a/pkgs/fleet/book/reference/gh.md +++ b/pkgs/fleet/book/reference/gh.md @@ -4,8 +4,6 @@ See also [The gh passthrough](../concepts/gh.md). -Known discrepancy: the domain help's status line still says "implementation lands in a later step of epic #5412". The source is a complete implementation (rotation, cache, close guard, closures, metadata stamping). This chapter documents the source. - ## The passthrough (any other arguments) ``` diff --git a/pkgs/fleet/book/reference/laptop-agent.md b/pkgs/fleet/book/reference/laptop-agent.md index 98ec8624d7..6ef04cc49c 100644 --- a/pkgs/fleet/book/reference/laptop-agent.md +++ b/pkgs/fleet/book/reference/laptop-agent.md @@ -4,7 +4,7 @@ See also [fleet proxy](proxy.md) and [fleet shell](shell.md). -Known discrepancy: there is **no `--help` handling anywhere in this domain**. The shared USAGE text is printed only as part of error messages, and a `--help` argument is treated as data — `laptop-agent jobs --help` errors `unknown command "jobs"` (because `jobs` accepts no trailing arguments), `poll --help` actually polls a job named `--help` and prints its real `HTTP 404: no such job`, and `kill --help` prints nothing. This chapter is written from source. A second stale-help note: the domain status line still claims "implementation lands in a later step of epic #5412"; the source is a full client mirroring the Python daemon client verb for verb. +Known discrepancy: there is **no `--help` handling anywhere in this domain**. The shared USAGE text is printed only as part of error messages, and a `--help` argument is treated as data — `laptop-agent jobs --help` errors `unknown command "jobs"` (because `jobs` accepts no trailing arguments), `poll --help` actually polls a job named `--help` and prints its real `HTTP 404: no such job`, and `kill --help` prints nothing. This chapter is written from source. ## Shared behaviour (all verbs) diff --git a/pkgs/fleet/crates/fleet/src/main.rs b/pkgs/fleet/crates/fleet/src/main.rs index ef9a9073a1..291f89d69b 100644 --- a/pkgs/fleet/crates/fleet/src/main.rs +++ b/pkgs/fleet/crates/fleet/src/main.rs @@ -255,14 +255,13 @@ fn stub(surface: &Surface, domain_name: &str, state: &CapState, invoked_as: &str )); } CapState::Available => { - // The step-1 form: compiled in, nothing behind it yet. + // Compiled in, nothing behind it yet: the not-implemented state. out.push_str(&format!( "fleet: '{domain_name}' is included in this build but not implemented yet.\n" )); out.push_str(&format!("Enabled capabilities: {caps}.\n")); out.push_str(&format!( - "This is the {build} build ({VERSION}) — the step-1 skeleton of epic #5412; \ - the '{domain_name}' domain lands in a later step.\n" + "This is the {build} build ({VERSION}). '{domain_name}' is not implemented in this build.\n" )); } } @@ -410,10 +409,12 @@ fn print_domain_help(surface: &Surface, d: &Domain) { "bridge" => "included in this build (options: fleet bridge --help)", "agent" => "included in this build (options: fleet agent --help)", "shell" => "included in this build (options: fleet shell --help)", + "gh" => "included in this build", + "laptop-agent" => "included in this build", "serve" => { "included in this build (queue-broker, secrets-broker, search and proxy roles)" } - _ => "included in this build (implementation lands in a later step of epic #5412)", + _ => "included in this build", }, CapState::NotInBuild => { "not in this build — invoking it prints the capability stub (exit 69)"