Documentation
¶
Overview ¶
Package sessionlog centralizes opening per-request session log files for harness runners and the agent service. It exists to localize the file permission and path-inclusion safety contract in one place rather than scattering nosec annotations across every caller.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDir ¶
EnsureDir creates the session log dir (mode 0o700). It exists for callers that need the directory present without opening a file (e.g., to compute a path for a stub write).
func OpenAppend ¶
OpenAppend creates dir (mode 0o700) if needed and opens or appends to the per-session log file "agent-<sessionID>.jsonl" beneath it (mode 0o600).
dir is caller-trusted (set by the agent service via SessionLogDir); sessionID is a service-generated identifier (UUID or "<harness>-<unixnano>"). Neither is sourced from network input.
Types ¶
This section is empty.