EvryAi
Governance

Every tool call checked against consent and policy

A member's grant bounds what agents may do for them, your policy decides each call, and anything sensitive waits for the member or a reviewer. Every decision lands in an audit trail you can check in your own code.

TypeScript code from the SDK README creating a refunds policy with three rules: deny a third refund in 30 days, escalate writes after 6pm, and deny writes on voice until the caller is verified.
refund-policy.ts
await evry.policies.create({
name: "Refunds",
document: {
default: "allow",
timezone: "America/New_York",
rules: [
{
id: "two_a_month",
match: { tools: ["issue_refund"] },
when: [{ path: "context.velocity.subject.30d", op: "gte", value: 2 }],
effect: "deny",
reason: "Two refunds a month per member at most.",
},
{
id: "after_hours",
match: { risk: "write" },
when: [{ path: "context.time.hour", op: "gte", value: 18 }],
effect: "escalate",
reason: "After 6pm a person approves changes.",
},
{
id: "voice_unverified",
match: { risk: "write" },
when: [
{ path: "context.channel", op: "eq", value: "voice" },
{ path: "context.session.metadata.verified", op: "not_exists" },
],
effect: "deny",
reason: "Verify the caller first.",
},
],
},
});
Context

Rules on time, channel, attributes and velocity

Rules can read the hour and weekday in the policy's time zone, the channel (api, chat, voice, sms, email or journey), metadata your server set on the session and the run, and how often the same tool already ran for this member or your organization in the last hour, day, week or 30 days. The platform fills time and velocity itself, so neither a caller nor a tool can stand in for them.

Dry runs
policies.simulate tests a draft against the context you pass, and policies.evaluate tries a published policy. Neither runs nor records anything.
Warnings
A dry run that reads time or velocity you did not pass says so in its result.
TypeScript code dry-running a draft policy with policies.simulate, passing the hour, weekday, 30 day velocity and channel to test.
simulate.ts
const decision = await evry.policies.simulate({
document: candidate,
tool: { name: "issue_refund", risk: "write" },
input: { amountCents: 2500 },
subject: "member_8812",
// A dry run has no clock or history of its own: pass the context you want to test.
context: { time: { hour: 19, weekday: 3 }, velocity: { subject: { "30d": 1 } }, channel: "chat" },
});
console.log(decision.effect, decision.ruleId);
Approvals and cases

A yes that covers one exact action

Confirm pauses the run for the member. The approval carries the exact tool call and a SHA-256 hash over the run, the call, the tool and its input, and approving needs the same hash, so a changed action cannot ride on an earlier yes. Escalate opens a case for a reviewer with the member, the pending call, the rule and what the agent already did.

Once
An approval covers one call, once, and lapses at its expiry. A different hash returns 409 CONFLICT.
Cases
Due 4 hours after they open unless you set reviewDueHours; a run waits up to 720 hours for a person.
TypeScript code from the SDK README that waits on a run, submits client tool outputs, and approves a paused action with its inputHash.
approve.ts
let current = await evry.runs.wait(run.id);
while (current.status === "requires_action") {
const action = current.requiredAction;
if (action?.type === "submit_tool_outputs") {
const outputs = await Promise.all(
action.toolCalls.map(async (call) => ({ toolCallId: call.id, output: await runTool(call.name, call.input) }))
);
await evry.runs.toolOutputs.submit({ runId: current.id, outputs });
} else if (action?.type === "approval") {
const approval = await evry.approvals.get({ approvalId: action.approvalId });
// Show approval.toolCall to the member exactly as it is, then:
await evry.approvals.approve({ approvalId: approval.id, inputHash: approval.inputHash });
} else {
break; // A reviewer resolves the case in your workflow.
}
current = await evry.runs.wait(current.id);
}
Audit

An audit trail you verify yourself

Every tool call that runs, fails or is denied, every journey transition and every grant or policy change writes an append-only record, chained by hash per organization and mode. audit.verify asks the API to check the chain, and verifyAuditChain recomputes it in your own code, so an auditor does not have to take the API's word for it. Records list the fields an action used, never their values.

SIEM
OCSF 1.1 or ArcSight CEF, from code or from evryai audit export with a checkpoint.
On behalf of
Each governed call to your endpoint carries an ES256 token naming the member, agent version, run, tool call and grant. It expires after 5 minutes.
TypeScript code from the SDK README that lists every audit record and recomputes the hash chain with verifyAuditChain.
verify-audit.ts
import { verifyAuditChain } from "@pendral/platform";
const { organizationId } = await evry.me.get();
const records = [];
for await (const record of evry.audit.list({ limit: 100 })) records.push(record);
const result = await verifyAuditChain(records, { organizationId, fromGenesis: true });
if (!result.ok) console.error(`Chain breaks at seq ${result.firstBadSeq}: ${result.reason}`);
Kill switch

Stop an agent in one call

Suspend an agent and new runs are refused, active ones are cancelled, schedules skip and journeys wait, with the reason in the audit trail and an agent.suspended webhook. Suspend one member's grant to do the same for that person only, then resume either when the fix is in.

TypeScript code from the SDK README suspending an agent with an incident reason, resuming it, and suspending one member's grant.
incident.ts
const stopped = await evry.agents.suspend({ agentId: agent.id, reason: "INC-4411: wrong refund amounts" });
console.log(stopped.cancelledRunIds); // active runs it cancelled; new runs now fail with AGENT_SUSPENDED
await evry.agents.resume({ agentId: agent.id, reason: "Fixed in v14, verified in test mode" });
// Pause what agents do for one member instead:
await evry.grants.suspend({ grantId: "grt_...", reason: "Member paused automation in the app" });

How it works

Grants

Consent the agent cannot step outside

A grant records what a member allowed: which agents, which tools, limits such as a dollar cap on refunds, a purpose, where consent was given and when it ends. It is read fresh on every tool call, on every resume after an approval and on every journey step, so revoking it stops paused work as well as running work.

Suspend
Pause one member's agents without ending the grant. Their schedules skip without counting as failures.
Events
grant.revoked, grant.suspended and grant.resumed, by webhook.
Policies

Five effects, and the strictest one wins

A policy is a versioned document with a default effect and up to 500 rules. Each call ends in allow, allow with obligations, confirm, escalate or deny. Every matching rule counts and the strictest effect wins. Allow with obligations replaces the fields you name in the tool's response before the model sees them.

Order
Deny, then escalate, confirm, allow with obligations and allow.
Versions
A new version applies to runs that start afterwards, and every decision records the version it used.

The specifics

Through the API, the TypeScript SDK or the evryai CLI.

Effects

allow, allow_with_obligations, confirm, escalate and deny. Without a policy every call is allowed.

Policy size

A default effect and up to 500 rules, each with a reason the agent and the audit trail see.

Approval binding

A SHA-256 inputHash over the run, the call, the tool and its input.

Waiting

24 hours by default, up to 720. Proposed actions last up to 30 days.

Audit export

JSON Lines, OCSF 1.1 or CEF, checked locally with evryai audit verify --offline.

Scopes

grants, policies, approvals, cases and audit, each with read and write where it applies.

Bring EvryAi to your team

Sign in with your work account and start in a chat, or talk to us about rolling it out across your organization with the controls your admins need.