Commit dd82ff6
committed
tests/interaction: add streamable-http-stateless as a connect-matrix arm
The 2025-era unofficial stateless mode (fresh transport per request, no
session id, no standalone GET stream) is now a fourth connectable
transport alongside in-memory, sse, and streamable-http. The factory is
a partial of connect_over_streamable_http with stateless_http=True; the
same shared Server instance backs every request, so no server-factory
widening is needed.
41 requirements that structurally cannot run on the stateless arm are
annotated with arm_exclusions scoped to this transport: 29 because the
server cannot issue requests back to the client (sampling, elicitation,
roots, server-to-client ping/cancel) and 12 because they need persisted
session state or the standalone GET stream (client_params from
initialize, cross-POST cancellation, unsolicited list-changed
notifications).
The connect fixture now pre-binds protocol_version into the returned
factory; the value is still the single SPEC_VERSIONS entry and the
factories ignore it, so this is wiring-only.
504 connect cells (411 existing + 93 stateless), all green;
100% coverage; pyright/ruff clean.1 parent 0a5be73 commit dd82ff6
5 files changed
Lines changed: 88 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
| |||
0 commit comments