Expand description
Port of packages/agent/src/harness/runtime/reducer.ts: folds one harness event into a lane snapshot, so a
watcher keeps a replica of the lane (its open operation, running tools, transcript, queues and stats) from the
event stream alone. Navigation completion cannot be folded: it asks for a fresh snapshot.
Snapshots and events are the JSON shapes the TypeScript runtime publishes (LaneSnapshot, HarnessEvent);
fields the TypeScript leaves undefined are absent here.
Enums§
- Reduction
- The snapshot cannot be advanced from the event; the watcher must take a fresh one.
Functions§
- reduce_
lane_ snapshot - Apply one harness event to a lane snapshot (
reduceLaneSnapshot).