Troubleshooting

The failures people report most often, each with what you see, why it happens, how to fix it and the one command, API call or query that proves which cause you are looking at. Every example uses the illustrative ice cream maker: the creamery, its raw milk silos, Line 1 and Line 2, the reefer runs over the causeway or the ferry, and the 14 scoop shops. Confirm the cause before you fix anything; most of these symptoms have two or three causes that look the same from a screen

In the platform today

Built
  • The symptoms on this page are written for a full implementation, for the illustrative ice cream maker
  • The ops tables through POST /api/v2/ops/query or the SQL workspace, with the columns on operational tables, and the metrics at GET /metrics
  • POST /api/v2/actions/{id}:check, and GET /api/v2/types/{type}/objects/{key}/history for every change to one object
  • The trace at GET /api/v2/agents/{id}/runs/{run}/trace
  • GET /api/v2/webhooks/deliveries, GET /api/v2/webhooks/dead-letters and POST /api/v2/webhooks/dead-letters:replay, and GET /api/v2/writeback/calls for calls to real systems
  • ms-edge status on an edge host, and GET /api/v2/monitors/alerts for open monitor alerts
  • GET /api/v2/quarantine, GET /api/v2/schema-changes, GET /api/v2/datasets/staleness and POST /api/v2/datasets/{name}:rollback for pipelines
  • The error codes and reasons the page says are built
On request
  • Calls, columns, screens and codes labelled On request below

Before you start

Three things answer most questions faster than guessing

  • The error code and reason on the failure, which are stable and say which part of the platform refused
  • The operational tables in the ops schema, which hold the platform's own records and can be queried with SQL through the SQL workspace or any Delta Lake reader
  • The request id, returned in X-Request-Id and in every problem body, which finds the request in the logs
QuestionWhere to look
Is data reaching objectsops.sync_runs, ms_sync_runs_total{object_type,status}, ms_sync_last_success_timestamp_seconds; on request: the object type's Sync tab, ontology_sync_lag_seconds
Did a build publishops.pipeline_runs, ops.quality_results, pipeline.build.failed; on request: the build graph
Why did an action failops.action_log, ops.edits, ops.audit_events for refused applies
What did an agent doops.agent_runs, ops.agent_steps, the reasoning trace
Where did a number come fromops.lineage_edges, the lineage graph
Can this person see this objectOn request: "View as" in the console, POST /api/v2/access/explain

A sync is stalled and its cursor is not advancing

Symptom

The Production batch list says "Batches as of 06:12" at 09:40. The object type's Sync tab shows lag climbing and ontology_sync_versions_behind rising by one every few minutes, and the sync.lag.exceeded webhook has fired. New lab holds on Line 2 are not showing

Cause

A cursor has stopped in one of two places. At the connector, the source position stops moving: the edge agent cannot reach the LIMS database, the change data capture position fell out of the source's log during a long outage (SYNC_STALLED.SOURCE_LOG_TRUNCATED), or a column changed type and the connector paused the table. At the sync service, the dataset version is not checkpointed: most often one dataset version holds two rows for one batch key (DUPLICATE_PRIMARY_KEY), so the job stops rather than pick one, or more than 1% of a version's rows were rejected

Fix

For a duplicate key, fix the step so one row per batch survives, typically by keeping the latest corrected LIMS record, and the job resumes on the next commit. For rejects, read rejections on the run in ops.sync_runs, or every rejected row in ops.rejected_rows on request. For a truncated log, take a new snapshot of the table from the connector page. For a paused table, review the column change, update the step and resume. Objects keep serving their last good state throughout, so nothing has to be rolled back

In the platform service, ms_sync_last_success_timestamp_seconds for the type stops moving and a sync.failed webhook event is emitted. The last runs for the type show which side stopped

SELECT started_at, dataset, from_version, to_version, rows_upserted, rows_rejected, status, error
FROM ops.sync_runs
WHERE object_type = 'batch'
ORDER BY started_at DESC
LIMIT 10;
-- 09:38 | gold.batches | 4420 | 4421 |   0 | 0 | failed    | column fill_qty: type mismatch
-- 09:31 | gold.batches | 4419 | 4420 | 212 | 3 | succeeded |

Here every sync since 09:38 fails on dataset version 4421, so the cause is in that version of the backing dataset, and the last version applied is still 4420

A run that succeeds with rows_rejected above zero means some source rows could not become objects, and their objects were kept as they were: its rejections column lists the first 50 with key and reason, KEY_MISSING, DUPLICATE_KEY (one key twice in a full read), REQUIRED_PROPERTY or UNREADABLE

