docs: explain model fallback and the streaming switch boundary #9
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 310 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.343
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9"
general
weight: 0.35
Aias00
Purpose
Covers the Streaming fallback item of agentic-ai-java/argi#372 (Core agentic-ai-java/argi#368, issue agentic-ai-java/argi#210). Docs-only; no Core runtime changes.
What's changed
frameworks/agent-framework/model-fallback: module and package, configuration, exhaustion error, cancellation andExecutionGuardhandling, the first-event switch boundary for streaming responses, per-subscription switch state, and ordering withModelRetryInterceptor.examples/streaming-fallback/: an offline example compiled against Corec6e453f20with nine scenarios (see the coverage table in the guide).ModelResponses. The example shows the independentReActAgentwithstreamModel(true)collects the provider stream inside the model call and passes interceptors a non-streaming response, so both fallback and retry still switch or repeat after partial deltas (scenarios 8 and 9). Both locales now state this and link to the new guide.hooks-interceptors.Validation
Details are in
examples/streaming-fallback/README.md. On macOS arm64 with Temurin JDK 21 (release target 17) and Maven 3.9.9:c6e453f20(Coremainat the time of checking) installed;ModelFallbackTest,ModelRetryTestpassed (62 tests).compile exec:javapassed, and again with-o.npm run typecheck,lint,verify:contractandbuild(zh-Hans + en) passed on this PR's base041a2c35; the cross-page anchors resolve in both locales.Reviewer notes
DraftDoneafter a mid-stream failure, and the same-ID snapshot then replaces it withDone. The guide documents this and points consumers to the snapshot rules instream-message-identity. If the intent is that the "never concatenated" guarantee also holds for this engine, that would be a Core change; happy to open a separate Core issue if useful.ReactAgentbehaviour is not tested.🤖 Generated with Claude Code