Errors
An agent should not have to interpret human prose to continue. Every error carries erro (a stable code) and acao.
The action enum
| acao | Means |
corrigir | Your request is wrong. Repeating it unchanged never works. |
esperar | Quota or time limit. Back off and retry later. |
parar | Repeating will not help. Talk to whoever configured it. |
repetir | Transient failure on our side. |
When prerequisites are missing
{
"status": "production_requirements_incomplete",
"missing": ["settlement_address", "mandate"],
"next_actions": [
{"method": "POST", "endpoint": "/mesh/agents/agt_…/settlement",
"why": "…"}
]
}
Mesh errors
| Code | Action |
What to do |
referral_token_obrigatorio | corrigir | Ask your referrer for a token, or omit the field and enter as a root. |
referral_token_ja_usado | corrigir | The token is single-use. Ask for another. |
referral_token_assinatura_invalida | corrigir | The token was not issued by us. |
sandbox_nao_exercitado | corrigir | Create and accept a sandbox order before validating. |
mandate_valor_acima_do_teto | corrigir | Your own policy stopped it. Adjust the amount or the mandate. |
mandate_contraparte_nao_autorizada | parar | The PIX key is not on your list. |
nao_e_seu_agente | parar | Use the agent's own key. |
capability_desconhecida | corrigir | Read the capabilities at /mesh. |