Repository navigation
ci(eval): action-item eval (Claude-judge required) — nightly + weekly + release gates (#1964) - #1976
Conversation
…esult handling) Adopts the token-reduction and data-out-of-context outcomes from Anthropic's "code execution with MCP" writeup using GAIA's existing embedding-based tool loader and tool-wrapper layers — not the code-execution mechanism, which is a poor fit for local 4B-35B models and a large local-machine attack surface. Scopes three workstreams: WS1 routes MCP tools through the dynamic loader (progressive disclosure, with an MCP-only gating mode so static-tool recall is preserved), WS2 keeps large tool results out of context via a session-scoped artifact store + handle resolution in _execute_tool, WS3 (optional) adds PII pass-through. Non-goal: model-authored code execution / sandbox.
|
Verdict: Approve This wires the already-shipped action-item extraction eval (#1962) into the nightly email workflow as a report-mode step, so a precision/recall/F1 drop in what the agent extracts shows up in the nightly report instead of silently reaching a user's task list. It's a clean, additive change that faithfully reuses the shipped API and mirrors the existing drafting step. I verified the substance end-to-end and found no blocking issues: the workflow YAML parses (9 steps), the embedded Python compiles, all 7 imports resolve, every call signature and every summary/gate/aggregate key the step reads matches One minor note, not blocking: the description says "the net diff is the single workflow file," but the PR also adds an unrelated MCP-context-efficiency plan doc — worth either splitting out or correcting the description. 🔍 Technical details🟢 Minor — description/scope mismatch Verification performed (all pass):
Strengths
|
…that files an issue on failure (#1964)
|
🟡 The The The fix is small: mark 🔍 Technical details
# Current (misleading):
ANTHROPIC_API_KEY:
description: 'Judge credential for the drafting + borderline action-item judge; absent → those paths log a loud skip / run judge-less.'
required: falseSuggested fix: ANTHROPIC_API_KEY:
description: 'Required for the action-item extraction judge (hard-fail if absent). Also used by the voice-drafting judge (skipped/reported if absent).'
required: trueThe action-item Python block at ~line 495 ( |
#1962 shipped the extraction-quality eval (precision/recall/F1 over the hand-labeled action-item corpus), but nothing ran it — so a regression in what the agent extracts would reach a user's task list silently. This PR runs the email eval suite where it matters: nightly, weekly (with an auto-filed issue on failure), and as a blocking gate on every release (email-agent and GAIA core).
Threads
test_email_agent_eval.ymldrives the real triage/extraction path over the committed corpus, prints a precision/recall/F1 scorecard, and uploadsaction_items_report.jsonalongside the triage/perf/drafting reports.ANTHROPIC_API_KEYis absent or the judge errors, the step fails loudly rather than degrading to fuzzy-only matching (CLAUDE.md: No Silent Fallbacks — Fail Loudly).workflow_call) and is called as a blocking gate fromrelease_agent_email.yml(before the hub/npm publish) andpublish.yml(before the core publish approval). Both run on[self-hosted, lemonade-eval]and share thelemonade-evalconcurrency group, so a release exercises the shipping agent on its corpus and stays strictly serial with the nightly/refresh runs.weekly_eval.ymlruns the same reusable suite once a week and opens (or updates) a GitHub issue labeledeval-failureif any eval fails, escalating a regression the nightly only logs.Report mode is preserved for the gate contract: the eval runs + uploads on every release, and only hard-blocks when a
tests/fixtures/email/threshold manifest setsenforce:true(data, not code). Note this is distinct from the judge requirement above — a missing judge always fails the run regardless ofenforce.The general
gaia eval agentgate is intentionally not wired into the core release yet: that CI (test_eval_rag.yml) is disabled pending #1315 (nonexistent runner label + a 90-min perf ceiling), so gating on it now would fail every release. Fast-follow once #1315 lands (noted inline inpublish.yml).Test plan
yaml.safe_load); everyneeds:resolves; both release gates + the weekly issue job depend onemail-evalgaia.eval.action_item_qualityresolve; nojudge_fn=None/ fuzzy-only path remainsinputs.*unification leaves the nightlyschedulerun unchanged; no straygithub.event.inputsrefstest_email_agent_eval.yml+weekly_eval.ymland confirm the action-item report uploads and (on an injected failure) aneval-failureissue is filedemail-evalgate runs on the self-hosted runner and blocks the publish approvalCloses #1964