spec/ait: add error handling spec points#447
Open
lawrence-forooghian wants to merge 1 commit intoai-transport-featuresfrom
Open
spec/ait: add error handling spec points#447lawrence-forooghian wants to merge 1 commit intoai-transport-featuresfrom
lawrence-forooghian wants to merge 1 commit intoai-transport-featuresfrom
Conversation
Add spec points for the new error handling behaviours introduced in the SDK: - Amend AIT-CT3b: on POST failure the turn stream must be errored (not closed) with TransportSendFailed, preserving the HTTP status or wrapping the network error as cause. - AIT-CT14c: errorStream() on the stream router. - AIT-CT19/CT19a: channel continuity loss detection — the transport must monitor for FAILED, SUSPENDED, DETACHED, or non-resumed re-attach and error active own-turn streams with ChannelContinuityLost (104006). - AIT-CT20: send() must reject with ChannelNotReady (104007) when the channel is not ATTACHED or ATTACHING. - Add ChannelContinuityLost (104006) and ChannelNotReady (104007) to the error codes section. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
95354f5 to
7f809b6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
TransportSendFailed(104005), preserving the HTTP status or wrapping the network error as cause.errorStream()on the stream router.ChannelContinuityLost(104006).send()must reject withChannelNotReady(104007) when the channel is not ATTACHED or ATTACHING.ChannelContinuityLost(104006) andChannelNotReady(104007) to the error codes section.Companion SDK PR: ably/ably-ai-transport-js#32
🤖 Generated with Claude Code