Repository navigation
fleet: fleet serve search — rehome the atlas service as the search serve role (#5604) - #6674
Merged
Merged
Conversation
added 2 commits
November 6, 2026 19:27
…rve role (#5604) fleet-search gains a serve feature: server.rs (parity-guarded verbatim copy of atlas-search's service) plus serve.rs glue (arg surface, lazy shared embedder, read-only Turso backend). atlas-core/embed/proto are consumed by path, untouched. 'atlas-search serve' through the fleet argv0 route is the same role. default.nix builds from the pkgs/ tree and bakes the onnxruntime closure path; the atlas user unit ExecStart is prepared as 'fleet serve search' behind atlasSearchServeViaFleet (one-flag rollback to the standalone). Also: queue-broker implies fleet-queue/client so the fleet-serve variant compiles (#6656).
…rve role (#5604) fleet-search gains a serve feature: server.rs (parity-guarded verbatim copy of atlas-search's service) plus serve.rs glue (arg surface, lazy shared embedder, read-only Turso backend). atlas-core/embed/proto are consumed by path, untouched. 'atlas-search serve' through the fleet argv0 route is the same role. default.nix builds from the pkgs/ tree and bakes the onnxruntime closure path; the atlas user unit ExecStart is prepared as 'fleet serve search' behind atlasSearchServeViaFleet (one-flag rollback to the standalone). Also: queue-broker implies fleet-queue/client so the fleet-serve variant compiles (#6656).
|
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 58 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. |
This was referenced Nov 7, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Refs #5604 (does not close it: the live unit flip and the pre-flip gates below are still to do).
What
fleet serve searchnow runs the Atlas service: the atlas-search bin crate's serve half, rehomed intofleet-searchbehind a newservecargo feature.crates/fleet-search/src/server.rs: verbatim copy of atlas-search'sserver.rs(engine, job manager, HTTP surface). Held byte-for-byte by.github/scripts/check-fleet-search-parity.sh, extended here to coverserver.rswith its own pinned headers (contract tests extended too).crates/fleet-search/src/serve.rs: the role glue that atlas-search'smain.rscarried. It has the arg surface, the lazy shared embedder (one ONNX session per process, state reported on/health), and the wiring. Its only backend isTursoBackend::new, the read-only token chain. There is no local, explicit-token or--backendpath, so the service stays mechanically incapable of production writes.lib.rsbecamecli.rs(client surface, unchanged apart from theserveusage message) behind aclientfeature.atlas-core/atlas-embed/atlas-protoare untouched and consumed by relative path frompkgs/atlas-search.atlas-search servethrough the fleet binary is the same role. The standalone atlas-search artifact still builds, so rollback is a single re-point.fleet-servevariant did not compile onmain(queue-broker usedfleet-queue'sclientmodule without the feature).queue-brokernow impliesclient.pkgs/fleet/default.nixbuilds from thepkgs/tree so the path deps resolve. It bakes the onnxruntime closure path for the non-static variants (same mechanism as the atlas-search package).The unit re-point is prepared in code only
home/common/default.nix: theatlas-searchuser unit'sExecStartis nowfleet serve search, behindatlasSearchServeViaFleet(setfalseto return to the standaloneatlas-search serve). This session did not restart, stop or flip the live atlas user unit. Activation rides the normal deploy path (next home-manager activation). Nothing here touches the running service.Tests (local runs are the gate; all green)
cargo test --workspaceinpkgs/fleet: all pass.crates/fleet-search/tests/serve_contract.rs(11): request handling (health, submit/poll/page/delete, 401/400 without touching the backend, ceiling clamping), dedupe keyed by the effective request (counting backend and embedder as oracles; never crosses effective ceilings), per-client recovery listing, read-only-posture invariant, and proptest properties on the arg surface.crates/fleet/tests/search_serve.rs(7) and a unit test for the two spellings (serve search/search serve) through the real binary.fleet-searchunit tests via the verbatim copy.cargo test -p atlas-searchinpkgs/atlas-search: pass.check-fleet-search-parity.test.shand.sh: pass.cargo test -p fleetunder--no-default-features --features serveand--features search: the serve/search-specific tests pass.tests::queue_domain_version_rejects_trailing_argumentsfails whenfleetis built without thequeuefeature. It does not touch this PR's code and is not a gate.nix build .#fleet-servesucceeds. Smoke run of the built binary on loopback with the live read-only token chain:/health, an FTS job, and a hybrid job (cold embedder, thenready) all complete.smoke.shhas new assertions for the role. I did not run the fullsmoke.sh.Not done / gates before the flip (per #5604)
fleet,fleet-static,fleet-connect*,fleet-brokers) did not finish building in this session.fleet-servedid. The static variants deliberately do not bake an ORT path.