01Action statuses
| status | Meaning | Final? |
|---|---|---|
| succeeded | Arc performed the action and the system accepted it. | Yes |
| failed | Arc performed the action and the system rejected it, or nothing could be sent. See execution.failure_code. | Yes |
| unknown | Arc sent the request but cannot know whether the system acted: the connection broke or timed out after sending. Check the system before trying again. | Yes |
| held | Waiting for a person’s approval. | No |
| executing | Allowed or approved, and Arc is performing it now. | No |
| rejected | A person rejected it. Nothing ran. | Yes |
| expired | Nobody approved it in time. Nothing ran. | Yes |
| refused | Denied, or Arc refused to act after the decision. Nothing ran. See reason_code or refusal.code. | Yes |
02Decision reason codes
Every decision has a reason_code and the explanation below. Arc checks in this order and stops at the first failure: agent, grant validity, action, resource, principal, constraints, then amount and approval rules. Policies are applied last.
| reason_code | decision | explanation |
|---|---|---|
| AUTHORIZED | ALLOW | The request is within the agent’s delegated authority. |
| APPROVAL_REQUIRED | REQUIRES_APPROVAL | The amount is within the grant’s limit but above its approval threshold: a human must approve this action. |
| POLICY_REQUIRES_APPROVAL | REQUIRES_APPROVAL | The grant allows this action, but an organisation policy requires human approval first. |
| AGENT_MISMATCH | DENY | The request names a different agent from the one that authenticated. |
| AGENT_INACTIVE | DENY | The agent is disabled. |
| GRANT_NOT_FOUND | DENY | No authority grant with that identifier exists for this agent. |
| GRANT_REVOKED | DENY | The authority grant has been revoked. |
| GRANT_NOT_YET_ACTIVE | DENY | The authority grant is not yet in effect. |
| GRANT_EXPIRED | DENY | The authority grant has expired. |
| NO_APPLICABLE_GRANT | DENY | None of the agent’s authority grants covers this action. |
| ACTION_NOT_PERMITTED | DENY | The grant does not permit this action. |
| RESOURCE_OUT_OF_SCOPE | DENY | The target resource is outside the grant’s resource scope. |
| PRINCIPAL_NOT_IN_SCOPE | DENY | The grant does not let the agent act on behalf of this principal. |
| PRINCIPAL_INACTIVE | DENY | The employee the agent would act for is not an active member of the organisation. |
| CONSTRAINT_UNSUPPORTED | DENY | The grant has a constraint Arc cannot evaluate, so the request is denied. |
| PURPOSE_NOT_PERMITTED | DENY | The stated purpose is not one the grant permits for this action. |
| AMOUNT_REQUIRED | DENY | The grant limits this action by amount, but the request gives no amount and currency. |
| CURRENCY_NOT_PERMITTED | DENY | The grant does not permit this currency for this action. |
| LIMIT_EXCEEDED | DENY | The amount exceeds the grant’s limit for this action. |
| POLICY_DENIED | DENY | An organisation policy forbids this action. The explanation names the policy. |
03Refusal codes
Arc checks everything again just before it acts. If anything has changed since the decision, it refuses to act and records why, in refusal.code and refusal.category.
| category | codes | Typical cause |
|---|---|---|
| DECISION | DECISION_DENIED AUTHORIZATION_EXPIRED | The decision was a denial, or an allowed action was not performed within an hour. |
| APPROVAL | APPROVAL_PENDING APPROVAL_REJECTED APPROVAL_EXPIRED APPROVAL_MISSING | The approval is not in a state that lets Arc act. |
| AUTHORITY | AGENT_DISABLED PRINCIPAL_INACTIVE GRANT_REVOKED GRANT_AMENDED GRANT_EXPIRED GRANT_NOT_ACTIVE CREDENTIAL_INVALID POLICY_DENIED | The agent, principal, grant or policies changed while the action waited. |
| REQUEST | ACTION_NOT_DEFINED DEFINITION_CHANGED INVALID_PARAMETERS | The action definition was revoked or amended, so Arc will not send a request nobody approved. |
| STATE | CONNECTION_DISABLED SECRETS_UNAVAILABLE ALREADY_EXECUTED EXECUTION_REFUSED | The system is disabled, its credentials cannot be used, or the action already ran. |
04Execution failure codes
| failure_code | Meaning | Was anything sent? |
|---|---|---|
| HTTP_ERROR | The system answered with an error status (4xx or 5xx). Its status is in http_status. | Yes |
| REDIRECT_REFUSED | The system answered with a redirect. Arc never follows redirects. | Yes |
| CONNECTION_FAILED | Arc could not connect to the system. | No |
| TARGET_NOT_ALLOWED | The address resolved to a private or otherwise forbidden network. | No |
| AUTHENTICATION_FAILED | Arc could not obtain credentials, e.g. the OAuth token request failed. | No |
| OUTCOME_UNKNOWN | Sent, but the outcome is unknown (status unknown). | Possibly |
