core: plan the daily budget per day, start forecasts at 2 % and follow the limit week
agent-review agent review: fail
agent-review agent review: fail
The budget was the rest of the week over the time left, so each use today lowered it and a partial first day was held to a full day. Now each day of the instance has its share, its even pace and its budget. Today's budget starts from the use at the day start and does not move with today's use (D7). Forecasts start at 2 % of a window, so an early reset no longer hides them for most of a day. Limit tiles of one kind show the same rows, with placeholders that say why a value is missing. The week chart draws per-day steps and marks the instance start and reset (D8). Week token totals follow the provider's limit week and say since when, with the calendar week as fallback (D9). Refs #13
This commit is contained in:
@@ -3,9 +3,11 @@ namespace FinalToken.Core;
|
||||
public sealed record RateForecast(double PercentPerDay, double UseAtReset, DateTimeOffset? ReachesLimit,
|
||||
double Increase = 0, TimeSpan Span = default);
|
||||
public sealed record LimitDay(DateTimeOffset Start, DateTimeOffset End, double? Used, double? Cumulative,
|
||||
bool IsToday, bool IsFuture, UseOrigin Origin = UseOrigin.Measured);
|
||||
bool IsToday, bool IsFuture, UseOrigin Origin = UseOrigin.Measured, TimeSpan Share = default, double EvenPace = 0, double? Budget = null,
|
||||
bool IsPartial = false, UseOrigin? BudgetOrigin = null);
|
||||
public sealed record WindowDays(IReadOnlyList<LimitDay> Current, IReadOnlyList<LimitDay> Previous,
|
||||
double? Today, double EvenPace, double? DailyBudget, UseOrigin TodayOrigin = UseOrigin.Measured);
|
||||
double? Today, double EvenPace, double? TodayBudget, double? LaterBudget = null, UseOrigin TodayOrigin = UseOrigin.Measured,
|
||||
UseOrigin? BudgetOrigin = null, DateTimeOffset? InstanceStart = null, DateTimeOffset? Reset = null);
|
||||
|
||||
/// <summary>Pure D7 calculations. Missing baselines use marked token estimates when calibration is available.</summary>
|
||||
public static partial class LimitAnalysis
|
||||
|
||||
Reference in New Issue
Block a user