Skip to content

Use live limits for fast-mode forecasts#92

Merged
cbusillo merged 1 commit into
mainfrom
fix/live-capacity-forecast-limits
May 22, 2026
Merged

Use live limits for fast-mode forecasts#92
cbusillo merged 1 commit into
mainfrom
fix/live-capacity-forecast-limits

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

@cbusillo cbusillo commented May 22, 2026

Summary

  • pass summary.liveLimits into pooled OpenAI fast-mode forecasts
  • pass live limits into the app detail forecast path too
  • add a regression test for a weekly-exhausted account whose stale 5-hour capacity would otherwise inflate guardrail runway

Context

Review agents caught that PR #91 fixed headline live capacity but fast-mode forecast construction still passed summary.limits, which could re-pool a weekly-blocked account for forecast/runway advice. This PR closes that gap before submitting the 1.0.2 App Store draft.

Verification

  • swift test --filter 'openAIFastModeForecastIgnoresFiveHourBucketsBlockedByWeeklyLimit|capacityPortfolioDetailKeepsBurnRateWhenFiveHourGuardrailConstrainWeekly|observedBurnRateIgnoresAccountsExhaustedByLongerWindow|mainLimitSummariesExcludeAccountsExhaustedByLongerOpenAIWindow'
  • scripts/commit-gate.sh

@cbusillo cbusillo merged commit 93fbe60 into main May 22, 2026
3 checks passed
@cbusillo cbusillo deleted the fix/live-capacity-forecast-limits branch May 22, 2026 22:38
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