Repository navigation
fix(eval): support expected terminal error outcomes - #5272
Conversation
📦 Client bundle boundary
A server module in a client graph aborts hydration in the browser. New leaks fail CI; known leaks are tracked in |
|
Codex independent review of No actionable findings. The implementation adds an explicit per-example Reporting uses the same outcome gate for summaries, progress, runtime metrics, Markdown, and JUnit. Dataset normalization and hashing include the declared expectation, and local agent, tool, and hosted AG-UI adapters supply the marker only on their terminal error paths. Verification performed against this exact SHA with pinned Deno 2.9.7:
Score: 98/100
Verdict: APPROVE. This is a plain review comment and does not submit a GitHub approval review. Review-Gate: |
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 362dd8722a
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Codex independent re-review of No actionable findings remain. This head addresses the four prior gaps at their owning boundaries:
I also swept the sibling Verification against this exact SHA with pinned Deno 2.9.7:
Score: 99/100
Verdict: APPROVE. This is a plain PR comment and does not submit a GitHub approval review. Review-Gate: |
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback". |
|



Negative-path agent evals currently fail on the mandatory
record.errorgate even when every assertion passes. This blocks theinvalid-reference,missing-text, andcommand-failurecases described in Outlook PR #89.Add
expectedOutcome: "error"to individual dataset examples. An error satisfies that expectation only when the adapter confirms a terminal target error withoutcome: "error". The local agent and tool adapters and the AG-UI agent-service adapter provide that marker. Custom adapters must opt in explicitly. Unexpected success, transport failures, incomplete streams, timeouts, grading errors, and blocking assertions still fail. Existing cases retain the strict success default. Completion, error, and trace data remain available to checks and report consumers.Use one outcome gate across summary, progress, runtime metrics, Markdown, and JUnit. Preserve expectations in timeout records and Studio source documents and patches. Outcome-only tool errors produce failed synthetic tool traces. Update public types, hash-input descriptions, and the eval concept guide. Generated API references were regenerated with pinned Deno 2.9.7 and remain unchanged.
Validation:
deno task test:file src/eval cli/commands/eval: 39 suites, 395 steps pass.deno task lint: passes.env -u FORCE_COLOR NO_COLOR=1 deno task lint:ci: passes.deno task typecheck: passes.deno check src/eval/runner.test.ts src/eval/run-report.test.ts: passes.deno task fmt:check: passes.deno task docs: passes.Hacks or workarounds: none. No CI gates or configuration changed.