Operational tables

The platform keeps a record of everything it does: who applied which action, what each agent read and proposed, what every model call cost, when each feed synced, which checks failed and where every value came from. Operational tables expose those records as read-only tables in the ops schema, as Delta Lake tables in the lake and, on request, in your own catalogue and bucket, with documented schemas, so the questions operations and audit teams ask can be answered in SQL instead of by asking us

Schemaops in your tenant's catalogue, one table per record
StorageDelta Lake tables in your bucket, read-only to everyone
FreshnessWritten as each record is made, with the change data feed on
ExportScheduled copies to a bucket or folder as Parquet and Delta Lake

In the platform today

Built
  • Every record on this page is a Delta Lake table in the ops schema of the lake, with the columns shown in each section below
  • They are read through the SQL workspace: POST /api/v2/ops/query takes {"sql", "limit"} and returns {"columns", "rows", "truncated"}, one SELECT at a time, over the schemas the caller is granted; GET /api/v2/ops/tables returns {"data": [{"table", "version"}]}; POST /api/v2/sql/run and GET /api/v2/sql/tables do the same for every schema, with columns
  • The Operational tables screen in Admin reads them in the demo app
  • Grants are per schema, in sql.grants, and administrators read every schema
On request
  • Per-table grants, event_date partitioning, accessLabels and withheld columns, retention per table, incremental export partitions, attaching the catalogue from your own tools and the stable-interface promise

Table index

Each table is written by the service that owns the record, through an append or merge commit that no person, role or API client can make. The Streaming column says whether the table can be read incrementally through its Delta change data feed: append-only tables only ever gain rows, while tables with updates change a row as the thing it describes moves on, for example when an agent run ends or an access request is decided

TableWhat it holdsStreaming
ops.audit_eventsOne row per audit entry: actions, reads of labelled data, agent steps, security and administrative changesYes, append-only
ops.action_logOne row per applied action, with its caller, approver, parameters and writeback statusYes, with updates
ops.editsOne row per property an action changed, with the value before and afterYes, append-only
ops.agent_runsOne row per agent run, with its outcome, totals and proposal decisionsYes, with updates
ops.agent_stepsOne row per span beneath a run: model calls, tool calls, guardrail checks and proposalsYes, with updates
ops.agent_batchesOne row per batch of agent runs over many objects, with its selection, progress and outcomeYes, with updates
ops.resultsOne row per result an applied action claimed, with its check and outcomeYes, with updates
ops.results_briefsOne row per weekly brief of resultsYes, append-only
ops.model_usageOne row per call through the model gateway, with tokens, cost and routeYes, append-only
ops.sync_runsOne row per connector run and per sync job step, with rows moved, lag and outcomeYes, append-only
ops.rejected_rowsDelivered on request. One row per source row a sync job rejected, for every object type, with the rule it failed. Today each sync run lists its first 50 in rejectionsYes, append-only
ops.quality_resultsOne row per check per build, and per scheduled freshness evaluationYes, with updates
ops.dataset_healthOne row per dataset, slice and check at each health evaluationYes, append-only
ops.lineage_edgesOne row per lineage edge, from source column to decisionNo
ops.access_requestsOne row per access request, from the refused screen to the decisionYes, with updates
  • ops.dataset_health and ops.access_requests exist only on tenants where dataset health and access requests are switched on
  • Rows rejected by every sync job, described in indexing and sync, are kept in one table on request, ops.rejected_rows, with an object_type column; today each run on ops.sync_runs counts them and lists the first 50 with key and reason
  • Every table is written as its record is made and has the Delta change data feed on; retention set per table is delivered on request
  • Rows are kept until a retention policy or the feature's own sweep removes them: webhook deliveries after webhooks.retentionDays, call history after six months, and resolved monitor alerts and dataset health rows after 30 days. Retention never covers the audit log, keys, internal bookkeeping or the privacy tables

Tables you can query today

The platform service writes these tables for reports and alerts, grouped by area. It also keeps working tables of its own, which are not listed here

AreaTables
Audit and actionsops.audit_events, ops.action_log, ops.edits, ops.proposals, ops.writeback_outbox, ops.call_runs, ops.notifications
Agents and AIops.agent_runs, ops.agent_steps, ops.agent_batches, ops.model_usage, ops.aifunction_runs, ops.eval_runs, ops.eval_results
Automationsops.automation_runs
Resultsops.results, ops.results_briefs
Syncs, pipelines and qualityops.sync_runs, ops.pipeline_runs, ops.quality_results, ops.lineage_edges, ops.quarantine, ops.schema_changes, ops.dataset_health, ops.export_runs
Monitorsops.monitor_alerts
Directory and privacyops.directory, ops.retention_passes, ops.erasure_requests
Connectors and filesops.connector_runs, ops.ingest_runs
Time seriesops.timeseries_events
Catalogue and accessops.catalog_certifications, ops.access_requests
SQLops.query_history
Trained modelsops.model_predictions, ops.ml_accuracy
Partner sharingops.share_reads
Webhooksops.webhook_deliveries

A table exists once its feature first writes to it, so a fresh lake has only some of them. Each feature's own page describes its tables: the catalogue, metrics and dashboards, data branches, trained models, connectors and file drops, partner sharing, model budgets and redaction, document extraction, similarity search, pipeline editing, time series alerts, webhooks, monitors, discussion, attachments, scheduling boards, the directory, retention and erasure and solution packages

A stable interface over internal tables

Delivered on request. The services keep their own working tables in the audit, actions and runs schemas described in open table format. Those can change shape between releases. The ops tables are the documented interface: columns are only ever added, and a column is renamed or removed only after 12 months' notice, the same promise the REST API makes. Build reports and alerts on ops. Without it, the columns follow the code

Conventions

Every table follows the same rules, so a query written against one reads naturally against the others. Some rules are delivered on request, as labelled

