Carry time already slept across session dumps
Restoring a dump reset max_total_sleep usage to zero: the pool's SessionBudget::forget cleared sleep_used on load and the wire had no field to carry it, contradicting the snapshot docs.
The interpreter's ResourceTracker now records each capped system sleep as the sandbox requests it (serialized with #[serde(default)], so older dumps load with nothing slept) and refunds it when the host aborts the call. Workers report the total as ChildEvent.total_sleep_micros (tag 31) and the WASM component as total-sleep-micros; the pool and the JS wasm transport adopt it from a Load reply. The sleep a restored suspension re-announces is already in that total, so it is checked against the limit without being charged again.
Summary by cubic
Restoring a dump no longer resets max_total_sleep usage — the time a session already slept now travels in the dump and is adopted from the Load reply.
The interpreter records each capped system sleep as the sandbox requests it, refunds it when the host aborts the call or abandons the pending REPL call, and serializes it into dumps (older dumps load with zero slept). On restore, the parent removes the sleep the dump is suspended on from the adopted total and charges it again, so it is counted once; a dump that records no sleep charges that pending sleep in full.