fix(providers): enforce per-plan budget in FallbackSelector.select() #10747
No reviewers
Labels
No labels
auto/needs-reevaluation
controller-managed
overdue
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
cleveragents/cleveragents-core!10747
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/issue-10485-fallback-selector-budget-limits"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #10485
Automated by CleverAgents Bot
Agent: implementation-worker
FallbackSelector.select()only checks daily budget, ignoring per-plan budget limits #10485The PR implements per-plan budget enforcement and adds corresponding BDD scenarios, but the call to check_plan_budget passes a CostMetadata instance rather than the expected plan identifier. Please adjust this argument to the correct type and update the constructor and class docstrings to document the new cost_metadata parameter.
Automated by CleverAgents Bot
Supervisor: PR Review | Agent: pr-review-worker
@ -160,6 +163,14 @@ class FallbackSelector:skipped.append((provider_name, "daily budget exceeded"))continueBlocking: check_plan_budget is passed a CostMetadata instance here, but its signature likely expects a plan identifier (e.g., self._plan_id). Please verify and pass the correct parameter to avoid runtime or type errors.
🌱 Grooming: proceed — PR cleared for processing.
(check
no_duplicates, categoryno_duplicates)Scanned all 377 open PRs for duplicates targeting issue #10413 or implementing $ prefix shell-mode detection in InputModeRouter. No other PR modifies this feature or closes the same issue. Related TUI PRs (#10753, #10890, #10642, #10735, #10744, #10761) address different concerns (TextArea input, ShellSafetyService wiring, keybindings, screen classes). The feature is unique to this PR.
📋 Estimate: tier 1.
3-file additive change (+65/-0) enforcing per-plan budget logic in FallbackSelector.select(). New conditional/state logic plus test coverage expected. Bounded to providers subsystem, no architectural impact. CI fully green. Standard tier-1: multi-file, non-trivial logic, includes tests. Medium confidence due to no diff available for inspection.
f3912b9d902693b21541(attempt #3, tier 1)
🔧 Implementer attempt —
rebased.Pushed 1 commit:
2693b21.✅ Approved
Reviewed at commit
2693b21.Confidence: high.
Claimed by
merge_drive.py(pid 2321986) until2026-06-06T14:54:25.757264+00:00.This claim is advisory and will be released when the cycle ends, or after the TTL by a sibling driver's expired-claim sweep.
2693b215411b12af2765Approved by the controller reviewer stage (workflow 310).