pub const EVENT_LINE_PREFIX: &str = "__OMPM_EVENT__ ";Expand description
Stderr line prefix used to relay events from a workflow subprocess to its
parent API server. The parent reads stderr line-by-line; lines starting
with this prefix are parsed as Event JSON and re-published on the
parent’s event bus instead of being mirrored to terminal stderr.
Why: Workflow phase + agent telemetry must reach the API server even
though the workflow runs in a child process. Reusing the same stderr
channel that already carries __OMPM_PROGRESS__ (the legacy 2s-poll
path) avoids inventing yet another IPC mechanism.
What: Match by exact byte prefix; payload after the space is one JSON
object decodable as Event.