Audit
The audit service keeps an append-only record of everything that matters for accountability: every action, every agent step, every administrative change and every read of labelled data. Each entry carries the SHA-256 hash of the entry before it, so removing or altering any entry breaks the chain in a way anyone can detect. The log is exported to storage you own every 5 minutes, and you can verify it without us
In the platform today
- The audit log runs in the platform service with tests
- Every action, proposal and decision, agent run, model and catalogue change, access request, branch, share, webhook, key operation, import, sign-in and refused sign-in is appended to the Delta Lake table
ops.audit_eventswith a gap-freeseq, the actor, the person they acted for, the agent, the client, the object, the outcome, a JSON detail,prev_hashand a SHA-256hash GET /api/v2/audit:verifyrecomputes the chain and returns{ "ok", "events", "head" }, orbrokenAt; a data branch has its own chain- Directory and SCIM changes (
directory.*, such asdirectory.user.deactivated), retention passes, marks undone and exemptions (retention.*), erasure requests (erasure.filed,erasure.approved,erasure.completedand the rest) and attachment downloads (file.read) are recorded the same way - Once an erasure subject is configured, the detail fields and object keys it names are written as subject references, each sealed under a key of its own; erasing the person deletes those keys, so the references can no longer be opened or linked to them, and the chain still verifies
- Reads of labelled data, signed checkpoints, the export to your bucket, the
/api/v2/audit/events,/checkpoints,/keysand/exportendpoints, retention settings and legal holds
What is recorded
The audit log answers "who did what, to what, when, through which client and on whose behalf". It is not an application log and it does not record the contents of data, only references to it. Values that changed through an action are recorded in the action log, which the audit entry points to; this keeps labelled values and personal information out of a log that many more people need to read
| Category | Events | Recorded when |
|---|---|---|
| Actions | Apply, validate-only calls that fail criteria, batch applies, reverts | Always, every action, every caller |
| Reads of labelled data | Object loads, object set queries, searches, aggregations, exports and downloads that return any labelled value | Always, with object ids and property names |
| Reads of unlabelled data | The same read events | Off by default; enable per object type, sampled or complete |
| Agent steps | Run start, each tool call with its inputs and returned object ids, each model call with token counts, proposals, approvals, rejections, guardrail stops | Always |
| Ontology changes | Proposal created, reviewed, merged; type, function and pipeline releases; rollbacks | Always |
| Security changes | Role grants, policy edits, property rules, access label grants, declassification approvals, explain calls for another principal | Always |
| Identity | Sign-in, sign-in failure, token issue and exchange, service principal secret rotation, group and attribute changes, directory and SCIM changes, deactivation and reactivation, memberships added, ended and expired | Always |
| Administration | Tenant settings, key operations, connector credentials changed, export targets, retention passes, marks undone and exemptions, erasure requests and their decisions, legal holds | Always |
| Data operations | Build overrides of blocked quality checks, quarantine replays, dataset deletion | Always |
| Platform operator access | Any access by Markland Street staff to your tenant, with the support ticket that authorized it | Always |
On request, for a managed cloud tenant, Markland Street support staff cannot read tenant data without a time-boxed access grant that a tenant Administrator approves. Every grant, and every request made under it, is written to your audit log with the staff member's identity and the ticket, so you see our access the same way you see your own users'
Entry schema
Every entry is one row of ops.audit_events with the same columns. Event-specific detail lives in detail, a JSON string whose shape depends on event_type
{
"event_id": "aud_01J9Z7K4B8XG2N5R0QH3TW6M1C",
"seq": 48213,
"occurred_at": "2026-10-29T19:12:44.211Z",
"event_type": "action.applied",
"outcome": "ok",
"actor_id": "dispatch.macdonald",
"actor_name": "A. MacDonald",
"on_behalf_of": null,
"agent": null,
"client_app": "app",
"action": "reroute-delivery",
"object_type": "delivery",
"object_key": "DLV-5521",
"detail": "{\"logId\":\"alog_01J9Z7K3QF2M8V6T0R4N5B7C9D\",\"edits\":3,\"proposal\":null,\"proposedBy\":null}",
"prev_hash": "5d1b7f0c9e…a2",
"hash": "c04e3a99b1…7f"
}
| Column | Meaning |
|---|---|
seq | Gap-free sequence number within the chain. A missing number is itself evidence of tampering |
occurred_at | When the event was recorded |
actor_id, actor_name | The person or service that made the call, or system for the platform's own work |
on_behalf_of, agent | When an agent acted, the agent and the person it acted for |
client_app | The client the call came through |
action, object_type, object_key | What the event touched. Never values |
outcome | Whether it succeeded. Refusals are recorded as carefully as successes |
prev_hash | The hash of the entry before it |
hash | SHA-256 over the previous hash and the entry |
The hash chain
Each entry stores the hash of the entry before it, so changing any entry breaks every link after it, and a missing seq shows that an entry was removed. Entries are appended to a Delta Lake table one at a time in order, and a data branch has a chain of its own. On request, signed checkpoints exported to storage you control prove that the chain was not rewritten as a whole
Reads of labelled data and agent steps
Reads of labelled data
On request, every read that returns a labelled value is recorded, including reads through search and aggregation, and so is every read refused for a missing access label
Agent steps
Each agent run writes an agent.run entry with the run id, its status and the proposals it staged. The steps themselves, with prompts and completions, are kept in the run's reasoning trace. Proposals, approvals and rejections each have their own event type, so you can answer "which actions did this agent propose that a person rejected last month" from the audit log alone
Export
On request, the log is exported to your own bucket so you can verify it without us
Verifying the chain
GET /api/v2/audit:verify recomputes every hash in order and returns { "ok", "events", "head" }, or brokenAt, the first seq that does not match
Querying the log
The exported files are plain newline-delimited JSON, and the platform also keeps the log as a Delta table, ops.audit_events, readable by groups an Administrator grants it to. Questions about the operation can be answered in SQL
-- Who placed or released QA holds during the Line 2 investigation, and through which app
SELECT actor_id, on_behalf_of AS for_user, client_app, COUNT(*) AS actions
FROM ops.audit_events
WHERE event_type = 'action.applied'
AND action IN ('place-hold', 'release-batch')
AND occurred_at BETWEEN '2026-10-26' AND '2026-11-02'
GROUP BY 1, 2, 3
ORDER BY actions DESC;
Retention and holds
Entries are never edited or deleted one at a time. On request, a retention period for the log, and legal holds that suspend expiry until an Administrator releases them
Because audit entries hold references rather than values, offboarding a person or erasing personal information does not require editing the log. Where an entry does name a person, in the detail of an event or as the key of a customer or employee object, an erasure subject writes it as a subject reference instead, from the moment the subject is configured
erasure:
subjects:
customer:
audit:
fields: [email, customerEmail] # detail fields written as subject references
keys: [customer] # object types whose key is written as one
A subject reference is a sealed reference: the value encrypted with AES-256-GCM under a key of its own. Erasure deletes those keys and their history, so the references can be neither opened nor linked to the person again, while the entries, their hashes and the chain stay as they were
Entries written before the subject was configured, and fields or keys it does not list, keep their plain text, and every erasure plan counts them
When a tenant's keys are destroyed at the end of a contract, the platform's copy of the log becomes unreadable with everything else; the copy in your bucket remains yours. See encryption and keys for how that works
Limitations
- The audit log records references, not values. Before and after values live in the action log and prompts in the reasoning trace, so an investigation usually needs all three
- Reads of unlabelled data are not recorded unless you switch them on per object type, sampled or complete
- There is one hash chain per tenant per region. Events in two regions are not ordered against each other, and each chain is verified on its own
- Events from an edge agent that was offline are recorded when they arrive, which can be up to 72 hours after they happened
- Entries are never edited or deleted one at a time
- The hash chain proves the log is internally consistent. Proof that it was not rewritten depends on the checkpoints exported to storage you control, so an export that is switched off weakens that guarantee
- Callers who lack an access label on an entry see that the event happened and who made it, but not its targets or details