Skip to content

Grade an agent stopped at its message limit mid tool call - #53

Merged
dylanuys merged 1 commit into
mainfrom
fix/message-limit-tool-call-grade
Nov 9, 2026
Merged

dylanuys merged 1 commit into
mainfrom
fix/message-limit-tool-call-grade

Conversation

@dylanuys

@dylanuys dylanuys commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Summary

When Inspect ends a sample at its message limit while the agent is still calling a tool, the final output stops with tool_calls and carries no answer. completion_gate sent that to NEEDS_REVIEW as an unknown completion status, so the sample was never graded.

The agent gave no final answer within its limit, so the gate now grades it INCORRECT with cause message_limit_reached. Any other non-stop ending still goes to review.

Validation

  • packages/yugos-evals/tests/test_completion_gate.py adds 4 tests, including an end-to-end Inspect mockllm run with a message limit that checks the sample ends on its message limit and scores incorrect.

🤖 Generated with Claude Code

When Inspect ends a sample at its message limit while the agent is still
calling a tool, the final output stops with tool_calls and no answer. The
completion gate sent that to needs_review as an unknown completion status,
which hosted grading treats as a grader failure. The agent gave no final
answer within its limit, so grade it incorrect with cause
message_limit_reached. Other non-stop endings still need review.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T15:10:56.125919Z 640da79 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dylanuys
dylanuys merged commit 8c05370 into main Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant