Read signals out of every agent turn
Trace signals are typed fields that Runtype reads out of every completed turn of an Agent, such as “did the assistant promise a follow-up?” or “how frustrated is the user?”. This guide shows you how to create a signal set, preview it on recent traces, bind it to an Agent, and read the results on runs and traces.
You configure signals through the Runtype Model Context Protocol (MCP) server, the REST API, the SDK, or the CLI. The dashboard only displays them.
Before you begin
You need the following:
- A Runtype Agent, native or external, with completed executions in the last 30 days. An external Agent sends its traces to Runtype over OpenTelemetry. For details, see Reporting telemetry from an external agent.
- For the REST API, SDK, or CLI, an API key with the
SIGNALS:WRITEpermission. Reading results and stats needsSIGNALS:READ. For details, see Authentication.
How signals are evaluated
A signal set lists up to 40 signals. Each signal has a key, a type, and instructions. Runtype sends each turn’s signals to two kinds of model in one call per kind:
Each answer falls into a band. An answer at or above bands.act (default 0.9) is in the act band. An answer between bands.review (default 0.6) and bands.act is in the review band: count it, but don’t act on it without a person checking it.
A signal fires when a bool is true, or a choice value is listed in notable, in the act band. Extraction signals carry values and never fire on their own.
Create a signal set
Start from a preset or write your own definition. There are two presets:
conversation_healthcovers frustration, repeated asks, corrections, escalation requests, out-of-scope asks, promised follow-ups, and unanswered questions.failure_detectorcovers agent failures in each turn: unrecovered tool errors, the wrong tool, claimed success after a failed call, looping, and giving up. It also returns a failure category and a one-sentence failure summary. Itsclaimed_successsignal also fires when the reply admits a tool error and then still assures the user that the action is done, queued or certain to happen. It setsbands.actto 0.8, not the 0.9 default.
The following request creates a set from a definition:
Replace API_KEY with your API key. priorTurns (0 to 20) adds that many earlier turns of the same conversation as context. Version 1 of the set is current as soon as it’s created.
To start from a preset instead, send "preset": "conversation_health" or "preset": "failure_detector" in place of definition. To list presets, call GET /v1/signal-sets/presets.
Preview the set before binding it
A preview runs one version over the Agent’s most recent completed traces and writes nothing. The model calls are billed.
Replace SIGNAL_SET_ID with the set’s sigset_ ID and AGENT_ID with the Agent’s ID. limit defaults to 20 and accepts at most 50.
The report lists each signal’s fire rate, mean confidence, review-band count, and sample answers with source spans, plus a projected monthly cost. A signal that fires on most traces usually has instructions that are too broad. To change a signal, publish a new version with POST /v1/signal-sets/SIGNAL_SET_ID/versions and preview that version.
Write instructions the model can answer
The decision model reads each instruction literally, so wording changes answers. Follow these rules for bool and choice instructions:
- Describe one thing you can see in the turn. “The refund tool call failed in this turn” works. “The user was unhappy and the refund failed” asks two questions in one.
- State the condition positively. A negation such as “…and the assistant did NOT apologize” can flip every answer to
false. To catch the opposite case, write a second signal. - Name the evidence: a tool call, a phrase the assistant used, or a value the user gave.
Tune the act band from the preview
The default bands.act of 0.9 is strict. Correct answers often come back with a confidence between 0.6 and 0.9. Those answers land in the review band and never fire.
To check a signal before you bind it, preview the set and read its review-band count. If the sample answers in the review band are correct, lower bands.act to between 0.8 and 0.85. Publish the change as a new version with POST /v1/signal-sets/SIGNAL_SET_ID/versions, then preview that version:
If a signal fires on traces where it doesn’t apply, rewrite its instructions before you raise bands.act. bands applies to every signal in the set.
Bind the set to an Agent
A binding starts evaluation on every matching turn from then on. Its model calls are billed to your usage like other model calls; there is no separate signals budget. When your organization can’t be billed, Runtype skips evaluation and records the turn as skipped_billing.
The binding uses the set’s current version unless you pass versionNumber. It accepts the following optional fields:
Publishing a new version doesn’t move an existing binding. To run a newer version, unbind with DELETE /v1/signal-bindings/BINDING_ID and bind again.
To delete a set you no longer need, unbind each of its bindings, then send DELETE /v1/signal-sets/SIGNAL_SET_ID. The set disappears from lists and reads, and its name is free again. Results and stats already written still name the set. While any binding is enabled, the request returns SIGNAL_SET_BOUND with the binding IDs in details.bindingIds.
Refusals
Runtype refuses some bindings, and refuses a preview for the same reasons because a preview also sends turns to the model. The default models run on Cloudflare Workers AI, which retains no data and is covered by Runtype’s BAA, so organizations under zero data retention or handling protected health information bind them with no extra step. The last two refusals apply only to a set whose decisionModel is outside Workers AI. Relay these refusals to a person instead of working around them:
Read the results
Once a set is bound, every trace read carries a signals block: GET /v1/runs, GET /v1/runs/EXECUTION_ID, the trace execution and trace conversation reads, and the log list. A run’s block has a status, the keys that fired, and on detail reads the full results with each answer’s value, confidence, band, and source spans.
The status takes one of the following values:
complete: every turn of the run has results.pending: evaluation hasn’t finished. This usually takes a few seconds after the trace completes.partial: some turns of the run are still pending.unavailable: results couldn’t be read. The rest of the response is unaffected.none: no binding covered the run.
To list only the runs where a signal fired, pass signal. Use the key alone, or key:value for one choice value:
In the dashboard, the Activity panel shows the fired keys on each run and adds a signal filter. The run pane lists each answer and quotes its source text. An Agent with a binding shows a read-only Signals section with fire rates by set version.
Read rollup stats
GET /v1/signals/stats returns hourly counters summed over a window (default: the last 7 days). Each row counts evaluated, fired, review-band, skipped, and failed turns, and cost, by binding, set version, signal key, value, and sample.
Pass sample=uniform for rates on live traffic. filtered counts describe only the traffic the binding selects. Don’t add the two together.
Configure signals from other clients
Every operation is available outside the REST API:
- MCP server:
list_signal_sets,get_signal_set,create_signal_set,update_signal_set,delete_signal_set,publish_signal_set_version,preview_signal_set,list_signal_bindings,bind_signal_set,unbind_signal_set, andget_signal_stats.list_runsacceptssignal. An MCP client can also read thetrace-signalsdocumentation topic, so you can ask a coding agent to “tell me when support conversations go badly” and it configures the set. - SDK:
Runtype.signalswithlistSets,listPresets,getSet,createSet,updateSet,deleteSet,publishVersion,preview,listBindings,bind,unbind, andstats. - CLI:
runtype signals list,get,create,update,delete,publish,preview,bindings,bind,unbind, andstats, plusruntype runs list --signal KEY.
Error codes
Configuration requests return these codes in code:
Next steps
- Improving your agents from production traces: turn a run where a signal fired into an eval case.
- Runtype MCP server: connect a coding agent that can configure signals for you.
- Runtype CLI reference: the full
runtype signalscommand group.