Action log
Every applied action leaves exactly one entry in the action log: who applied it, on whose behalf, with which parameters, what every edited property was before and after, and what happened to its writeback. The log is two tables in the lake, read through the API, the clients and the SQL workspace, every entry is also sealed into the hash-chained audit log, and an entry can be undone as a new one
In the platform today
- The action log runs in the platform service, and every apply writes one row to
ops.action_log, with the action, the main object, the parameters, the person, the agent or automation, the proposal and its approver, the reason, the number of edits and the writeback status, and one row per edited property toops.editswith its value before and after - Every apply is also an
action.appliedevent in the hash-chained audit log GET /api/v2/action-logreads the log, filtered byobjectTypeandobjectKey, which find an entry by its main object or by any object it edited (throughops.edits), newest first, up topageSizeentries (100 by default, 1,000 at most), with the caller's access labels and row policies applied, and both tables can be read in the SQL workspacePOST /api/v2/action-log/{logId}:revertundoes an applied action as a new entry whoserevertsnames the original: its edits are reversed, writeback not yet delivered is cancelled, and what delivered writeback changed in each source system is put back- An undo is refused when a property the action changed has changed since, when the entry was already undone or is itself an undo, for agents, and for people who may not run the action;
{"dryRun": true}returns the plan and any reasons it would be refused - The app's Action log page in Admin lists entries and undoes them, and the clients and the
msocommand do the same:mso log --type batch --key B-0838andmso undo <logId> --dry-run - An object's whole history, actions and undos with before and after values per property and the syncs between them, is
GET /api/v2/types/{type}/objects/{key}/history, described with discussion on discussion and object history
- The Action log entry object type, the read set and decision lineage, the revert window and the
action_log.*export
What an entry records
Every apply writes one row to ops.action_log and one row per edited property to ops.edits
| Table | Contents |
|---|---|
ops.action_log | The action, the main object, the parameters, the person, the agent or automation, the proposal and its approver, the reason, the number of edits, the writeback status, and for an undo the entry it reverts |
ops.edits | Each edited property of each object, with its value before and after |
Entries as objects
On request, the log as an object type, so an object's history is an ordinary query. Today, the client reads it with mso.actionLog.list({ objectType: "batch", objectKey: "B-0838" }), which finds every entry that edited the batch, whether or not it was the action's main object, and undoes an entry with mso.actionLog.revert(logId). The object page's history comes from GET /api/v2/types/batch/objects/B-0838/history, see discussion and object history
Entries cannot be edited or deleted by any action, including by administrators. The only change an entry receives is its writeback status updating as deliveries complete; an undo is a new entry
Who can read an entry
The log is read with the caller's access labels and row policies applied, so an entry about an object a reader cannot see is not returned to them
Querying the log
GET /api/v2/action-log?objectType=batch&objectKey=B-0838&pageSize=20
Authorization: Bearer eyJhbGciOi…
{
"data": [ {
"log_id": "alog_01M5Y3P1FC912S30SZ9T8X3CZF", "occurred_at": "2026-10-29T19:08:43.880324Z",
"action": "place-hold", "action_name": "Place QA hold",
"object_type": "batch", "object_key": "B-0838", "object_title": "B-0838",
"parameters": "{\"batch\":\"B-0838\",\"reason\":\"Filled on Tub filler T-2 before the failing net quantity check QA-7710; hold until QA-7716 passes.\"}",
"actor_id": "qa.arsenault", "actor_name": "QA manager",
"agent": "agent:agt-qa", "automation": null,
"proposal_id": "prop_01M5Y3NSN66MNHA96XA9CEB0CB", "approved_by": "qa.arsenault",
"reason": "Filled on Tub filler T-2 before the failing net quantity check QA-7710; hold until QA-7716 passes.",
"edits": 2, "writeback_status": "delivered", "client_app": "app", "reverts": null
} ]
}
Results are newest first, up to pageSize entries, 100 by default and 1,000 at most. The log is two Delta Lake tables in the lake, ops.action_log and ops.edits, readable in the SQL workspace and through POST /api/v2/ops/query by people an Administrator grants them to. On request, the full record of each apply, and the log exported to your bucket
Decision lineage
On request, each entry records what the apply read and at which versions, so a review can see what was known at the time
Reverting an action
A revert undoes the edits of one applied action by applying their inverse in a new commit. It is meant for the mistake noticed a minute later, not for long-running corrections, which should be new actions with their own reasons
- Who. A person who may run the action. Agents cannot undo an action
- When. Until a property the action changed has changed since. On request, a revert window per action type
- Only if nothing has happened since. Every property the action changed must still hold the value it set. A later change to one of them, from sync or another action, blocks the revert, because inverting on top of someone else's change would silently undo it
- What it produces. A new entry whose
revertsnames the original. Both entries remain. An undo cannot itself be undone; run the action again instead - Writeback. Rows not yet delivered are cancelled. What delivered writeback changed in each source system is put back through its operation's undo
- Side effects. Sent notifications and webhooks cannot be recalled. The undo is an
action.revertedevent in the audit log, and people watching the object are told
A refused revert answers 409 and names each property that has changed since. With {"dryRun": true} the request returns the plan and any reasons it would be refused, without undoing anything
{ "status": 409,
"code": "CONCURRENCY_CONFLICT",
"reason": "CONCURRENCY_CONFLICT.REVERT_CONFLICT",
"detail": "Production batch B-0838: QA status has changed since",
"errors": [ { "reason": "REVERT_CONFLICT",
"objectType": "batch", "objectKey": "B-0838", "property": "qaStatus" } ] }
Failed attempts
Only applies that commit become entries, so the log reads as a list of what changed. Attempts that were rejected are still recorded, in two other places. Action metrics count them by category for each action type, and the audit log records each one with the caller, the action, the failure category and a hash of the parameters
| Category | Typical cause |
|---|---|
| Parameter | A missing or invalid value, or a dropdown choice no longer in its option set |
| Criteria | An action condition failed |
| Permission | No permission to apply, or a missing access label |
| Conflict | Concurrent changes outlasted the automatic retries, or a stale form |
| Function | A function rule failed, timed out or raised a user-facing error |
| Limit | Too many edits, or the rate limit |
Integrity, retention and export
Every apply is also an action.applied event in the hash-chained audit log, where each record carries the hash of the one before it, so altering or removing any record breaks every hash after it
In the platform service, an approved erasure request keeps the action log entries, proposals, writeback payloads and undo records that touched the person's objects, with their parameters and payloads cleared, and deletes their rows in ops.edits; the audit log keeps subject references that no longer open. On request, when an object is purged to erase personal information, entries that edited it keep the object's type and an opaque reference, and the purged property values are removed from them. The audit record of the purge itself is kept, so the log shows that something was erased, by whom and when, without showing what
Limitations
- Only applies that commit become entries. Rejected attempts are counted in action metrics and recorded in the audit log, not in the action log
- Entries cannot be edited or deleted by anyone, including administrators. Purges remove personal values from them but leave the entry
- A revert is blocked once a later change touches a property the action edited
- A revert cannot recall notifications or webhooks that were already sent