Keep authentication at the edge
Create a small API client that owns the Neuron base URL, signing material, JWT, and refresh policy. Business code should ask it to perform an operation rather than passing tokens throughout the application.Separate command and retrieval paths
Treat operations such as signing, sending a message, transferring value, or changing a contract as commands. Do not automatically retry them unless the endpoint has an idempotency mechanism or you can prove from the returned identifier that the command did not run. Queries and reads may be safer to repeat, but the platform-wide transient status set andRetry-After behavior are not currently specified. Retry only conditions verified for the deployment, with a bounded attempt count and jitter.
Poll incrementally
Use pagination only where the operation schema actually defines a bound, cursor, offset, or continuation value. For message retrieval, process a returned batch transactionally before invoking a separate destructive clear operation.Preserve domain boundaries
An Agent account and its JWT belong to one Neuron. Keep a separate client/session per host. Before multi-Neuron actions:- identify which host owns the account or object;
- use federation, XMPP, or Remote Quick Login for cross-domain interaction;
- never replay a host-bound signature or bearer token against another domain;
- do not assume a local operation can read or modify a foreign object unless its operation description explicitly documents federation.