Repository navigation
fix(sdk): ignore a boolean max_iteration_per_run instead of reading it as 1 - #6428
Merged
VascoSch92 merged 2 commits intoNov 4, 2026
Merged
Conversation
Closed
75 of 86 tasks
The test only checked that the value was not 1, so it would also pass if a boolean were read as 0. Assert None, which is what the fix returns.
VascoSch92
enabled auto-merge (squash)
November 4, 2026 09:51
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
HUMAN:
Fixed the boolean iteration limit from #6348. I reviewed the diff and the test; a yes/no in frontmatter must not cap a run at one.
AGENT:
Why
_extract_max_iteration_per_runaccepted anyint, andboolis anintin Python. YAML reads an unquotedyes/no/on/offas a boolean, somax_iteration_per_run: yesproducedTrue— which is1— silently capping the subagent at a single iteration. The sibling_extract_max_budget_per_runalready rejects booleans, so the two frontmatter keys disagreed.Summary
max_iteration_per_runas unset (the same fallback as an absent key), matching_extract_max_budget_per_run.test_load_boolean_max_iteration_per_run_is_not_onefrom theworktree-test-edge-casesbranch (commit f2fcf6e) without itsxfail(strict=True)marker, per the [Bug]: Edge-case tests expose ~70 bugs across the SDK, agent server, tools and workspaces #6348 menu's acceptance criteria.Issue Number
Part of #6348 (menu sub-item: "_extract_max_iteration_per_run accepts YAML booleans as ints ... so 'yes' silently caps a run at 1")
How to Test
Before this change
AgentDefinition.loadreportsmax_iteration_per_run=1; after, it isNone. Thetests/sdk/subagent/suite is 130 passed, with one pre-existing environment failure (test_register_file_agents_skips_agent_with_missing_skill) that fails the same way on unpatchedmain.ruff check/formaton the touched files are clean.Type
Notes
A quoted
"yes"still goes through the string branch and failsint(), as before; only the YAML boolean form changed.