Audit

Space history, tenant events and chain verification.

Raw Markdown for agents: audit.md. MCP: read_docs("audit").

The audit log records every operation with actor, channel, request and result. Tenant events are signed and chained, so history cannot be changed afterwards.

Operations:

  • audit.space_events.summary, audit.space_events.list, audit.space_events.get, audit.space_events.get_many and audit.proxy_calls.list: what happened in one Space. Every member can list; request, snapshots and result are only shown to Space managers and tenant admins (others get details_hidden).
  • audit.events.list, audit.events.get, audit.change_sets.get, audit.api_requests.list and audit.chain.verify: tenant-wide history, request metadata and signature checks. Admin only.

Rules:

  • All audit operations are read-only; nothing in the log can be edited.
  • Use the Space events to explain to a user who changed what; use the tenant operations only with an admin key and the audit:read scope.

Who did what in a Space

Two calls answer it, a third explains one event:

  1. audit.space_events.summary(space_id) (default window: last 7 days): people, agents, automations and proxy in separate sections, each actor with event and write counts, last action and the objects touched (labels only). not_included says what the log cannot show.
  2. audit.space_events.list(space_id, actor_id=...) or origin_kind + origin_id (one script, skill or workflow run) for the rows. group_by: "origin" collapses each run into one row per page (expand it with the group's origin_kind and origin_id). view: "summary" returns light rows; their actor.ref is the key "<kind>:<id>" of the actors dictionary, which holds the full actor.
  3. audit.space_events.get(event_id) or get_many(event_ids) (up to 50) for request, snapshots and result (managers and admins only). For a data.write, history links each row to records.rows.history(record_id, change_set_id).

Rows and actors:

  • Actor: actor_kind (person, agent, automation), channel, on_behalf_of (the person an agent or automation acted for), guide_slug and session_id when known.
  • summary is one sentence with objects and field keys, never values.
  • Filters: actor_id, actor_kind, is_write (true: writes only), method (HTTP method, e.g. POST), origin_kind, origin_id, session_id, domain. domain: records and domain: documents also include data.write events, whose own domain is data.
  • audit.proxy_calls.list(space_id): requests sent through the api-proxy, with method, path (no query, no body), status and is_write. They are recorded apart and are outside the signed chain.
  • Not recorded: changes made directly in the providers (Shopify, Alegra, Chatwoot, ...); only what passes through Adlass or its proxy appears.

En esta página