Monitoring And Troubleshooting
Purpose
This page helps you find out what happened to a call or a hosted-agent run and fix what went wrong. It tours the Agent Triggers page, explains each execution status and failure kind in plain words, gives a symptom → cause → fix table covering every surface — MCP, the tools API, A2A, webhooks, schedules and on-demand runs — and lists the metrics and audit entries worth alerting on.
The Agent Triggers Page
Apps & Tools → Agent Triggers is where every hosted-agent execution is visible, whatever started it. Reading it needs the Apps & Tools read role; changing triggers and cancelling need the manage role — without it the actions are shown disabled, with the role they need. Each tab is a list: select a row to see its summary and its actions beside the list. A global session sees every tenant's triggers and executions, with a Tenant column; the Tenant and Agent filters narrow every tab, and neither is needed before anything shows. New trigger opens the editor, where you choose the tenant (global sessions), the agent and the kind. Open in Agent Triggers on an agent's Triggers tab, in the Agent Directory, opens the page already narrowed to that agent; that tab offers the same summary and actions, its own New trigger, set to the agent, and the agent's recent executions, with All executions to see the rest.
Triggers
Every schedule, webhook and manual preset of the tenant's hosted agents, filterable by kind and by enabled or paused. The When column shows a schedule's timetable and next run, or a webhook's authentication. A selected trigger's summary shows when it runs, what it runs as and its state, with its actions: Open trigger (its own page, read-only — double-clicking the row or clicking its name opens it too), Edit trigger, Fire now (schedule triggers only: run it once now, without moving its next slot), Pause trigger or Enable trigger, and Delete trigger, after a confirmation.
Executions
The history of runs across every channel — Schedule, Webhook, Manual (Run…, the executions API and Fire now) and A2A — newest first, filterable by channel, status and time range. Columns: accepted, agent, channel, status, duration, ran as, tokens. Queued and running executions refresh on their own. A selected execution's summary offers Open the run (its run page), Open the activity flow (its flow under Agents Monitoring, for a session with the Governance read role) and Cancel execution, after a confirmation, while it is pending, queued or running.
The summary shows:
- Status, with the reason and the failure kind when it did not complete;
- Channel, and started by — the operator who pressed Fire now, or the webhook sender's identity in bearer mode;
- Ran as — the caller, or Run identity;
- Accepted, the slot a schedule fired for, and the duration;
- Attempt — and the execution it retries, if any;
- Spent — tool calls, input and output tokens;
- the correlation id, and a link to the run's A2A task, which carries the status timeline and the call trace, for sessions that can open the A2A task pages.
The run page's Overview tab adds what the run was given and what it answered:
- the Input, part by part: instructions, caller text, parameters and the webhook payload, marked untrusted — unless the trigger does not keep input, or retention has purged it;
- the Result, for a completed run whose task is still retained.
Upcoming
The next fires of every enabled schedule over the next 24 hours, 3 days or 7 days, with each slot's local time. Paused triggers are not listed.
Execution Statuses
| Status | Meaning |
|---|---|
Pending |
Accepted, waiting for a retry's backoff to elapse |
Queued |
Waiting for a free slot and a Runtime replica |
Running |
The agent is working |
Completed |
The agent finished the work |
InputRequired |
The agent asked a question. For a run with a caller (A2A, Run…, the API) the task is paused and the caller can answer over A2A. For a schedule or webhook, nobody can answer, so the task is failed |
Failed |
The run was refused or went wrong — the failure kind says how |
TimedOut |
The time limit — the trigger's, or the platform's turn budget — ran out |
Cancelled |
Someone cancelled it |
Skipped |
It never ran: overlap, queue full, queue wait exceeded, or missed schedule slots |
Failure Kinds
The Portal shows, beside a failed or skipped run's failure kind, what it means, what to do about it and, where there is one, a link to the screen that fixes it — an execution's summary on Agent Triggers and the run's page both do.
| Failure kind | Meaning | Retried automatically? |
|---|---|---|
Interrupted |
The Runtime replica running it stopped — a crash or a deployment cut it off. It is not re-run, because the agent may already have called tools | No |
IdentityUnavailable |
The run identity's provider could not be reached | Yes, if attempts remain and no tool was called |
IdentityRefused |
The run identity is deleted, disabled, not allowed for the agent, revoked, or its credentials were rejected | No |
PolicyDenied |
The agent's access policy refused the identity | No |
ToolsRefused |
None of the tools the agent's skills use is available to the identity, so the run stopped before calling the model | No |
AgentUnavailable |
The agent is inactive, deleted or no longer a hosted agent | No |
QueueWaitExceeded |
It waited queued longer than the trigger allows | No |
Overlap |
The trigger's previous run was still active, and its policy is skip | No |
AgentCapacity |
The agent's queue was full, or no slot was free | Yes, if attempts remain and no tool was called |
Misfire |
Schedule slots were missed beyond what the missed-run policy runs late | No |
AgentDeclaredFailure |
The agent reported it could not do the work | No |
TokenCeiling |
The run reached the agent's token limit | No |
TurnTimeout |
The time limit ran out | No |
ModelProviderError |
The model provider failed | Yes, if attempts remain and no tool was called |
Fault |
An unexpected error | No |
A retry happens only when the trigger allows more than one attempt (Attempts) and the failed attempt called no tool, so a retry can never repeat a side effect. Each retry is a new execution linked to the one it retries.
Symptoms, Causes And Fixes
Any surface
| Symptom | Likely cause | Fix |
|---|---|---|
401 although the token looks valid |
The token's iss does not match a trusted identity provider exactly, its aud is not an allowed audience, or its client id is not allowed |
Decode the token and compare with Security → Trusted Identity Providers. See Common Authentication Failures |
401 with an API key |
The key is used on another tenant's or client application's path, revoked or expired | Use the key's own path; issue a new key |
429 |
A rate limit | Wait for Retry-After when present, otherwise back off for up to a minute. See Rate Limits |
A browser call gets 403 |
Its Origin is not allowed |
Ask the operator to add the origin |
MCP and the tools API
| Symptom | Likely cause | Fix |
|---|---|---|
tools/list is empty, or GET …/tools returns nothing |
No toolset is assigned to the client application, its tools are not published, or no access policy admits the caller | Check the client application's toolsets and the tools' policies. See If The Client Lists No Tools |
A tool call returns isError saying the caller is an application |
The tool uses a delegated downstream credential and the caller is an application | Call with a user token, or change the tool's authentication profile |
MCP 404 mid-session |
The session expired | Initialize again — the SDKs do it for you |
A2A
| Symptom | Likely cause | Fix |
|---|---|---|
The agent's address answers 404 |
The agent is not published, or the address labels changed | Publish it; use the current address |
A task ends TASK_STATE_FAILED at once |
The agent's access policy refused the caller, the agent is inactive, or its queue is full | Read status.message; check the agent's policies and limits |
Webhooks
| Symptom | Likely cause | Fix |
|---|---|---|
401 with the correct secret |
The bytes signed are not the bytes received — the sender re-serialized the body after signing, or a proxy reformatted or re-encoded it; the secret was copied without whsec_; the sender's clock is more than 300 s off; or the trigger expects the other signature profile or header |
Sign the exact bytes sent; compare with the editor's Try it sample; check the sender's clock; check Signature and Signature header |
401 from GitHub or Jira |
GitHub: secret mismatch. Jira: the webhook was created in Jira's administration screens, which send no signature | Re-enter the secret; register the Jira webhook through its REST API with a secret |
400 idempotency-key-missing |
The trigger expects a delivery id and the sender does not send it | Send the header, or point the trigger at the sender's own id |
415 from GitHub |
The webhook's content type is form-encoded | Set it to application/json |
404 |
The URL was regenerated, or the trigger deleted | Give the sender the current URL |
409 trigger-disabled |
The trigger is paused | Enable it |
409 execution-overlap |
The previous run is still going and the overlap policy is skip | Expected; choose queue behind if every event must be handled |
429 queue-full |
The agent has as many executions waiting as it allows | Raise Max queued executions or Max concurrent executions, or slow the sender |
202 but the agent did nothing useful |
The run failed later | Open the execution: status, reason, failure kind |
| A redelivery did not run | Its delivery id was already accepted, so it was acknowledged with 200 |
Expected. A deliberate re-run needs a new id |
Schedules
| Symptom | Likely cause | Fix |
|---|---|---|
| A schedule did not fire, and no execution exists | The trigger is paused; it was paused at the slot time (nothing is back-filled); the agent is inactive (the schedule moves on silently); Ends has passed; or triggers are switched off by configuration | Check the trigger, the agent and Upcoming. Ask the operator about HostedAgents:Triggers:Enabled and whether the Jobs worker is running |
A Skipped execution with Misfire |
The platform was down at the slot time and the slot was outside the grace window, or the policy is skip | Expected after an outage. Widen the grace window if a late run is better than none |
A Skipped execution with Overlap |
The previous run was still going (the schedule default is skip) | Shorten the work, space the slots, or choose queue behind |
| A run happened an hour later than expected, or once instead of twice | A daylight-saving change | See Time Zones And Daylight-Saving Time |
| An Every… schedule runs at odd minutes | Interval slots are counted from Starts, or from 1970-01-01 UTC | Set Starts |
Unattended runs (schedule, webhook)
| Symptom | Likely cause | Fix |
|---|---|---|
Failed / IdentityRefused |
The run identity is disabled, deleted, not allowed for this agent, its API key revoked or expired, or its provider rejected it | Test run identity in the identity's summary under Security → Agent Run Identities; read the reason |
Failed / IdentityUnavailable |
The identity provider was unreachable | Transient; allow more than one attempt on the trigger |
Failed / PolicyDenied |
The agent's access policy does not admit the run identity | Add a rule for the identity's client id, role or scope |
Failed / ToolsRefused |
No tool the agent's skills use admits the run identity, or the tools are no longer published | Add the identity to each tool's access policy, or republish the tool. The run lists each tool and why |
| A run lists tools it went without | The identity may use some of the agent's tools but not all | The same fix, for the tools listed. The run went ahead with the rest |
| A tool call refused as needing a user | The tool uses OBO or token exchange, which an application identity cannot use | Give the tool a shared credential, or run it attached. See What An Application Identity Cannot Do |
InputRequired |
The agent asked a question nobody can answer | Make the instructions complete: say what to do when information is missing, and to finish or report rather than ask |
Failed / Interrupted |
The Runtime replica stopped mid-run | Check what the agent's tools did before re-running — it is not re-run automatically |
TimedOut |
The run took longer than its time limit | Raise the trigger's time limit (up to the platform's turn budget) or reduce the work per run |
Stuck in Queued |
No Runtime replica is claiming detached work, the agent is at its concurrency limit, or the trigger queues behind a long run | Check the running executions; ask the operator whether the Runtime's execution dispatcher is enabled |
Skipped / QueueWaitExceeded |
It waited longer than Longest wait in queue | Raise the limit or the agent's concurrency |
On-demand runs
| Symptom | Likely cause | Fix |
|---|---|---|
Run… in the Portal is refused with 403 |
The agent's access policy does not admit you. Your Portal session is issued by the platform itself, so a policy that matches only your corporate provider's issuer does not match it | Add a rule that admits you as a Portal user, or call through the API with a token from your provider |
404 reading an execution that exists |
You did not start it and the agent's policy does not authorize you | Use a caller the policy admits |
429 starting a run |
The agent is at its concurrency limit; on-demand runs are refused, not queued | Retry after Retry-After, or raise the agent's limit |
Metrics
The Runtime and the Jobs worker export these on the platform's meter, over OTLP to your collector and on each
service's /metrics endpoint. See Observability.
| Metric | Type | Labels | Meaning |
|---|---|---|---|
hosted_agent_executions_total |
Counter | tenant.id, channel, status, failure_kind |
Executions that ended |
hosted_agent_execution_duration_seconds |
Histogram | channel, status |
How long a run took, start to end |
hosted_agent_executions_queued |
Gauge | — | Detached executions waiting, as last sampled by the Jobs worker |
hosted_agent_schedule_lag_seconds |
Histogram | — | How late after its slot a schedule fired |
hosted_agent_webhook_requests_total |
Counter | http.response.status_code |
Webhook deliveries, by the answer the webhook endpoint gave |
In the Prometheus format, dots in label names become underscores — tenant_id, http_response_status_code.
hosted_agent_webhook_requests_total counts answers from the webhook endpoint only: a 429 from the Gateway's or the
Runtime's rate limiter is not counted there.
What To Alert On
| Condition | Example query | Why |
|---|---|---|
| Unattended runs failing | sum by (failure_kind) (rate(hosted_agent_executions_total{status=~"Failed|TimedOut",channel=~"Schedule|Webhook"}[15m])) > 0 |
Nobody is waiting on these runs to notice |
| Identity failures | failure_kind=~"IdentityRefused|PolicyDenied" on the same counter |
A revoked key, an expired secret or a changed policy stops every unattended run that uses it |
| Interrupted runs | failure_kind="Interrupted" |
A replica died mid-run; the agent's tools may have half-finished work |
| Skips | status="Skipped" by failure_kind |
Overlap or capacity is dropping work |
| Backlog | max(hosted_agent_executions_queued) above your normal level for 10 minutes |
Runtime replicas are not keeping up, or not claiming |
| Schedule lag | histogram_quantile(0.95, sum by (le) (rate(hosted_agent_schedule_lag_seconds_bucket[15m]))) > 60 |
The scheduler is late — the Jobs worker is overloaded or down |
| Webhook authentication failures | rate(hosted_agent_webhook_requests_total{http_response_status_code="401"}[15m]) |
A sender with a wrong secret — or someone probing the URL |
| Webhook refusals | http_response_status_code=~"429|503" |
Senders are being turned away |
Audit entries
The governance audit log, under Governance in the Portal, records each execution's lifecycle in the
agent-execution category, whatever started it:
| Action | When |
|---|---|
agent.trigger.fired |
A schedule slot fired or a webhook delivery was accepted. Dimensions: trigger, trigger kind, agent, channel, execution |
agent.trigger.refused |
A fire was refused. Before an execution exists — a webhook delivery that failed a check — the reason is a code such as unauthenticated, source-not-allowed or invalid-json. After one is recorded as skipped, it is the failure kind: Overlap, AgentCapacity or Misfire. Never the payload |
agent.execution.started |
An execution started running, with how long it waited in the queue (queuedMs) |
agent.execution.ended |
An execution ended — completed, failed, timed out, cancelled or skipped — with its status, failure kind, duration, tool calls and token totals. Never its input, its answer or its reason, which can carry the model's own words |
Each lifecycle record carries the execution id and the execution's correlation id. An end is denied when the
platform would not run it (skipped, IdentityRefused, PolicyDenied) and an error when something broke.
The work itself is in the runtime category: a2a.hostedagent.invoke for every agent turn, with the
execution id, channel and trigger, and the tool calls the turn made, each as the identity the run acted as and under
the run's correlation id. Every record of a run — its lifecycle, its turns, its model calls, each tool call and every
stage inside one, retrieval stages included — carries the run's executionId, so an audit target can group a run by
that one value; a tool call also carries llm.toolCallId, which matches the llm.requestedToolCallIds of the model
call that asked for it. Each turn first records the system prompt it started with as an
a2a.hostedagent.instructions record, timed at the turn's start: the full instructions as an agentInstructions
payload, recorded on every turn whatever the transcript setting, and agent.instructionsSha256, which the turn record
also carries, so a prompt change between runs can be found by comparing one dimension. Each model call inside a turn is an a2a.hostedagent.model-call record, timed at the call's
start, with its duration, tokens, finish reason, model and the names of the tools it asked for; with Record
transcript on for the agent, it also carries an agentTranscript payload holding what the model wrote, the reasoning
its provider returned and each tool call's arguments. Like other captured payloads it is redacted, truncated and aged
out by payload retention, and reading it is itself audited. Changes to triggers and run identities are audited like every other Portal change. See
Errors, Limits & Correlation.
Agent Activity
Governance → Agents Monitoring → Executions lists every hosted-agent execution — scheduled, webhook, manual and A2A — filtered by tenant, agent, channel, execution status and time. Select one and choose View activity to open the run's page — tabs Overview, Conversation, Flow and Raw audit — whose flow draws one execution end to end from these records: what started it, how long it waited, the identity it ran as, each model call, tool call and agent turn with its timing, the system prompt each turn started with, and how it ended — the way Call Flow draws one runtime call. With Record transcript on for the agent, each model call also shows what the model wrote, the reasoning its provider returned and the arguments of each tool call it asked for, redacted and truncated like other captured payloads. Every audit record the execution left is listed on the Raw audit tab in time order, and opens onto its details. Agents Monitoring, in the page's breadcrumb, returns to the search you came from. The Tasks view names the channel that started each task and links to its flow, and an execution on Agent Triggers links to it too. It needs only the Governance read role, so an auditor can follow what an agent did without a role that administers agents. An execution's input and answer are shown only to the Apps & Tools area, on the run's overview.
In Call Flow, a hosted-agent run and each tool call it makes are separate rows: the agent's row holds its system prompts, model calls and turns, and each tool call — a retrieval, say — has a row and a diagram of its own, drawn exactly as when an MCP client makes the call. Opening either shows Agent Run, a link to the whole run.
Retention
Finished executions — with their input, including webhook payloads — are purged after
DataLifecycle:AgentExecutionRetentionDays, 30 days by default, a setting your operator controls. Executions are
never purged while they are still pending, queued or running. A webhook delivery id is remembered only as long as its
execution. A run's result lives on its A2A task, which has its own retention; when the task is gone first, the
execution says the result is no longer retained.