AuditLogEntry
ResponseOne immutable core.audit_log row (Phase 250, AUDV-01/02): one recorded action. The published fields are id, created_at, actor, action, target, via and details; the flat fields are the web app's own. actor_name/actor_email are server-side LEFT JOIN projections (D-06) that render null when the actor no longer resolves (deleted user, or a system actor). Since 0247 a row may name the APP as its actor: actor_kind is system or ai, actor_component says which automation, actor_user_id is the nil UUID, and the person whose click set it off (if any) is details.initiated_by_user_id, projected as initiated_by_name/email.
Returned in responses. Its enums are open: tolerate values not listed here, which later versions may add.
Attributes
7Who acted.
3 attributes of actor
Who performed an audited action (0247, 0438) -- a person, the app itself (a deterministic automation, or an AI acting without a person's approval), an API credential (api_key) or a connected Tracken app (installation).
Known values (open: expect new ones) user, ai, system, api_key, installation
Details
A machine row's actor is the credential's service user; an installation acting for a person names them in details.on_behalf_of.
The person, or the service user of the API credential or installation; null for the app itself (system, ai).
The record acted on.
For a person acting through the CLI or an MCP client (a scope-narrowed token): the OAuth client and the agent it named. Null otherwise.