Repository navigation
Say what will refill unused at the current pace - #1089
Merged
Merged
Conversation
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.
Contributor
Author
|
Ready for the merge train Head: 3c6b1d0 |
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
…-061e2cfd9f13a10e: merge PR #1089
This was referenced Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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[].unusedAtPacein the agent snapshot. Optional, schema 1. It hasrunsOutBeforeRefill,refillsUnusedPoints,pacePerHourandpaceMeasured, all fromAccountOverview.paceForecast(provider:). It also hasusageCreditsLeft,accountsSpendingUsageCredits,lineandusageCreditsLine. It is omitted when there is no forecast (no current weekly reading). It comes from the current reading, with no extra history read.expiresAtseam stays.unusedCapacityobject. 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.Removed:
usageCreditsLeftandusageCreditsLinefrom the weeklyunusedCapacityobject (moved tounusedAtPace, from the current reading).Net lines: Sources +66, Tests +83, docs +12.
Closes #1080