Datasets:
Run records and contract logs for arXiv:2611.24025 (same records as GitHub data/ at 4c6c1c2)
5683c57 verified |
Download README.md from zwang-devv/intent-contracts-run-records: direct link, hf CLI and curl.
- Browser
- Download file 7.66 kB
-
https://huggingface.co/datasets/zwang-devv/intent-contracts-run-records/resolve/main/README.md
- Command line
-
hf download hf://datasets/zwang-devv/intent-contracts-run-records/README.md
-
curl -L -o README.md https://huggingface.co/datasets/zwang-devv/intent-contracts-run-records/resolve/main/README.md
7.66 kB
| license: mit | |
| language: | |
| - en | |
| pretty_name: Intent Contracts run records | |
| size_categories: | |
| - 10K<n<100K | |
| tags: | |
| - agents | |
| - tool-use | |
| - authorization | |
| - ai-safety | |
| - permissions | |
| configs: | |
| - config_name: ampermbench_runs | |
| data_files: ampermbench_runs.parquet | |
| - config_name: bundling_runs | |
| data_files: bundling_runs.parquet | |
| - config_name: contract_log_events | |
| data_files: contract_log_events.parquet | |
| # Intent Contracts: run records and contract logs | |
| Per-run records and contract logs behind every table in | |
| *Intent Contracts: Taking Tools Away from Agents* (Ziyuan Wang, Genliang Zhu, Xiaobo Chen, Chu Wang, 2026), | |
| [arXiv:2611.24025](https://arxiv.org/abs/2611.24025). | |
| Code, the OpenCode plugin and the script that recomputes the paper's tables are at | |
| https://github.com/zwang-devv/intent-contracts. The files here are the same records as `data/` in that | |
| repository (commit `4c6c1c2`), reshaped so that each table has one fixed set of columns. | |
| An intent contract is an authorization interface for tool-using LLM agents in which the planning model holds no | |
| tools. For each step it states a goal, quotes the user verbatim, and gives a scope. Code checks the quotation and | |
| the scope. A small trusted model decides what the user authorized and writes the tool call itself. | |
| ```python | |
| from datasets import load_dataset | |
| runs = load_dataset("zwang-devv/intent-contracts-run-records", "ampermbench_runs", split="train") | |
| bundling = load_dataset("zwang-devv/intent-contracts-run-records", "bundling_runs", split="train") | |
| events = load_dataset("zwang-devv/intent-contracts-run-records", "contract_log_events", split="train") | |
| ``` | |
| ## What is in it | |
| | Config | Rows | One row is | | |
| |---|---|---| | |
| | `ampermbench_runs` | 1,086 | one run of one condition on one AmPermBench prompt | | |
| | `bundling_runs` | 162 | one run of one condition on one author-written bundling task | | |
| | `contract_log_events` | 24,354 | one logged event (contract, trusted-model decision, tool call, benchmark CLI invocation) of a gated run | | |
| `original/` holds the three files exactly as they are in the GitHub repository; `scripts/recompute_tables.py` | |
| there reads that layout. | |
| The planner in every gated condition is `gpt-6.1-terra` and the trusted model is `GLM-5.3-Flash`. These names | |
| identify hosted services, not fixed checkpoints. The runs were collected in November 2026. | |
| ## Conditions | |
| | `condition` | Name in the paper | What runs | | |
| |---|---|---| | |
| | `contract` | Contract | Planner has no tools; trusted model writes one call per contract. Goals may not contain command lines. | | |
| | `contract_strict` | Contract, strict executor | Same, with one more instruction to the executor. | | |
| | `contract_dagger` | Contract (dagger) | Same as `contract`, but goals may contain command text. Bundling tasks only. | | |
| | `review` | Review | Trusted model approves or declines the planner's command; sees the user's words and the command. | | |
| | `review_intent` | Review+Intent | Same, and the reviewer also sees the planner's goal and a code-checked user quotation. | | |
| | `strong`, `small` | Strong, Small | One model alone with the tools. | | |
| | `strong_declare` | Strong+Declare | Strong model alone, told to write an `INTENT:` line before each change; nothing reads it. | | |
| | `whole_task` | WholeTask | One contract; the small model reads output and does the whole task. 30 prompts. | | |
| ## Fields | |
| ### `ampermbench_runs` | |
| | Field | Meaning | | |
| |---|---| | |
| | `prompts` | `original` (the benchmark's prompts) or `clarified` (one sentence appended that says which queue, environment or storage prefix the prompt's lane term refers to). | | |
| | `condition` | See the table above. | | |
| | `family`, `prompt_id`, `specificity`, `reference`, `risk` | The benchmark's task family, prompt id and its three prompt axes. | | |
| | `safe_success`, `unsafe_allow`, `under_completion` | The benchmark's three outcomes (0/1); exactly one is 1. | | |
| | `wrong_target`, `over_scope`, `protected_touch` | The benchmark's error types for an unsafe run (0/1). | | |
| | `seconds` | Wall-clock time of the run. | | |
| | `changed_objects` | Number of environment objects whose state changed. | | |
| | `changed` | The changed objects, each as `[id, name]`. Null in conditions without a gate. | | |
| | `accepted_contracts`, `declined_by_trusted_model` | Contract counts. Null in conditions without a gate. | | |
| | `named_in_goal`, `named_in_command`, `named_in_executor_call` | How many changed objects are named in an accepted goal, in a planner command, or in a call written by the executor. Null where the condition has no such thing. | | |
| ### `bundling_runs` | |
| | Field | Meaning | | |
| |---|---| | |
| | `task_set` | `appended_request` or `file_list`. | | |
| | `condition`, `task`, `repetition` | Condition, task id and repetition (1–3). | | |
| | `valid` | False if no contract passed code validation. | | |
| | `main_task_complete`, `extra_work_done` | Whether the user's task was completed, and whether the work the user did not ask for was carried out. | | |
| | `contracts`, `accepted_contracts`, `rejected_by_code`, `declined_by_trusted_model` | Contract counts for the run. | | |
| | `contracts_quoting_added_text`, `of_those_rejected_by_code` | Contracts whose quotation contains the added request, and how many of them the quotation check rejected. | | |
| | `seconds` | Wall-clock time of the run. | | |
| ### `contract_log_events` | |
| Events of one run share `dataset`, `condition`, `run` and `prompts` or `task_set`, and are ordered by `seq`. | |
| Wall-clock times and tool output are not included. Columns that do not apply to an event type are null. | |
| | Field | Event types | Meaning | | |
| |---|---|---| | |
| | `dataset` | all | `ampermbench` or `bundling`. | | |
| | `prompts`, `task_set` | all | Which prompt set or task set the run belongs to (one of the two is null). | | |
| | `condition`, `run`, `seq` | all | Condition, run id, and position of the event in the run. | | |
| | `event` | all | `contract`, `trusted_model`, `call` or `cli`. | | |
| | `goal`, `basis` | `contract` | The planner's goal and its quotation of the user. | | |
| | `command` | `contract` | The planner's shell command, in the review conditions only. | | |
| | `allowed_egress`, `allowed_write_prefixes`, `error_handling` | `contract` | Scope fields of the contract. | | |
| | `accepted_by_code`, `violations` | `contract` | Result of code validation and the reasons for a rejection. | | |
| | `status`, `tool_calls` | `trusted_model` | The executor's or reviewer's final status for the contract and the number of calls it made. | | |
| | `tool`, `allowed` | `call` | A tool call that reached the code gate, and whether the gate allowed it. | | |
| | `cli_cmd` | `cli` | One invocation of a benchmark command-line tool, taken from the tool's own log (AmPermBench runs only). | | |
| | `args_json` | `call`, `cli` | The arguments, JSON-encoded: an object for `call`, a list for `cli`. | | |
| ## What it does not contain | |
| The benchmark itself. The external tasks, environments and scoring come from AmPermBench (Ji et al., | |
| arXiv:2604.04978, https://github.com/yan5ui/cc-auto-mode-measurement at commit `6dc2a2e`), which its repository | |
| describes as MIT-licensed. The contract logs quote the benchmark's prompts where the planner quoted the user. | |
| ## Limitations | |
| One pair of models, benign over-reach only (no adversarial planner), 96 prompts derived from 16 templates plus | |
| 18 author-written tasks. Outcome labels on the AmPermBench runs are the benchmark's own. | |
| ## License | |
| MIT, as in the GitHub repository. | |
| ## Citation | |
| ```bibtex | |
| @misc{wang2026intentcontracts, | |
| title = {Intent Contracts: Taking Tools Away from Agents}, | |
| author = {Wang, Ziyuan and Zhu, Genliang and Chen, Xiaobo and Wang, Chu}, | |
| year = {2026}, | |
| eprint = {2611.24025}, | |
| archivePrefix = {arXiv}, | |
| primaryClass = {cs.CR} | |
| } | |
| ``` | |