GeezerVison is showing github.com — atlas: query trace records per-candidate embedding_model provenance (#6060 M5, #6027 slice) · Issue #7647 · developing-today/code
atlas: query trace records per-candidate embedding_model provenance (#6060 M5, #6027 slice) #7647DescriptionParent decision: #6060 — decision record doc/2026-11-08T10-44-00Z_decision_atlas_cross_tier_vector_comparability/ (one embedding model for every Atlas tier). This issue implements contract point M5 of that record, as a slice of the #6027 query-trace work.
Work
- In the query trace designed under design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027, record
embedding_model for every candidate, copied from the candidate's shard atlas_manifest (the key added by the M1/M2 follow-on), and query_embedding_model once at the trace head.
- Survival statistics (per-shard top-K survival, final-rank distribution) remain computed over the whole result set without per-model conditioning — under the one-model mandate the model ids are expected to be identical for every candidate of a query.
- A trace whose result set contains two different
embedding_model values is surfaced as positive evidence of an M1 breach (a defect), never silently normalized or split.
Acceptance
- A trace for a fan-out query shows
query_embedding_model at the head and a matching embedding_model on every candidate.
- A test with a mixed-model fixture set (or a stubbed manifest) produces a trace that exposes both model ids and flags the breach.
- Existing trace/statistics behaviour is unchanged for uniform-model queries.
Acceptance criteria
- A query trace for a fan-out query shows query_embedding_model once at the trace head and a matching embedding_model on every candidate, copied from each candidate's shard atlas_manifest.
- A mixed-model fixture (or stubbed manifest) produces a trace exposing both model ids and flagging the M1 breach - never silently normalized or split.
- Survival statistics remain computed over the whole result set without per-model conditioning.
Activitydeveloping-today commented on Nov 8, 2026 ContributorAuthor More actions Intake review
Related: Parent decision: issue #6060 (merged decision PR surfaces in intake search; it files, not resolves, this slice). Contract point M5, a slice of the #6027 query-trace work; reads the manifest key from issue #7646 (M1/M2).
Notes: Body already carries an Acceptance list; formalized in the appended criteria. Labels normalized: kind/enhancement, status/needs-triage, priority/normal, effort/s.
Risks: Trace schema churn if #6027's trace shape is still moving; keep the two model fields additive.
Suggested approach: Add the head + per-candidate fields at trace construction from the scanned shards' manifests, plus the mixed-model fixture test.
Labels normalized at intake: kind/enhancement, status/needs-triage, priority/normal, effort/s, meta/enriched added (existing labels preserved). Acceptance criteria appended to the body (original text preserved verbatim above).
— fleet monitor, intake pass 2026-11-08 (06:12 CST run) developing-today commented on Nov 8, 2026 ContributorAuthor More actions 🤖 Agent note · handed off
dezren39 commented on Nov 9, 2026 dezren39 commented on Nov 15, 2026 Blocked-until condition fired (2026-11-15 daily checker, item br-blocked-review-gate-03-6, test issue-closed).
Evidence: #6027 state=CLOSED merged_at=None (need issue-closed)
Gate link(s): #6027
Queue task 14269 released to queued (fleet-queue events row kind=condition_fired, worker=blocked-until). Labels synced to queue/queued. dezren39 commented on Nov 15, 2026 agent-note:v1
state: in-progress
task: 14269
lane: any-a
stage: verified
Task 14269 (issue #7647, Atlas M5 embedding-model provenance in query traces) claimed by lane any-a; lane assignment is direct, working it in this session.
Fresh revalidation 2026-11-15: issue #7647 OPEN, no hard-stop labels. Prerequisites have moved since the packet was written: issue #7646 is CLOSED (manifest embedding_model landed, PR #8326; stage.rs and shards/ read atlas_manifest embedding_model on main) and issue #6027 is CLOSED with the query-trace foundation present on main (crates/atlas-core/src/trace.rs, atlas-query-trace/v1, from issue #9973). Both gates are therefore satisfied; implementing M5 now: query_embedding_model at the trace head, per-candidate embedding_model copied from the candidate shard manifest, and an explicit M1-breach flag when a trace's candidates carry two different model ids. dezren39 commented on Nov 15, 2026 agent-note:v1
state: done
task: 14269
lane: any-a
stage: bookkeeping_complete
Done — fixed and merged in PR #10505 (squash merge 5a4f3cd).
What landed: query traces (atlas-query-trace/v1) now record query_embedding_model once at the head, embedding_model on every candidate copied from the producing shard's atlas_manifest (populated by the shard fan-out into BranchPools.candidate_models), the distinct candidate models as embedding_models, and embedding_model_breach: true when two or more distinct models appear — an M1 breach surfaced as evidence, never normalised or split. Survival statistics are unchanged (whole result set, no per-model conditioning). Candidates with no shard-manifest provenance (monolith-served pools) record null, per the trace module's null-until-known convention.
Verification: cargo test -p atlas-core passes in full, including three new oracle tests named for the acceptance criteria (uniform provenance, mixed-model breach, null provenance); cargo check -p atlas-search clean. Codex review on PR #10505 failed to run on Codex usage limits and produced no findings; disposition recorded on the PR.
Prerequisites were re-verified fresh at claim time: #7646 CLOSED (PR #8326) and #6027 CLOSED with the trace foundation on main — the packet's dependency gate no longer binds. Closing this issue as complete.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|