Skip to content

Plans have no file-count cap - #354

Merged
nambok merged 1 commit into
mainfrom
fix/no-plan-file-cap
Oct 29, 2026
Merged

nambok merged 1 commit into
mainfrom
fix/no-plan-file-cap

Conversation

@nambok

@nambok nambok commented Oct 29, 2026

Copy link
Copy Markdown
Collaborator

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.rs
    • validate_plan: removed the scope check (the max_plan_files setting, the hard cap that set blocked, the "smaller tickets" warning).
    • PlanValidation: removed blocked and over_cap.
    • Removed the narrowed re-plan after planning (narrow_scope_note and its caller), and the "Plan validation failed / Plan scope too large" path that commented on the ticket and failed the run.
    • Removed load_workflow_setting_num (its only reader was max_plan_files). Stored max_plan_files values are now ignored; the gateway never exposed the setting, so there is no API, OpenAPI or dashboard change.
    • Kept mentioned_file_count, which upgrades a misclassified "simple" ticket.
  • services/worker/src/passes/plan.rs
    • The complexity guidance no longer caps tasks ("1-2 tasks maximum", "3-6 tasks"); it asks for one task per file the change needs.
    • New scope rule in the tasks.md instructions: every file the ticket names gets its task, there is no limit on how many files a plan changes, and padding is left out.
  • UPGRADE_PLAN.md: the scope check and the max_plan_files setting are marked as removed.

Verification

  • New tests: a 40-file task checklist is read in full (40 files); a guard test fails if the file cap, the narrowed re-plan, the "smaller tickets" warning, the blocked path or the max_plan_files read come back, or if the planner prompt caps tasks again.
  • cargo fmt --all --check, cargo clippy --workspace --all-targets -- -D warnings, cargo test --workspace pass locally.

@nambok
nambok merged commit 7b3598b into main Oct 29, 2026
8 checks passed
@nambok
nambok deleted the fix/no-plan-file-cap branch October 29, 2026 02:08
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