Files
orca/src/main/stats
Neil c527344685 fix(agent-hooks): throttle and background last-status.json writes (#26822)
The agent status recovery snapshot was rewritten whole, synchronously on the
main thread, after a 250 ms trailing debounce on almost every hook event
(about 53 new files a minute on the reporter's Windows machine).

- Leading-edge throttle: the first change after idle is written on the next
  turn; a stream gets at most one write per 5 s and cannot postpone it.
- Changes to persisted launch-token authority skip the window, since spool
  replay and restored-terminal attestation read them after a crash.
- Writes run off the event loop through the stats snapshot writer, now
  generalized as AtomicSnapshotWriter. Quit and hook-disable still flush
  synchronously; the file format is unchanged.

Fixes #26720
2026-10-09 22:33:10 -07:00
..