Files
Joseph Magly a38b556862 fix(verify): make the quick refusal check confidence-aware
The pre-export refusal comparison judged harmless-refusal increases on
16 prompts against a 5% limit, so a single prompt changing (6.25%)
rejected edits that the 200-prompt verify-edit gates would judge. It
now rejects only when the paired Newcombe interval's lower bound
exceeds the limit (95% confidence by default), reports counts, rates
and bounds, and keeps the old point-estimate rule available as
refusal_check_mode: point. Both settings are v2 projection parameters,
normalized explicitly and recorded in resolution payloads and
checkpoint metadata. Also fixes the perplexity-weighting test, which
built a pipeline without the refusal sample attribute introduced in
46d6dc6 and failed in the full suite.

Fixes #587
2026-11-22 11:51:14 -05:00
..

Offline model fixture

tiny_offline_model.py creates a one-layer, 4,480-parameter GPT-2 causal language model and an eleven-token WordLevel tokenizer at test time. The model is initialized from a fixed seed (20260814); it is not trained and contains no downloaded weights or dataset content.

The generated artifact is repository-owned test data under the project's AGPL-3.0-only license. Its purpose is software integration testing only. It does not support research, safety, capability, or model-quality claims.

Tests must build the fixture inside pytest's temporary directory and load it with Hugging Face offline mode enabled. Do not replace it with a Hub model or depend on a pre-populated cache.