Let force-enable overrides bypass the daily quota #67

Merged
albert merged 1 commit from u/albert/feat/overrides-bypass-daily-quota into main 2026-06-25 00:46:34 +00:00
Owner

A daily override with availability=Some(true) (the manually_enabled flag)
already bypassed the disabled flag and the availability window, but the
daily quota was still enforced -- so a parent couldn't grant extra play
time with "Enable Today" alone.

Extend the manually_enabled bypass in evaluate_entry() and
compute_max_duration() to also skip the daily quota: a force-enabled entry
is no longer disabled for an exhausted quota, and its session is no longer
capped by remaining quota. A per-session max_run still applies; only the
daily cap is lifted. quota_delta_seconds remains for granting a finite
amount of extra time without a full bypass.

Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_0139ZuVVWDtFzpmcDsiNukcV

A daily override with availability=Some(true) (the manually_enabled flag) already bypassed the disabled flag and the availability window, but the daily quota was still enforced -- so a parent couldn't grant extra play time with "Enable Today" alone. Extend the manually_enabled bypass in evaluate_entry() and compute_max_duration() to also skip the daily quota: a force-enabled entry is no longer disabled for an exhausted quota, and its session is no longer capped by remaining quota. A per-session max_run still applies; only the daily cap is lifted. quota_delta_seconds remains for granting a finite amount of extra time without a full bypass. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0139ZuVVWDtFzpmcDsiNukcV
Let force-enable overrides bypass the daily quota
All checks were successful
CI / ShellCheck (pull_request) Successful in 7s
CI / CI image (pull_request) Successful in 9m56s
CI / Rustfmt (pull_request) Successful in 12s
CI / Clippy (pull_request) Successful in 2m29s
CI / Test (pull_request) Successful in 3m1s
CI / Android portability (shepherd-media-core) (pull_request) Successful in 28s
CI / Build (pull_request) Successful in 3m12s
CI / E2E (pull_request) Successful in 3m22s
CI / Firewall E2E (pull_request) Successful in 3m59s
b605a65c8c
A daily override with availability=Some(true) (the manually_enabled flag)
already bypassed the disabled flag and the availability window, but the
daily quota was still enforced -- so a parent couldn't grant extra play
time with "Enable Today" alone.

Extend the manually_enabled bypass in evaluate_entry() and
compute_max_duration() to also skip the daily quota: a force-enabled entry
is no longer disabled for an exhausted quota, and its session is no longer
capped by remaining quota. A per-session max_run still applies; only the
daily cap is lifted. quota_delta_seconds remains for granting a finite
amount of extra time without a full bypass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139ZuVVWDtFzpmcDsiNukcV
albert merged commit 16a0b7b04a into main 2026-06-25 00:46:34 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
albert/shepherd-launcher!67
No description provided.