workerlog

package
v0.49.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 9 Imported by: 0

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

func Relay(
	ctx context.Context,
	stream io.Reader,
	sessionID uuid.UUID,
	generationID uuid.UUID,
)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL