fix(agent): keep interruption feedback until it can be applied #222
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 162 lines diff across 2 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.305
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #222"
general
weight: 0.35
yuluo-yx
Describe what this PR does / why we need it
Contributing to ARGI: interruption feedback is no longer lost when
InterruptionHookruns while the last assistant message still has pending tool calls.Does this pull request fix one issue?
Fixes #211
Describe how you did it
remove(key, value)when it is applied.Describe how to verify it
./mvnw -pl :argi-agent-framework -am test(1388 tests pass). NewInterruptionHookTestcases cover deferral and single application, invalid feedback with pending tool calls, and a latch-controlled concurrent write; the deferral and concurrency cases fail on the previous implementation.Special notes for reviews
Cleanup of
ReactAgent.threadIdStateMapentries is out of scope and can be a follow-up. This only covers the in-process feedback path, not persistent approvals (#130).