File size: 2,084 Bytes
89c8e98
1e36563
 
 
 
f9904ff
 
 
 
1e36563
 
f9904ff
 
 
 
2c59964
 
 
a3c319e
2c59964
 
 
 
 
 
 
f9904ff
2c59964
 
f9904ff
 
 
89c8e98
 
 
 
f9904ff
 
 
 
 
 
 
 
 
 
89c8e98
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2c59964
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
---
configs:
- config_name: default
  default: true
  data_files:
  - split: train
    path: train.jsonl
  - split: test
    path: test.jsonl
- config_name: trim-10
  data_files:
  - split: train
    path: train-trim-10.jsonl
  - split: test
    path: test-trim-10.jsonl
license: mit
task_categories:
- text-classification
- zero-shot-classification
language:
- en
tags:
- safety
- shell
- bash
- classifer
- tool-call
size_categories:
- 100K<n<1M
source_datasets:
- openbmb/UltraData-SFT-Agent-2609
pretty_name: Tool Safety v2
---

# Tool-safety classifier dataset

Source transcripts: [openbmb/UltraData-SFT-Agent-2609](https://huggingface.co/datasets/openbmb/UltraData-SFT-Agent-2609)

From conversations in the source datasets, tool calls are then passed through various LLMs to rank its safety given the conversation's context.
The contexts are synthetically generated if they cannot be inferred from the first system prompt or user prompt.

Configs:

- default: The full conversion. Picking from 2 tool calls per conversation from the source dataset
- trim-10: `prompts` tool calls are trimmed to last 10 tool calls after a user message

Columns:

| column | description |
| --- | --- |
| `context` | `working_dir`, `git_repo`, `git_branch` (best effort) |
| `prompts` | chronological single-key objects: user messages and already-executed tool calls |
| `tool_call` | single-key object `{name: arguments}` — bare value or `key=value` pairs (salient args for known tools, all args otherwise); raw arguments JSON only when unparsable/empty |
| `safety` | `allow` / `ask` / `deny` |

## Label distribution

| safety | count |
| --- | --- |
| allow | 138424 |
| ask | 69212 |
| deny | 69212 |

## Synthetic data provenance

`ask`/`deny` synthetic rows were generated deterministically by stage 3; deny commands partly derive from these external sources:

- `redcanaryco/atomic-red-team` — MIT License, © Red Canary, Inc.
- `zyw-286/shell-attack-evolution-dataset` (Cowrie honeypot attacker commands) — CC BY 4.0

## Policy

Labels follow the policy in [policy.md](policy.md)