Repository navigation
Closed
Labels
effort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitiveImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
What's wrong
bash .github/scripts/check-fleet-search-parity.sh fails on current main HEAD 73ae4d58dc2b4268ab8acbf8fe69ea2ca4a59092 (exit 1) with two divergences between the atlas-search originals and their fleet-search copies:
::error::check-fleet-search-parity: render.rs diverged ...
@@ -97,9 +97,6 @@
if let Some(qid) = out.get("query_id") {
lines.push(format!("query_id: {}", py_str(Some(qid))));
}
::error::check-fleet-search-parity: server.rs diverged ...
-use JsonlTraceSink ... TraceContext ... run_search_with_executor_traced,
+run_search_with_executor(
pkgs/atlas-search/crates/atlas-search/src/server.rs:671-687buildsJsonlTraceSink::new(JsonlTraceSink::default_dir())andTraceContext::new("service-api", "agent", "atlas-service")and callsrun_search_with_executor_traced(...). The fleet copypkgs/fleet/crates/fleet-search/src/server.rs:668-676calls plainrun_search_with_executor(...)— the whole crate has zero references toJsonlTraceSink/TraceContext/run_search_with_executor_traced(grep -rnoverpkgs/fleet/crates/fleet-search/src/returns nothing).pkgs/atlas-search/crates/atlas-search/src/render.rs:104-106prints aquery_id:line in human output;pkgs/fleet/crates/fleet-search/src/render.rs(~:101-106) prints no such line.
The drift was introduced by 135e87dc50 (feat(atlas): query-trace capture — atlas-query-trace/v1, fail-closed, #9973), which touched only the atlas-search copies. The #8306 parity restoration (edbcf08789) fixed the previous drift; this one is new.
Why it matters
#5604rehomed the atlas service asfleet serve search, and the fleet step 5: search domain joins fleet — gated on #5350 step 6 cutover #5433/fleet-search: pyjson/render verbatim copies of atlas-search have no drift guard — the byte-parity contract (#5433) is unenforced #5920 contract says the service must behave identically under either name. Today the deployed fleet surface silently produces noatlas-query-trace/v1records at all, so the trace consumers in atlas-core (trace_stats.rs,trace_ingest.rs) see nothing from the deployed role.- atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973 designed trace capture as fail-closed: a trace write failure is a search failure, never a silently untraced success. On the fleet surface tracing is not attempted, so the invariant is simply absent there — the opposite failure mode.
- Operator-visible output diverges too:
atlas-searchprintsquery_id:for the same search thatfleet serve searchprints without it, which breaks result correlation between the two surfaces. - Nothing catches it automatically:
fleet-search-parity-guardis manual-only under.github/ci-policy.md(| fleet-search-parity-guard | none | yes |), and feat(atlas): feedback capture surfaces — API, CLI, UI contract (#9976) #10419's merge message already recorded the guard red at its baseff161a7297— i.e. the drift has been sitting undetected since135e87dc50.
Dedupe
No open issue and no open PR tracks this. #8306 (CLOSED) covered the earlier parameter drift; #9973 (CLOSED) scoped trace capture to atlas-search; #8573 is about flaky atlas tests, unrelated.
Acceptance criteria
bash .github/scripts/check-fleet-search-parity.shexits 0 on the PR head (no drift reported forrender.rsorserver.rs).server.rscopies match: same imports, samerun_search_with_executor_tracedcall with the trace sink and aTraceContext. Decide and record one of: keep the"atlas-service"context string in both copies (byte parity, simplest), or extend the guard's normalizer to pin afleet-searchvariant — in which case the guard, its pinned header text andcheck-fleet-search-parity.test.shchange in the same PR.render.rscopies both renderquery_id:when the envelope carries one.- A fleet-side test proves
fleet serve searchwrites a parseableatlas-query-trace/v1record for a live search (temp trace dir), and that a failing trace sink fails the search (atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973 fail-closed invariant). bash .github/scripts/check-fleet-search-parity.test.shstill passes.- Coordination with the line limit: mirroring this adds ~30 production lines to
pkgs/fleet/crates/fleet-search/src/server.rs, which is already 1 production line over the 2500 limit (separate linked issue), so the split should land first or in the same PR.
Metadata
Metadata
Assignees
Labels
effort/sSmall: expected under 2 hours of workSmall: expected under 2 hours of workkind/bugSomething isn't working (prefixed form of the classic bug label)Something isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitiveImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Nov 15, 2026
CODE-3786
dezren39 commentedon Nov 15, 2026
Cross-link: the 2500-production-line overflow in the same two server.rs copies is filed separately as #10446. Mirroring this fix adds ~30 production lines to pkgs/fleet/crates/fleet-search/src/server.rs (already 1 over), so land #10446 first or in the same PR.
dezren39 commentedon Nov 15, 2026
Follow-through for #7647: #10505 merged as
5a4f3cd46f71cbcd38692a4a716a657a58a5a5e9. It changes the shared Atlas trace record, not either server entry point. I checkedmain:atlas-searchcallsrun_search_with_executor_traced, butfleet serve searchstill callsrun_search_with_executor. Once the existing #10446 line-budget dependency is handled, extend the Fleet-side smoke test to match the responsequery_idto the JSONL record and checkquery_embedding_model, known per-resultembedding_model, null for unavailable provenance, andembedding_model_breachonly for two or more distinct known candidate models. Keep the existing sink-failure and hash-only query assertions. This is a test handoff, not a new claim or deployment.