A monitor with scope: sync and consecutiveFailures opens an alert when syncs keep failing. When the sync is healthy but to_version has not moved for an hour, look at the source side in ops.connector_runs or the edge agent

An edge agent is offline or buffering

Symptom

Silo levels for SIL-2 and Line 1 temperatures stop updating. The Ingestion screen shows the plant agent as disconnected, or as draining once it is back. Point-of-sale data from the shops, which comes through cloud connectors, is still current

Cause

The agent's outbound requests are not getting through. Usually the network path changed: a firewall rule, a proxy or a new DNS server at the plant. Less often the host is down or out of disk, or the service refuses the agent because its clock is too far off (EDGE_CLOCK_SKEW), its secret was rotated (EDGE_SIGNATURE_INVALID) or it was disabled (EDGE_AGENT_DISABLED). Meanwhile its sources keep writing to the outbox on local disk, for up to maxAge, 72 hours by default

Fix

Restore outbound HTTPS from the host to the platform service; no inbound rule is ever needed. Check NTP on the host. If the secret was rotated, put the new one in the agent's environment variable and restart it. When the link returns the agent sends the backlog oldest first, one batch at a time, and the service skips anything it already stored. If the outbox reached maxRecords, maxSize or maxAge, the oldest records were dropped and counted, so check dropped before relying on the series

On the plant host, the agent reports its own view of the uplink, the outbox and each source

$ ms-edge status --config /etc/ms-edge/edge.yaml
agent    creamery-plant-01  <version>  buffering  (written 2026-10-24T21:41:02Z)
uplink   buffering  last send 2026-10-24T21:00:11Z  acked 418220  error: read timed out
buffer   148210 records, 61204480 bytes, oldest 2026-10-24T21:00:12Z, dropped 0
source   line1-opcua          opcua   subscribed     148004 records, last 2026-10-24T21:41:01Z
source   silo-plc             modbus  polling        206 records, last 2026-10-24T21:40:58Z

Sources reading normally with an uplink error means the network path, or the clock or secret when the error is a refusal from the service. A source that is not reading while the uplink is connected is a source problem, shown as degraded rather than buffering

A pipeline build is blocked by a failed check

Symptom

Scoop shop stock has not changed since the 06:00 build. Shop objects carry a stale badge with the time of the last good build, the build graph shows gold.shops in red and every pipeline that reads it as held, and the dataset's owner was paged

Cause

A blocking check failed on the candidate version, so the build was not published (BUILD_BLOCKED.EXPECTATION_FAILED). In this case the row-count check shop-count-stable saw 6 shops against a learned baseline of 14: the point-of-sale export left out the eight shops off the island. Blocking is working as designed. The alternative was publishing a version in which eight shops had no stock at all

Fix

Fix the input, here by re-running the point-of-sale export, and the next build passes and releases the held pipelines in dependency order. If the data is right and the check is wrong, change the check on a branch and merge it. If the business cannot wait, a person with the Owner role on the pipeline can override the block for one build, with a written reason that lands in the audit log. Never turn a key check into a quarantine to get a build through

SELECT checked_at, run_id, expectation, kind, on_fail, passed, failing_rows, detail
FROM ops.quality_results
WHERE dataset = 'gold.shops'
  AND checked_at > now() - INTERVAL 1 DAY
  AND NOT passed
ORDER BY checked_at DESC;
-- 06:02 | build_01M5… | shop-count-stable | table | fail | false | 0 | 6 rows

A build is all or nothing: each step's result is held until every step has passed, so a failed check with onFail: fail changes no output, and sync after it has nothing to do. The run's own row in ops.pipeline_runs carries the error and failed_step, the output of the step that failed, and a scheduled pipeline that reads from it in the same pass is skipped, with the reason in its schedule state

Rows a drop check removed are in ops.quarantine, where an editor can replay a fixed row or discard it. If a bad version was published before the check existed, POST /api/v2/datasets/gold.shops:rollback with {"runId": "…", "before": true} restores the table and the outputs built with it, then re-syncs the object types they back

Delivered on request: keeping the blocked candidate on a data branch to inspect it

An action fails with CONCURRENCY_CONFLICT

Symptom

A planner presses Apply on send-silo-to-cheese for SIL-2 and gets "This silo changed while you were looking at it". An integration that adds reefer runs to the 09:30 ferry sailing logs 409 CONCURRENCY_CONFLICT a few times each morning

Cause

