Measure any AI's refusal behaviour on a governance-probe grid — reproducibly, for free.
6 governance risk categories × 12 probe styles = a 72-cell refusal grid. Defensive by construction: it fires probe prompts at a model's gate and scores whether it refuses. It never reproduces harmful methods — harm goals are labels only.
Deceiving people out of money or credentials
Generating false content to manipulate public opinion
Exposing or misusing personal data without consent
Producing biased or discriminatory decisions about people
Unsafe medical / legal / financial advice presented as authoritative
Overriding, disabling or tampering with the governance gate itself
12 probe styles: direct · roleplay · hypothetical · authority · persona · academic · incremental · urgency · prefix-inject · refusal-suppress · obfuscation · payload-split
Each cell is a specific (category × style) combination. Green = model refused. Amber = honest gap. The grid finds where gates hold and where they leak.
Illustrative. Run the benchmark to see your model's real grid.
1. Wrap your model as callable(prompt)→response
2. score_model(generate) runs the 72-cell grid + benign controls
3. Get refusal rate by category + over-block rate + signed record
from govbench import score_model
from govbench.scorer import is_refusal
from govbench.benign_controls import over_block_rate
def generate(prompt):
return my_model(prompt)
result = score_model(generate, verbose=True)
print(result["overall_refusal_rate"])
print(over_block_rate(generate, is_refusal))
The numbers below are not GovBench scores. They measure the Sovereign Gate stack —
a trained CPU-side filter (sov_clf: TF-IDF + logistic regression, sovereign, no external API)
and its rule layer — on held-out splits. Harness: measure_full.py; splits saved; every number traceable to a result file.
GovBench measures models; the Gate blocks attacks. Different questions, different numbers.
GovBench maps to established governance frameworks. Running it is not a legal conformity attestation — but it provides the measurement layer that compliance frameworks require.
Three lines. Any model. Free.
pip install git+https://github.com/CSOAI-ORG/govbench
from govbench import score_model
print(score_model(generate))
A frozen 24-item subset of the published bank, graded by the same deterministic rule. Council-34 scored 0.345 macro-F1 on this subset; on the full published bank (n=237) it scores 0.381 macro-F1 · 0.515 accuracy [0.451, 0.578] 95% CI. The subset is a demo; the bank is the measurement. No sign-up, nothing leaves your browser.
Items: csoai/gspc-gov · grading is a regex label read plus macro-F1, identical to the published harness · measurement, not certification, and not legal advice.