Repository navigation
feat(skills): ask for the max rollouts and leave steps unlimited by default in optimize - #681
Merged
Conversation
liramon2
force-pushed
the
optimize-skill-rollouts
branch
from
November 25, 2026 20:32
1ac64d0 to
ea34140
Compare
liramon2
force-pushed
the
optimize-skill-rollouts
branch
from
November 25, 2026 20:38
ea34140 to
34758f8
Compare
liramon2
marked this pull request as ready for review
November 25, 2026 20:41
liramon2
requested a deployment
to
manual-approval
November 25, 2026 20:46 — with
GitHub Actions
Waiting
poshinchen
previously approved these changes
Nov 25, 2026
liramon2
force-pushed
the
optimize-skill-rollouts
branch
2 times, most recently
from
November 25, 2026 20:52
e2ba2bd to
9e4d93d
Compare
liramon2
force-pushed
the
optimize-skill-rollouts
branch
from
November 25, 2026 20:56
9e4d93d to
97da4b7
Compare
liramon2
requested a deployment
to
manual-approval
November 25, 2026 21:04 — with
GitHub Actions
Waiting
nhungbi
reviewed
Nov 25, 2026
nhungbi
left a comment
Contributor
There was a problem hiding this comment.
Assessment: Comment
The budget math matches end_phase_reserve and the optimizer's setup check. With the estimate gone, the open points are making the default spend visible and still warning when a step limit can't fit the max rollouts.
Review Categories
- Defaults and cost: a default run can spend up to 500 rollouts plus a proposer round per step, and the review shows no figure beyond the cap.
- Budget rules: an unreachable step limit is no longer flagged, and the on-request step count rounds up past what the search can afford and assumes every step tries
candidatesversions, which aNestedround's first step doesn't. - PR hygiene: the checklist is all unchecked, the skill wasn't run end to end, and the description doesn't explain why the estimate was dropped.
…efault in optimize
liramon2
force-pushed
the
optimize-skill-rollouts
branch
from
November 25, 2026 21:11
97da4b7 to
61b5adc
Compare
liramon2
requested a deployment
to
manual-approval
November 25, 2026 21:17 — with
GitHub Actions
Waiting
nhungbi
approved these changes
Nov 25, 2026
This branch is waiting to be deployed
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.
Description
The optimize skill's budget question now asks for the max rollouts the run may spend (default 500), and steps no longer default to 4: with no step limit, the skill passes no
--max-iterations, and the search keeps proposing until what's left after the end phase's reserves can't score another candidate (stop_reasonbudget). This matches the CLI, where--max-rolloutsdefaults to 500 and--max-iterationsto no limit.Changes in
.agents/skills/optimize/SKILL.md, step 5 and the places that show the budget:--max-iterations, and 0 still measures only the current agent.2 × ceil(5% × cases × runs)per validation and test arm, asend_phase_reserve), and the steps that fit,ceil(floor(left ÷ (runs × train)) ÷ candidates), since the search stops when what's left can't pay for one candidate. With a tunable factory whose markers hold achoice(...)of 2 or more components, the default schedule isNestedand more steps fit.--max-rollouts Nis always passed;--max-iterations Nonly with a step limit.Related Issues
None.
Documentation PR
None.
Type of Change
New feature
Testing
Checked against
src/strands_evals/cli/commands/optimize.py(--max-rolloutsdefault 500,--max-iterationsdefault no limit) and the optimizer's stop reasons (budget,iterations,exhausted). The skill wasn't run end to end in an agent session, and the repo's lint and CI checks weren't run locally.hatch run prepareChecklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.