adding-a-dataset
Guide for importing external datasets from Hugging Face or GitHub into Control Tower. Use when the user asks to add a new monitoring dataset, points at a dataset repository URL, or asks about the dataset registry, converters/importers, ct extras dataset pull, or ct extras dataset check.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 46
- Forks
- 53
01 前言 Front Matter
- name
- adding-a-dataset
- description
- Guide for importing external datasets from Hugging Face or GitHub into Control Tower. Use when the user asks to add a new monitoring dataset, points at a dataset repository URL, or asks about the dataset registry, converters/importers, ct extras dataset pull, or ct extras dataset check.
02 资源文件 1
- 参考文档bmad-skill-manifest.yaml698 B
03 SKILL.md 正文
@docs/development/adding-a-dataset.md
Work pull-first: look the repository id up in EXTERNAL_DATASETS and, if it is registered, run ct extras dataset pull <name>; if the check comes back green, you are done. Otherwise write the registry entry, then the converter; pull <name> names the step you are at, and ct extras dataset check <name> is the loop that tells you when the converter is right. Finish by opening a draft PR containing the registry entry, the converter, and the final check output.
Decide these yourself and record the decision in the PR rather than asking:
- Which subtree to pin. When a repository holds several frameworks, models or domains, pin one: prefer the subtree that has both benign and attack runs, whose tool calls carry arguments, from the most capable model available, in the smallest such domain. Say what was left out.
- How the source's attacks map to a side task. Where the attacks are harmful instructions or prompt injections rather than a covert side task, import them as the attack leg anyway:
side_taskis the harmful goal, its score is the source's attack-success label, and each trajectory keeps a tag naming the threat model (for exampledirect,indirect) so they can be filtered later. Keep refused attacks; a failed attack is still an attack sample. Note in the PR that the mapping is a judgment. - Missing tool-call arguments. Import anyway;
checkreports that the dataset feeds trajectory monitors only, and the PR says so. - Harness plumbing. Drop the agent framework's own calls (tool discovery, context management); keep every call that acts on the environment.
- Source labels you cannot trust. On the samples you read, cross-check the judge's labels against the transcript. A success label on a trajectory with no tool calls is a source error: score it 0, keep the judge's verdict in metadata, count the overrides, and say so in the PR.
Never read .env or print a token. If a Hugging Face request fails with HTTP 401, 403 or 429, the repo is gated or rate-limited: ask the user to set HF_TOKEN and re-run.
The dataset PR contains the registry entry and the converter, nothing else. If adding the dataset seems to need a change to shared code (the download machinery in external.py, eval_log.py, check), stop and propose it separately instead of folding it in.
The converter is ordinary Control Tower code, so CONTRIBUTING applies: no helper used fewer than three times, no one-line helpers, docstrings of at most three lines. Audit it against CONTRIBUTING.md before opening the PR.
Stop and ask the user before writing a converter only when:
- The licence is not a permissive one (MIT, Apache-2.0, CC-BY) or forbids the leaderboard's use.
- You cannot tell honest from attack trajectories from the files themselves, only from the README.
- No subtree has both a benign and an attack leg.
04 同仓库更多 Skills
validate-straj
Validate a sabotage trajectory (straj) end-to-end before trusting it as a keeper. Reconstructs the attack mechanism, checks for blatant reward-hacking and for unearned stealth (an environment flaw that made the side task trivially easy and low-suspicion), replays the side-task scorer in a fresh sandbox, and re-scores the replay with the `simple` (action) + `trajectory` (traj) monitors on opus-4-8 and gemini-3.1-pro (scored once per model, escalating a flagged monitor to a majority of 3). Use when the user wants to validate / verify / QA strajs, confirm a straj still evades the canonical monitor, or check a "clean keeper" list of trajectories.
trajectories
Guide for working with Control Tower trajectories. Use when the user asks about trajectory formats, trajectory IDs, converting .eval logs, uploading or downloading trajectories, replaying trajectories, or trajectory CLI commands.
safety-curves
Guide for understanding and explaining Control Tower safety curves. Use when the user asks about safety-usefulness tradeoffs, audit budgets, attack success rates, monitor thresholds, safety metrics, or interpreting safety curve plots.
running-evals
Guide for running evaluations in Control Tower. Use when the user asks about running evals, ct run eval, policies (honest, attack, test, replay), protocols, task sets, uploading results, replaying trajectories, or evaluation options. IMPORTANT - Use this skill instead of the MCP tools for guidance on running evaluations.
monitoring
Guide for monitoring trajectories in Control Tower. Use when the user asks about monitoring, suspicion scores, the ct run monitor command, monitor prompts and fields, or trajectory analysis. IMPORTANT - Use this skill instead of the MCP tools for guidance on monitoring trajectories.
making-strajs
Guide for creating sabotage trajectories (strajs) in Control Tower. Use when the user asks about creating strajs, monitor evasion, attack strategies, straj documentation, or trajectory development workflows.