M26-5 Lazy lifecycle metrics + SSE events #592
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks#592
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User story
As a service operator, I want lazy starts, stops, and start failures to emit observable events on the SSE bus, so that the dashboard can show cold-start latency, idle stops, and failures without me tailing logs.
Acceptance criteria
Events
/events:container.lazy_started{ instance, latency_ms }— emitted after readiness probe succeeds.container.lazy_stopped{ instance, idle_seconds }— emitted afterdocker stopreturns.container.lazy_start_failed{ instance, error }— readiness probe failed ordocker starterrored.event_logso they survive service restart for post-hoc audit.Dashboard surface
"reviewer-default started in 287 ms"/"designer-default stopped after 12 min idle").Tests
Date.now()based, not random clock skew).docker startrejects →lazy_start_failedemitted, nolazy_started, dispatch surfaces error.Out of scope
References
specs/container-lazy-lifecycle.md§Metrics + events.apps/server/src/infrastructure/event-log.ts— existing event log.apps/web/Agents page activity timeline.