ConventionRule
NamesLower-case snake case for tables and columns. Ids are ULIDs with a short prefix, such as aud_, alog_ or sync_, so they sort by time. Enumerated values are lower-case strings, except action log status, which keeps the values shown in the app
TimeEvery timestamp is UTC with microsecond precision. Convert with timezone('America/Halifax', occurred_at) in DuckDB, or from_utc_timestamp(ts, 'America/Halifax') in Spark, for Atlantic time
PartitioningDelivered on request. Every table has an event_date column, the UTC date of the row's main timestamp, and is partitioned on it. Filter on it to keep scans small. Today filter on the table's own timestamp
PrincipalsOn request: people are user:<id>, groups group:<name>, agents agent:<name>, service principals service:<name> and Markland Street staff operator:<id>. Today people and agents are their bare ids from ontology.yaml, such as mc.lee or aog-desk
ValuesProperty values, parameters and observed figures are JSON-encoded strings, so one column can hold any base type. Use json_extract_string or get_json_object to read them
Access labelsDelivered on request. Every table that can describe labelled data has an accessLabels column and a withheld flag, described in access control. Today access is by schema grant

How to query them

There are four ways in, and they all read the same tables. Use the Operational tables screen in Admin for a quick question, the SQL endpoint or the SDK from code, and DuckDB or Apache Spark when you want the tables in your own tools or a reader that works without the platform running

In the app

The Operational tables screen in Admin lists every table you can read, with its schema, retention, current version and the sample queries on this page. Its SQL editor runs statements through the same endpoint as code does, under your own grants, and can save a query; saving it as a report or an alert rule is delivered on request. The screen is in the demo app

The SQL endpoint

POST /api/v2/ops/query
GET /api/v2/ops/tables

The endpoint runs one read-only statement, a single SELECT or WITH … SELECT, through the SQL workspace. Anything else is refused with INVALID_ARGUMENT

  • It reads only the tables the caller may read, with no file access, under the workspace's statement timeout, 15 seconds by default, and row limit, 5,000 rows by default
  • GET /api/v2/ops/tables lists the ops tables with their current Delta versions; GET /api/v2/sql/tables adds columns and row counts
  • POST /api/v2/sql/run takes the same statement with positional params for ? placeholders
POST /api/v2/ops/query HTTP/1.1
Authorization: Bearer <access token>
Content-Type: application/json

{
  "sql": "SELECT action, count(*) AS applies FROM ops.action_log WHERE occurred_at >= now() - INTERVAL 7 DAY GROUP BY action ORDER BY applies DESC",
  "limit": 100
}
{
  "columns": [
    { "name": "action", "type": "string" },
    { "name": "applies", "type": "int64" }
  ],
  "rows": [
    { "action": "swap-aircraft", "applies": 4 },
    { "action": "ground-aircraft", "applies": 2 }
  ],
  "truncated": false
}

Every statement is recorded in ops.query_history with its user, SQL hash, row count and time

On request, statements take named parameters and page through results pinned to one set of table versions, with limits on run time and concurrency set per implementation

The Client SDK

The Python client wraps the SQL workspace and returns rows that convert to Apache Arrow, Polars or pandas. The TypeScript client runs a statement with mso.sql.run(sql, { params }) and returns typed rows

import os
from mso_client import Client

mso = Client("https://ontology.example.com", token=os.environ["MSO_TOKEN"])
usage = mso.sql(
    "SELECT coalesce(agent, purpose) AS caller, sum(cost_cad) AS cost FROM ops.model_usage "
    "WHERE occurred_at >= ? GROUP BY 1 ORDER BY cost DESC",
    params=["2026-10-01"],
)
print(usage.to_polars())

On request, an ops.query call in both SDK languages takes named parameters

DuckDB and Apache Spark

The tables are ordinary Delta Lake tables, so DuckDB, Apache Spark or the Delta Lake libraries can read them straight from the lake folder or bucket, with no platform running. Such a read is governed by storage permissions only, not by the workspace's grants. Attaching them through the catalogue with vended credentials, as described in open table format, is delivered on request

INSTALL delta; LOAD delta;

-- Agent runs by outcome over the last 7 days, read from the lake folder
SELECT agent, status, count(*) AS runs
FROM delta_scan('lake/aircraft/ops/agent_runs')
WHERE started_at >= now() - INTERVAL 7 DAY
GROUP BY ALL;

On request, your tools attach the catalogue and read with vended credentials, so a scheduled job can join operational tables to your own data without depending on the platform

The nightly export

