GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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 #6027

New issue
Copy link
New issue
Copy link
Closed
Closed
design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores#6027
Copy link
Assignees
dezren39
Labels
area/infraInfrastructure, deployment, and operationsepic/atlas-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingstatus/donestatus/triagedTriaged and routed (see agent note)status:donetask/triageQueue packet kind: verify, reproduce, and route this item
Milestone
Atlas program

Description

@dezren39
dezren39
opened on Nov 5, 2026
Issue body actions

Parent: #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

  1. 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.
  2. 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

  1. Simple feedback on results: "this was exactly what I needed" / "this was terrible" / everything in between.
  2. 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.
  3. 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

  1. 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)

  1. 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.

Activity

Next
  1. dezren39
    added
    area/infraInfrastructure, deployment, and operations
    kind/designA design proposal (design-architect): multi-step, phased, decision-bearing
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    developing-todayBot
    on Nov 5, 2026 – with developing.today
    Contributor
    More actions

    CODE-1693

  3. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    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)

  4. dezren39
    added
    queue/queuedHas a queued queue task
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 5, 2026
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), lane code-v
    • Session / ID: task 10394
    • Found via: queue claim
    • Task: Triage issue design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027 — assigned to the opencode execution lane; handed off to the laptop claimant, not worked by this lane.
    • Expectation: claimant launches the bound opencode session for task 10394.
    • Links: n/a
  6. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  7. github-actions
    assigned
    dezren39
    on Nov 5, 2026
  8. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 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
  9. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    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
  10. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 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
  11. 135 remaining items

  12. dezren39
    added a commit that references this issue on Nov 14, 2026

    Merge pull request #8251 from developing-today/queue/13553-6027-atlas…

    6bf611e
  13. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 14, 2026
  14. developing-today
    closed this as completedon Nov 14, 2026
  15. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    queue/queuedHas a queued queue task
    on Nov 14, 2026
  16. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    🤖 Agent note · triaged — design landed, implementation split filed; closing this issue

    • Agent: repo queue worker, lane any-c (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-any-c run 2026-11-14; task 15280
    • Task: task 15280 for issue design(atlas): retrieval statistics, result feedback, and query traces — top-K survival, thumbs + essays, per-stage scores #6027 (triage) — completed as triaged with the disposition below.

    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:
      1. 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)
      2. 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)
      3. 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)
      4. 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)
      5. 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].

  17. dezren39
    added
    status/done
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 14, 2026
  18. dezren39 commented on Nov 14, 2026

    @dezren39
    dezren39
    on Nov 14, 2026
    MemberAuthor
    More actions

    🤖 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.

  19. dezren39
    added 3 commits that reference this issue on Nov 15, 2026

    feat(atlas): feedback capture surfaces — API, CLI, UI contract (#9976) (

    637e29c

    feat(atlas): feedback normalisation + decision wiring, nominations on…

    e77ed21

    feat(atlas): record embedding-model provenance in query traces (#7647) (

    5a4f3cd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

area/infraInfrastructure, deployment, and operationsepic/atlas-programReprioritization program epic (2026-11-12)kind/designA design proposal (design-architect): multi-step, phased, decision-bearingstatus/donestatus/triagedTriaged and routed (see agent note)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    • Atlas programNo due date

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.