fix(app): classify unknown tool surface as usage, not provider error #286
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.35) × (1 − Review Confidence (0.32)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 178 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: 58% · 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.310
Real PR Conversation Timeline
1 comments
"Review active on #286"
general
weight: 0.35
copilot-pull-request-reviewer[bot]
Scope
Unknown-tool usage classification packet (metadata:
dropbox:/FlowState/Metadata/attempts/2026-11-17-unknown-tool-usage/admission.json). Observed live in the tool-loop dogfood:--allow exec.runwithoutFLOWSTATE_EXEC_ENABLED=1advertised the tool to the model, then surfaced mid-run asprovider_errorexit 3 — a code the contract reserves for provider failures.Now: the loop's tool-definitions step classifies as
usage(exit 2) before any provider request or budget spend, with a message naming the tool and — for exec.run — theFLOWSTATE_EXEC_ENABLEDgate.finishRungains the usage arm ahead of the provider fallback.Acceptance scenarios (QA-verified)
--allow exec.runwithout the gate: exit 2, code usage, names tool + gate, zero provider requests, no tool.* events--allow totally.unknown.tool: exit 2 usage naming the toolGates at exact head dc3644fe (base b21ffd6a)
Base: b21ffd6a4493c25ac2ed34e6174428c6b1dc6aaf
Independent review (exact-head)
Agent-Review: pending