Skip to main content
The Agent Sentinel SDK writes append-only JSON Lines to a local ledger by default.

Location

Default path (relative to your current working directory):
Override the base directory with:

Format (JSONL)

Each line is a complete JSON object representing one action:

Fail-open behavior

Ledger writes are fail-open: if the SDK cannot write (permissions, disk full, etc.), it logs an internal error and your agent continues.

PII / secrets

Inputs and outputs may contain sensitive data. You should treat the ledger like application logs:
  • Store it securely
  • Rotate and redact if needed
  • Avoid logging raw secrets in tool inputs

Rotation

Ledger files grow over time. A simple rotation pattern: