Task 04 provides authorized data shapes and runtime context.
Risks
Replay can expose data after an instance loses access.
Missing request cancellation can leak subscriptions and counters.
Proxy buffering can hide heartbeats and delay disconnect detection.
Parallelism
sequential
Inputs
Live event, request authorization, observability, and recovery sections.
Current event bus lifecycle and goroutine ownership patterns.
Results
Completed on 2026-08-28. Added the bounded per-instance SSE hub with process
generations, monotonic cursors, replay and resync signals, heartbeat flushing,
per-user and per-instance stream limits, slow-consumer handling, and context
cancellation cleanup. The plugin service projects scoped Kandev bus events
into the hub and rechecks capability authority while filtering delivery.
Focused web-app and plugin tests pass.