Every other category can be pre-approved: a mode opens it, or an « always » remembers it. These three cannot be, by either route. The reason is the same for all three — nothing takes them back.
| Category | The act | What stays done |
|---|---|---|
send | A message leaves for someone else | It is in their inbox |
publish | Something goes on the public internet | It was fetched, it was indexed |
money | Credits are spent on space | They are spent, and it renews |
What happens on a call
- In plan mode: refused outright, like everything else.
- In every other mode, including full: a
permissionevent, then your callback. alwaysis accepted and treated asonce. Nothing is remembered.- With no callback: refused, with a message naming the act — « sending », « publishing », « spending credits ».
The agent is told, so it does not promise otherwise
Without it, an agent in full access would tell the user it is going to publish « directly », and then stop to ask — which reads as a malfunction rather than as a safeguard. Saying it in advance makes the prompt expected.
What this means for an unattended run
It cannot send, publish or buy. That is not a gap to work around: a run with no one watching is exactly the case where those three should not happen. If a workflow needs to send or publish, the approval belongs in the workflow — as a human step before it — rather than in an agent's mode.
// An unattended run that is honest about its limits
const agent = api.agents.create({
runtime: "local", machine: pc, model, mode: "auto",
onPermission: async ({ category }) => (["send", "publish", "money"].includes(category) ? "deny" : "once"),
});# An unattended run that is honest about its limits
agent = api.agents.create(
runtime="local", machine=pc, model=model, mode="auto",
on_permission=lambda request: "deny" if request["category"] in ("send", "publish", "money") else "once",
)They are what a rewind cannot undo
The same three acts — plus a connected-storage write and a command — are recorded per checkpoint and returned as kept by rewind(). The two lists overlap on purpose: what cannot be pre-approved is what cannot be reversed.