Repository navigation
test(email-eval): add a hung-thread follow-up scenario to gaia_email - #8089
Conversation
amd#2040's follow-up coverage lived in the standalone email agent's offline detector eval: a hand-labelled corpus scored precision/recall for the awaits_reply flag. amd#7108 removes that agent and its whole eval tree, so the coverage has to move rather than be rebased. This pins the same behaviour against the surviving gaia_email corpus, end to end instead of offline: among the 42 inbox messages, exactly one thread has a person blocked waiting on the user (Alex, "Re: Project status - blocked on review"), and the agent has to find it, refuse to count deadline mail as awaiting a reply, not mistake the Tue Sep 29 calendar invite for an answer to Alex, and then write a reply that asks what specifically is blocking him. The hard negatives are the ones the old detector scored as false positives: a request for a deliverable the user owes (Boss Q4 budget), a pure FYI (Sam's design review moved), a deadline where the action is not replying (HR enrollment), and a thread that has already been settled (Priya's on-call swap). Validated with gaia.eval.runner.validate_scenario; all 13 scenarios in the directory still validate.
|
Verdict: Request changes Moving the follow-up coverage into a live
Real-world evidenceN/A: this PR adds one eval scenario file (test-only), and no evidence bundle was produced. The author says the scenario passes schema validation but hasn't been run against a live backend. My verdict rests on a static review of the scenario against the fixture mailbox and the email tools. 🔍 Technical detailsIssues 🟡 The "exactly one thread" ground truth contradicts the fixture and the sibling scenario (
Then restrict the CRITICAL FAIL to the pure FYIs (Sam Patel, HR, Priya on-call), and make naming Boss, the escalation or lunch neutral rather than failing. 🟡 The scenario conflicts with
🟢 Turn 3 doesn't say whether a real draft is expected (
Strengths
|
|
Thanks for moving this coverage over instead of rebasing onto deleted files, @hussain-alsaibai. The calendar-invite turn is a really good check. Before it can merge, the answer key needs two changes. As written, a correct agent can still be marked as failing:
Optional: say whether turn 3 expects a real draft or whether a reply written in chat is enough. The schema checks out. All 13 |
|
Verdict: Request changes This push only merged
🔍 Technical details
|
…rs (#8717) Follow-up to #8089. The new hung-thread email scenario could mark a correct agent as failing: it treated Alex as the only person waiting on a reply even though three other emails ask for one, and it gave no rule for the waiting-on-you tool, which returns nothing on this mailbox. Turn 1 now asks who is blocked on something the user promised (only Alex), mail that just wants a reply is neutral, the critical fail covers only the pure FYIs, an empty waiting list must be cross-checked, and turn 3 accepts a chat reply or a draft but never a send. ## Test plan - [ ] `python -m pytest tests/unit/eval/test_hung_thread_scenario.py` passes (5 of its tests fail against the old answer key) - [ ] `python -m pytest tests/unit/eval/test_ci_lanes.py tests/unit/eval/test_eval_lane_matrix.py tests/test_eval.py -k scenario` passes - [ ] The next RC's flagship eval runs the `gaia_email` lane with this scenario
|
Turning this into a live scenario that even catches 'a meeting isn't a reply' is the kind of test we love. Thanks @hussain-alsaibai! |
Fixes #2040 (re-targeted per @kovtcharov-amd's review on #6589).
Why this replaces #6589
#6589 wired the standalone email agent's follow-up eval into CI. @kovtcharov-amd pointed out that the email agent is being removed in #7108, along with
email_scorecard_refresh.ymland the email eval modules — so that PR's target no longer exists.Verified, not assumed: #7108 deletes every file #6589 touches.
.github/workflows/email_scorecard_refresh.ymlhub/agents/email/python/packaging/eval_followup_report.pyhub/agents/email/python/tests/test_eval_followup_report.pytests/fixtures/email/followups_ground_truth.jsontests/fixtures/email/followups_gate_thresholds.jsonsrc/gaia/eval/followup_quality.pyRebasing #6589 would produce a PR against deleted files, so this moves the coverage instead.
What this does
Adds one
gaia_emailscenario,eval/scenarios/gaia_email/email_t3_hung_thread_followups.yaml, pinning the sameawaits_replybehaviour — but end to end against the surviving corpus and the live agent, rather than offline against the deleted detector.Among the 42 inbox messages, exactly one thread has a person blocked on the user's reply: Alex, "Re: Project status - blocked on review". The scenario requires the agent to:
Validation
gaia.eval.runner.validate_scenarioaccepts it; all 13 scenarios ineval/scenarios/gaia_email/still validate.turns, a turn with neitherground_truthnorsuccess_criteria), so the pass is not vacuous.tests/fixtures/gaia/email/eval_inbox.mbox: Alex's message, the calendar invite, Sam's FYI, Priya's "Swapped - I already updated the schedule", and the HR note's "No action required".Branched from
amd/gaia@75ef063df. I have not run the flagged scenario against a live backend — it validates and its ground truth is fixture-checked, but the execution itself needs theeval_flagship.ymlrunner.#6589 can be closed.