feat(core): send explicit cancelled/interrupted run status from tracer #41785
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.36) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 206 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.319
Real PR Conversation Timeline
1 comments
"Review active on #41785"
general
weight: 0.35
mangeshraut712
LangChainTracernow sends an explicit runstatus(cancelled/interrupted) alongside the error text, so a deliberate stop is no longer indistinguishable from a failure. Closes LIN-734 (core tracer part).langchain_core.exceptions.ExpectedCancellation(from #41663): cancel withtask.cancel(msg=ExpectedCancellation("reason")). Subclasses count as marked.GraphBubbleUpsubclasses are matched by class name, so core takes no langgraph dependency.__context__there only.Minimum
langsmithversion: the status is only set when the installedlangsmithRunTreehas astatusfield (first release that adds it; none published yet). Older versions are untouched and keep today's behavior. Thepyproject.tomlfloor is not bumped.Release note
LangChainTracermarks runs cancelled withExpectedCancellationascancelledand graph interrupts asinterrupted(needs alangsmithrelease withstatussupport).🤖 Generated with Claude Code