Skip to main content

szl-abstention-frontier

Measured abstention calibration for the SZL Holdings frontier model line.

The estate trains small governed models that must refuse what they cannot answer - fabricated premises, unanswerable questions, poisoned authority - without refusing ordinary questions. This repository holds the evaluation harness that keeps that tradeoff measured, not assumed, plus the operational tooling and receipts from the runs that produced every number.

Why this exists

A model that answers a fabricated-premise trap with confident fiction is a product defect. A model that refuses every benign question is equally a defect. The estate doctrine is: no claim without a receipt. This repo is the receipt.

Measured results (chaski r4-r2, 2026-11-17)

Paired A/B on a held-out battery (12 traps + 6 benign controls), greedy decoding, thinking off, batched on a single GPU. Base model Qwen/Qwen3.5-0.8B with a LoRA r=32 adapter trained via TRL SFT on the dual-teacher abstention corpus.

Metric Base Tuned (r4-r2)
Abstain rate on traps 0.083 (1/12) 1.000 (12/12)
False-refusal on benign controls 0.000 0.667 (4/6)
Accuracy overall 0.389 0.778

Honest defect, recorded rather than hidden: the 100%-abstention corpus taught the adapter to append refusal boilerplate even to correct answers. The corpus v2 iteration (48 abstention pairs + 24 answer-side counterexamples = 72 pairs) is training to close exactly that gap.

Acceptance gate (v2): traps abstain >= 0.9 AND controls false-refusal <= 0.1.

Larger 46-probe review — research HOLD

A newer independent-looking but still keyword-rubric-based comparison of the R4/R3 adapter was recorded November 19, 2026. On 46 probes / 92 generations, R4/R3 improved paired discrimination (3/8 vs 0/8 for R4/R2) and answerable controls (9/16 vs 2/16), but still over-refused on 3/16 controls and corrected only 3/8 factual traps. The Hub receipt explicitly states UNSIGNED and promotion HOLD. Do not equate the higher balanced score with production qualification.

The original Python-only held-out verifier, src/qualify.py, checks retained local bundle hashes, exact model revisions, 46 distinct base/adapter pairs and numerator-denominator consistency. It reports proposed multi-axis quality bounds but never authorizes promotion, even when all numerical bounds pass. It does not execute models or download private outputs. See held-out qualification methodology.

Experimental Unknown Surface cohort integrity (source-only)

The opt-in szl_abstention_frontier.frozen_cohort helper requires exact pre-frozen question/stratum/case IDs before calculating a single claimed risk/coverage operating point. It refuses incomplete, replaced, duplicated or modified cohort populations even when the submitted case count is unchanged. A model cannot drop a difficult answer and silently call the easier subset its entire benchmark. Both answerable and unanswerable cases are mandatory.

An external reviewer must pin the complete manifest SHA256 before evaluation; the helper also requires each outcome to carry the declared question-content SHA256, model revision and single-run identity. It refuses unpaired model-superiority claims until an actual independently reviewed, preregistered two-run comparison exists. These are caller-declared digests and labels only. A positive SOURCE_POPULATION_MATCH_UNATTESTED is not independent correctness review, signed identity, verified rights, a risk-coverage curve, training quality, model promotion or runtime authority. Its complete methodology and negative controls are in the frozen cohort contract. This does not replace or change the separate reviewed-risk source PR #6.

Artifacts (Hugging Face)

Quickstart (developers)

Requires Python >= 3.11, a CUDA GPU, and a PEFT adapter directory.

pip install -e .
szl-abstain-eval --items eval_heldout_v1.jsonl --adapter-dir ./adapter_r4r3/final --adapter-repo SZLHOLDINGS/salad-chaski-r4-r3 --out-prefix abst_eval

Outputs a summary JSON (rates + gate), a per-item receipts JSONL, and a timestamped log. Run python -m pytest tests -q for the unit tests of the classification semantics (no GPU needed).

Repository layout

  • src/szl_abstention_frontier/ - installable package (classify.py pure logic, evaluate.py paired A/B harness, CLI szl-abstain-eval)
  • tests/ - unit tests (classification semantics, no GPU needed)
  • scripts/ - operational tooling as used on the estate workstation: the original proven harness, the local Blackwell trainer (Salad-independent fallback), the auto-eval watcher, and the failover orchestrator
  • receipts/ - JSON receipts of the measured runs and launches (credential values masked at capture time)
  • .github/ - OIDC-only PyPI release pipeline (canonical estate release gate, byte-identical)

Doctrine

  • Fail closed. Missing evidence blocks, never passes.
  • Receipts for every action. Every number above links to a machine-readable receipt in receipts/ or the HF runs repo.
  • Never fabricate. Outages and failures are recorded as they happened (see the v2 corpus card for the teacher-API outage during its build window).
  • No stored credentials. Secrets are read at runtime from files on the estate workstation; receipt values are masked.

PyPI publication path

This package publishes through PyPI Trusted Publishing (OIDC) only - the same pipeline as the rest of the estate. Release path: bump the version in pyproject.toml, publish a GitHub Release tagged v; CI builds, gates, and publishes. No API token exists anywhere. Owner-side prerequisite (once, on pypi.org): register the pending publisher - owner szl-holdings, repository szl-abstention-frontier, workflow publish-pypi.yml, environment pypi.

License

Apache-2.0. (c) SZL Holdings LLC.

Metadata

Release files for szl-abstention-frontier 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for szl-abstention-frontier 0.1.1
File Size Uploaded Provenance Actions
szl_abstention_frontier-0.1.1.tar.gz 28.4 kB With provenance Details for szl_abstention_frontier-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for szl-abstention-frontier 0.1.1
File Interpreter ABI Platform Actions
szl_abstention_frontier-0.1.1-py3-none-any.whl Python 3 none any Details for szl_abstention_frontier-0.1.1-py3-none-any.whl

Total release size: 49.6 kB

Release files / szl_abstention_frontier-0.1.1.tar.gz

Download URL szl_abstention_frontier-0.1.1.tar.gz
Size 28.4 kB
Tags Source
SHA-256 checksum
How to use checksums
3ba4522f1a11f69b01e3603a53bdad82fd67258b8c708c76b5117aa24969945f
BLAKE2b-256 checksum
How to use checksums
8ca63d62307ed9a48836fec58ccc414f858acbf63d7496016201eacac3108849
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Release files / szl_abstention_frontier-0.1.1-py3-none-any.whl

Download URL szl_abstention_frontier-0.1.1-py3-none-any.whl
Size 21.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2f819007f3ce08fa8f929eb55016c8bdcae4ffcaf5f6cf037a5cc97e0263e93a
BLAKE2b-256 checksum
How to use checksums
29c10f65fce417ed9c5d137514c75a56e61db7456920084e625769bf4dbb1994
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

Security for szl-abstention-frontier 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for szl_abstention_frontier-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page