Build the correlated step-event stream that drives the live GF viewer and provides the shared substrate for later inspection tooling.
Work items
- Add capture middleware around calls forwarded by the sandbox backend proxy.
- Generate one correlation ID per scenario run and an ordered sequence number per event.
- Emit the documented GF-labelled request, response, outcome, duration and timestamp fields.
- Allowlist captured headers and payload fields, and redact authorization headers, cookies, access tokens, credentials and other secrets before constructing or retaining an event.
- Deliver run-scoped events to the browser over SSE.
- Retain a bounded event window so a page refresh can restore the current run.
- Mask BSNs on shared deployments while allowing synthetic identifiers in local development.
- Drive per-patient demo locks from the same run lifecycle.
- Define reconnect and resume semantics independently of the frontend framework.
Acceptance criteria
Refs #532
Refs #538
Build the correlated step-event stream that drives the live GF viewer and provides the shared substrate for later inspection tooling.
Work items
Acceptance criteria
Refs #532
Refs #538