In the platform service, exports: in ontology.yaml names a destination (an s3:// prefix or a folder), the tables to copy (names or patterns such as ops.action_log or gold.*), the formats and a schedule such as daily 02:00. Each run writes every matching table as it stood

  • Parquet. parquet/<schema>/<table>/export_date=<date>/part-00000.parquet, with a _manifest.json of rows, columns, source version and export time
  • Delta Lake. A copy under delta/<schema>/<table> whose own versions are the export history
  • Runs. Recorded in ops.export_runs and the audit log. The timer runs when the export scheduler is switched on, a service setting, and administrators can run an export with POST /api/v2/exports/{id}:run
  • Sealed properties. They leave as their tokens

On request, the export writes partitions by event date incrementally, rewriting older partitions whose rows changed

Access control

Operational tables describe how the whole implementation is used, so they start closed. In the platform service access is by schema

  • Grants per schema. sql.grants in ontology.yaml lists the groups that may read each schema, for example ops: [maintenance-control]. Administrators read every schema. A table outside a granted schema does not exist for the caller
  • Administrators. The administrator role reads every ops table, whatever its contents describe
  • Row and field access do not apply. Row policies and hidden properties are rules on object types, applied to objects.* tables in the workspace. Operational tables are records about objects, not objects, so a grant on ops shows every row. Grant it only to people who would pass every object policy anyway
  • Every read is recorded. Statements are written to ops.query_history with the tables they read and the row count

On request, administrators grant single tables, and rows about labelled data hide their detail from readers without the label

ops.audit_events

A row for each entry in the hash-chained audit log. Each entry carries the hash of the one before it, so GET /api/v2/audit:verify can prove the chain has not been edited

ColumnTypeDescriptionExample
event_idstringAudit entry idaud_01M5T7YCNVT8QW36K34HMGBE8D
seqint64Gap-free sequence number within the chain9
occurred_attimestampWhen the event was recorded2026-10-25 19:17:35.547
event_typestringWhat happened, such as action.applied, action.proposed, proposal.approved, agent.run, access.granted or webhook.createddocument.extracted
outcomestringok or the reason it did not succeedok
actor_id, actor_namestringThe person who acted, or systemstores.gallant, Marie-Ève Gallant
on_behalf_of, agentstringWhen an agent acted, the person it acted for and the agentmc.lee, aog-desk
client_appstringHow the request arrived, such as api or agentapi
actionstringThe action type, agent, document kind or other resource the event concernedvendor-quote
object_type, object_keystringThe object or resource touched. Never property valuesdocument, doc_01M5T7YCK53P…
detailstringEvent-specific detail as JSON{"engine":"rules",…}
prev_hash, hashstringSHA-256 of the previous entry and of this onedcb4e9ca90…
On-request columns
entry_idstringAudit entry id. Built as event_idaud_01J9Z7K4B8XG2N5R0QH3TW6M1C
chainstringTenant and region of the chain<tenant>/<region>
recorded_attimestampWhen the audit service sequenced it. Up to 72 hours later for an edge agent that was offline2026-10-29 15:02:51.640
actor_typestringThe principal that actedagent, agent:agt-qa
approved_bystringThe person who approved a proposal, or nulluser:qa.arsenault
resourcestringResource name the event concernedmsrn:ontology:creamery:action-type/place-hold
targetsarray<struct>Objects, datasets or resources touched, each with kind, id and version. Never values[{object, batch/B-0841, 8}]
accessLabelsarray<string>Union of access labels on the data the event touched["QUALITY"]
detailsstringEvent-specific detail as JSON, shaped by schema_version. Built as detail{"actionLogId":"alog_01J9Z7K3…"}
withheldbooleanTrue when targets and details are hidden from this readerfalse
event_datedateUTC date of occurred_at2026-10-29
-- Refused requests in the last 7 days, by person and event
SELECT actor_id, event_type, outcome, count(*) AS refusals
FROM ops.audit_events
WHERE outcome <> 'ok'
  AND occurred_at >= now() - INTERVAL 7 DAY
GROUP BY ALL
ORDER BY refusals DESC;
-- Everything an agent did for Dana Lee this month
SELECT occurred_at, agent, event_type, action, object_type, object_key
FROM ops.audit_events
WHERE on_behalf_of = 'mc.lee' AND occurred_at >= date_trunc('month', now())
ORDER BY seq;

ops.action_log

A row for each applied action, as recorded in the action log. The row is updated only when its writeback status moves on. Edited values, before and after, live in ops.edits, keyed by log_id

ColumnTypeDescriptionExample
log_idstringEntry id, a ULID that sorts by timealog_01M5T8…
occurred_attimestampCommit time of the action2026-10-24 13:42:05.877
action, action_namestringThe action type id and its display nameground-aircraft, Ground aircraft
object_type, object_key, object_titlestringThe action's object and its titleaircraft, 407, 407 · C-GMKG
parametersstringResolved parameters as JSON. On request: a map type, with sensitive parameters held as a salted hash{"aircraft":"407", "reason":"Bird strike, YYT"}
actor_id, actor_namestringThe person who applied it, or the approver of a proposalmc.lee, Dana Lee
agent, automation, proposal_idstringWhen it came from a proposal, the agent or automation that proposed it and the proposalaog-desk, null, prop_01M5…
approved_bystringFor proposals, who approved itmc.lee
reasonstringThe reason given, when the action has oneBird strike, YYT
editsint64Objects created, modified or deleted1
writeback_statusstringnone, pending, retrying, delivered or failed, across every targetdelivered
client_appstringHow the request arrivedapi
revertsstringFor an undo, the entry it undidnull
On-request columns
action_log_idstringEntry id, a ULID that sorts by time. Built as log_idalog_01J9Z7K3QF6X2M8T4V0B1C5D7E
action_type, action_type_versionstring, intThe action type and the revision that ran. Built as actionplace-hold, 4
statusstringApplied, Reverted or Partially appliedApplied
channelstringuser, agent, automation or apiagent
applied_bystringThe person or service principal that applied it. Built as actor_iduser:qa.arsenault
agent_run_idstringFor proposals, the agent and the run that proposed it 
approved_attimestampFor proposals, who approved and when 
committed_at, commit_seqtimestamp, bigintCommit time and place in the ontology's commit order. Built as occurred_at81604033
duration_msintTime the apply took47
summarystringThe rendered summary templateHeld B-0841 (Failed check, QA-7710)
edit_countintObjects created, modified or deleted. Built as edits3
revert_ofstringFor a revert, the entry it undid. Built as revertsnull
accessLabels, withheldarray<string>, booleanAccess labels on what the action read or wrote, and whether parameters are hidden from this reader["QUALITY"], false
event_datedateUTC date of committed_at2026-10-29
-- Who grounded aircraft last week, and on whose suggestion
SELECT occurred_at,
       object_key                                           AS aircraft,
       json_extract_string(parameters, '$.reason')       AS reason,
       coalesce(approved_by, actor_id)                      AS decided_by,
       coalesce(agent, automation, 'person')               AS proposed_by,
       writeback_status
FROM ops.action_log
WHERE action = 'ground-aircraft'
  AND occurred_at >= now() - INTERVAL 7 DAY
ORDER BY occurred_at;

ops.edits

A row for each property an action changed, with the value before and after, written in the same commit as the action log entry and keyed by log_id. The live overlay that sync applies on top of the source, with each edit's state, is a separate table, objects._edits

ColumnTypeDescriptionExample
log_idstringThe action log entry that made the editalog_01M5T8…
occurred_attimestampCommit time of the action2026-10-24 13:42:05.877
object_type, object_keystringThe edited objectaircraft, 407
opstringcreate, modify or deletemodify
propertystringThe property, or _key for a deletestatus
value_before, value_afterstringJSON-encoded values"In service", "AOG"
actor_idstringThe person who applied the actionmc.lee
On-request columns
action_log_idstringThe entry that made the edit. Built as log_idalog_01J9Z7K3QF6X2M8T4V0B1C5D7E
committed_attimestampCommit time of the action. Built as occurred_at2026-10-18 14:02:51.633
version_before, version_afterbigintObject version on each side of the edit13, 14
overrode_sourcebooleanTrue when the value before came from the source system rather than an earlier edittrue
accessLabels, withheldarray<string>, booleanAccess labels on the property and object, and whether values are hidden[], false
event_datedateUTC date of committed_at2026-10-18
-- Every status change on aircraft 407 this week, with who made it
SELECT e.occurred_at, l.action, e.actor_id, e.value_before, e.value_after, l.writeback_status
FROM ops.edits e JOIN ops.action_log l USING (log_id)
WHERE e.object_type = 'aircraft' AND e.object_key = '407' AND e.property = 'status'
  AND e.occurred_at >= now() - INTERVAL 7 DAY
ORDER BY e.occurred_at;

ops.proposals

A row for each action staged for a person to approve, by an agent, an automation or a person. The row is updated when it is approved or rejected

ColumnTypeDescriptionExample
proposal_id, created_atstring, timestampProposal id and when it was stagedprop_01M5…
action, action_namestringThe action type proposedswap-aircraft
object_type, object_keystringIts objectflight, MKA214-20261023
parameters, rationalestringParameters as JSON, and why it was proposed{"newAircraft":"411",…}
proposed_by, on_behalf_of, run_idstringThe agent or automation, the person it acted for, and the agent runaog-desk, mc.lee, run_01M5…
status, validationstringpending, approved, rejected or expired, and the check result at staging as JSONapproved
decided_by, decided_at, notestring, timestamp, stringWho decided, when, and their notemc.lee
log_idstringFor approved proposals, the resulting action log entryalog_01M5T8…
expires_attimestampWhen the proposal expires undecided, from expiresAt, the action type's proposalExpiry or proposals.expireAfter2026-10-25 13:42:05

ops.writeback_outbox

A row for each writeback delivery an action queued, written in the same commit as the action. The row is updated as delivery is attempted, and moves to dead_letter after 5 failed attempts

ColumnTypeDescriptionExample
outbox_id, log_idstringThe row, and the action log entry that queued itwb_01M5…, alog_01M5T8…
system, operationstringThe target from systems.yaml and its operationmaintenance, set-aircraft-status
payloadstringThe fields to write, as JSON{"fleetNumber":"407", "status":"AOG"}
idempotency_keystringStable across attempts: {log_id}:{system}:{operation}alog_01M5T8…:maintenance:set-aircraft-status
status, attempts, last_errorstring, int64, stringpending, retrying, delivered, dead_letter or cancelled (by an undo), with the attempt count and the last errordelivered, 1, null
created_at, delivered_attimestampWhen it was queued and delivered2026-10-24 13:42:05.877
-- Writeback that needs a person
SELECT o.created_at, l.action, l.object_key, o.system, o.operation, o.attempts, o.last_error
FROM ops.writeback_outbox o JOIN ops.action_log l USING (log_id)
WHERE o.status = 'dead_letter'
ORDER BY o.created_at;

ops.agent_runs

A row for each agent run, written when the run is queued and updated as it goes. The steps beneath it are in ops.agent_steps, and model calls in ops.model_usage

ColumnTypeDescriptionExample
run_idstringRun idrun_01M5…
agent, agent_namestringThe agentaog-desk
user_idstringThe person the run acted formc.lee
input, answerstringThe request and the agent's answerWhat can cover MKA214 if 407 stays AOG?
status, errorstringOne of the run states, from queued to interrupted, and the error when it failedcompleted
modestringmodel, or playbook when no model was available and the scripted playbook ranplaybook
steps, tool_callsint64Steps taken and tool calls made5, 9
proposals, citedstringProposals staged and objects cited, as JSON[{"action":"swap-aircraft",…}]
model, input_tokens, output_tokens, cost_cadstring, int64, int64, doubleThe model and the run's totals, cost in Canadian dollarsnull, 0, 0, 0.0
started_at, finished_attimestampRun start and end2026-10-24 16:00:01
membersstringFor an agent team, each member's status and proposals, as JSONnull
source, parent_run_idstringWhere the run started, such as api, automation, batch or check, and the run it came fromapi, null
batch_id, object_type, object_keystringFor a run in a batch, the batch and the object it ran overnull
waiting_for, ask_expires_atstring, timestampFor a waiting run, its questions as JSON and when it expires unanswerednull
worker, heartbeat_at, cancelled_bystring, timestamp, stringThe copy running it, its last heartbeat, and who stopped itnull
On-request columns
agent_versionintThe agent and the published version that ran 
on_behalf_ofstringThe person the run acted foruser:shops.nguyen
triggerstringassistant, app, automation, schedule, api or evaluationschedule
ended_attimestampRun start and end. ended_at is null while running. Built as finished_at 
limit_hitstringFor limit_reached: steps, wall_clock, tokens, cost or proposalsnull
approved, rejected, expiredintProposals staged and how they were decided so far 
trace_idstringW3C trace id of the reasoning trace4bf92f3577b34da6a3ce929d0e0e4736
accessLabelsarray<string>Union of access labels on everything the run read[]
event_datedateUTC date of started_at2026-10-22
-- Runs per agent and outcome this month, with what they cost
SELECT agent, status, mode, count(*) AS runs, sum(steps) AS steps, sum(cost_cad) AS cost_cad
FROM ops.agent_runs
WHERE started_at >= date_trunc('month', now())
GROUP BY ALL
ORDER BY runs DESC;

ops.agent_steps

A row for each step of a run: each model call and each tool call, with its input, output and timing. GET /api/v2/agents/{id}/runs/{run}/trace returns the same rows as the run's reasoning trace

ColumnTypeDescriptionExample
run_id, stepstring, int64The run and the step numberrun_01M5…, 4
kindstringmodel, tool, note, ask, answer, check, and for teams delegate and handbacktool
toolstringFor tool steps, the tool, such as search_objects, get_object, follow_link, aggregate or propose_actionpropose_action
input, outputstringThe step's input and output, clipped{"action":"swap-aircraft",…}
status, msstring, doubleok, error, fallback, waiting, or for a check warn or blocked, and how long the step tookok, 212.4
attimestampWhen the step ran2026-10-24 16:00:02
memberstringFor an agent team, the member who took the stepnull
span, parent, effectstringThe step's span id, the span of the step that led to it, and what it does: read, propose, model, delegate, report, ask or answersp_01M5…, null, read
user_id, input_tokens, output_tokens, cost_cadstring, int64, int64, doubleThe person the run acts for, and for a model step its own tokens and costmc.lee, 1840, 96, 0.02
On-request columns
span_id, parent_span_idstringSpan ids, as exported to OpenTelemetry. Built as span and parent, ids of the platform's own00f067aa0ba902b7
namestringTool, function, check or action type namereallocate-tubs
started_at, duration_mstimestamp, intSpan start and length. Built as at, ms212
objects_read, objects_citedintObjects the span returned and the subset the agent cited14, 3
guardrail_outcomestringFor guardrail spans: pass, rewrite or blocknull
proposal_idstringFor proposal spans, the proposalprop_01JA2F7B…
proposal_statestringpending, approved, approved_with_edits, rejected, expired or failed_checkrejected
decided_by, decided_atstring, timestampWho decided the proposal, and whenuser:shops.nguyen
decision_reasonstringThe reason chosen from the action type's list when rejecting or editingShop needs its own stock
decision_notestringFree text the approver addedKeep them for Saturday, top up DLV-5521 instead
action_log_idstringFor approved proposals, the resulting entrynull
payload_hashstringSHA-256 of the span's payload in the trace9a0c…e1
accessLabels, withheldarray<string>, booleanAccess labels on what the span read, and whether names and notes are hidden[], false
event_datedateUTC date of started_at2026-10-22
-- Tools that fail most often
SELECT tool, count(*) AS calls,
       count(*) FILTER (WHERE status = 'error') AS errors,
       round(avg(ms)) AS avg_ms
FROM ops.agent_steps
WHERE kind = 'tool'
GROUP BY tool
ORDER BY errors DESC;

ops.agent_batches

A row for each batch: one agent run over many objects of a type, one run each, described on agent runs. Each run of the batch is a row in ops.agent_runs with its batch_id

ColumnTypeDescriptionExample
batch_idstringBatch idabat_01M5…
agent, agent_name, user_idstringThe agent, and the person its runs act foragt-weekend
object_type, selection, totalstring, string, int64The object type, the filter or keys as JSON, and how many objects it coversshop, {"where":{…}}, 14
input_template, context_template, modestringThe request and context filled per object, and auto or playbookWeekend cover for {{object.name}}
parallel, cost_limit_cadint64, doubleRuns at once, and the batch's cost limit2, 5.0
status, errorstringrunning, cancelling, completed, cancelled, cost_limit_reached, failed or interruptedcompleted
sourcestringapi, or automation for an agent effect with forEachautomation
created_at, finished_attimestampWhen it started and ended2026-10-24 06:00:01
worker, heartbeat_at, cancelled_bystring, timestamp, stringThe copy running it, its last heartbeat, and who stopped itnull

ops.results and ops.results_briefs

A row in ops.results for each result an applied action claimed, from the action types listed under results in ontology.yaml, and a row in ops.results_briefs for each weekly brief built from them, described on results

ColumnTypeDescriptionExample
result_id, log_idstringResult id, and the action log entry that claimed itlog_01M5…
action, action_name, name, categorystringThe action type, and the result's name and categoryplace-hold, Product kept off shelves, Quality
object_type, object_key, object_titlestringThe action's main objectbatch
unit, claimed, realisedstring, double, doubleThe unit, the value claimed when the action was applied and the value realisedCAD, 4200.0, null
statusstringrecorded, pending, confirmed, not_realised or reversedpending
decided_by, decided_by_name, agent, automation, proposal_idstringWho applied the action, and the agent, automation or proposal behind itqa.leblanc
occurred_at, check_due, checked_at, checked_by, notetimestamp, timestamp, timestamp, string, stringWhen it was claimed, when its check is due, and when and by whom it was checked, with a note 
ops.results_briefs
brief_id, week_startstring, dateBrief id, and the Monday of the week it covers2026-10-19
created_at, created_bytimestamp, stringWhen it was written, by the timer or an owner 
body, textstringThe brief as JSON and as text 

ops.model_usage

A row for each call through the model gateway, including refusals. Redaction counts are also in ops.model_redactions

ColumnTypeDescriptionExample
usage_id, occurred_atstring, timestampCall id and when the gateway received itmu_01M5T7YCKVQR…
purposestringWhat the call was for, such as agent, ai_function, extract, classify, evaluation or onboardingextract
run_id, agent, user_idstringThe agent run where there is one, the agent and the personnull, null, stores.gallant
provider, modelstringThe provider and model that answered, or deterministic when rules answered without a modeldeterministic, null
tier, route, escalated_fromstringThe tier asked for, how the route was chosen, and the tier escalated fromfast, explicit, null
outcome, errorstringok, refusal, schema_failed, no_eligible_route, rate_limited, refused_budget or error, with the errorno_eligible_route
input_tokens, output_tokens, cache_read_tokens, cache_write_tokensint64Token counts0
cost_cad, latency_msdoubleCost in Canadian dollars at the route's price table, and latency0.0
schema_valid, redactedboolean, int64Whether structured output matched its schema, and how many values were redactednull, 0
On-request columns
call_idstringGateway call id. Built as usage_idmcall_01JB2R5…
called_attimestampWhen the gateway received the call. Built as occurred_at2026-10-22 16:00:01.890
regionstringDeployment region that handled the call<region>
caller_kindstringagent, ai_function, assistant, evaluation or embeddingagent
caller, caller_versionstringThe agent or function, and its versionagent:agt-weekend, 7
on_behalf_ofstringThe person the call was made for. Built as user_iduser:shops.nguyen
task_classstringThe task class asked for and the route chosenplan, planning-large
adapterstringThe adapter and the target that answered, after any failover<adapter>, plan-large-cc
cached_input_tokensbigintToken counts as billed by the provider 
cache_hitbooleanServed from the gateway's exact-match cache, at no costfalse
failoverbooleanAnswered by a later target on the routefalse
budgetsarray<string>Every budget the call was charged to["tenant-monthly", "agt-weekend"]
blocked_bystringThe budget that refused the call, when outcome is refused_budget, or nullperson-default
tagsmap<string,string>Cost attribution tags after inheritance{cost-centre: distribution, purpose: weekend-planning}
redactionsintFields the gateway withheld or masked for this route. Built as redacted2
event_datedateUTC date of called_at2026-10-22

Without a provider key the gateway answers no_eligible_route and features fall back to rules or playbooks

-- Spend and refusals by purpose and person this month
SELECT purpose, user_id, outcome, count(*) AS calls, sum(cost_cad) AS cost_cad
FROM ops.model_usage
WHERE occurred_at >= date_trunc('month', now())
GROUP BY ALL
ORDER BY cost_cad DESC;

ops.sync_runs

A row for each object type at each sync: the backing dataset versions read, the objects written and the outcome. Connector runs are in ops.connector_runs

ColumnTypeDescriptionExample
run_idstringSync run idsync_01M5T7YAFHZK…
object_type, datasetstringThe object type and its backing datasetpurchase-order, gold.purchase_orders
started_at, secondstimestamp, doubleRun start and length2026-10-25 19:17:33, 0.048
from_version, to_versionint64Dataset versions read, from the last applied to the current; -1 for a first sync-1, 0
rows_upserted, rows_deleted, rows_rejectedint64Object versions written, objects deleted, and source rows rejected108, 0, 0
edits_clearedint64Edits cleared because the source now agrees0
rejectionsstringThe first 50 rejected source rows as JSON, each with its key and reason: KEY_MISSING, DUPLICATE_KEY (the same key twice in a full read), REQUIRED_PROPERTY (a required property empty after edits are overlaid, with the properties named) or UNREADABLE. Null when none{"key": "B-0846", "reason": "REQUIRED_PROPERTY", "detail": "line"}
status, errorstringsucceeded, failed or skipped, and whysucceeded
On-request columns
stagestringconnector or syncconnector
source, source_tablestringConnector name and the table, topic or path it readpos-cloud, inventory_changes
hoststringcloud, or the edge agent's siteedge/creamery-plant-01
modestringcdc, incremental, full, streaming or fileincremental
dataset_versionbigintThe dataset written, or read for a sync step, and its version 
ended_at, duration_mstimestampRun timing. Built as seconds 
position_from, position_tostringSource log position, cursor or watermark at start and endcur_88213, cur_88290
rows_inserted, rows_updated, rows_unchangedbigintRows by outcome. Built as rows_upserted, rows_upserted 
lag_secondsdoubleAge of the oldest change written, from its source time to the end of the run41.2
error_codestringsucceeded, failed or paused, and a stable code on failure. Built as error 
event_datedateUTC date of started_at2026-10-24
-- Object types whose last sync failed or rejected rows
SELECT object_type, dataset, started_at, to_version, rows_rejected, status, error
FROM ops.sync_runs
QUALIFY row_number() OVER (PARTITION BY object_type ORDER BY started_at DESC) = 1
   AND (status = 'failed' OR rows_rejected > 0);

ops.rejected_rows

In the platform service today, sync refuses a source row, and keeps its object as it was, when its key is empty, when the same key appears twice in a full read, when a required property is empty after edits are overlaid, or when the row can't be read. The run counts them in rows_rejected on ops.sync_runs and lists the first 50 in rejections with key and reason. On request, every rejected source row is kept with the rule it broke

ops.pipeline_runs

A row for each pipeline build

ColumnTypeDescriptionExample
run_idstringBuild idbuild_01M5T7Y99VNY…
pipeline_id, pipeline_namestringThe pipelinecompliance, Airworthiness, people and tooling
started_at, finished_at, secondstimestamp, timestamp, doubleBuild timing0.201
status, errorstringsucceeded or failed, and whysucceeded
steps, rows_out, rows_dropped, warningsint64Steps run, rows written, rows dropped by checks and warnings raised4, 396, 0, 1
failed_stepstringFor a failed build, the output of the step that failed. A failed build changes no outputgold.aircraft
steps_skipped, outputsint64, stringSteps skipped because their inputs and logic were unchanged, and each output's result as JSON, with the reason a step was skipped2
forcedbooleanWhether the build was asked to run every stepfalse

ops.quarantine

A row for each source row a pipeline check with onFail: drop, or a shorthand check, removed from a build, at most 10,000 per check per build. The same row dropped again by later builds stays one entry, with its last run and count moved on. Entries change only when a build succeeds. GET /api/v2/quarantine, POST /api/v2/quarantine:replay and POST /api/v2/quarantine:discard read and act on it for the pipeline's editors and administrators who hold the access label of the type the dataset backs

ColumnTypeDescription
quarantine_idstringA stable id from the pipeline, dataset, check and row, such as q_3f9a…
pipeline_id, dataset, expectationstringWhere the row was dropped and the check it failed
row, row_keystringThe row as JSON, without columns sealed by sealPipelineOutputs, and its key
statusstringheld, replay (a fixed row is put in its place in later builds), resolved (the source no longer makes it) or discarded
fixed_rowstringThe corrected row an editor sent, as JSON
first_run_id, last_run_id, times_seenstring, string, int64The builds that dropped it and how many times
quarantined_at, last_seen_at, resolved_at, resolved_by, detailtimestamp, stringTiming, who resolved it and the check's message

ops.schema_changes

A row for each difference a build saw between a dataset's schema and the one last seen for it, recorded once by the first build that sees it. The schema each schema contract holds is in ops.schema_contracts. GET /api/v2/schema-changes reads it

ColumnTypeDescription
change_id, seen_atstring, timestampId, such as sch_01M5…, and when it was seen
dataset, rolestringThe dataset, and whether the build read it as an input or wrote it as an output
pipeline_id, run_idstringThe pipeline and build that saw it
change, columnstringadded, removed, retyped or reordered, and the column
from_type, to_typestringThe column's type before and after
contract, violationstring, booleanThe contract mode it was checked against, and whether it broke it and failed the build

ops.call_runs

A row for each attempt of a call to a real system: writeback before or after the edits, an undo, or a chained call such as fetching a token. Secret values are replaced with [secret], bodies are kept up to 64 KB each, or left out with storeResponse: false, and rows older than six months on the platform clock are removed. GET /api/v2/writeback/calls reads it for administrators

ColumnTypeDescription
run_id, created_at, attemptstring, timestamp, int64Id, time and attempt number
system, operation, kindstringThe system and operation in systems.yaml, and before, after, undo or chain
chained_for, log_id, outbox_idstringThe operation a chained call was made for, the action log entry and the outbox row
method, url, idempotency_keystringWhat was sent
status_code, outcome, reason, error, duration_msint64, string, doubleThe answer: succeeded, unchanged or failed, why, and how long it took
request_body, response_body, outputsstringBodies and the outputs read from the answer

ops.monitor_alerts

A row for each monitor alert: one per rule and resource while the condition holds. Every change of state, opened, escalated, lowered, resolved, snoozed, unsnoozed or snooze ended, is a row in ops.monitor_events with the alert, the severity, the value against the threshold, the actor and a note. Resolved alerts and state changes are kept 30 days

ColumnTypeDescription
alert_idstringId, such as mon_01M5…
rule, kind, resourcestringThe rule, the kind of resource (pipeline, sync, automation, agent, aifunction, writeback, webhook, edge or dataset) and which one
state, severitystringopen or resolved, and low, medium or high
value, threshold, unit, messagedouble, double, string, stringThe measured value against the rule's threshold
opened_at, updated_at, resolved_at, measured_attimestampTiming
snoozed_until, snooze_reason, snoozed_bytimestamp, string, stringA snooze, which always has a reason and an end
series, detailstringThe last 48 measured values, at most one every five minutes, and the runs behind the alert, as JSON

ops.directory

The directory: one row per entry, keyed kind:id, with the entry as JSON in doc

  • user: profile overrides, access labels, attributes, status, last sign-in, cut-off and handover
  • grant: a membership given here, with its expiry
  • group and member: identity provider groups and their people, pushed over SCIM
  • rules: the group-mapping rules saved through the API
ColumnTypeDescription
key, kind, idstringThe entry, such as user:mc.lee or grant:mc.lee|planning
docstringThe entry as JSON
updated_attimestampWhen it last changed

ops.retention_passes and ops.retention_marks

A row in ops.retention_passes for each retention pass, and a row in ops.retention_marks for each table a pass marked, with the rows it will purge once the grace period is over. Exemptions are in ops.retention_exemptions with the table, reason, who set it and when

ColumnTypeDescription
pass_id, policy, trigger, started_bystringThe pass, its policy, whether the timer or a person ran it, and who
started_at, finished_at, status, errortimestamp, stringTiming and outcome
marked, purged, tablesint64, int64, stringRows marked and purged, and each table's part as JSON
mark_id, table_name, conds, rowsstring, string, string, int64In ops.retention_marks: the table, the fixed cutoff the rows matched and how many
marked_at, purge_after, statustimestamp, timestamp, stringWhen the rows may be purged, and marked, purged or undone
purged_at, purged_rows, undone_by, undone_attimestamp, int64, string, timestampWhat happened to the mark

ops.erasure_requests

A row for each erasure request. Its identifiers and plan are sealed under the request's own subject key and shredded at completion, after which the row holds its status, dates, people, counts and the subject reference only. Per-person keys for audit subject references, and the record of erased objects, are kept apart and never covered by retention

ColumnTypeDescription
request_id, subject, refstringThe request, the kind of person and their subject reference
identifiers, plan, plan_summary, planned_atstring, string, string, timestampSealed while the request is open
reason, reference, notestringWhy it was filed, the outside reference and the decision note
statusstringopen, approved, completed, failed, rejected or withdrawn
filed_by, filed_at, deadline, extended, extension_reasonstring, timestamp, timestamp, boolean, stringFiling and the deadline
decided_by, decided_at, completed_at, completion, errorstring, timestamp, timestamp, string, stringThe second officer's decision and the completion record, with counts only

ops.quality_results

A row for each check evaluated in each build. Checks are declared on pipeline steps in pipelines.yaml, as described in data quality

ColumnTypeDescriptionExample
run_id, pipeline_idstringThe build and its pipelinebuild_01M5T7Y99VNY…, compliance
datasetstringThe step's outputgold.ad_compliance
expectationstringThe check's nameOne record per AD and aircraft
kind, on_failstringrow or table, and warn, drop or failtable, fail
passed, failing_rowsboolean, int64Whether it passed, and how many rows failed ittrue, 0
detail, checked_atstring, timestampWhat was found, and whenpassed
On-request columns
build_idstringThe build, or scheduled for an evaluation between builds. Built as run_idbld_4502
ownerstringThe dataset checked and its owner group 
expectation_id, expectation_typestringStable id and type. Built as expectationshop-count-stable, row_count
severitystringinfo, warn or blockblock
outcomestringpassed, failed, error or skipped, for example outside a schedulefailed
evaluated_rows, quarantined_rowsbigintRow counts for row-level checks 
observedstringWhat the check measured, as JSON{"rows":9,"baseline":14,"drift":0.357}
publishedbooleanWhether the build's candidate version was publishedfalse
overridden_by, override_reasonstringAn Owner who overrode a block for this build, and whynull
issue_idstringThe open issue this result counted towarddqi_01JA2C9W7M
finished_attimestampWhen evaluation ended. Built as checked_at2026-10-19 13:02:17
event_datedateUTC date of finished_at2026-10-19
-- Expectations that failed in the last 30 days, worst first
SELECT dataset, expectation, on_fail, count(*) AS failed_builds,
       max(failing_rows) AS worst_rows, max(checked_at) AS last_failed
FROM ops.quality_results
WHERE NOT passed AND checked_at >= now() - INTERVAL 30 DAY
GROUP BY ALL
ORDER BY failed_builds DESC;

ops.dataset_health

A row for each dataset and slice at each health evaluation, with its freshness and volume state

ColumnTypeDescriptionExample
evaluation_id, evaluated_atstring, timestampThe evaluation and when it ran2026-10-24 09:40:00
dataset, slicestringThe dataset and the slice, or null for the whole datasetraw.ahm_messages, 407
state, freshness, volume, notestringOverall state, On time, Late, Low volume, High volume, Learning or Excluded, with each check's state and a noteLate
source, measurestringWhat the check measured from, such as column or commits, and how volume is countedcolumn, added
last_update, expected_bytimestampThe last update seen and when the next was due2026-10-24 06:12:00
interval_s, allowed_s, pointsdouble, double, int64The learned interval, the allowance and the history it was learned from900, 1800, 96
rows_now, rows_low, rows_highint64, double, doubleRows in the latest period and the expected band212
slices_total, slices_flaggedint64On the whole-dataset row, how many slices there are and how many are flagged8, 1
On-request columns
slice_column, slice_valuestringThe slicing column and the slice, or null for the whole dataset. Built as slicelocation_id, L03
health_checkstringarrival or volumearrival
last_arrivaltimestampWhen data was expected and when it last arrived. Built as last_update 
expected_rows_min, expected_rows_max, observed_rowsbigintLearned row range for the period and the rows seen. Built as rows_low, rows_high, rows_now40, 180, 0
exclusionstringThe calendar or rule that excluded the slice, when excludedcalendar:shop-trading-hours
window_daysintHistory the check was learned from28
issue_idstringThe open health issue, if anydhi_01JB3A…
event_datedateUTC date of evaluated_at2026-10-24

ops.lineage_edges

A row for each table-to-table edge a pipeline step creates, from input to output. The table is merged on each build, so it holds the current graph. Column-level lineage is delivered on request

ColumnTypeDescriptionExample
source, targetstringInput and output tablesraw.mis_ad_compliance, gold.ad_compliance
pipeline_id, pipeline_name, ownerstringThe pipeline that creates the edge and its ownercompliance, Quality and planning
updated_attimestampWhen the edge was last confirmed by a build2026-10-25 19:17:32
On-request columns
edge_idstringEdge idlde_01JA9…
edge_typestringcopies, computes, aggregates, filters, backs, derives, parameterizes or informscomputes
from_kind, from_nodestringThe upstream node and its kinddataset-column, creamery.raw.pos_stock_counts.cabinet_qty
to_kind, to_nodestringThe downstream node and its kinddataset-column, creamery.gold.shop_stock.tubs
from_version, to_versionstringDataset, object or function versions at each end1881, 1882
recorded_bystringThe build, sync step, action or run that wrote the edgebuild_01M5Y33F5VDT3XGSNP1KK89QVA
recorded_attimestampWhen it was written2026-10-29 19:09:57
retiredbooleanEither end has been retiredfalse
accessLabels, withheldarray<string>, booleanAccess labels on either end, and whether node names are redacted[], false
event_datedateUTC date of recorded_at2026-10-29
-- Everything downstream of one raw table, two hops deep
SELECT a.source, a.target, b.target AS then_feeds
FROM ops.lineage_edges a LEFT JOIN ops.lineage_edges b ON b.source = a.target
WHERE a.source = 'raw.mis_ad_compliance';

ops.access_requests

A row for each access request, written when someone asks from the screen that refused them and updated as it is decided. Grants made on approval are in ops.access_grants

ColumnTypeDescriptionExample
request_idstringRequest idacr_01M5…
requester, requester_namestringWho askedaudit.brunet, Hélène Brunet
kind, targetstringWhat was asked for: an accessLabel, a group, an objectType or a dataset, and whichaccessLabel, SAFETY
reason, daysstring, int64The requester's reason and how many days they asked for14
status, items, approvers, resolvedstring, string, string, booleanThe request's status, each item and its approvers as JSON, and whether it is closedpending
sourcestringWhere the request was madeapi
created_at, updated_at, decided_attimestampRequest lifecycle times2026-10-24 08:02:51
decided_by, notestringWho decided, and their noteqa.macneil
On-request columns
requested_by, requested_atstring, timestampWho asked, and when the request was submitted. Built as requester, created_atuser:milk.murphy
from_screenstringWhere the request startedoperations-view, simple-view, api or assistant
resource_kind, resourcestringThe resource or link that refused the requester, hashed for link requests. Built as kind, targetaction-type, msrn:ontology:creamery:action-type/place-hold
justificationstringThe requester's reason. Null for readers who could not see the request in the app. Built as reasonCovering night-shift QA on Line 1
duration_requestedintervalThe grant length asked for. Built as days14 days
statestringpending, info_requested, approved, denied, withdrawn or expired. Built as statusapproved
decision_notestringThe denial reason, or an approver's note. Built as noteApproved for the cover period
grant_id, grant_expires_atstring, timestampThe grant created on approval and when its memberships end, or nullagr_01JB4F0V3K9M, 2026-11-08 08:02:51
ended_at, end_reasontimestamp, stringWhen the grant actually ended, and whether by expired or revokedexpired
event_datedateUTC date of requested_at2026-10-24
-- Requests still waiting, oldest first
SELECT request_id, requester, kind, target, created_at,
       date_diff('hour', created_at, now()) AS hours_waiting
FROM ops.access_requests
WHERE NOT resolved
ORDER BY created_at;

Limitations

  • The tables are read-only to everyone, administrators included. Corrections happen to the underlying record, and the table follows
  • Access is by schema. A grant on ops shows every row of every operational table; per-table grants and access label filtering of rows are delivered on request
  • Row access and field access are not evaluated on ops rows
  • Each table is consistent at its own version. A query that joins two tables can see an action in ops.action_log a moment before its edits appear in ops.edits
  • The SQL workspace runs one statement per call, under a statement timeout and a row limit; truncated says when the limit cut the result. Large extracts belong in DuckDB or Apache Spark over the lake folder
  • ops.audit_events is the audit chain itself. Verify it with GET /api/v2/audit:verify before relying on it as evidence
  • Columns follow the code. Retention per table, partitioning by event date and the stable-interface promise are delivered on request
  • Each sync run lists its first 50 rejected source rows. A table of every rejected row is delivered on request

Related