# regression-gate-before-ship

Block a model swap when the candidate scores worse than the current model on the same eval set (max drop, or any newly failing case).

- **Space:** evals-public (https://github.com/Tech-Realm/space-evals-public/tree/main/regression-gate-before-ship)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use evals-public/regression-gate-before-ship` or MCP `get_pack evals-public/regression-gate-before-ship`
- **Files:** CHANGELOG.md, code/gate.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/base.json, outcome/fixtures/better.json, outcome/fixtures/worse.json, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

A ship/block decision for a candidate model based on the same eval set as the current model.

## Steps

1. Run eval-on-fixture for the current model with --report base.json.
2. Same for the candidate with --report candidate.json.
3. `python3 code/gate.py base.json candidate.json --max-drop 0.02 --no-new-fails`.
4. SHIP: swap the model; BLOCK: read the newly failed cases.

## Edge cases

- Small case sets are noisy: one case is 25% of a 4-case set; use 50+ cases for real decisions.

## Don'ts

- Don't override a BLOCK without reading the failed cases.



---

Canonical URL: https://logicpacks.io/packs/evals-public/regression-gate-before-ship

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
