Repository navigation
fix(atlas-search): reconcile CLI help with source across all six binaries (#13278) - #13340
Conversation
…ries (#13278) The Atlas book survey (#13251) found ten disagreements between the CLI help surfaces and the source. This change reconciles them on the help/source side, and updates the book chapters that recorded the disagreements in the same change (DOC-01): - atlas-stage gains the version surface its command definition lacked (--version/-V now print atlas-stage 0.1.0, as atlas-search); its source header counts six verbs (not two) and scopes the offline claim to the five verbs it covers (promote needs the embedding model + ONNX runtime). - atlas-stage ingest --language help states the empty-value fallback to the staged file's extension. - search --shards is no longer hidden from --help; its EXPERIMENTAL doc comment now reaches the help output. - --config and --service-url now carry real clap env bindings (ATLAS_SEARCH_SERVICE_CONFIG / ATLAS_SEARCH_URL) instead of hand-rolled env reads, matching --model/--vec-table/--shards. Resolution precedence is unchanged (flag > env > default); the resolvers keep ignoring empty values, so a set-but-empty variable behaves exactly as before. - search --via-service help states the eligibility restrictions: Turso backend + production vector table only; --backend local or a non-default --vec-table fall back with a note; any --shards spec is served standalone without attempting the service. - traces report help names both written files (report JSONL and the Markdown rendering, reported as report_file/markdown_file). - feedback help states the vote-shape rule (exactly one of --up/--down, or --get to retrieve). - The four hand-rolled binaries (atlas-classify, atlas-eval, atlas-sweep, atlas-github-comments) gain successful help and version paths: --help/-h prints the usage text to stdout, exit 0; --version/-V prints the version, exit 0. Error paths and exit codes are unchanged. atlas-classify's usage text now also states its defaults (window-days 90, actor, schema-version 1, reviewer-model, --now, max-decisions). Verification (laptop route; the fleet-build container lacks the Rust toolchain path for this workspace — the #13159 gap family): cargo test for atlas-core + atlas-search: 415 passed / 0 failed across 30 suites; atlas-embed + atlas-proto: 16 passed / 0 failed. cargo fmt --check clean. Built binaries probed directly: every new --help/--version surface exits 0 with the expected text, bare/error invocations keep their old exit codes (2/2/2/1), and ATLAS_SEARCH_SERVICE_CONFIG alone directed `atlas-search init` to the env-named path. nix build .#atlas-docs succeeds and the rendered chapters carry the updated text.
|
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 2 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5989457afb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| #[arg(long, env = "ATLAS_SEARCH_SERVICE_CONFIG")] | ||
| config: Option<PathBuf>, |
There was a problem hiding this comment.
Preserve the fallback for an empty config environment value
When ATLAS_SEARCH_SERVICE_CONFIG="" is set and no --config flag is supplied, both atlas-search serve and atlas-search init now fail during clap parsing instead of using the default config path. Clap's PathBuf parser checks value.is_empty() and returns Error::empty_value, so the new empty-path filter in resolve_service_config_path is never reached. Previously, the resolver explicitly ignored an empty environment value. Use a parser that accepts empty paths or normalize the environment value before clap validation on both config arguments.
Useful? React with 👍 / 👎.
Fixes #13278 — all ten Atlas CLI help-vs-source disagreements from the book survey (#13251), reconciled on the help/source side, with the book chapters that recorded them updated in the same change (DOC-01).
What changed, by item:
atlas-stagegains clapversion(atlas-stage 0.1.0); the four hand-rolled binaries (atlas-classify, atlas-eval, atlas-sweep, atlas-github-comments) gain--version/-V, exit 0.promotecalled out as needing the embedding model + ONNX runtime.ingest --language— help states the empty-value fallback to the staged file's extension.search --shards—hide = trueremoved; the EXPERIMENTAL doc now appears in--help.--configand--service-urlnow carryenv = "ATLAS_SEARCH_SERVICE_CONFIG"/env = "ATLAS_SEARCH_URL"instead of hand-rolled env reads. Precedence (flag > env > default) is unchanged; the resolvers keep ignoring empty values, so a set-but-empty variable behaves exactly as before.atlas-classify/remainder-sweep, schema-version 1, reviewer-modelatlas-classify, --now current time, max-decisions unbounded).--help/-hfrom any position. Error paths and exit codes unchanged (verified: bare/error invocations still exit 2/2/2/1).traces report— help names both written files and thereport_file/markdown_fileoutput keys.--via-service— help states the eligibility restrictions (Turso backend + production vector table;--shardsserved standalone without an attempt).feedback— help states the exactly-one-of--up/--down(or--get) rule.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 --checkclean.--help/--versionsurface exits 0 with the expected text;--shardsand the new--via-servicetext render insearch --help;serve --helpshows the real[env: ATLAS_SEARCH_SERVICE_CONFIG=]binding;ATLAS_SEARCH_SERVICE_CONFIGalone directedatlas-search initto the env-named path.nix build .#atlas-docssucceeds; rendered chapters carry the updated text.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.