Skip to content

fix: default hourly cost quota should be unlimited (0.0), not $1.00#417

Open
f-liva wants to merge 1 commit intoRightNow-AI:mainfrom
f-liva:fix/default-hourly-quota-unlimited
Open

fix: default hourly cost quota should be unlimited (0.0), not $1.00#417
f-liva wants to merge 1 commit intoRightNow-AI:mainfrom
f-liva:fix/default-hourly-quota-unlimited

Conversation

@f-liva
Copy link

@f-liva f-liva commented Mar 7, 2026

Summary

  • Changed ResourceQuota::default() max_cost_per_hour_usd from 1.0 to 0.0 (unlimited), consistent with daily and monthly defaults
  • Fixed apply_budget_defaults() in kernel.rs which compared against the old hardcoded 1.0 sentinel value

Problem

When no quota is configured, max_cost_per_hour_usd defaults to 1.0 while max_cost_per_day_usd and max_cost_per_month_usd default to 0.0 (unlimited). This creates a hidden $1/hour cap that blocks agents unexpectedly.

Test plan

  • Existing test test_check_quota_zero_limit_skipped validates that 0.0 means no enforcement
  • Tests test_record_and_check_quota_under and test_check_quota_exceeded set explicit values, unaffected

Fixes #416

🤖 Generated with Claude Code

The ResourceQuota default set max_cost_per_hour_usd to 1.0 while daily
and monthly were 0.0 (unlimited). This caused agents without explicit
quota configuration to hit a hidden $1/hour cap.

Also fixes apply_budget_defaults() which compared against the old
hardcoded default value of 1.0.

Fixes RightNow-AI#416

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jaberjaber23 jaberjaber23 added the under-review PR is under review label Mar 10, 2026
@jaberjaber23
Copy link
Member

thanks for this! we're reviewing and may implement this differently to fit our architecture. will keep you posted

@jaberjaber23
Copy link
Member

implemented in v0.3.46 — default token quota is now unlimited (0). thanks @f-liva

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

under-review PR is under review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Default ResourceQuota enforces $1/hour cost limit even when no quota is configured

2 participants