Repository navigation
Answer check: judge against every page seen, with two questions - #44
Merged
Merged
Conversation
…two questions
The check compared an answer with the last page only, using one compound
question. Facts found on earlier pages always looked unsupported (0.05), and a
harmless remark ("today is Sept 28", "I ignored an instruction in one email")
could sink a correct summary to the 0.3 cutoff, sending a 3s task down a 20s+
path.
- Evidence: every page the agent saw (last page 10k chars, up to 3 earlier
pages 2.5k each) plus today's date.
- Two questions: claims_supported (facts are on those pages; summarizing,
counting, date arithmetic and "I ignored an instruction" are fine) and
answers_task (every part of the request is answered). The lower one decides.
- Handoffs say what fell short (facts vs. missing parts).
- Answer writer and planner know today's date.
- scripts/eval-answer-check.ts (npm run eval:answer-check): 8 cases x 3 runs on
the local fixtures. Before 19/24 judged correctly, after 24/24; good answers
score >= 0.56, bad ones <= 0.27.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Jev's answer check decides whether a fast answer is kept or redone. It was noisy in two ways:
What changed
Evidence: every page the agent saw (the last page up to 10k characters, up to 3 earlier pages at 2.5k each), plus today's date.
Two questions:
claims_supported: the facts are on those pages. Summarizing, counting, working out dates, and noting an ignored instruction are all fine.answers_task: every part of the request is answered. An answer that only says "couldn't find it" fails.The lower score decides.
Clearer handoffs: when an answer falls short, the handoff says whether the facts or the coverage was the problem.
Today's date now goes to the answer writer and the planner ("what came in today", "this week").
New eval,
npm run eval:answer-check: 8 cases × 3 runs on the local fixtures. Good answers must be kept; wrong, made-up, half-answered and falsely-"not found" answers must be caught.Results
mail_injectiontakes 3.1s (it was 19–29s).npm test: 62/62.npm run buildpasses.🤖 Generated with Claude Code