You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The live eval runner misses a stale Worker whose docs changed without changing the chunk count #374
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