Documentation
¶
Overview ¶
Package workerlog carries a worker process's log records into the controller's own logging stack.
A worker runs the model loop in its own process, so its records for hook actions, skill activation, child agents, and tool outcomes are written by that process. Left alone they reach only the worker's own output, which the controller's audit sink never sees, and the durable audit trail loses everything the agent did. Relaying them through the controller's logger puts them back in front of every configured sink.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Relay ¶
Relay reads a worker's output stream and re-emits each record through the controller's logger.
It returns when the stream ends, so callers run it on its own goroutine and close the stream to stop it. Every relayed record keeps the worker's own level and message and gains the session and generation that produced it, so an operator reading one audit file can tell which worker spoke.
Types ¶
This section is empty.