Skip to main content
Version: Studio 2.2.32

Audit trails

Three systems keep records of who did what: the Organisations console keeps an audit log of administrative actions, the AlphaAgent Console keeps an audit log of licence events, and each Studio deployment keeps per-run records and usage rows rather than a single audit screen. This page says what each records, where it lives, how long it stays, and how you get it out.

Who this is for​

Security and compliance engineers assembling evidence, and administrators answering "who changed this".

Before you start​

The Organisations audit log is the one you will use most. It is reachable by an Organisations administrator (an owner, operator or viewer, or a holder of a role that grants audit reads). Studio has no deployment-wide audit log. Its Lens Audit view gathers the recorded work of one chat or Flow execution at a time; the rest of its records are reached through the Organisations console, the programmatic API and your own AWS account.

Organisations audit​

Administrative actions taken through the Organisations console and by the engine write rows to the alphaagent-org-audit table in your Organisations account. The table is partitioned by day, has point-in-time recovery, is encrypted at rest, and expires rows after 400 days.

The action names a row carries:

AreaAction names
Roles and accessrole.grant.created, role.grant.archived (a revocation), and the console access assignments made alongside them
Accountsaccount.allowed_regions.updated
Deploymentsdeployment.upgrade.triggered, deployment.reconfigure.triggered, deployment.rollback.triggered, deployment.ecs.pause, deployment.ecs.resume, deployment.seat_cap.exceeded
Runtime limits and service sizingdeployment.runtime_limits.changed, deployment.runtime_limits.saved_for_next_update, deployment.runtime_limits.rolled_back, deployment.runtime_limits.restored, deployment.runtime_limits.choice_made, deployment.runtime_limits.renamed_by_release, deployment.runtime_limits.converted_by_release, deployment.runtime_limits.removed_by_release, deployment.service_sizing.changed, deployment.service_sizing.saved_for_next_update, deployment.service_sizing.restored
Values set outside Organisations and templatesdeployment.configuration.replaced_outside_value ("Value set outside Organisations replaced"), deployment.configuration.kept_outside_value ("Value changed in AWS kept"), deployment.configuration.outside_changes_found ("Values changed in AWS found"), deployment.configuration.replaced_by_template ("Replaced by template"), deployment.configuration.follows_template ("Follows the template again")
Release holds, parked jobs and Update schedulesdeployment.release_hold.set, deployment.release_hold.lifted, deployment.job.waiting_for_you, deployment.job.waiting_answered, deployment.job.abandoned_rolled_back, update_rule.scope_changed (an Update schedule now covers a different set of deployments)
Programmatic accessapikey.created, apikey.updated, apikey.rotated, apikey.external_id_rotated, apikey.revoked, apikey.expired, apikey.materialised, apikey.deleted, and apikey.run_data_purged when a key erases a run
Identity providersplatform_config.entra.credentials_updated
Librarieslibrary.item.deleted; every share and pull outcome is written as a transfer record on the Library (kept 90 days, shown as the Library's Activity)

Job progress (each step's outcome, parked steps and the decisions taken on them) is recorded in the job's own event stream and shown on the job page rather than in the audit table.

The Audit screen's Audit trail tab filters by actor (an exact email, or a worker id for actions the engine took), From (UTC) and To (UTC) dates (default the last seven days), and Action (exact), fifty rows per page, with columns When, Who, Action, Target, Outcome and AWS account. Two further tabs, Connector tool calls and API key usage, show the connector call audit rows and each API key's requests.

Getting records out: there is no export button on the screen. GET /audit?from&to&actor&action&limit&cursor on the Organisations API returns the same rows as JSON, up to 200 per page across a window of at most 90 days, with a cursor for the next page. Because the table is in your account, you can also read it directly with your own AWS credentials, or export it with DynamoDB's export to S3.

Console licence audit​

The AlphaAgent Console writes one audit event for every licence operation that crosses a trust boundary: licence created, token regenerated, licence revoked, activation received, each heartbeat received (with a warning severity when the verdict was invalid), each five-minute period missed, each usage batch accepted, and every enforcement change an operator makes. Events carry the licence id, the event type, a timestamp and small structured details; they never carry a secret or a token.

Where it lives: a table on the Console side, read through GET /v1/license-keys/<licence id>/audit and shown on the licence's page in the Console. Where the Console's audit pipeline is configured with it, an immutable copy is written to S3 with Object Lock in compliance mode with a seven-year retention.

Studio records​

Studio keeps records per object rather than one log:

RecordWhereWhat it answers
Run events and boardalphaagent-execution-run-events and alphaagent-runtime-graphs, and GET /api/v1/runs/{run_id}/events for key-triggered runsEvery step, tool call and decision in a run; who approved a gate and when
Code executionsalphaagent-code-executions, 30 daysEach sandbox execution with its truncated output
Programmatic API usageUSE# rows in alphaagent-api-keys, 90 daysEvery request a key made: method, path, status, source address, reason for a refusal; rolled up hourly in the Organisations console
Usage eventsalphaagent-runtime-metering-outbox, mirrored into your Organisations account every 120 secondsWhich principal caused which model call, by kind and model; shown on the deployment's Analytics tab in the Organisations console
File history and usesThe Folio index, <prefix>-folioFor every file: its id, each saved version with who saved it, when and how it arrived (upload, chat or run output, connector, kept copy, version save, copy), and where it is used: the runs that copied each version, chats, Flow version pins and defaults, schedules and Intelligence Graph versions. Studio shows it as History and Where this file was used
File provenanceS3 object metadata on each workspaces object (aa-file-id, aa-origin, aa-sha256, the producing chat or run, and for a connector file the connector, tool, time, resource address, route and whether a personal sign-in fetched it)What produced an object, read with a HEAD in your own account
Run inputsinputs/MANIFEST.json in each run's folder, and inputs_manifest on the runEvery file a run copied in: its Folio source, the exact version, who saved it, the copy, its SHA-256 checksum, files left out and why, and the run it repeats
Connector tool callsdata-connector's per-person tool-call rows, sent to your Organisations accountEach call, with the files it returned: type, decoded size and SHA-256, never names or content, and how many file links were read
Inbox activityalphaagent-activity, 24 hoursLive run cards; not an audit record
Service logsCloudWatch Logs, default 30 daysRequest and error logs per service

Lens Audit in Studio reads the run events, approvals, outputs and sources recorded for one chat or Flow execution and assembles them in the browser; it keeps no store of its own. Download audit pack (ZIP) saves them as an activities.csv index with one JSON file per record. It lists the chats and Flow executions the signed-in person can open.

Records of your AWS account's own actions on the deployment (role assumptions by the engine and by sandboxes, secret reads, table access) are CloudTrail's, and CloudTrail is yours to enable; see Shared responsibility and best practices.

Steps: pull an audit extract​

  1. In the Organisations console, open Audit, set the actor or action and the date range, and page through the rows.
  2. For a machine-readable copy, call GET /audit on the Organisations API with the same filters and follow next_cursor until it is empty.
  3. For a licence, open it in the AlphaAgent Console and read its audit list, or call GET /v1/license-keys/<licence id>/audit.
  4. For one Flow run started with an API key, call GET /api/v1/runs/{run_id}/events with a key that holds runs:read, following next_after_seq.
  5. For the deployment's model usage, open the deployment in the Organisations console and read its Analytics tab, By model or By activity.
  6. For one chat or Flow execution in Studio, open Lens Audit, choose the record and use Download audit pack (ZIP) once its history has loaded.

What you should see​

  • Every grant, revoke, key lifecycle change and triggered upgrade, reconfigure or rollback as a row with an actor, an action and a target.
  • Heartbeats on the Console every five minutes and no missed periods while the deployment is healthy.
  • Usage totals that agree between the deployment's view in Organisations and the licence's view in the Console.

Limits​

  • The Organisations audit API walks at most 90 days per call and returns at most 200 rows per page.
  • Audit rows expire after 400 days. Export before then if you need them longer.
  • Studio's run event replay is available for key-triggered runs on the programmatic API; runs started in Studio are inspected in Lens and Lens Audit.
  • The Organisations, Console and usage records are counts and identifiers and carry no prompts, documents or results. Lens Audit is the exception: it shows the request, the response and the outputs of the chat or Flow execution itself, to someone who can open it in Studio.
  • Lens Audit shows what was recorded. It does not verify file contents or recover data that was not captured.

If something goes wrong​

  • An action you expect is missing from the Organisations audit: check the date range (UTC) and that you used the exact action name; partial names do not match.
  • The Console shows missed heartbeats while Studio is running: the deployment lost outbound access to the Console; see What leaves your account.
  • GET /audit answers 422: the from or to value is not a YYYY-MM-DD date, or the window exceeds 90 days.