Skip to main content

Module activity

Module activity 

Source
Expand description

Live activity (RFC 0032 §17): what each working unit is doing right now, for the display clients’ working row.

The turn worker already reports coarse progress upward ([AgentMsg::Event] — turn.think, turn.round, turn.tool); the supervisor used to drop those frames on the floor. Here they fold into a per-unit Activity record — phase, current tool, round, tokens so far, start time — and publish as activity feed events.

Deliberately coarse: an event is emitted only when something the operator would notice CHANGES (phase, tool, round). Elapsed time is not streamed — the record carries started_ms and clients tick their own clock — so a long think emits nothing at all. That keeps the feed’s replay ring meaningful (a handful of activity events per turn, not one per second), which is exactly the property token-level streaming would have broken.

Structs§

Activity
One working unit’s live activity.

Enums§

Phase
What a unit is doing.