Skip to content

Derive the accepted -o task override names from TaskConfig - #367

Merged
abhishekraok merged 5 commits into
mainfrom
fix/task-config-override-fields
Sep 14, 2026
Merged

abhishekraok merged 5 commits into
mainfrom
fix/task-config-override-fields

Conversation

@abhishekraok

Copy link
Copy Markdown
Collaborator

From gregorybchris's agent review on #363 (finding 10), verified: the hand-maintained TASK_CONFIG_FIELDS set was missing eight real TaskConfig fields — judge_model, judge_max_tokens, judge_reasoning_effort, max_length, answer_extractor, output_score_aggregation, required_secrets, sandbox_env — so -t foo -o judge_model=x failed with "not a TaskConfig or SamplingParams field".

The set is now derived from dataclasses.fields(TaskConfig) (imported lazily, as the module only type-checks against TaskConfig today), plus the special-cased priority, mirroring how the sampling fields are already handled. A test asserts every dataclass field is accepted, so the list cannot drift again.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ

The hand-maintained TASK_CONFIG_FIELDS set had fallen eight fields behind
the dataclass (judge_model, judge_max_tokens, judge_reasoning_effort,
max_length, answer_extractor, output_score_aggregation, required_secrets,
sandbox_env), so `-o judge_model=x` was rejected as an invalid override.
Build the set from dataclasses.fields(TaskConfig), as is already done for
SamplingParams, keeping the special-cased `priority`.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-10T16:45:42.289133Z d746b66 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d746b6667a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/olmo_eval/cli/utils.py Resolved
abhishekraok and others added 2 commits September 11, 2026 20:35
answer_extractor and sandbox_env have no command-line representation:
the parser yields strings, numbers, and JSON, and nothing hydrates them,
so accepting them would only move the failure into scoring (review:
Codex on #367).

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LMFjgUqHjQA3aCeB4QmEHZ
@abhishekraok
abhishekraok merged commit c84828e into main Sep 14, 2026
10 checks passed
@abhishekraok
abhishekraok deleted the fix/task-config-override-fields branch September 14, 2026 20:46
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.

2 participants