The reason tells the two cases apart. STALE_OBJECT means the form sent the version it displayed and someone else has since changed the silo, here a cheese make booked from the same silo; the platform does not rerun, because the planner decided on numbers that are no longer true. OBJECT_CHANGED means the action service retried the apply automatically and lost each race, which happens on hot objects such as a sailing that several dispatchers and an automation all add runs to at 06:00

Fix

For STALE_OBJECT, reload and show the person what changed; the SDK's typed error carries the key and both versions. For OBJECT_CHANGED, retry once after 1 to 2 seconds with jitter and the same idempotency key. If it keeps happening, serialize the writers, for example by giving the automation a debounce or moving the bulk additions into one :runBatch request

In the platform service

  • A form or integration that sends options.expectedVersions, such as {"silo:SIL-2": 9183}, on POST /api/v2/actions/{id}:run gets 409 STALE_OBJECT when one of those objects has changed since, with each object's expectedVersion and current version in errors
  • A run checks its parameters and conditions again just before the commit, so of two runs that both pass a condition the first one's edits make false, the second gets CONDITION_FAILED
  • A run whose objects changed in the meantime is checked again, and after automatic retries fails with 409 OBJECT_CHANGED
  • Two people approving one proposal at once run it once; the second gets PROPOSAL_DECIDED
  • An action that creates an object whose key exists fails with CONCURRENCY_CONFLICT.ALREADY_EXISTS

Delivered on request: the version before and after on each edit

-- Who else changed SIL-2 in the ten minutes around the failed apply
SELECT e.occurred_at, l.action, e.actor_id, l.automation,
       e.property, e.value_before, e.value_after
FROM ops.edits e JOIN ops.action_log l USING (log_id)
WHERE e.object_type = 'silo' AND e.object_key = 'SIL-2'
  AND e.occurred_at BETWEEN TIMESTAMP '2026-10-24 10:40:00' AND TIMESTAMP '2026-10-24 10:50:00'
ORDER BY e.occurred_at;
-- 10:44:12 | send-silo-to-cheese | milk.murphy | | status | "Holding" | "Drawing"

A cheese make booked by milk receiving at 10:44 changed the silo while the planner's form still showed it holding. That is a STALE_OBJECT working as intended. Many rows from different people within seconds on the same object is the OBJECT_CHANGED pattern

An action is greyed out because a condition fails

Symptom

On batch B-0841, Release batch is greyed out for a QA lead who expects to release it, with a short reason under the button. Through the API, the same action returns ACTION_VALIDATION_FAILED.CONDITION_FAILED

Cause

Conditions that depend only on the person and the object are checked before the form opens, and one evaluated to false. Usually the condition is right and the data is not what the person thinks: here the net quantity check QA-7710 failed and its re-check QA-7716 is still pending, because the result went into the lab system but has not synced. Sometimes the condition itself is wrong, for example a group check against "QA leads" after the group was renamed "Quality leads"

Fix

Read the condition's message and check the data it names. If the data is stale, follow the sync problem above. If the condition is wrong, change it on a branch and test it with the action's test cases before merging. Never work around a condition by giving people a second action without it; the condition is the control the auditors rely on

POST /api/v2/actions/release-batch:check
Authorization: Bearer <access token>
{ "parameters": { "batch": "B-0841", "note": "Re-weigh passed" } }

{
  "result": "INVALID",
  "parameters": {
    "batch": { "result": "VALID", "required": true },
    "note": { "result": "VALID", "required": true }
  },
  "conditions": [
    { "name": "heldOrUngraded", "result": "VALID" },
    { "name": "releaseRule", "result": "INVALID",
      "message": "B-0841 cannot be released yet: it needs a passing net quantity check at its filler after the failing one, no open re-weigh and, for cheese, a passing grade (see release_check)" }
  ]
}

The check returns each condition's name, result and filled-in message, and commits nothing. Delivered on request: the evaluated detail with the values each comparison saw, for people with edit rights on the action type

An object set comes back empty

Symptom

A shops manager opens Issues and sees 8, while the operations lead sees 12 for the same filter. Or an agent acting for the shops manager answers "no issues found" for the quality issue, and GET /types/issue/objects/ISS-301 returns OBJECT_NOT_FOUND for them

Cause

Row access or an access label is hiding the objects, and the platform deliberately reports invisible as missing. The common causes are a row policy bound to a user attribute the person does not have yet, such as accessGroup checked against user.issueAccess with no value set, which matches nothing; a missing group membership, so no policy applies to them at all; or an access label on the type, such as SUPPLIER-CONF on farms, that the person does not hold. An agent run inherits all of this from the person it acts for

