feat: subscription streams — subscriptions/listen under ASGI (0.1.4) #32
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 287 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.339
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #32"
general
weight: 0.35
BenA-SA
What
The last deferred protocol feature (SSE/subscriptions): on the
2026-07-28wire there is no standing GET stream — a client opts into server events by POSTingsubscriptions/listen, whose response is itself the stream (SEP-2575). The buffered bridge could never carry it: the suite's threeserver-statelessfailures and thehandler returned no HTTP response500s were all this.How
mcp-methodheader routessubscriptions/listento a streaming path — the body is never parsed, and every other request keeps the buffered path byte-identically.StreamingHttpResponserelays its ASGI messages live. Django closing the response on client disconnect cancels the dispatch — the SDK's documented end-of-stream signal.501 unsupported_deployment— a live stream pins a worker for its lifetime, the exact per-flow tax this package exists to remove. This is the asterisk the build plan predicted, now a documented contract instead of a hang.ListenHandleracks/tags/filters;MCPServer(subscriptions=…)takes the example'sInMemorySubscriptionBus; a real fleet supplies a Redis/NATS-backedSubscriptionBus(documented).Verification
server-statelesswent 25/28 → 30/30 with zero warnings and leaves the expected-failures baseline; full suite 78 → 83 passed, baseline check green.test_trigger_tool_change/test_trigger_prompt_changetools; README gains a curl transcript for watching a live stream (open listen in one terminal, trigger from Inspector in another) including the per-process-bus caveat under the 4-worker demo.mcp_view's return annotation widens toHttpResponseBase(streaming responses aren'tHttpResponsesubclasses). Version → 0.1.4,CHANGELOG/0.1.4.md, ADR-0020.