WardenS1-Bench / README.md
DevMortimer's picture
Clarify 128K is Warden-S1 native window (salience scales to 500K+ outer sessions)
928677f verified
|
Raw History Blame Contribute Delete
7.3 kB
metadata
license: apache-2.0
task_categories:
  - text-classification
  - zero-shot-classification
language:
  - en
tags:
  - coding-agents
  - system-one
  - verification
  - long-context
  - counterfactual
  - calibration
  - benchmark
size_categories:
  - 10K<n<100K
pretty_name: WardenS1-Bench
configs:
  - config_name: states
    data_files:
      - split: full
        path: data/states.parquet
      - split: test
        path: bench/states.parquet
  - config_name: probes
    data_files:
      - split: full
        path: data/probes.parquet
      - split: test
        path: bench/probes.parquet

WardenS1-Bench

In plain English - what is Warden-S1 for? Most AI models are slow System-2 talkers. Warden-S1 is a local System-1 verification model with its own 128K-token context window and a twist: in one instant reflex pass (0 generated tokens), it outputs calibrated Yes/No probabilities, category Choices, and Severity scores to guard long-running AI coding agents (catching secret leaks from poisoned GitHub issues 70,000 tokens back or fake "all tests pass" claims).

Cloud System-1 judges crash past their ~33K-token ceiling (HTTP 400) and upload your private repo to a third-party API, while normal "small" 0.6B local models secretly eat 14.3 GiB of KV RAM when stretched to a 128K window and freeze a 16 GB laptop on one chat. Warden-S1 holds 10 concurrent long-context sessions at once in 858 MiB on your laptop (or 461 MiB inside Chrome), beats commercial Cloud Jev (96.1% vs 84.9% accuracy), admits "I don't know" at 0.50 instead of bluffing, points straight to the exact guilty turn (locus, 93% Top-1), and scores which old turns are safe to compact (salience, 99.98% AUROC) so Warden-S1's 128K window keeps tracking even when your main coding agent's session grows past 500K+ tokens.

WardenS1-Bench is a long-context (4K–128K token) System-One verification corpus and benchmark for autonomous coding agents, authored by Ryan Joshua Z. Gapac (mail@ryanjoshuagapac.com, https://ryanjoshuagapac.com).

It pairs realistic multi-turn coding trajectories (4,200 states totaling 225,650,644 tokens under the Qwen/Qwen3.5-0.8B tokenizer) with 67,200 typed verification probes spanning five calibrated heads (noul, choice, score, locus, salience), strict zero-overlap repository splits, abstention probes, and 2,100 single-chunk counterfactual twin pairs.

Corpus Summary

Property Value
Total trajectory states 4,200 (3,120 train / 432 val / 648 held-out bench)
Total counterfactual twin pairs 2,100 (2,100 / 2,100 verified single-chunk diffs)
Total typed probes 67,200 (10,368 in held-out bench split)
Abstention probes (target 0.50) 8,484
Total tokens (Qwen/Qwen3.5-0.8B) 225,650,644 (225.65M)
States >= 50K tokens (full corpus) 1,980 (47.14%)
States >= 50K tokens (held-out bench) 360 / 648 (55.56%)
Token length stats (min / p10 / p50 / mean / p90 / max) 5,592 / 10,069 / 45,186 / 53,726.3 / 111,331 / 127,892
Out-of-bucket states 0
Cross-split repository overlap (train/val/test) 0 / 0 / 0 (4,837 / 662 / 1,052 unique repo groups)
Counterfactual target probes flipped 8,700
Counterfactual control probes invariant 24,900

Distribution by Domain, Length Bucket, Head, and Language

Domains (6 Balanced Domains)

Domain Full States Train Val Bench (test)
s1_general 700 520 72 108
action_guard 700 520 72 108
taint_guard 700 520 72 108
repo_rules 700 520 72 108
done_verify 700 520 72 108
trajectory_health 700 520 72 108

Length Buckets

Bucket Full States Train Val Bench (test)
4k-16k 1,032 780 108 144
16k-48k 1,188 936 108 144
50k-80k 1,176 840 120 216
80k-128k 804 564 96 144

Typed Heads (67,200 Probes)

Head Probes Task
noul 42,700 Calibrated binary judgment p in [0, 1] (includes 8,484 abstention probes)
choice 6,300 Multi-option selection over named criteria with calibrated distribution
score 5,600 Ordered rubric scoring in [0, 1]
locus 8,400 Pointer localization of the triggering evidence chunk
salience 4,200 Per-chunk importance scoring over full session trajectories

Source Code Languages Referenced

javascript (4,190), python (4,186), typescript (4,172), rust (4,024), go (3,942), common-lisp (2,794).

Stage 3.5 Reference Leaderboard

Model Weights Noul AUROC Noul ECE Choice F1 Score Spearman rho CF Net Locus Top-1 Salience AUROC
Warden-S1-752M (Stage 3.5 BF16 Cal) 1,458 MiB 0.9964 0.0126 0.8726 0.8784 0.9174 0.9219 0.9998
Warden-S1-752M-MLX-4bit (Stage 3.5) 415.5 MiB 0.9957 0.0175 0.8726 0.8814 0.9115 0.9297 0.9998
Warden-S1-752M-ONNX-Int4 (36-state parity) 461.3 MiB 0.9923 0.0324 0.7846 0.8927 0.9259 0.9167 1.0000
Warden-S1-752M (No-CF Ablation) 1,458 MiB 0.9801 0.0096 0.6174 0.7302 0.7507 0.6265 0.9574
Zero-shot Qwen3-1.7B 3,440 MiB 0.6492 0.0754 0.3827 0.0000 0.2191 0.0733 0.7796
Zero-shot Qwen3.5-0.8B 1,665 MiB 0.5663 0.3451 0.1465 0.0000 0.0059 0.0455 0.7797

Official Evaluation Harness

The bundled evaluate_warden_s1.py script scores any model's JSONL predictions on the held-out 648-state (10,368-probe) bench/ split across overall metrics, per-domain slices, length buckets (4k-16k through 80k-128k), counterfactual twin net sensitivity, and abstention calibration:

python evaluate_warden_s1.py \
  --bench-dir ./bench \
  --predictions ./predictions.jsonl \
  --out ./eval_report.json

Privacy & Provenance

All states are synthesized from permissively licensed open-source repositories and programmatic counterfactual perturbations. Every parquet row and manifest file passes a zero-leakage linear privacy audit (0 personal paths, emails, secrets, or private keys).

Citation

@misc{gapac2026wardens1,
  title  = {Warden-S1: A Sub-1GiB, 128K-Context Local System-One Verifier for Long-Horizon Coding Agents},
  author = {Ryan Joshua Z. Gapac},
  year   = {2026},
  url    = {https://ryanjoshuagapac.com}
}

Citation

@techreport{gapac2026wardens1,
  title       = {Warden-S1: A Sub-1 GiB, 128K-Context Local System-One Verifier for Long-Horizon Coding Agents},
  author      = {Gapac, Ryan Joshua Z.},
  year        = {2026},
  month       = nov,
  institution = {Independent Research},
  doi         = {10.5281/zenodo.24494405},
  url         = {https://doi.org/10.5281/zenodo.24494405}
}