Documentation
¶
Overview ¶
Package audit writes a structured, append-only JSONL trail of what the server asked the worker agents to do: which tasks started, the exact command lines executed, the tools the worker invoked, and how each turn ended.
It exists because a headless worker can touch real infrastructure with no human watching each step; the audit log is the after-the-fact record of what actually ran.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger appends JSONL audit records to a file. The zero value and a nil *Logger are both valid and disabled, so callers never need nil checks.
func New ¶
New opens (creating/appending) the audit log at path, creating the parent directory if needed. An empty path returns a disabled logger that discards everything.