Fix

Set the missing attribute or group in the platform's user settings; changes reach running sessions in about 5 seconds. For an access label, the person raises an access request from the empty screen and it is routed to the access label's stewards. Do not widen the policy to make one person's screen work

The person's own call answers as if the object did not exist

GET /api/v2/types/issue/objects/ISS-301
Authorization: Bearer <access token>

404
{
  "code": "NOT_FOUND",
  "reason": "NOT_FOUND.OBJECT_NOT_FOUND",
  "detail": "issue ISS-301 not found",
  "requestId": "req_01M5…"
}

Compare the person's groups and accessLabels in GET /api/v2/users, and their attributes in ontology.yaml, with the type's accessLabel and rowPolicy. Delivered on request: POST /api/v2/access/explain, which names the policy and bindings that hid the object, and "View as" in the app

An agent hit its step limit

Symptom

The weekend readiness planner, agt-weekend, returns a partial answer covering 9 of the 14 shops, the run's status is LIMIT_REACHED with AGENT_LIMIT_REACHED.STEP_LIMIT, and AgentStepLimitReached fired because more than 10% of its runs in an hour ended this way

Cause

The task did not fit in 16 steps. Almost always a tool is shaped wrongly for the job: the agent loads one shop per step because its only tool takes a single key, or a tool returns so much that the model pages through it, or a guardrail keeps blocking a request and the model keeps rephrasing it. A bigger limit hides all three and costs more tokens

Fix

Read two or three traces before changing anything. Give the agent a tool that answers for a set, such as weekend_cover over all open shops in one call, allow parallel read calls (up to four per step), or cap the tool's output so the model does not page. Raise the step limit, at most to 64, only when the traces show every step is necessary. Proposals the run already staged stay in the inbox and are still valid

In the platform service the run's status in ops.agent_runs is limit_reached; the alert rule and the error code above are delivered on request

-- Which tools used the steps in runs that hit the step limit this week
SELECT s.tool, COUNT(*) AS calls, ROUND(AVG(s.ms)) AS avg_ms,
       COUNT(*) FILTER (WHERE s.status = 'error') AS errors
FROM ops.agent_runs r JOIN ops.agent_steps s ON s.run_id = r.run_id
WHERE r.agent = 'agt-weekend' AND r.status = 'limit_reached'
  AND s.kind = 'tool' AND r.started_at > now() - INTERVAL 7 DAY
GROUP BY s.tool ORDER BY calls DESC;
-- get_object      | 131 | 38 | 0
-- search_objects  |  18 | 52 | 0

131 single-object loads across 9 runs is the one-shop-per-step pattern. The trace of any one run shows it as a long column of identical tool calls

A writeback is in the dead-letter queue

In the platform service

  • A writeback row moves to dead_letter in ops.writeback_outbox after 5 failed attempts, with the error in last_error, and a writeback.failed webhook event is sent
  • A call to a real system that the system refuses for good, any answer outside retryOn and unchangedOn, is a dead letter at once, and every attempt is a row in ops.call_runs with the status code and the system's answer (GET /api/v2/writeback/calls?outcome=failed)
  • A writeback with when: before that fails refuses the action instead, with WRITEBACK_FAILED and the system's message, and nothing is edited
  • A monitor with scope: writeback and check: { failures: 1, window: 24h } raises an alert on any dead letter

Delivered on request: the reasons below, the marker on the object and the resolutions

Symptom

A hold on B-0841 shows in the Ontology, but the lot field carries a "Not written to ERP" marker, WritebackDeadLetter fired, and the ERP still lists the lot as available to ship

Cause

The ERP did not accept the edit, and the reason says how. TARGET_REJECTED: the ERP refused it with a business rule, such as a lot already allocated to a wholesale order; these dead-letter at once because retrying cannot help. TARGET_CONFLICT: someone changed the lot in the ERP by hand since the Ontology last read it. RETRIES_EXHAUSTED: the ERP was unreachable for 72 hours from the first attempt. A 401 or 403 from the ERP pauses the whole connector instead and does not dead-letter row by row

Fix

Fix the cause in the ERP, then choose a resolution: retry with the same payload and key, retry after a source refresh to re-run the conflict check, resolve manually if someone already made the change by hand, or revert the action, which queues the inverse writeback. Payloads cannot be edited in place, because the action log entry has to keep explaining what was sent

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 DESC;
-- 07:12 | place-hold | B-0841 | order-desk | block-stock | 5 | WRITEBACK_FAILED: order-desk unreachable

