OpenPaper logo OpenPaper · 論文館
OpenPaper 論文館

Agent Board Auto Mode — Dual-Window Pacing

Dawn Studio — Working Paper v0.1, 2026-11-22 (Hector Chan / Emma) · Working Paper v0.1 · 2026-11-22

Agent Board Auto Mode — Dual-Window Pacing to Maximise the 7-Day Reset Without Tripping the 5-Hour Reset

Dawn Studio — Working Paper v0.1, 2026-11-22 (Hector Chan / Emma) Status: DEFAULT mode specification for the Agent Board. This is the board's auto mode, not an optional feature.

Abstract

Claude accounts live under two nested quotas: a rolling 5-hour session cap C5 and a fixed 7-day cap C7 (reset at an account-fixed time, shown in Settings > Usage / /usage). Bursting maximises short-term throughput but trips C5 and leaves the agent blocked for hours; idling wastes C7, which expires worthless at reset — use-it-or-lose-it. We formulate Auto Mode as a dual-constraint pacing problem, solve it with a nested token-bucket / leaky-bucket controller driven by Model Predictive Control (MPC), reserve quota for forecast human-directed demand learned from the user's own behaviour, and fill only the provable surplus with elastic, no-pain work — including automatic book study when no repo work is pending. The terminal optimum is exact: in the final 5-hour window before the 7-day reset, C5 and C7 should be exhausted together; before that window, C5 must never bind.

1. Problem

For each account a, at time t:

This is exactly the shape of three giant literatures:

  1. Network congestion control — token bucket (burst budget) vs leaky bucket (smooth output); AIMD (Jacobson, TCP) and BBR-style probing for an unknown, drifting capacity.
  2. Google SRE / Borg — quota as schedulable capacity; preemptible / batch backfill tasks soak spare capacity and are evicted instantly by priority work; load-shedding and graceful degradation.
  3. HPC backfill scheduling (Slurm) + queueing theory — backfill only jobs that provably finish without delaying reserved future jobs; Little's Law to size concurrency from target rate × session latency.

Academic spine: control theory (PID / MPC — re-solve a finite-horizon optimisation every tick as forecasts update), demand forecasting (time-series + contextual features), and online learning (contextual bandit over task classes: value gained per token).

Books auto-studied in this line (curriculum, §6): Designing Data-Intensive Applications (Kleppmann — already Emma's standing study duty), Site Reliability Engineering (Google — quota, backfill, load shedding), The Art of Computer Systems Performance Analysis (Jain — measurement / AIMD), Introduction to Queueing Theory, TCP congestion-control canon (Jacobson 1988; BBR, Cardwell et al.).

2. The Core Rate Law

Sustained feasible rate is set by whichever window is tighter:

r_sustain = min( C5 / 5h , C7 / 7d )

But the optimal instantaneous dispatch rate is not constant — it is a catch-up pace to the 7-day deadline, clipped by the 5-hour bucket:

r7_pace(t) = (C7·(1−ε) − u7(t)) / (t7 − t) # water-filling to reset r5_head(t) = (C5·(1−ε) − u5(t)) / (t5 − t) # what this window can still absorb, spread out r_auto(t) = max( 0 , min( r7_pace(t), r5_head(t) ) − r_reserve(t) )

3. Behaviour Learning — Flow With the User

Auto work must never eat quota the human is about to need. Every tick (5 min), forecast human-directed demand for the next 5h:

D̂(t, t+5h) = f(hour-of-day, day-of-week, recent session sizes & lengths, active projects / deadlines, current live session burn rate)

4. What the Surplus Burns On — Priority + Backfill

Dispatch only when r_auto(t) > 0, strictly in this order, each job sized / checkpointed so it can pause at a window boundary:

  1. Directed / URGENT human work — always preempts, never paced.
  2. Pending designed repo tasks (all Dawn + Flow repos, organic auto-advance).
  3. NO-PAIN filler: tests, verification runs, read-only audits, coverage closure, additive work on accumulated data.
  4. Book study (auto-learn): if the queue is dry and surplus remains, Auto Mode studies — the standing book curriculum (§1) plus books matched to live problems (e.g. queueing/control when pacing error is high, a domain book when a project stalls). Output is not raw reading: distilled canon notes + spot-check seeds into Dawn School, filed like any other work product. A dry queue with tokens remaining is a failure; a dry queue is converted into knowledge, never into make-work mutations.

Admission control, not retries: a 429 / limit signal is a capacity signal — on hit, AIMD multiplicative decrease (rate × 0.5), global cooldown across all workers on that account, exponential backoff with full jitter; on sustained clean windows, additive probing upward. Concurrency sized by Little's Law: N = r_auto × mean session latency, capped at 70% of observed safe concurrency.

Multi-account: the board's existing chooseAccount becomes a pacing-aware choice — pick the account with the highest feasible r_auto(t) (most 7d value at risk of expiring × most 5h headroom), respecting lane rules (reserved fastest lane stays un-busted unless near reset, per Hector's standing account rules).

5. Falsifiable Predictions (the paper's test)

  1. Utilisation: u7(t7⁻)/C7 ≥ 0.95 per account per week, vs. bursty-baseline weeks.
  2. Zero pre-terminal 5h blocks attributable to auto work over any rolling 4 weeks.
  3. Zero human starvation events; reserve forecast MAPE improves week over week.
  4. Filler value: tests/audits/book-notes produced per 1% of C7 is > 0 and non-decreasing as the task-class bandit learns value-per-token.

If (1) fails, the rate law / ε is wrong. If (2)–(3) fail, the reserve model is wrong. Either failure is data, per THINK → DO → FIX → REPEAT — the controller parameters, not the doctrine, get revised.

6. Implementation Sketch (board)

References (giants)

Jacobson (1988) Congestion Avoidance and Control · Cardwell et al., BBR · Google SRE Book, ch. Handling Overload / Borg · Kleppmann, Designing Data-Intensive Applications · Jain, The Art of Computer Systems Performance Analysis · Slurm backfill scheduling docs · Anthropic Help Center / Claude Code docs on 5-hour session + weekly limits (limits are token-weighted, model-dependent, shared across surfaces).

← All papers