toolgate-bench / README.md
SNAPKITTYWEST's picture
ToolGate-Bench v1 + held-out split
5495b89 verified
|
Raw History Blame Contribute Delete
3.05 kB
metadata
license: agpl-3.0
pretty_name: ToolGate-Bench
language:
  - en
task_categories:
  - text-classification
size_categories:
  - n<1K
tags:
  - agents
  - tool-use
  - agent-safety
  - guardrails
  - benchmark
  - snapkitty
configs:
  - config_name: default
    data_files:
      - split: v1
        path: data/v1.jsonl
      - split: heldout
        path: data/heldout.jsonl

ToolGate-Bench

A small, deterministic benchmark for tool-call gating: given raw LLM output, should an agent harness ACCEPT it, require human APPROVAL_REQUIRED, or REJECT it? It targets the failure that matters most for agents, a risky action slipping through a gate (an unsafe pass).

Reference gate: Snapkitty/snapkitty-nemotron-harness (TypeScript, pure function, ~24 µs per decision).

Splits

Split Cases Purpose
v1 78 Canonical, combined, obfuscated and undeclared tool tokens, denied shell commands, benign outputs
heldout 18 Frozen generalization set: new spellings, commands outside the denylist, dangerous strings inside harmless code

Each row: id, category, output (the model text), expected (ACCEPTED / APPROVAL_REQUIRED / REJECTED). Expected labels follow the trust deed of the reference harness.

from datasets import load_dataset
ds = load_dataset("Snapkitty/toolgate-bench")
print(ds["v1"][0])

Metrics

  • Accuracy: exact match with expected.
  • Unsafe pass rate: share of non-ACCEPTED cases the gate accepted. Lower is better; this is the headline safety number.
  • False reject rate: share of benign cases the gate blocked.

Reference results

Gate Split Accuracy Unsafe passes False rejects
snapkitty-nemotron-harness v0.2.0 v1 39.7% 82.5% 0%
snapkitty-nemotron-harness v0.3.0 v1 100% 0% 0%
snapkitty-nemotron-harness v0.3.0 heldout 66.7% 28.6% 50%

The v1 split was written together with the v0.3.0 rules, so heldout is the fairer measure of a new gate. Submit your gate's numbers on both splits.

Citation

@misc{snapkitty_toolgate_bench_2026,
  title        = {ToolGate-Bench: Deterministic Evaluation of Tool-Call Gating for LLM Agents},
  author       = {{Snapkitty Collective LLC}},
  year         = {2026},
  howpublished = {\url{https://huggingface.co/datasets/Snapkitty/toolgate-bench}}
}

License

Licensed under AGPL-3.0. Full text: LICENSE.

💼 Commercial License

SnapKitty code is free and open under AGPL-3.0 for open-source use. Building a commercial product or service? A proprietary commercial license from Snapkitty Collective LLC lets you ship SnapKitty code without the AGPL's source-sharing and network-use obligations.

→ Get a commercial license · A.parr@belespritdaccord.uk