Skip to content

Usage pacing: burn first on weekly windows only, keep 5-hour pacing (#906) #969

Closed

Description

@scuttletoby

Owner decision on #906: one account is paced with the week and keeps a small reserve (2%) for the owner; every extra account may spend its weekly limit fast, but its 5-hour windows stay paced. Same on every machine.

Today usagePacing.<instance>.burnFirst: true drops the even pace for every window of that instance (UsagePacer.ts ~375-396: the target becomes the reserve ceiling for session and weekly windows alike). So an extra account set to burn first would also burn its 5-hour window to the limit.

Wanted:

  • burnFirst (or a new field) applies to weekly/monthly windows only; session (5-hour) windows keep the even pace. Keep the setting general: e.g. burnFirstWindows: ["weekly", "monthly"], default = current behaviour for burnFirst: true, so existing settings decode the same.
  • Report (fork report / pacing view) shows which windows burn first.
  • Failing-first tests in UsagePacer.test.ts and UsagePacingGate.test.ts: burn-first account ahead on its 5-hour window is "ahead"; behind on weekly with burn-first is "behind" up to 100 − reserve.

Interim (set now on the main machine): main instance reservePercent: 2; extra Claude account burnFirst: true, reservePercent: 0. Gate stays advise, so nothing is held meanwhile.

Size S, server only, not critical.

🤖 Generated with Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions