You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add opt-in Config.StoreFullInputs that writes raw input/output JSON to
a sidecar JSONL file at AuditPath+".payloads". The main chain and
AuditStore interface are unchanged.
- payloadWriter appends payloadEntry records (audit_id, timestamp,
event_type, input, output) to the sidecar file, mode 0600 enforced
- Messages.New writes full params+response after each allowed LLM call
- Messages.NewStreaming writes params at stream start
- Audit() writes event.Metadata as input payload when non-empty
- PayloadsPath() exposes the sidecar path for operators
- StoreFullInputs=false (default) creates no sidecar file and adds
zero overhead to the hot path
Enables EU AI Act Article 12 auditors to replay exactly what the agent
sent and received without changing the tamper-evident chain format.
gosec: 0 issues (3 nosec); go test -race: PASS; govulncheck: clean
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments