Docs menu

Activity Log

Goal: See who changed what, and when - for accountability and for debugging.

The activity log captures Saves that change your workshop's tracked records (connections, simulators, surfaces, warm queries, schemas, agents and a few more), accepting a proposal and its undo and redo, team and access changes, removals carried out by a Deploy, corrections and signatures, automatically. Query runs and MCP calls are not recorded today; see what is and is not recorded. Each entry is server-timestamped, attributed to a user, and stored in an append-only, hash-chained record.

What an entry holds

FieldWhat it is
RecordIDThe entry's place in the chain: a 12-digit, zero-padded sequence number the platform assigns
TimestampThe server's clock, in UTC. A caller cannot set it
UserIDWho did it: the signed-in identity. A caller cannot set it
ActionType, EntityTypeWhat was done, to what kind of thing. Free text: the platform accepts any non-empty value and stores it as written
EntityIDWhich one
BeforeState, AfterStateThe record before and after the change, so you can see exactly which fields moved
PreviousHash, HashThe links of the chain (see below)

Turn it on

The record is called Provenance, and it lives in your own Azure subscription. Set it up once your workspace has its private landing zone:

  1. Open Cloud -> Provenance, fill it in, and click Save & Deploy. That Save builds the record's storage in your subscription; it does not wait for Deploy.
  2. To forward records out to a data connection, drag a Provenance Log node from the Node Bank (it appears once Provenance is provisioned). It forwards the records of one Target, narrowed by its Filters (entity types, action types, reason categories, statuses, actors). Its tiles show how many records it has forwarded and when it last forwarded one.

It starts capturing from that moment - it doesn't backfill changes from before it was active, so set it up early. How long entries are kept is set under Retention in the Provenance window: 7, 15 or 30 years, or Indefinite (146,000 days, about 400 years, the Azure maximum), and a period can be extended but never shortened.

Is it recording?

An empty log can mean nothing changed, or that recording stopped. To tell which, open a Provenance Log node and its Status tab. The banner at the top is about the whole workspace, so every node shows the same one:

BannerWhat it means
Changes are being recordedThe latest change was written, and none has been missed in the last 24 hours
Recording again, after a failureWrites are working, but at least one change in the last 24 hours was not recorded. It says how many
Changes are not being recordedThe latest attempt failed. It says how many have failed in a row, when and why
Recording status unknownNothing has reported yet, for example no change has been saved since setup. It doesn't confirm that changes are being recorded
Provenance is offProvenance isn't set up in this workspace, or it was retired

A change that wasn't recorded has still landed, and it can't be added to the record afterwards. The banner covers Saves and the changes recorded the same way as a Save. A record written directly through the API reports its own failure to whoever wrote it.

Query and filter

The Provenance window and the Provenance Log node set the record up and forward it; neither lists the entries. Read them through the API: GET /ox-api/provenance/events/query, filtered by any of:

  • entity type, action type, entity id and user;
  • a date range, by startDate and endDate;
  • a sequence window, by fromSequence and toSequence;
  • a field inside the saved data, by data=<BeforeState|AfterState>.<dotted.path>=<value> (for example data=AfterState.Status=Released). You name the path and OpenX matches the exact value. 42 and "42" are different values, a missing path never matches, and arrays are not searched.

Newest first, 100 entries unless you ask for another limit. To walk a log that is still growing, use the sequence window rather than offset: an offset is a position in a list that gains entries at the end you started from, so records shift under you, while a sequence number names one entry for good. The parameters, the response headers and the scopes are in REST API: Change history.

Verify the history is intact

Each record carries a SHA-256 Hash, worked out by the platform over the record as stored, including the previous record's hash. Change or remove any entry and every hash after it stops matching, so tampering is detectable. Underneath, the records live in blob storage under a time-based immutability policy. The storage service itself refuses a delete or an overwrite while a record's keep period runs, whatever the application does. The policy starts Protected, which an admin can still change in Azure; once a person presses Lock permanently in the Provenance window it is Locked, which nobody can undo (see Provenance). The lock itself is recorded here, as an event.

