Repository navigation
Plans have no file-count cap - #354
Merged
Merged
Conversation
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.
Summary
A plan is never failed, warned about or narrowed because of how many files it changes. A mechanical ticket that names many files (schemas, their components, a migration, generated output) now runs as one change. Scope quality comes from the planner's scope rule instead: padding (refactors, renames, cleanups or follow-ups the ticket didn't ask for and the change doesn't need) is left out, and every file the ticket names keeps its task.
Changes
services/worker/src/passes/mod.rsvalidate_plan: removed the scope check (themax_plan_filessetting, the hard cap that setblocked, the "smaller tickets" warning).PlanValidation: removedblockedandover_cap.narrow_scope_noteand its caller), and the "Plan validation failed / Plan scope too large" path that commented on the ticket and failed the run.load_workflow_setting_num(its only reader wasmax_plan_files). Storedmax_plan_filesvalues are now ignored; the gateway never exposed the setting, so there is no API, OpenAPI or dashboard change.mentioned_file_count, which upgrades a misclassified "simple" ticket.services/worker/src/passes/plan.rsUPGRADE_PLAN.md: the scope check and themax_plan_filessetting are marked as removed.Verification
max_plan_filesread come back, or if the planner prompt caps tasks again.cargo fmt --all --check,cargo clippy --workspace --all-targets -- -D warnings,cargo test --workspacepass locally.