Skip to content

Say what will refill unused at the current pace - #1089

Merged
shiny-code-app[bot] merged 1 commit into
mainfrom
work/1080-unused-at-pace
Nov 8, 2026
Merged

shiny-code-app[bot] merged 1 commit into
mainfrom
work/1080-unused-at-pace

Conversation

@shiny-code-app

@shiny-code-app shiny-code-app Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Why

The Supervisor slows down unless Chris reminds it to burn. The weekly waste number (#1087) says what was lost. This adds the forward line it acts on: how much will refill unused at the current pace, from the pace forecast the reset rule already uses (#1088). There is no second forecast.

What changed

  • providers[].unusedAtPace in the agent snapshot. Optional, schema 1. It has runsOutBeforeRefill, refillsUnusedPoints, pacePerHour and paceMeasured, all from AccountOverview.paceForecast(provider:). It also has usageCreditsLeft, accountsSpendingUsageCredits, line and usageCreditsLine. It is omitted when there is no forecast (no current weekly reading). It comes from the current reading, with no extra history read.
  • Plain words.
    • "OpenAI: about 140 points will refill unused at this pace. Add work."
    • When nothing is at risk: "OpenAI: every point gets used before it refills at this pace." or "OpenAI: nothing will refill unused at this pace."
    • With no measured pace yet, it says so, and the points assume nothing more runs.
  • Usage credits. Saved history shows credits are spent only while an account's weekly quota is at 0% (Use every kind of AI capacity: one reset rule and a burn signal #1081). So the line says "OpenAI has 179,745 usage credits left. They are not being spent: credits are used only once an account's weekly quota reaches 0%." Or it names how many accounts at 0% are spending them. No expiry is claimed; the expiresAt seam stays.
  • Mac provider view. The "Unused capacity" section shows this line and the credits line above the weekly waste lines.
  • Credits left move here from the weekly unusedCapacity object. That copy was up to 30 minutes old; this one is from the current reading. One source for the current balance.

Verification

  • swift build: clean.
  • swift test --filter ContextPanelCoreTests: 1361 passed.
  • New tests:
    • A heavy pace shows nothing at risk.
    • A slow pace shows the forecast's own unused points (80) and "Add work".
    • An unmeasured pace says so.
    • Credits are worded as not spent, or spent on the one account at 0%.
    • The agent snapshot carries the field with a forecast and omits it when the reading is too old to forecast.
    • Each was checked to fail by breaking the matching rule (5 mutations, all caught).
  • JetBrains inspection: UNKNOWN. This repository's worker is PyCharm and has no Swift or Markdown coverage.

Removed: usageCreditsLeft and usageCreditsLine from the weekly unusedCapacity object (moved to unusedAtPace, from the current reading).
Net lines: Sources +66, Tests +83, docs +12.

Closes #1080

Word the provider's pace forecast for the Supervisor ("about 140 points will
refill unused at this pace. Add work.") with usage credits left beside it,
in the agent snapshot's providers entries and the provider view. Credits
left move here from the weekly waste number, so the current balance has
one source.
@shiny-code-app

shiny-code-app Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Ready for the merge train

Head: 3c6b1d0

@shiny-code-app

shiny-code-app Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor Author

Launchplane completed the merge-train step for this pull request.

Launchplane finished the merge-train step for this pull request.

Launchplane manages this comment and will update it as the train moves.

shiny-code-app Bot added a commit that referenced this pull request Nov 8, 2026
@shiny-code-app
shiny-code-app Bot merged commit b89b018 into main Nov 8, 2026
10 checks passed
@shiny-code-app
shiny-code-app Bot deleted the work/1080-unused-at-pace branch November 8, 2026 22:48
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.

Show quota that will refill unused, and a weekly waste number

0 participants