Skip to content

Atlas CLI help vs source: ten disagreements in the atlas-search/atlas-stage/atlas-classify help surfaces (book survey, #13251) #13278

Closed

Description

@dezren39

Found by the Atlas book survey (#13251, survey A: full CLI dump of the installed binaries, help vs source vs live probes). The book documents source behaviour and calls each of these out; the fixes belong on the help/source side.

  1. atlas-stage has no version flag; atlas-search does. atlas-search --version prints atlas-search 0.1.0, exit 0. atlas-stage --version / -V is a clap error, exit 2 — its #[command] sets no version. The other four hand-rolled binaries have no version surface either.
  2. atlas-stage's own source header is stale. It opens with "Two verbs:" and later says "All three are offline" — the binary has six verbs, and promote is not offline in the same sense (it needs the embedding model + ONNX runtime). The verb list itself is complete; the counts/framing are wrong.
  3. atlas-stage ingest --language default is misleading. Help shows [default: ""]; source silently replaces an empty value with the staged file's extension. The help never mentions the extension fallback.
  4. atlas-search search --shards is a real flag that help hides. #[arg(long, env = "ATLAS_SHARDS", hide = true)] — absent from --help, fully functional (probed). Its EXPERIMENTAL doc comment (atlas core consumer wiring: fleet atlas-search fan-out over the TursoDB shard core (tier ceilings, merge, --expand hydration) #5755) exists only in source.
  5. --config / --service-url env claims are not clap env. Help says (env ATLAS_SEARCH_SERVICE_CONFIG) / (env ATLAS_SEARCH_URL), but neither arg carries a clap env = attribute; the env is honoured by hand. Behaviour matches help; mechanism does not. By contrast --model, --vec-table and --shards really do use clap env.
  6. atlas-classify help gives no defaults; source has several. Window-days 90, actor atlas-classify/remainder-sweep, schema-version 1, reviewer-model atlas-classify, --now = current time, max-decisions unbounded — all source-only. The usage text is also printed for --help with exit 2 (no successful help path).
  7. Three binaries have no help path, with two different failure codes. atlas-classify --help → usage, exit 2. atlas-eval --help → usage, exit 2. atlas-sweep --help → unknown action, exit 2. atlas-github-comments --help → unknown argument, exit 1.
  8. atlas-search traces report writes files its help never mentions. Help: "weekly statistics report into the statistics-and-reports source set". Source also writes a Markdown rendering atlas-statistics-report-<day>.md into the traces dir and reports both paths (report_file, markdown_file) in the JSON output.
  9. Via-service eligibility restrictions are in no help text. --via-service reads as a simple preference; source: a --backend local request, a non-default --vec-table, or any --shards spec each disqualify the service route (the third silently, with no attempt at all).
  10. atlas-search feedback help omits the vote-shape rule. Exactly one of --up/--down, or --get, is enforced only at runtime with an exit-2 message; clap enforces the conflict but not the "at least one" half.

Book chapters carrying the source behaviour: pkgs/atlas-search/book/reference/atlas-search.md, atlas-search-admin.md, atlas-stage.md, atlas-classify.md.

{
  "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-23T12:54:36Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 23, 2026

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

    @dezren39
    MemberAuthor

    🤖 Lane claim — Lane XE (archer)

    Taking #13278 (Atlas CLI help vs source: ten disagreements). Plan: verify each of the ten items against current main in pkgs/atlas-search, fix the help/source side so the surfaces agree (help text, stale source headers, version surface, help paths), run the atlas-search test suites, land via PR.

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Premise verdict (Lane XE): TRUE on current main (619b7e56e6d) — all ten items re-verified first-hand in source:

    1. atlas-stage #[command] sets name+about only, no version (atlas-search's sets version); the four hand-rolled binaries have no version surface either.
    2. atlas-stage header says "Two verbs:" over six verbs and "All three are offline" though promote needs the model + ONNX runtime.
    3. ingest --language doc says only "(yaml, toml, rust, ...)"; the empty→extension fallback at the ingest site is unstated.
    4. search --shards carries hide = true; its EXPERIMENTAL doc never reaches help.
    5. --config / --service-url help names env vars that no clap env = backs — honoured by hand in resolve_service_config_path / service::base_url (only --model, --vec-table, --shards use clap env).
    6. atlas-classify usage states no defaults; source defaults confirmed: window-days 90, actor atlas-classify/remainder-sweep, schema-version 1, reviewer-model atlas-classify, --now = current time, max-decisions unbounded.
    7. No successful help path in atlas-classify / atlas-eval / atlas-sweep / atlas-github-comments (usage-or-error at exit 2, 2, 2, 1 respectively).
    8. traces report also writes atlas-statistics-report-<day>.md and reports markdown_file; help mentions neither.
    9. Via-service disqualifiers (--backend local, non-default --vec-table with a note; any --shards spec silently) appear in no help text.
    10. feedback's exactly-one-of --up/--down (or --get) rule is runtime-only; help omits it.

    Fix pass in progress: reconcile the help/source side (version surfaces, help paths, stated defaults and rules, unhidden --shards, real clap env for --config/--service-url with the existing empty-value guards preserved), book chapters updated in the same change per DOC-01.

  4. added a commit that references this issue on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    MemberAuthor

    Done — Lane XE. All ten disagreements reconciled; landed via PR #13340, merged 7310a95730791e66da98f7b0e13865930058a516 (head SHA-guarded at 5989457afbd4). This issue auto-closed as completed on the merge.

    What landed (18 files, +137/−64): atlas-stage gains clap version and a corrected source header (six verbs; offline scoped to five, promote excepted); ingest --language help states the extension fallback; search --shards unhidden; --config / --service-url carry real clap env bindings (ATLAS_SEARCH_SERVICE_CONFIG / ATLAS_SEARCH_URL) with precedence unchanged and the resolvers still ignoring empty values; --via-service help states the eligibility restrictions; traces report help names both written files; feedback help states the vote-shape rule; the four hand-rolled binaries (atlas-classify, atlas-eval, atlas-sweep, atlas-github-comments) gain --help/-h (stdout, exit 0) and --version/-V paths; atlas-classify's usage text states its defaults. Book chapters updated in the same change per DOC-01 (atlas-stage, atlas-search, atlas-search-admin, atlas-classify, atlas-eval, atlas-sweep, atlas-github-comments, configuration, installation, release-and-rollout).

    Verification (laptop route — the fleet-build container has no working Rust path for this workspace, the #13159 gap family):

    • cargo test -p atlas-core -p atlas-search: 415 passed / 0 failed across 30 suites; -p atlas-embed -p atlas-proto: 16 passed / 0 failed. cargo fmt --check clean. (The shared sccache daemon stalled under multi-lane load mid-run; the passing run bypassed it with a private target dir — environment note, not a code signal.)
    • Built binaries probed directly: every new --help / --version surface exits 0 with the expected text; bare/error invocations keep their old exit codes (classify 2, eval 2, sweep 2, github-comments 1); search --help renders --shards and the new --via-service text; serve --help shows the real [env: ATLAS_SEARCH_SERVICE_CONFIG=] binding; ATLAS_SEARCH_SERVICE_CONFIG alone directed atlas-search init to the env-named path (probe file removed after).
    • nix build .#atlas-docs succeeds from the repo root; the rendered chapters carry the updated text; the fix is read back present on origin/main.

    Cleanup: worktree ~/wt-lane-xe-13278 removed, local branch deleted, remote branch auto-deleted on merge; primaries untouched; no git stash used; no flag holds touched. Nothing new filed — no separate problems found.

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