Degraded-Mode UX When Connectivity Drops
Define readable offline, stale and unknown-outcome states for AI workflows, with safe caching, explicit retry boundaries and accessible status messages.
A network failure should not turn into a confident answer, a duplicated side effect or a blank screen. This reference pattern separates a read-only fallback from an action whose outcome the client cannot yet establish.
Define the states before adding a cache
Use at least four states: current result, stale read-only result, unavailable result and unknown action outcome. Explain the source timestamp and limitation in the interface. Do not reuse an old answer as if a new request had succeeded.
For read-only material that your access policy permits caching, retain the source version, retrieval time and permitted user or tenant. Re-check authorisation before displaying it. A cache key that ignores tenant identity or source permissions can disclose a correct answer to the wrong person.
HTTP caching semantics are a foundation for web resource caching, not permission to retain arbitrary personal or confidential records. Application storage and service-worker caches need their own access, expiry and deletion design.
Separate a failed request from an uncertain action
When a read request fails, a bounded retry may be appropriate. When a tool request times out after a write, the caller may not know whether the action happened. Do not blindly repeat it or silently place it in an offline queue.
Record an operation identifier and reconcile the outcome through the enforcing service. HTTP's idempotency semantics help explain why retrying an operation is a contract question; choosing POST or adding a prompt does not itself make a side effect safe.
A proposed state record might look like this:
{
"state": "outcome-unknown",
"operationId": "synthetic-operation-17",
"nextStep": "reconcile-before-retry",
"writeControlsEnabled": false
}
This is an illustrative application record, not a standard protocol or a complete implementation. The service must implement the state transition and enforce disabled write permissions independently of the browser.
Make the limitation accessible
Keep the last safe text readable while clearly marking it as stale. Explain an unavailable result in plain language and offer the manual path. Avoid spinning indefinitely or requiring a user to infer failure from a colour change.
The W3C explanation of status messages is useful when informing assistive technology about changes without moving focus. Test with keyboard and screen-reader users rather than treating an ARIA attribute as a complete accessibility review.
Test the recovery path
In staging, interrupt the connection before a request, during a read and after a tool has acknowledged an action. Check tenant isolation, stale labels, expiry and whether reconnecting causes an unintended duplicate operation. Use synthetic records and a tool incapable of moving real money.
Record the expected fallback for each test and the evidence that the service enforced it. A screenshot of a disabled button is insufficient if the underlying endpoint still accepts the forbidden action.
What to do next
- Add the cases to the locale smoke kit, including the words shown when work is stale or uncertain.
- Specify the action boundary with tool contracts.
- Include retries and manual fallback effort in workflow economics.
Published by Janeiro.ai. Original editorial for operators. How this was made