Skip to content

Audit events

Every tool call attempt, valid or not, produces one audit event. The gateway logs it as structured JSON and keeps it for the activity feed (memory, or Postgres with --postgres-url) for --audit-retention. This page is generated from the event struct. The audit log stores a hash of the arguments, never the arguments or any game data.

Field Type Present Meaning
id integer feed only Increasing id that orders events. Also the paging cursor of the activity feed. Not part of the event itself.
time string (RFC 3339 time) yes When the attempt was recorded (UTC).
tenant string yes The tenant the call belongs to. Not shown in the player feed.
player string yes The player the call was for. The admin feed shows it, the player feed leaves it out.
tool string yes The tool name the agent called. unknown_tool attempts record the name that was asked for. Kill switch changes made through the admin API record admin.switch.on or admin.switch.off.
tier string yes The tool’s tier, empty when the tool is unknown. admin for kill switch changes.
outcome string yes ok, denied (a policy or validation refusal) or error (infrastructure trouble).
code string when not ok The result code of a denial or error, see Result codes.
args_sha256 string yes Hex SHA-256 of the validated arguments with keys sorted. The arguments themselves are never stored.
Outcome Meaning
ok The call ran and the game answered.
denied Refused before or by the game: policy, validation, scope, confirmation, or a backend 4xx.
error The gateway could not finish: the game was unreachable, a store failed, or the outcome is unknown.

The feed endpoints return these events, see the studio API.