GeezerVison is showing github.com — design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores · Issue #6027 · developing-today/code
design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027DescriptionParent: #6018 (Atlas ingestion program). Statements S21–S27 of the 2026-11-04 brief.
Requirement (Drew, in substance)
Atlas search must become measurable and judgeable, end to end:
Retrieval statistics
- Per file/embed: stats on what comes in from a shard on a query and makes it into the top K — shard-stage survival counts.
- After shard results are merged and rescored: stats on which results make the top 1, 2, 3, and the top 1–5 — final-rank distribution per file/embed. (Builds on #5774's full-vector logging per run and the #5733/#5741 rescore work.)
Feedback
- Simple feedback on results: "this was exactly what I needed" / "this was terrible" / everything in between.
- Bare minimum: thumbs up / thumbs down on all searches — every user knows how to do this with zero instruction; it must be addable from whatever surface returned the result.
- An optional comment may ride along; long-form feedback — up to an essay on why a result was terrible for a query — is explicitly welcomed and thanked. We normalize comments ourselves afterwards, based on context and increased detail (normalization is our job, not the user's).
Query trace
- Every result is associable to its query with a full trace: results carry IDs (assumed to exist — verify, and design the ID if not); for any result we can recover the scores it got at each stage (per-shard rank/score, merge, rescore stages), which shard it was in, the exact state of the embed content that was scored, and its metadata (provenance mark, version per the sibling versioning design, tier).
Uses (why this exists)
- Beyond performance and benchmarks, the stats + feedback guide evolutions of Atlas: what files are kept and what files aren't (feeds the versioning/retention deletion triggers), changes to our search patterns (weights, signals, expansion), and system evolution generally. Feedback data that cannot change a decision is decoration — the design names the decisions each signal feeds.
Design must answer
- Storage shape for traces (per-query record: query id, stage scores per result id, shard, embed content hash/state, parameters used) and its own retention — traces are themselves corpus (they belong in the ingestion source set as "statistics and reports").
- Feedback identity/weighting: whose thumbs count (Drew vs agents vs other users), per-result vs per-query feedback, and how essay comments get normalized (human pass? agent pass with the query context?) into structured signal.
- The feedback surface per client (CLI flag, service API field, UI affordance) with the thumbs path never more than one action away.
- Anti-gaming/quality: feedback on results the user never opened, duplicate feedback, agent self-feedback loops (agents judging their own retrievals) — named and handled.
Done looks like
A design doc: trace schema, stats aggregation model (per-embed survival + final-rank distributions), feedback capture + normalization pipeline, and the decision map (signal → retention/ranking/product decision), with implementation split into follow-ons.
Activitydeveloping-today commented on Nov 5, 2026 dezren39 commented on Nov 5, 2026 Research hard constraint: traces are logged AT QUERY TIME, or they don't exist
Cluster 4's one hard constraint, which this design must treat as load-bearing:
- Per-stage scores cannot be recomputed after the corpus moves. Fan-out → merge → rescore scores depend on the exact corpus state and embed versions at query time. Any design that doesn't log at query time has no analytics — retrofitting is impossible by construction. The trace record per query:
query_id, timestamp, querier context, raw query + rewritten query (the dual-submission rewriter makes these differ), corpus snapshot ids (per-shard head markers), and per candidate: embed id + embed version id, shard, per-stage (score, rank) at fan-out/merge/rescore, final rank, and which K cutoffs it survived. Ranks must be logged for the full candidate list at each stage, not just final top-K — survival at K=3 is only computable if stage outputs were recorded deeper than 3. Top-K survival stats (K=1/2/3/5 by shard, tier, source type) are then funnel aggregation over this log, not a separate system.
- Feedback binding is
(query_id, result_id, embed_version_id) — feedback against a version, or retention/versioning changes make old feedback uninterpretable.
- Thumbs are sparse and negatively biased — pair them with implicit signals (copy ≈ success, requery/regenerate ≈ failure, dwell) from day one; neither raw thumbs nor implicit counts are auto-reranking inputs at personal scale (position bias). Their highest-value use: negative-feedback queries are promoted into a versioned golden set with corrected ground truth, and the golden set gates chunking/rescore/model changes. Free-text essays normalize via an LLM judge with an explicit rubric (labels like wrong-source / stale-version / right-doc-wrong-span / missing-doc / ranking-only), calibrated by periodic hand-scored samples — an uncalibrated judge drifts silently.
Wave-2 children filed under this issue
- #6046 — feedback-derived eval set gating index changes
- #6047 — clicks/copies/dwell/requery as weak labels
— Wave-2 research fold-in, 2026-11-04 (prior-art doc: ~/workspace/scratch/atlas-ingestion-brief-2026-11-04/prior-art-research.md) dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-e
- Session / ID: task 10394
- Found via: queue claim
- Task: handing off task 10394 for issue design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027 (design(atlas): retrieval statistics, result feedback, and query traces) to the opencode claimant (assigned_lane=opencode); claimant launches the bound session.
- Expectation: bound opencode session drives task 10394 to a terminal state; this lane does not work it directly.
- Links: issue design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027
dezren39 commented on Nov 5, 2026 Agent note - handed off
- Agent: opencode claimant (opencode-claimant)
- Session / ID: queue task 10394; bound session
ses_e5e5390ebb4ffeBNW4a72aN77s
- Found via: queue task handoff on the opencode execution lane
- Task: Triage design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027: design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, t
- Expectation: the bound worker session works task 10394 to a terminal queue state and must not claim another task. It revalidates the issue/PR before acting.
- Links: design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027
dezren39 commented on Nov 5, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-v
- Session / ID: task 10394
- Found via: queue claim
- Task: Triage of issue design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027 — execution lane assigned
opencode; handed off to the opencode claimant, which launches the bound session.
- Expectation: claimant session drives task 10394 to a terminal state under the queue worker id.
- Links: issue design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027
dezren39 commented on Nov 14, 2026 🤖 Agent note · triaged — design landed, implementation split filed; closing this issue
State found (revalidated fresh, 2026-11-14): the design was delivered but stranded in an open PR; this triage landed it and filed its split.
- Task 13553 produced the design as PR doc: design atlas retrieval statistics, result feedback, and query trace (#6027) #8251 (
doc/2026-11-10T20-41-01Z_design_atlas_retrieval_stats_feedback.md, +307 lines, doc-only) on 2026-11-10 — and the PR sat unmerged for four days, so the design was not on main and this issue's "Done looks like" was unmet despite the work existing. (Its CI shows the repo-wide pattern of cancelled unrelated checks, no content findings.)
- Reviewed and merged in this triage: the doc satisfies the issue's Done criteria — trace schema (§3,
atlas-query-trace/v1 with per-stage scores and resolved embed identity), statistics aggregation model (§5), feedback capture + normalisation pipeline (§6, incl. weighting and anti-gaming), the decision map (§7, every signal names the decision it feeds), rejected alternatives (§8), and six invariants including fail-closed trace writes and stats-from-traces-only. PR doc: design atlas retrieval statistics, result feedback, and query trace (#6027) #8251 is MERGED, merge commit 6bf611e03c9ba9ecb620c2b056a1025e6ce60a5b.
- The §9 implementation split is now filed, as the design prescribes ("filed as linked follow-on issues when this design lands"), each with a queued task:
- atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973 trace capture → task 16846 (priority 30; the keystone — everything else needs traces)
- atlas: trace ingestion + retention — statistics-and-reports source class (#6027 follow-on 2) #9974 trace ingestion + retention → task 16848 (gated on atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973)
- atlas: statistics aggregation + weekly report (#6027 follow-on 3) #9975 statistics aggregation + weekly report → task 16849 (gated on atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973 + atlas: trace ingestion + retention — statistics-and-reports source class (#6027 follow-on 2) #9974)
- atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976 feedback capture surfaces → task 16850 (independent of 2–3 per §9; needs the ID model from atlas: trace capture — atlas-query-trace/v1 records, fail-closed trace write (#6027 follow-on 1) #9973)
- atlas: feedback normalisation + decision wiring, nominations only (#6027 follow-on 5) #9977 feedback normalisation + decision wiring, nominations only → task 16851 (gated on atlas: statistics aggregation + weekly report (#6027 follow-on 3) #9975 + atlas: feedback capture surfaces — API, CLI, UI contract (#6027 follow-on 4) #9976)
With the design on main and the split filed and tasked, this issue's deliverable is complete; closing it as completed. The follow-ons carry the work from here — gate order is recorded in their packets, and #9973 is the one to claim first.
Task 15280 completes as triaged with follow_up_task_ids [16846, 16848, 16849, 16850, 16851].
dezren39 commented on Nov 14, 2026 🤖 Agent note · duplicate packet — #6027 already completed earlier today
- Agent: repo queue worker, lane any-c (repo-worker-code)
- Session / ID: cron repo-queue-worker-shift-any-c run 2026-11-14; task 16855
Task 16855 duplicates task 15280 (same lane, this shift), which completed #6027 today: the stranded design in PR #8251 was reviewed and merged (6bf611e), #6027 auto-closed completed at 2026-11-14T12:18:15Z, and the §9 implementation split is filed as #9973–#9977 with tasks 16846/16848/16849/16850/16851. The child design #6047 (implicit-signal logging) also received its design record this shift (task 16819). Re-verified closed in this claim. Task 16855 completes as already_done; no changes made.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|