Delivered on request: an API to list writeback dead letters and retry them

A webhook keeps retrying

Symptom

The dispatch board's receiver gets the same object.changed events several times, the delivery log shows attempts 3, 4 and 5 for events the receiver did process, and later events for DLV-5521 arrive up to an hour late

Cause

The platform counts any response that is not a 2xx within 10 seconds as a failure. The usual causes are a handler that does its work before responding and takes 11 seconds on a busy morning; a signature check that fails because the receiver's clock is more than 5 minutes off or it was not given the new secret during a rotation; or a redirect, which is never followed. Because events for one subject are delivered in order, one failing event holds the later ones for that delivery for up to an hour

Fix

Acknowledge first: put the event on a queue and return 204, then do the work. Accept both the old and new secret during the 24 hour rotation overlap. Make the handler idempotent by event id and by object version, so the duplicates you already received are harmless. After 72 hours of failures an event is marked failed and can be redelivered from the log with its original id; after 72 hours of every delivery failing, the subscription is disabled

GET /api/v2/webhooks/deliveries?destination=wh_01M5T8Q2D9&status=retrying&type=action.applied
Authorization: Bearer <access token>

GET /api/v2/webhooks/deliveries/{id}
GET /api/v2/webhooks/dead-letters?destination=wh_01M5T8Q2D9
POST /api/v2/webhooks/dead-letters:replay
{ "destination": "wh_01M5T8Q2D9", "since": "2026-10-24T09:00:00Z" }

One delivery's record holds its envelope and every attempt, with the status code or error and the latency

A timeout points at the handler's speed, a 401 with "invalid signature" points at the clock or the secret, and a 3xx points at the URL. See the signature check for the exact rules

The Assistant cannot answer, or uses the wrong filter

Symptom

Asked "how much strawberry did the island shops sell last weekend", the Assistant answers about the wholesale customer CUS-IFG, or gives the closest-match reply "I don't have a checked answer for that". The "How I answered" panel under the reply shows what it matched

Cause

Answers are built in code from matched words, a verified template and a query run with the asker's access; no model guesses at the meaning. So a wrong or missing answer is almost always one of three things. A word matched the wrong thing: "island" matched the name of customer CUS-IFG before it matched a value of province. A word matched nothing, such as "sell" when sales are counted in a property called tubs. Or no verified template covers sales by flavour for a group of shops over a period, so no template matched. When one person gets nothing while a colleague gets an answer, it is access: the Assistant reads as the person asking

Fix

Add "the island" and "island shops" as value synonyms of province = PE with a preferred-match instruction, add "sell" and "sold" as synonyms of tubs, and write a verified answer for sales by flavour with parameters for the shops and the period. Add the question to the benchmark set so a later change cannot quietly break it. A person who marks an answer wrong with "Is this right?" sends it to the answer authors, which is how most of these are found. See how the Assistant answers

The "How I answered" panel under the reply shows what each word matched and which template answered. Ask again after publishing the synonyms: "island" should now match province = PE, and the template should be your new verified answer

A card and a report show different numbers

Symptom

The Operations view card says yield on Line 2 last week was 96.1%. The Monday plant report says 94.8% for the same line and week. Both are labelled "Yield"

Cause

There are two definitions. The card reads the KPI definition batch-yield: units made against what the mix and overrun allow, averaged over completed tub and pint batches, by week starting Monday in Atlantic time. The report was built before the KPI existed, from a dataset that also counts units scrapped after packing and divides by units planned rather than what the mix allows. Neither is wrong; they answer different questions under one name

Fix

Decide which definition the business means by "yield" and keep it as the one KPI definition. Give the other its own name if it is still useful, such as "Yield after packing losses", as a second metric. Point the report at the definition, certify it, and deprecate the old dataset so new reports cannot be built on it. After that every card, briefing, report and Assistant answer reads the same number

The card's "How is this calculated" link opens the definition and lists everywhere it is used. A report missing from that list is the suspect, and lineage shows what it reads instead

SELECT source, target, pipeline_id, owner
FROM ops.lineage_edges
WHERE target IN ('gold.batches', 'gold.yield_wkly_report')
ORDER BY target;
-- raw.plant_runs     | gold.batches           | plant     | Plant engineering
-- raw.plant_scrap    | gold.yield_wkly_report | reporting | Plant reporting

Built lineage is table to table, from pipeline inputs to outputs. Delivered on request: edges from metrics to cards and reports

Related