Documentation
¶
Overview ¶
Package audit is the driven adapter for evidence: one JSON object per governed action, appended to a JSONL file. Boring on purpose — the evidence contract is "every call leaves a record", and a flat file every UNIX tool can read is the honest minimum.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Discard ¶
type Discard struct{}
Discard is the audit sink for callers that intentionally keep no evidence (e.g. `discover` — a read-only preview, not a governed call).
type Sink ¶
type Sink struct {
// contains filtered or unexported fields
}
Sink appends core.Events as JSONL. Past maxBytes the file rotates to <path>.1 — one generation kept. Evidence is append-mostly; recent history is what introspection needs, and unbounded growth is the failure that actually hurts. maxBytes <= 0 disables rotation.