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 — atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry · Issue #6390 · developing-today/code

atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390

New issue
Copy link
New issue
Copy link
Closed
#6433
Closed
atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry#6390
#6433
Copy link
Labels
app/atlas-searchpkgs/atlas-search (Atlas search service + atlas-embed)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

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

atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry

pkgs/atlas-search/crates/atlas-core/src/eval.rs is the deterministic offline evaluation harness (#5741): saved rankings are scored against judged qrels, and its reports decide whether a retrieval signal earns a place in the fused ranking and which parameters select_best_signal picks. Its module docs promise strict duplicate discipline — duplicate query ids, duplicate qrels, duplicate docs in a ranking, and duplicate signal names are all rejected at parse/validation time — and EvalData::validate() (called from EvalData::from_json, eval.rs:150) enforces each of them. One duplicate class escapes, because it vanishes before validation runs:

  • Run.results (eval.rs:125) is BTreeMap<String, Vec<String>> — query id → ranked doc ids. serde's map deserialization inserts key by key, so JSON text that names the same query twice in one run's results object keeps only the last ranking; the first is silently discarded during parsing. validate() iterates the post-parse map and cannot detect that anything was dropped.
  • Every other duplicate class is detectable post-parse (vectors keep both copies; struct fields are protected by serde derive, which errors on a repeated field) — results keys are the only input that arrives through a map.

Verified on the laptop with a probe crate (~/git/fleet/probe-eval-dupkey, serde/serde_json, types mirrored field-for-field from eval.rs) against the exact shapes:

  • {"signal":"dense","results":{"q1":["a","b"],"q1":["c"]}} → parses OK; results["q1"] == ["c"] — the ["a","b"] ranking is gone, with no error at any layer.
  • Control, duplicate struct field ("format" twice) → parse error duplicate field 'format' — confirming the hole is specific to the map-typed field, not a general parser laxity.

Why it matters

The eval document is a file format (versioned fixtures such as pkgs/atlas-search/fixtures/eval-smoke.json, plus generated/hand-merged eval sets per pkgs/atlas-search/eval/README.md). A duplicated query entry — a merge artifact, a generator emitting a query twice, a hand edit — does not produce an error; it produces a wrong report: the signal is scored on the replacement ranking as if that were its output, and nDCG/recall/MRR means and select_best_signal parameter choices are computed from silently truncated evidence. The harness exists to be the trustworthy oracle for signal selection; a silent input-truncation path is exactly the failure its validation section was written to prevent (the same class the deploy registry fix #6384 addressed with an object_pairs_hook: discarded text must fail the load, not vanish).

Note the existing pinning test (validation_rejects_format_violations, eval.rs:~683) builds its inputs with serde_json::json!(...) values — a Value object cannot even represent duplicate keys, so that test style structurally cannot express this case; a regression test must feed from_json raw text.

Acceptance criteria

  • EvalData::from_json rejects, with an error naming the signal and query, any atlas-eval/v1 document whose results object repeats a query key — at any run.
  • All currently-valid documents still parse and score identically (including fixtures/eval-smoke.json and the existing test corpus); every existing validation rejection (duplicate doc in a ranking, duplicate qrel, unknown query, grade > 30, duplicate signal) still fires.
  • A raw-text regression test covers the duplicate-results-key case (not via json! values, which cannot express it).
  • The fix does not change the report format (atlas-eval-report/v1) or any metric definition.

Related: #6384 (same silently-discarded-duplicate-key class in the deploy registry; fixed with a pairs hook), #5741 (the eval harness's parent issue, closed), #6046 (eval-set/gate design that will build on this harness).

Activity

Next
  1. dezren39
    added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    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-1904

  3. dezren39
    added
    source/creatorFiled by the new-issue-creator job
    priority/normalOrdinary priority (the default)
    queue/queuedHas a queued queue task
    app/atlas-searchpkgs/atlas-search (Atlas search service + atlas-embed)
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job (new-issue-creator-code-b)
    • Session / ID: cron new-issue-creator-code-b, run 2026-11-05 16:20 CST
    • Found via: filed this run
    • Task: Filed after verifying that Run.results (pkgs/atlas-search/crates/atlas-core/src/eval.rs:125), a BTreeMap, silently keeps only the last ranking when JSON text repeats a query key — validate() (eval.rs:150) sees only the post-parse map. Probe ~/git/fleet/probe-eval-dupkey on the laptop (serde/serde_json, types mirrored from eval.rs): results {"q1":["a","b"],"q1":["c"]} parses OK with q1 == ["c"]; duplicate struct-field control errors as expected.
    • Expectation: effort s — triage confirms, then a duplicate-detecting parse for the results map plus a raw-text regression test.
    • Links: queue packet packet-6390-triage.json (hidden_files)
  5. dezren39 commented on Nov 5, 2026

    @dezren39
    dezren39
    on Nov 5, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: repo queue worker, lane code-v (repo-worker-code)
    • Session / ID: cron repo-queue-worker-shift-v run 2026-11-05 16:29 CST; task 10797
    • Found via: claimed task 10797 this shift; execution-lane assignment returned opencode
    • Task: task 10797 for issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390 (triage). Fresh check: issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390 is OPEN, no hard-stop labels (held / user/owned / do-not-merge / do-not-auto-edit). Handed off to the opencode claimant — the claimant launches the bound opencode session; this lane does not work it directly.
    • Expectation: claimant session drives task 10797 to a terminal state.
    • Links: task 10797 · issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390
  6. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    work/assignedQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 5, 2026
  7. 73 remaining items

  8. dezren39
    added
    queue/queuedHas a queued queue task
    status/needs-triageNot yet triaged; needs a first look
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 6, 2026
  9. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: repo queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: OpenCode session ses_e5e510ede7fffewPSPcH8Nnjq; completed task 10797; lane 1a180ae5-384f-4e71-8d77-08f7b1652c75
    • Found via: repo-health-code-pilot scheduled claim
    • Task: Triage CONFIRMED on origin/main a2b4345 and reproduced locally: serde_json collapses repeated query keys in Run.results before validation, retaining only the last ranking. Follow-up task 10882 was enqueued and then picked up by the direct lane (fresh agent note on this issue). Issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390 remains OPEN; no matching PR exists.
    • Expectation: the direct-lane owner of task 10882 implements duplicate-aware parsing and a raw-text regression test; that owner syncs in-progress labels for the follow-up.
    • Links: task 10797; follow-up task 10882; issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390; probe /home/user/git/fleet/probe-eval-dupkey
  10. developing-today
    added
    status:in-review
    on Nov 6, 2026
  11. dezren39
    added 2 commits that reference this issue on Nov 6, 2026

    test(atlas-core): property coverage for duplicate results key rejecti…

    83d1362

    fix(atlas-core): reject duplicate results keys in atlas-eval runs (#6433

    9e20032
  12. dezren39
    closed this as completedin #6433on Nov 6, 2026
  13. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 6, 2026
  14. dezren39 commented on Nov 6, 2026

    @dezren39
    dezren39
    on Nov 6, 2026
    MemberAuthor
    More actions

    Agent note — done: fixed and merged

    • Session / ID: cron repo-queue-worker-shift-p run 2026-11-05; task 10882
    • Task: task 10882 for issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390 (small_fix) — worked directly by lane code-p.
    • Result: PR fix(atlas-core): reject duplicate results keys in atlas-eval runs #6433 merged (squash, merge commit 9e20032d0cf3034a2baea117caa60c115119138e); this issue auto-closed by the merge. EvalData::from_json now rejects a repeated query key in any run's results object with an error naming the signal and query, via a manual Deserialize impl for Run.
    • Verification: raw-text regression test fails on unpatched origin/main and passes with the fix; Codex P1 finding (property coverage) fixed in 83d1362d36 — 300 generated documents over escaped ids, field orderings, and duplicate positions — and Codex re-review of that commit completed with no findings. cargo test -p atlas-core: 31 lib + 5 parity pass; cargo fmt clean.
    • Links: task 10882 · PR fix(atlas-core): reject duplicate results keys in atlas-eval runs #6433 · issue atlas-eval: a duplicate query key in a run's results object silently replaces that query's ranking — validation never sees the dropped entry #6390
  15. dezren39
    removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/atlas-searchpkgs/atlas-search (Atlas search service + atlas-embed)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      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.