Agents

Evidence report

What one agent did over a period, who it did it for, where people stepped in, and whether the decision log is intact.

The evidence report covers one agent over a period: its tasks, its decisions, the verifications and approvals people completed, what the safety rails caught and how that was reviewed, and a check of the decision log's hash chain. Export the decisions as CSV for an auditor.

Get the report#

GET/v1/apps/:app_id/authz/agents/:slug/reportApp key
QueryMeaning
fromStart time. Default 30 days before to.
toEnd time. Default now.
formatcsv for the decisions as CSV instead of the JSON report

A period covers at most 400 days. from must be before to. A bad time or range is a 422 with invalid.

curl "https://api.scute.io/v1/apps/$SCUTE_APP_ID/authz/agents/billing-assistant/report?from=2026-10-01T00:00:00Z&to=2026-11-01T00:00:00Z" \  -H "Authorization: Bearer $SCUTE_APP_SECRET"
SectionContents
agentThe agent
periodfrom and to, UTC
taskstotal, by_status, people (distinct people it acted for), autonomous
decisionstotal, by_decision, by_permission (each permission with a count per decision), allow_sample_rate
human_stepsverifications and approvals, counted by status
safetycaught (by kind), reviews (by status), flagged (up to 50 flagged items)
logThe decision log check for the period: ok, checked, head, and first_break when the chain is broken

Sampled allows

When the app logs only a share of plain allows (log_allow_rate in the app's authorization settings), decision counts include only the allows that were kept. allow_sample_rate says what share that is. Denies, held decisions and allows after a verification or approval are always logged. The log keeps decisions for the app's retention period (log_retention_days, default 30, at most 400), so a report for an older period has no decisions in it.

CSV export#

With format=csv, Scute returns <slug>-decisions.csv, oldest first, up to 50000 rows, with these columns:

at, task_id, person_id, permission, resource, decision, reason, seq, row_hash

seq and row_hash are the row's place in the decision log's hash chain. Each export is recorded as the audit event app.authz.agent.report_exported.

Check the decision log#

GET/v1/apps/:app_id/authz/decisions/verifyApp key

Checks that the app's decision log was not changed, cut or reordered between from and to. The JS client exposes it as admin.verifyDecisionLog({ from, to }). Keep the returned head somewhere outside Scute, so you can tell later that nothing before it changed.

Stats#

GET/v1/apps/:app_id/authz/agents/:slug/statsApp key

Counts for the last days days (default 30, at most 90): calls, allowed, denied, held (waiting on verification or approval), tasks (total, open), sessions (total, verified), people, and daily with calls and denied per day. Sampled allows are scaled up to estimate calls; exact is true when every allow is logged.

Sessions#

GET/v1/apps/:app_id/authz/agents/:slug/sessionsApp key

The conversations and calls under the agent's tasks, newest first. Query: conversation=true (only those linked to a platform conversation id), verified=true, active=true, task_id, limit (default 50, at most 200) and before. Each session has its channel, conversation_id, whether and when the person was verified, and person.