# Always asked

Canonical URL: https://developers.iagenify.com/sdk/agent/permissions/always-ask/
Language: en

Three categories no mode can open in advance, and for which « always » is not accepted. Sending, publishing, and spending credits on something other than a model call.

Status: send · publish · money · asked in full access · no always

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`](/sdk/agent/permissions/categories/send) | A message leaves for someone else | It is in their inbox |
| [`publish`](/sdk/agent/permissions/categories/publish) | Something goes on the public internet | It was fetched, it was indexed |
| [`money`](/sdk/agent/permissions/categories/money) | Credits are spent on space | They are spent, and it renews |

## What happens on a call {#behaviour}

- In [plan](/sdk/agent/modes/plan) mode: refused outright, like everything else.
- In every other mode, including [full](/sdk/agent/modes/full): a `permission` event, then your callback.
- `always` is accepted and treated as `once`. 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 {#prompt}

> **The rule is in the system prompt of every mode**
>
> 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 {#unattended}

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.

```javascript
// 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"),
});
```

## They are what a rewind cannot undo {#rewind}

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.

- [What a rewind cannot undo](/sdk/agent/checkpoints/limits): The same idea, after the fact.
- [Modes](/sdk/agent/modes): What each mode opens without asking.
- [Permissions](/sdk/agent/permissions): The callback, its three answers, and the order things are decided in.

```python
# 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",
)
```
