Skip to content

The live eval runner misses a stale Worker whose docs changed without changing the chunk count #374

Backlog

Description

@baldurpan

Raised in review of #373 by @craig-o-curtis:

Comparing only totalChunks misses most docs edits, which keep the chunk count. A stale Worker then answers against old docs while known grades against the new corpus, so a model gets blamed for a false FAIL. A corpus hash in the trace would catch this.

Why it is real. docs/evals/run-live.ts decides whether the Worker at --base is stale by comparing the retrieval trace's totalChunks with the chunk count of the corpus it builds in process. Most docs edits, such as a reworded paragraph, a renamed flag or a changed example, leave the chunk count unchanged. A Worker built before such an edit passes that check and answers from the old text, while the known and links graders read the new corpus. A correct answer can then fail, and the model gets the blame for a stale worker/dist.

What would fix it. build-context.mjs computes a hash of the corpus it writes, the Worker's RetrievalTraceData carries it next to totalChunks, and the runner compares hashes. run-live.ts:281 already shows where the comparison goes.

Why it is not in #373. The trace is part of the production chat protocol. It is built in worker/chat-handler.ts, validated in src/chat/lib/chat-types.ts and read by the client's trace view. Adding a field there changes what the live Dox Worker sends to every reader, which belongs in its own change, not in the evals pull request.

Activity

  1. added
    enhancement
    on Nov 25, 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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions