Files
claw-code-parity/rust/crates/runtime
Yeachan-Heo 43058dc789 feat(telemetry): add worker.init and worker.done events
Wire the worker boot control plane into the existing worker lifecycle telemetry so ready and terminal transitions emit structured worker.init/worker.done events.

This also records boot duration on the worker state itself, resets the timer on restart, and covers the new telemetry path with a focused registry test.

Constraint: Boot duration must measure the current worker boot cycle without changing existing worker state transitions
Rejected: Record boot timing only in ad-hoc session trace attributes | loses the worker lifecycle event envelope and shared helper path
Confidence: high
Scope-risk: narrow
Directive: Keep worker boot duration tied to ReadyForPrompt for a single boot cycle and reset it whenever the worker restarts
Tested: cargo build --workspace; cargo test --workspace
Not-tested: Live CLI-driven worker sessions outside the in-memory registry/test harness
2026-04-04 16:07:56 +00:00
..