Apply an exact sliding-window token admission budget. arrivals is an ordered list of [timestamp,cost]. For an arrival at time t, expire previously accepted costs with timestamp ≤ t−window, then accept if the sum still active plus cost is ≤ budget. Rejected costs are never added.
Return one boolean per arrival. Equal timestamps are processed in input order. The active interval is (t−window,t], so costs exactly on the left boundary have expired.