POST /ox-api/provenance/events/verify checks the whole chain, or one record in it, and reports where the chain broke if it did. Read the answer with care: ChainValid: true with Empty: true means there was nothing to check, not that everything checks out. A mistyped scope looks the same as an empty one.

A whole-chain verify reads every record and recomputes every hash. It is authoritative and it is not cheap: run it when you need it, not on a timer. GET /ox-api/provenance/events/head reads only the newest entry's id and hash, without checking anything, if you just want to name the chain state a piece of evidence was taken against.

Export

GET /ox-api/provenance/events/export exports events as CSV or JSON (JSON is the default) for a date range. The CSV has one column each for RecordID, Timestamp, UserID, ActionType, EntityType, EntityID, BeforeState, AfterState, PreviousHash and Hash, and ends with a footer that names the file's own SHA-256 digest, what it covers, the chain head the export was taken against, and how many records it holds. The digest is also sent in the x-provenance-digest response header. The footer says ChainVerified: false: an export does not verify the chain, so run verify as well when you need that.

An export takes the same filters as a query, data included, and applies them through the same code. The export therefore holds the same events the query shows, and its footer's Query line records the filters.

An export has a limit (10,000 by default) and no paging. If x-provenance-has-more is true you have a part of the log, not all of it: narrow the date range instead of paging. Export regularly if you want an off-platform archive.

GET /ox-api/provenance/signatures lists a record's signatures. Exporting with target=DomainSignatures gives the signatures as a file. In CSV, the ten columns above come first and the signature's own columns follow: SignedBy, SignedAt, Meaning, BindingDigest, CeremonyID, TargetType, TargetRecordID, GrantedRights, StepUpAt, StepUpMethods, LinkCheck and SignerPrintedName. A cell the signature has no value for is empty. An events export keeps its ten columns. JSON carries the same fields.

Each time signatures are read, verified or exported, every signature's link to the record it signs is checked again: the record is read as it is stored now and its digest is worked out afresh. LinkCheck says what was found:

StatusMeaning
IntactThe record still matches the digest the signature was given
ChangedThe record no longer matches. The signature is flagged, never hidden
NotCheckedThe record could not be read, so nothing was checked. This is never a pass

LinkCheck also says whether the signature's seal checks out against the workspace's key (Seal: Valid, Invalid, Unsealed for a signature written before sealing, or NotChecked). A list read sends the count of flagged signatures in the x-provenance-links-flagged header. A verify with target=DomainSignatures answers SignatureLinks with how many were checked and which were flagged; a verify of events answers SignatureLinks as null, because it looked at no signatures. A signatures CSV footer adds LinksChecked and LinksFlagged.

To check a seal yourself, without OpenX, read GET /ox-api/provenance/signatures/seal-keys. It lists every version of the workspace's sealing key, newest first, each with its KeyID, Algorithm and PublicKey (a JWK). A signature's LinkSealKeyID names the version that sealed it. The seal is ES256 over the canonical JSON of the signature's BindingDigest, CeremonyID, Meaning, SignedAt, SignedBy, TargetRecordID and TargetType.

Good habits

  • Set Provenance up before you make the changes you will want to account for; it does not backfill.
  • Set retention from your own obligations, and extend it before you need to.
  • Export on a schedule you can name, and keep the digest with the file.
  • Verify before you rely on an export as evidence.

From any AI

An AI connected to the OpenX MCP server reaches the log through its call_api tool, which calls the query, verify and export routes above for you. So you can ask "Show me all delete events from last week" or "Who changed the ProductData connection yesterday?". The endpoints behind this (append / query / verify / export) are in REST API: Change history.

Next steps

On fathym.com: OpenX provenance →

On this page