Expand description
SSE endpoint for the engine-events outbox.
Endpoint: GET /api/v1/engine/workflow/events/stream
Query params:
?ns=Last-Event-ID: <i64> optional cursor for replay
Behaviour:
- Replay phase reads
engine_eventssinceLast-Event-ID(or from the beginning if absent) and emits matching frames. - If the cursor is older than the namespace’s oldest retained id, returns HTTP 410 Gone so the client knows to snapshot + resync.
- Live phase subscribes to the node-local broadcast; emits the frames that pass the filter.
broadcast::Laggedforce-closes the stream — the client reconnects with the last id it saw and replays the gap viaengine_events.