View as Markdown

Trace · Guide

Pause Trace

Two switches sit outside your Trace rules, where no rule can reach them. Use them during an incident, when you'd rather stop first and look second.

Before you begin: export the sandbox account key, which has Trace.

export PROVENANCE_API=https://sandbox-api.provenanceauth.com
export PROVENANCE_KEY=prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5
SwitchWhat it stopsWhat keeps running
Pause TraceTraced model calls, Trace checks, Trace assessments, signed readings, new trace jobs and eval runsAgent payments, Mandate assessments and the other products
Pause allEvery agent: intents, Mandate assessments, merchant and call checks, and Trace tooReads, lists and exports

The two are separate: lifting one never lifts the other. While both hold, responses name agents_paused, the wider one.

Who can pause

An owner or admin, in a signed-in console session, confirming with a passkey or a code. No API key can pause or resume either switch, whatever its scopes (403 trace_pause_needs_session), and no rule can override them. The SDKs never cache a pause: the server decides on every call.

In the console, open Trace › Pause: Pause Trace and Pause all sit side by side, each with one line on what it stops. Pause Trace is also on the Agents page. While Trace is paused, a banner runs across the console with Resume Trace.

What a paused account answers

RequestUnder the Trace pause
POST /v1/trace/assessmentsoutcome: "deny", reason trace_paused, recorded, not evaluated, not billed
POST /v1/trace/checkdecision: "block", reason trace_paused
POST /v1/trace/chat/completionsNo generation: content: null, finish_reason: "trace_paused"
Signed readings, re-runs, new trace jobs and eval runs403 trace_paused; jobs already running finish
Intents and Mandate assessmentsKeep running. An agent rule that names a Trace fact sees it unavailable (trace_paused), and its fail setting decides

Read the state any time:

curl -s $PROVENANCE_API/v1/trace/settings/pause -H "Authorization: Bearer $PROVENANCE_KEY"
{ "object": "trace_pause", "paused": false, "paused_at": null, "paused_by": null, "reason": null }

Resuming Trace while Pause all holds succeeds with still_paused_by: "pause_all", so the person knows Trace is still stopped. trace.pause.started and trace.pause.ended tell your webhook, and each change is a security event (trace_paused, trace_resumed).

Session locks

A Trace rule with lock locks the agent session (or the registered agent) until a person releases it; Mandate assessments for that session answer session_canary_locked meanwhile. The locks are listed on Trace › Pause, and through the API:

curl -s "$PROVENANCE_API/v1/trace/session_locks?status=active" -H "Authorization: Bearer $PROVENANCE_KEY"

Each lock names where it came from:

sourcestring
rule (an action assessment), or inference, preflight or check on model output.
rule_idstring
The Trace rule whose lock wrote it.
assessment_idstring
The assessment it belongs to.
actionsobject
Whether the rule also suspended the agent or revoked the session's tokens.

Release one with POST /v1/trace/session_locks/{id}/clear (an owner or admin session, or an admin-scope key); releasing it lifts a suspension the lock applied, and only that one.

The kill switch

The kill switch and its settings were removed: each account's setting became a Trace policy, and what a trip does is now a rule on model output. See Trace rules on model output. Requests that still send provenance.on_trip get 400 parameter_removed.

Errors you might see

SymptomCauseFix
403 trace_pause_needs_sessionAn API key tried to pause or resumePause or resume from a signed-in console session.
403 trace_paused on a reading or jobTrace is pausedResume Trace once the incident is over.
Mandate assessments answer session_canary_lockedA Trace rule locked the sessionReview the trace, then release the lock.
400 parameter_removedA request still sends a kill-switch fieldRemove it and write the behavior as Trace rules.

See also