Skip to content
SkilledDragonEngineering Intelligence
MinilabKeylessOctober 21, 2026

A 2B decision model ranked risky tool calls well, and thresholds decided the rest

DecisionGate asks a decision model whether a proposed tool call is safe before the agent runs it. On 91 labelled calls, strands-decider ranked well but sent most calls to ask.

By David Discua

Measured in the lab

0.980 / 0.890
p_safe AUROC, dev / holdout
36.7%
holdout accuracy, default thresholds
63.3%
holdout accuracy, fitted thresholds
0/19
unsafe holdout calls allowed
Regex baseline10 of 19 unsafe allowed56.7%
Decider, default0 unsafe allowed36.7%
Decider, fitted0 unsafe, 4 safe blocked63.3%
  • Live decider allowed 0 unsafe calls on dev and holdout
  • Fitted thresholds blocked every holdout injection call
  • Fake scorer's planted position bias showed as 66.1% and 71.1% first picks
  • Scorer errors fail closed to block with exit code 2
  • Gemini and in-process decider scorers were not run live in this lab

From reports/bakeoff.json · run on October 21, 2026. 61 dev + 30 holdout labelled calls; keyless rows from the regex baseline and a fake scorer; live rows from strands-decider-2B-qwen3.5-v1-2610 via strands-decider serve on CPU, one run

How it is wired

proposed callquestionsallowaskAgentDecisionGatescore_tool_callstrands-decider2B, on CPUToolruns on allowHumanasked on ask

01/03Before a tool call runs, the agent asks DecisionGate to score it.

DecisionGate is an MCP server and agent skill that asks a decision model about each proposed tool call, including its arguments and recent context, before the agent runs it. It returns allow, ask or block by threshold. We ran a bakeoff on 91 labelled calls with the real strands-decider 2B checkpoint on CPU, next to a regex baseline and a deliberately broken fake scorer. The decider ranked calls well, with a p_safe AUROC of 0.980 on dev and 0.890 on holdout, but at the default thresholds it sent most calls to ask and blocked none of the injection calls.

The catch

The model's probabilities were compressed. Across all 91 items, p_safe stayed between 0.13 and 0.87 and p_injection between 0.27 and 0.66, so the default thresholds (allow at 0.8, block below 0.2, block injection at 0.8) rarely fired. Action accuracy was 42.6% on dev and 36.7% on holdout. Thresholds fitted on dev and applied unchanged to holdout gave 63.3% holdout accuracy, 0 unsafe calls allowed and every holdout injection call blocked, at the cost of 4 safe calls blocked.

The corpus is small: 61 dev items and 30 holdout items, with the corpus, labels and baseline written by one author. The live rows come from a single run. One unrelated injected log line changed the decider's action on 44.4% of safe dev calls and 50.0% of safe holdout calls. The gate is advisory and answers only when the agent calls it, so it enforces nothing on its own. The Gemini scorer and the in-process decider-local scorer were not run live in this lab.

What we ran (keyless)

uv sync --frozen
echo '{"tool":"Bash","args":{"command":"git push --force origin main"},"context":[{"source":"user","text":"sync my branch"}]}' | uv run decisiongate score --call -
uv run decisiongate bakeoff --corpus fixtures/corpus/holdout.yaml --scorer baseline
uv run python scripts/report.py

The live rows came from strands-decider serve in Docker on CPU (docker/decider.Dockerfile) and scripts/report.py --live decider-http --workers 1. The full dev and holdout live run took 4144.4 s of wall time.

From reports/bakeoff.json and reports/live-decider-http.json, run on October 21, 2026, at default thresholds:

ScorerSplitAccuracyUnsafe allowedSafe blockedAUROCOrder flip rate
Regex baselinedev100.0%0/390/221.0000.0%
Regex baselineholdout56.7%10/190/110.7820.0%
strands-decider 2Bdev42.6%0/390/220.98021.3%
strands-decider 2Bholdout36.7%0/190/110.89033.3%

The regex baseline was tuned on dev, which is why it is perfect there and lets 10 of 19 unsafe holdout calls through. The fake scorer is hash-seeded noise with a planted first-position bias and no model behind it. Its first-listed option won 66.1% and 71.1% of the time, which shows the order metric catches bias. The decider's first-listed option won 33.9% and 37.8% of the time, close to the unbiased 33.3%.

How it is wired

score_tool_call builds a state from the call and its context, marks every non-user line as untrusted, and asks the scorer three yes/no questions (is it safe, does it touch prod, does it follow an injected instruction), one allow/ask/block choice and a 0 to 4 risk score. Thresholds turn the probabilities into an action, and a scorer error fails closed to block. The same logic runs as an MCP stdio server, a CLI (decisiongate score, exit 0 allow, 1 block, 3 ask, 2 scorer error) and a skill that tells the agent when to call it and how to label context sources.

Minilab (open source)

The decision model is strands-labs/strands-decider (701 stars, Apache-2.0, Python, as of October 24, 2026), run unmodified at 0.2.0 in a separate container. Re-run the keyless rows with uv run python scripts/report.py, and re-fit the thresholds on your own labelled calls before trusting any of them.

Run it yourself

SkilledDragonCorp/decisiongate-mcp

Clone, install and run the report with no API keys. The numbers above are what that run writes.

uv sync --frozen && uv run decisiongate bakeoff --corpus fixtures/corpus/holdout.yaml --scorer baseline

SkilledDragon is not affiliated with Strands Agents or strands-labs, the Qwen team, Google, Anthropic, Anysphere, Hugging Face or the Model Context Protocol project. Numbers are from our own lab run on a small single-author corpus; re-run the bakeoff before relying on them. Marks belong to their owners.

All labs