Opt-in live status reporting for one Kernel run.
PtcRunner.Kernel.Runner starts one internal reporter per run when either an
owning host injects a per-run target or PTC_VIEWER_URL names an external
Viewer. It samples public run state (RunState.usage/1, parallel-budget
occupancy, sandbox heap) and sends self-contained frames to that target.
PTC_VIEWER_TOKEN, when present, authenticates the HTTP form. Reporting is
strictly best-effort: a dead, absent, or rejecting Viewer never affects the
run.
Summary
Functions
Posts the final frame carrying the run outcome.
Starts the configured per-run or HTTP reporter; returns nil otherwise.
Stops the reporter; safe on nil and on an already-dead pid.
Functions
Posts the final frame carrying the run outcome.
Starts the configured per-run or HTTP reporter; returns nil otherwise.
@spec stop(pid() | nil) :: :ok
Stops the reporter; safe on nil and on an already-dead pid.