GeezerVison is showing github.com — feat(fleet): search domain — atlas-search client surface over the live service (step 5, #5433) by dezren39 · Pull Request #5601 · developing-today/code
Conversation
dezren39
commented
Nov 4, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Step 5 of epic #5412 — the search domain joins the fleet multicall binary, gated on the #5350 step-6 Atlas cutover (verified landed; gate evidence linked on #5433, comment 6637362431). This is the last step of the epic.
What lands
crates/fleet-search — the atlas-search client surface over the live Atlas service contract:
fleet search <query> (and the atlas-shaped fleet search search <query>), plus fleet search get-chunk <id>. The flag surface mirrors atlas-search search one-for-one where it translates to the wire request: --k/--pool/--mode, the classification filters (--kind/--topic/--project/--client/--since/--until), --max-sensitivity, --group-by-session/--expand/--with-message, --text, --model/--embedder/--trunc/--vector-backend, and the routing flags --via-service/--standalone/--service-url. Standalone-only engine knobs (--backend/--db/--vecdb) are not carried — the design's "no more".
- Via-service client ported from atlas-search's own (submit → poll → page the job protocol), including the atlas-search(service): results-paging loop has no deadline or cursor-progress guard — a non-advancing page stream hangs the CLI forever instead of falling back to standalone #5424 cursor guards. Wire types mirror
atlas-proto field-for-field (that crate is untouched and remains the contract of record; the fleet nix source is this workspace alone, so the mirror is how the contract is consumed here — the fleet-dispatch/pm-dispatch precedent). Output renders through pyjson/render ported verbatim from the atlas-search bin, so service envelopes print byte-identically to atlas-search.
- Host defaults per the Atlas Q3 ruling: sandbox seat → via-service with a LOUD standalone fallback; laptop seat → standalone. Seat signal is the service's own
service.json (only the serving host has one). Precedence: flags → ATLAS_SEARCH_VIA → fleet.toml [search] via (new fleet-config section) → host default.
- Sandbox reachability follows the deployed pattern, not a second mechanism: the via-service client is proxy-blind (atlas-search: via-service client should honor proxy env (ureq Proxy::try_from_env) #5597), so before the service attempt the client mirrors the deployed
atlas-search wrapper — bootstrap the shared laptop-ssh control connection, ask it to forward loopback:18760, health-check. No wrapper tooling present → the step skips itself.
- Standalone = the kept standalone
atlas-search artifact on PATH (§7 rollback inventory): fleet carries no second embedder/backend, so standalone searches and get-chunk (job-scoped in the protocol — atlas-search's own shape) delegate with the caller's arguments in atlas-search's shape, stdout inherited byte-for-byte.
- Ceilings stay server-side: the verb sends the requested ceiling with the host's atlas client identity (the client.json token chain — drew-cli
secret-bearing, sandbox-scripts personal); it adds no ceiling logic of its own.
Placement (§2 matrix, unchanged registry): the client compiles into the full build only (search feature). The serve build carries search-serve only → fleet search stubs 69 there (asserted in smoke); connect stubs 69 (already asserted). The atlas-search argv0 alias routes to the domain (already in the registry; now real).
Scope note
fleet serve search remains the not-implemented stub and the atlas user unit still points at the standalone atlas-search service. The bin-crate rehome + unit re-point from the issue text is not in this PR: the client surface above is the step's delivered surface, and the serve-role rehome is filed as its own follow-up so this step cannot destabilize the just-landed cutover (§7's caution, and the gate's "reversible in a single re-point" stays trivially true while the unit is untouched).
Tests
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 4, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You'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 39 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
5f4140fd-469c-422d-a2e5-a75d040ccb82
Commits
-
Reviewing files that changed from the base of the PR and between a335f21 and 8b860e3.
Files ignored due to path filters: 1
-
pkgs/fleet/Cargo.lock is excluded by !**/*.lock
Files selected for processing: 12
-
pkgs/fleet/Cargo.toml
pkgs/fleet/README.md
pkgs/fleet/crates/fleet-config/src/lib.rs
pkgs/fleet/crates/fleet-search/Cargo.toml
pkgs/fleet/crates/fleet-search/src/client.rs
pkgs/fleet/crates/fleet-search/src/lib.rs
pkgs/fleet/crates/fleet-search/src/proto.rs
pkgs/fleet/crates/fleet-search/src/pyjson.rs
pkgs/fleet/crates/fleet-search/src/render.rs
pkgs/fleet/crates/fleet/Cargo.toml
pkgs/fleet/crates/fleet/src/main.rs
pkgs/fleet/smoke.sh
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-04T17:42:30.227069Z |
8b860e3 |
New commits |
ℹ️ 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" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d0bf9ab2d3
ℹ️ 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".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+399
to
+400
|
|
fn delegate(argv: &[String]) -> i32 {
|
|
|
let mut cmd = Command::new("atlas-search");
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid resolving the standalone delegate back to fleet
When the supported atlas-search argv0 alias is installed on PATH as a symlink to fleet, this command resolves to fleet itself rather than the kept standalone artifact—even if that artifact exists later on PATH. atlas-search get-chunk 42 then repeatedly spawns another identical invocation; standalone searches do the same on the laptop seat. The parents wait in status(), so the call never completes normally and keeps creating processes until resources are exhausted. Resolve the standalone artifact independently of the public alias, and reject delegation to the current executable.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Comment on lines
+491
to
+492
|
|
client::ensure_sandbox_forward(&base);
|
|
|
match client::search(&base, &request) {
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honor the vector-table override before submitting to the service
When ATLAS_VEC_TABLE names a nondefault vector table and the service is healthy, this path silently searches the service's configured production table instead. The existing Atlas CLI reads this environment variable in VectorArgs (pkgs/atlas-search/crates/atlas-search/src/main.rs:153) and explicitly falls back to standalone for nondefault tables (main.rs:526–531), because the service request cannot select a table. Fleet never checks the override, although its standalone delegate inherits and honors it, so the selected vector corpus—and therefore search results—changes depending on service availability. Detect the override and fall back loudly to standalone, or explicitly reject it rather than silently querying another table.
Useful? React with 👍 / 👎.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…e service (step 5, #5433)
This was referenced Nov 4, 2026
This was referenced Nov 5, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|