Verify AI adapters preserve useful failure status information
Map upstream errors to safe application responses while retaining diagnostic categories for authorized operators. Avoid collapsing every failure into a generic success or timeout.
Example
A validation error and a provider outage both appear as an empty result in an older SDK wrapper.
What to do
- List the provider responses the adapter must handle.
- Replay synthetic issues with authentication, input shape and upstream availability separately.
- Verify downstream status and operator events without logging sensitive payload content.
How to verify
Support can distinguish each test case using safe diagnostics and the caller receives the correct status.
Limits
Some providers return limited details. Preserve observed evidence without inventing a more specific cause.