Skip to content

Grade a task limit reached mid tool loop as incorrect - #52

Closed
kenobijon wants to merge 2 commits into
mainfrom
fix/task-limit-mid-tool-loop
Closed

kenobijon wants to merge 2 commits into
mainfrom
fix/task-limit-mid-tool-loop

Conversation

@kenobijon

@kenobijon kenobijon commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On competition v0.3.0 (main), two runs from one miner fail as infrastructure failures and loop on automatic restarts (billing-e8b3ca21…, billing-9f6c9209…).

Every private_harness_tools_* question in the published pack freezes message_limit: 20. That miner's model re-reads the same workspace records until the 20 messages run out. Inspect then ends the sample with the last output still a tool call (stop_reason: tool_calls). The completion gate leaves it unscored (unknown_completion_status), measure_log turns that into needs_review / unavailable, and on competition packs Ycore stops the whole run on any such grade.

The saved grading samples show both ways the limit lands: the final tool results at exactly 20 messages, so the next model turn would be the 21st; or 18 messages plus 3 more tool calls, so the tool results would push past 20.

Change

_unscored_grade already decides a router's own non-answers first: truncation is a settled zero, and a Yugos deadline has no grade. This adds one case. A sample that reached one of the task's own limits (message, token, turn) on a tool_calls stop is graded incorrect at 0, with cause task_limit_mid_tool_loop. The agent exhausted its own limit without answering, which is a miner failure (finalize as incorrect), matching how Ycore grades escrow_exhausted.

Deadlines (time, working, cost) and operator stops keep their current handling, so our own interruptions are never scored against the miner.

Rollout

This changes grading, so Ycore needs a new Yugos pin plus rebuilt controller and worker images, then upload and executor deploys. No previously settled grade changes: on competition packs every sample that hit this path failed its run.

Validation

  • New parametrized test in test_inspect_measure.py: a message limit becomes incorrect/graded; an operator stop stays needs_review/unavailable. It fails without the change.
  • test_inspect_measure.py (26), test_inspect_grading.py, test_inspect_router.py, test_inspect_frozen.py (65 passed, 1 skipped).

🤖 Generated with Claude Code

kenobijon and others added 2 commits November 9, 2026 00:12
An agent that exhausts a task's own message, token or turn limit while still
calling tools never answered. Inspect ends the sample on the tool-call output,
the completion gate leaves it unscored as an unknown completion status, and
the host treated it as a grader failure that stops the whole competition run.

Settle it as a not-attempted zero instead. Deadlines and operator stops keep
their existing handling.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both codes are graded zeros; incorrect with an explicit cause matches the
host's other self-exhaustion outcome (escrow_exhausted).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kenobijon kenobijon changed the title Score a task limit reached mid tool loop as not attempted Grade a task limit reached mid tool loop as incorrect Nov 9, 2026
@kenobijon

Copy link
Copy Markdown
Contributor Author

Superseded by #53 (merged) and BitMind-AI/ycore#706, which settles the remaining case in the executor from Inspect's recorded sample limit.

@kenobijon kenobijon closed this Nov 9, 2026
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