Skip to content

feat(run_code): let a run's step_overrides set run_code args - #571

Closed
18vijayb wants to merge 2 commits into
mainfrom
vijay/run-code-args-step-overrides
Closed

18vijayb wants to merge 2 commits into
mainfrom
vijay/run-code-args-step-overrides

Conversation

@18vijayb

@18vijayb 18vijayb commented Nov 9, 2026 •

Copy link
Copy Markdown

run_code ignored a run's step_overrides. A caller that needed per-run script inputs had to create a new task version for each input, for example one copy of a QC task per item it checks, just to set its run_code steps' args.

step_overrides[<step id>].args is now merged over the step's stored args, and the run's keys win. run_container_unit_tests_verifier applies the same rule to env_vars. An args override that isn't an object is refused before the step touches a sandbox.

Validation: three unit tests in tst/unit/task_step/test_run_code.py cover the merge, an override aimed at another step, and the refusal. I couldn't run the suite locally, so CI is the check of record.

🤖 Generated with Claude Code

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge; the previous null-argument issue is fixed.

Summary

run_code merges per-run args over stored arguments without changing the stored values.

  • Run-specific arguments reach each script without changing saved task settings.

Reviews (2) · Last reviewed commit: "fix(run_code): refuse an explicit null a..." · Reviewed by Greptile

A run's step_overrides now reach run_code: `step_overrides[<step id>].args` is merged over the
step's stored args, the run's keys winning, the same way run_container_unit_tests_verifier adds
overridden env_vars to its stored ones. One stored task can then be run with per-run script
inputs instead of a new task version per input. An args override that isn't an object is refused
before the step touches a sandbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@18vijayb
18vijayb requested a review from a team as a code owner November 9, 2026 19:05
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@18vijayb

18vijayb commented Nov 9, 2026

Copy link
Copy Markdown
Author

Closing: the caller that needed per-run run_code args went back to creating a task version per input, so nothing depends on this now.

@18vijayb 18vijayb 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