Classify structurally empty Astra assistant turns #877
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 · 302 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.342
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #877"
general
weight: 0.35
scottopell
Summary
4/0, reasoning-only, reasoning+message50/44and53/47, malformed/missing items, finalized text/refusal/tool loss, and WebSocket/SSE parityProduction evidence and boundary
Two production surfaces independently produced the same previously rejected terminal metadata after #876:
2c9d3af779d9a31957392e8716fb9d1e: three Astra WebSocket attempts, eachcompleted, 4 output / 0 reasoning tokens, one message item, no reasoning or function-call item, no visible-text events,Structured; turn endedError.e00d0b6ebfa3cc4c47b31a7598c0fd57: requests585e76f2-3274-470f-919b-161bc40b91ee,8c77731c-0f7b-44d0-aa29-71f34d9051c7, andc5793151-b9fb-47fd-828b-fa7a4b9ea516had the same counts/status/event classification and failed after three attempts.Existing production metadata does not expose message role, ID, status, content-array presence, or content-part structure, so it does not prove that either payload met the newly explicit valid-empty-message contract. This change does not guess from token counts: it accepts only the typed protocol shape, preserves rejection for missing/malformed/incomplete items, and preserves rejection whenever any text, refusal, or tool output was observed. New diagnostics report only structural counts/presence/classification flags, never payload text, reasoning, tool arguments, envelopes, or secrets.
The successful post-#876
53/47quiet Astra turn and its subsequent same-model turn remain valid evidence that runtime quiet settlement, usage/replay handling,Idle, and next-turn continuity work. They do not prove the message subshape.Validation
cargo fmt --allgit diff --check./dev.py check --lanes task,spec-shape,spec-anchors