# Outcome reference

Source: https://botpassword.com/docs/outcomes

All 33 outcome codes BotPassword agents can receive, from success and approval_required to scope_denied and value_reflected: what each means and what to do next.

Every BotPassword intent answers with one JSON object whose `outcome` field is one of these 33 codes, generated from `agent_policy::Outcome` and `bpw`'s own codes. None carries a secret value. MCP marks every code except `success`, `signed_in`, `rotated`, `partially_rotated`, `approval_required`, `approved` with `isError: true`. For how agents should react in general, see [Typed outcomes and errors](/docs/typed-outcomes); for each intent's outcomes, see the [intent catalog](/docs/intents).

## Done

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`success`](/docs/outcomes/success) | The intent did what was asked | Read the intent's own fields. |
| [`rotated`](/docs/outcomes/rotated) | The credential was rotated | Carry on. |
| [`partially_rotated`](/docs/outcomes/partially_rotated) | A rotation stopped partway | Tell the person which step stopped (see detail). |

## Waiting on the person

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`approval_required`](/docs/outcomes/approval_required) | The person must approve | Tell the person an approval is waiting in BotPassword, then try again after they have decided. |
| [`needs_human`](/docs/outcomes/needs_human) | A step needs a person | Tell the person what is needed (see detail). |
| [`request_limited`](/docs/outcomes/request_limited) | Too many access requests | Stop asking in this session and tell the person. |
| [`approved`](/docs/outcomes/approved) | The access request was approved | Retry the original call. |
| [`denied`](/docs/outcomes/denied) | The access request was denied | Do not ask again. |
| [`expired`](/docs/outcomes/expired) | Nobody decided in time | Tell the person the request lapsed and ask whether they still want to grant it, before you ask again. |

## Fix the session or vault

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`vault_locked`](/docs/outcomes/vault_locked) | The vault is locked | Ask the person to unlock BotPassword (in the desktop app, or with `bpw unlock`), then try again. |
| [`session_required`](/docs/outcomes/session_required) | No live agent session | Ask the person to approve this agent in the BotPassword app if it is listed there, or to start the agent with `bpw agent run --` followed by the agent's own command, then try again. |

## Refused by policy

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`grant_expired`](/docs/outcomes/grant_expired) | The grant has ended | Call request_access for the credential and the intent. |
| [`scope_denied`](/docs/outcomes/scope_denied) | Outside what any grant allows | Call request_access for the credential and the intent. |
| [`not_rotated`](/docs/outcomes/not_rotated) | The rotation ended without a change | The current credential is as it was. |
| [`disclosure_not_granted`](/docs/outcomes/disclosure_not_granted) | The grant allows only sealed delivery | Use sealed delivery where this intent has it. |
| [`minting_blocked`](/docs/outcomes/minting_blocked) | The endpoint creates a credential | Do not create keys through this call. |
| [`budget_exhausted`](/docs/outcomes/budget_exhausted) | The grant use budget is spent | Call request_access for the credential and the intent. |
| [`rate_limited`](/docs/outcomes/rate_limited) | The grant rate limit is spent | Wait until the grant's rate window resets before trying again, or stop and tell the person. |

## Containment

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`host_restricted`](/docs/outcomes/host_restricted) | The destination address is not allowed | Do not retry with this host. |
| [`containment_unsupported`](/docs/outcomes/containment_unsupported) | BotPassword cannot contain this request | Do not repeat the same call. |
| [`value_reflected`](/docs/outcomes/value_reflected) | A credential's value came back | Do not retry. |
| [`value_too_short`](/docs/outcomes/value_too_short) | Too short for sealed delivery | Do not retry. |

## Provider and network

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`provider_unavailable`](/docs/outcomes/provider_unavailable) | The provider could not be reached | Try again later. |
| [`unknown_outcome`](/docs/outcomes/unknown_outcome) | BotPassword cannot tell what happened | Do not repeat the action blindly, because it may have happened. |

## From bpw itself

| Outcome | Meaning | What the agent should do |
|---|---|---|
| [`not_implemented`](/docs/outcomes/not_implemented) | This build does not do it yet | Do not retry. |
| [`rejected`](/docs/outcomes/rejected) | The call itself was refused | Correct the request as the message says and try once more. |
| [`daemon_unavailable`](/docs/outcomes/daemon_unavailable) | bpw could not reach the daemon | Ask the person to start BotPassword, then try again. |
| [`daemon_incompatible`](/docs/outcomes/daemon_incompatible) | bpw could not read the daemon's reply | Stop and tell the person to update bpw and the BotPassword daemon to the same build. |

## Defined, not sent by this build

These codes are in `agent_policy::Outcome` and in each tool's output schema, but no code path in this build sends them. An agent should handle them like `scope_denied`: stop and tell the person.

| Outcome | Meaning |
|---|---|
| `signed_in` | Reserved for a sign-in the site confirmed. `sign_in` answers `success` today. |
| `wrong_account` | Reserved for a provider account that does not match the credential. |
| `provider_auth_expired` | Reserved for a provider that rejected the stored credential. |
| `provider_rate_limited` | Reserved for a provider that is rate limiting. Today an HTTP 429 comes back as `success` with `status: 429`. |
| `revocation_pending` | Policy answers this when a company credential's owner is no longer active; this build's daemon always treats the owner as active. |
