--- license: other license_name: all-rights-reserved license_link: https://github.com/NagaYu/spendbound/blob/main/LICENSE pretty_name: SpendBound dev bench tags: - ai-agents - wallet-security - policy-verification - coinbase-cdp - privy - turnkey --- # SpendBound dev bench The **development benchmark** for [SpendBound](https://github.com/NagaYu/spendbound) — a deterministic, offline verifier for AI-agent wallet spend policies across **Coinbase CDP, Privy, and Turnkey**. SpendBound computes the *effective* spend authority a policy set actually grants under each vendor's documented defaults/precedence/layering, and flags the regions that appear excluded but the vendor's semantics admit. This dataset is the **dev set only**. The sealed Gate-2 holdout is **not** included, by design. **Version.** Detector **1.0.7**, semantics snapshot **`2026.11.29-3`** (vendor docs read 2026-11-29); `PART_B_defaults_audit.md` is regenerated from that snapshot. `dev_bench.json` (cases and oracle labels) is unchanged since v1.0, and Gate 1 re-runs on 1.0.7 with the same numbers. The **Gate 2 numbers below are those of v1.0** (the sealed holdout was not re-opened); the `2026-11-19` dates below refer to the v1.0 snapshot. Changes: [CHANGELOG.md](https://github.com/NagaYu/spendbound/blob/main/CHANGELOG.md). ## Contents | File | What it is | |---|---| | `dev_bench.json` | The dev bench: 6 clean bases, 32 hand-labelled mutation cases (each with its oracle label), and 4 not-judgeable fixtures. Oracle labels are derived **by hand** from the pinned vendor semantics (SPEC §2–§3), never tuned to make the checker pass. | | `PART_B_defaults_audit.md` | The generated vendor-defaults audit (SPEC §5): each load-bearing default pinned to the vendor's own documentation on the snapshot date **2026-11-29**, with verbatim quotes and citations. Regenerate with `python -m spendbound partb`. | ### `dev_bench.json` structure ```json { "snapshot_date": "2026-11-19", "clean_cases": [ { "vendor": "...", "schema": "...", "artifacts": {...}, "id": "..." }, ... ], "mutation_cases": [ { "case": {...}, "operator": "...", "description": "...", "oracle": {"check":"S?","region_kind":"...","region_value":"...","severity":"..."} }, ... ], "not_judgeable_fixtures": [ ... ] } ``` Each case is a native vendor policy artifact ingested unmodified. The `oracle` on a mutation case is the hand-derived expected finding (check class, region, severity). ## Vendor defaults (pinned 2026-11-19) The error-prone rule — what happens to an operation **no policy mentions**: - **Coinbase CDP — open default.** An operation no rule targets is **accepted**. - **Privy — deny default.** An unmentioned method is **denied** (`*` reopens). - **Turnkey — deny default.** An unmentioned activity is **implicitly denied** (root-quorum etc. excepted). ## Gate record **Gate 1 — dev bench** (this set, `python -m bench.runner`): **PASS**. Per-class recall S1 6/6, S2 6/6, S3 5/5, S4 5/5, S5 5/5, S6 5/5 (floors 0.90 / 0.80); clean false-positive 0/6 = 0.000 (ceiling 0.02); 0 silent drops; byte-identical across a double run. **Gate 2 — sealed holdout** (47 cases authored independently and sealed before scoring; scored once; the holdout itself is NOT in this dataset): Per-class recall S1 6/6, S2 7/7, S3 7/7, S4 5/5, S5 5/5, S6 5/5 (floors 0.85 / 0.75); severity 35/35 matched the oracle; clean false-positive 0/8 = 0.000 (ceiling 0.03); byte-identical across a double run. **Disclosure.** The sealed Gate-2 harness **printed `FAIL` on one case** (`H_edge_cdp_unknown_op`). This is a **label error in the holdout, not a checker defect**: the harness asserted *zero findings* on a CDP (open-default) fixture whose only rule targets an out-of-universe operation. The checker behaved exactly as specified — it emitted the required `not-judgeable` verdict for the unknown operation **and** the semantically correct findings (dropping the only rule leaves every real operation untargeted, hence accepted under CDP's open default). That assertion is stricter than the ratified Gate-2 criteria, which require only that the out-of-universe item be flagged `not-judgeable` (it was). On the ratified criteria the checker meets all four. The sealed artifacts are left unchanged by design. **Adversarial fuzz audit (Phase 3).** SpendBound was fuzzed with **69 adversarial cases** across five attack surfaces, each run against the real checker. The audit found **30 real defects** — 23 crash / contract violations, 6 evasions, 1 silent partial-analysis — and **all 30 were fixed** (typed input-validation layer, Privy aggregate validation, a top-level `&&`/`||` detector for S6, duplicate-CDP-scope flagging, explicit `info` notes for unknown vocabulary). The 69 cases were kept as regression tests; the **fuzz re-run reports 0 real defects**. The gate numbers above are unchanged (a fix round re-runs neither gate; the sealed holdout is untouched). ## License & availability **All rights reserved.** SpendBound is evaluation-available and **offered for transfer / licensing**. For evaluation access, transfer, or licensing enquiries, use the portfolio contact route: **https://nagayu-portfolio.nagayu.workers.dev/en**