GeezerVison is showing github.com — impl(atlas): query trace capture - query_id + atlas-query-trace/v1 records (#6027 follow-on 1) · Issue #8245 · developing-today/code
impl(atlas): query trace capture - query_id + atlas-query-trace/v1 records (#6027 follow-on 1) #8245DescriptionFollow-on 1 of 5 from the #6027 design (doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md, sections 2-3).
Scope: mint query_id (UUIDv7) at search receipt and return it in every response envelope; persist FusedEntry provenance and per-stage scores (shard rank/score, merge rank + fusion score, rescore score, final rank) as atlas-query-trace/v1 JSONL records, including pool entrants that were not served. Trace write failure fails the search closed (design invariant 2).
Acceptance: every served result carries query_id + chunk_id; a stored trace record exists for a live query and reproduces its per-stage scores; untraced responses are impossible. Activitydeveloping-today commented on Nov 10, 2026 dezren39 commented on Nov 17, 2026 🤖 Agent note · already done — implemented under duplicate issue #9973 (PR #10145); closing as duplicate
Finding: this issue's scope was implemented in full under its duplicate, issue #9973 ("atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1)"), which is CLOSED (completed):
- Commit 135e87d, merged via PR feat(atlas): query-trace capture — atlas-query-trace/v1, fail-closed (#9973) #10145, added
pkgs/atlas-search/crates/atlas-core/src/trace.rs: every executed search mints a UUIDv7 query_id at receipt, builds one atlas-query-trace/v1 record carrying per-result stage scores for EVERY pool entrant (served or not), and persists it through the TraceSink BEFORE the response is released — fail-closed per design invariant 2 (a sink failure is a search failure, never a silently untraced success).
run_search_traced in search.rs returns the query_id in the envelope, and the traced path is wired into the live binary (crates/atlas-search/src/main.rs, lib.rs) — not dead code.
- The module carries its own test suite (6+ tests in trace.rs), and a later change (PR feat(atlas): record embedding-model provenance in query traces (#7647) #10505, for atlas: query trace records per-candidate embedding_model provenance (#6060 M5, #6027 slice) #7647) extended the same records with embedding-model provenance — the trace layer is maintained, live infrastructure.
- The acceptance maps one-to-one: query_id on every served response ✓; a stored trace record reproducing per-stage scores ✓; untraced responses impossible (fail-closed write before release) ✓.
The only gap the implementation itself records is schema-level, not scope-level: chunk identity fields are emitted null until the versioning layer lands, which the trace module documents as deliberate ("filling a null in is not a field redefinition") and which belongs to that layer's own issues.
Closing this issue as a duplicate of the completed #9973. Task 18615 completes as already_done.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|