Docs Contracts
Audit record fields
The fields every t10 audit record carries, so records from different services read side by side.
Proposed, nothing built. The fields every t10 audit record carries, so records kept by different services can be read side by side. ARCHITECTURE.md, "Audit", is the summary.
These are audit records, not application logs. Logs, traces and metrics are for engineers, best effort, short-lived and free-form. Audit records are for accountability, written in the same transaction as the change they describe, kept by contract, and fixed in shape. The two share only trace_id. ARCHITECTURE.md, "Audit", compares them.
Why a shared shape, not a shared store#
Each service keeps its own append-only record, beside the data it's about: auth-server's audit_log, t10-agent-control's route, settings, entitlement and policy history and its evidence, ai-gateway's model and tool audit, and t10-automations' firings. One central store would put a dependency on every service's write path, and a lost connection would mean either a lost record or a refused change.
So the services agree on fields instead, and the screens that need several sources combine them by ID:
| Reader | Combines | Joined by |
|---|---|---|
t10-console, Activity |
auth-server's audit log, route history, entitlement changes |
Time, actor, tenant |
workbench, Administration, Activity |
auth-server's tenant rows, tenant setting changes, platform changes that touch the tenant, policy history |
Time, actor |
workbench, Governance, Turn |
Evidence, model calls, grant rows | turn_id, grant |
Fields#
Every record has these, with the service's own fields beside them. A field that doesn't apply is absent, never empty.
| Field | Meaning | Example |
|---|---|---|
at |
When it happened, UTC, milliseconds | 2026-11-03T10:14:03.412Z |
service |
Which service wrote it | t10-agent-control |
action |
What was done, as <area>.<verb>, stable |
route.publish, grant.create, tool.call |
outcome |
ok, refused or failed. Refusals are recorded, not only successes |
refused |
actor.kind |
person, agent_account, service, cli |
person |
actor.id |
The user, account, service account or cli |
usr_7 |
act |
The runtime acting, from act.sub, when an agent did it |
agent-sales |
tenant |
The tenant affected. Absent for platform-wide changes | ten_acme |
target |
What was changed or used | pool:sales, grant:gr_91 |
grant, trigger, automation |
From the delegated token, when a run did it | gr_91, schedule, au_3 |
turn_id |
The turn, which is also the trace ID, when a request had one | 4bf9... |
session_id |
The chat session, on model and tool call records, when the call was part of one | assistant.agent-pi-0.3 |
reason |
Why, as a person wrote it, for changes people make | bad release |
Never content. No prompt, reply, tool argument, tool result or query string, in any audit record or trace. A record that needs to prove an argument uses a keyed hash, as evidence does. Content lives in the harness's transcript, which the run view reads. ai-gateway's debug capture is the one other place, and it isn't an audit record.
A read of someone else's conversation is an audit record: auth-server writes session.read when it mints a tenant admin's read token, and the owner can list them.
Names aren't stored. Records hold IDs, and readers show names by asking auth-server with the reader's own token.
Keeping the copies equal#
Each service declares the fields in its own code. contracts/audit/fields.json will list them, and make check compares each service's list with it, as for the other contracts.
Open questions#
- Retention. Evidence keeps 400 days by default, set per tenant.
auth-server's retention is undecided, andai-gateway's model audit rotates after 30 days, on a persistent volume. One per-tenant setting, in the entitlement, could govern all of them except configuration history, which is kept for good. - Export. Governance exports evidence for a tenant's SIEM. Whether the other tenant-scoped records join that export is for the first customer to decide.
Generated from t10’s own docs (bbc3cde). Spotted a problem? Tell us.