Skip to content

Packs / evals-public

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).

L2 Checks passed 3 of 3 runsv0.1.0Tech-Realm/space-evals-public

Install

logicpacks pack use evals-public/regression-gate-before-ship
get_pack evals-public/regression-gate-before-ship

The second line is the MCP tool call for the LogicPacks connector (Claude Code, Codex, Claude.ai and others). The first run of a pack someone else wrote asks for your yes.

Keys it needs (names only)

None.

Playbooks included

  • Spec: spec/SPEC.md (goal, steps, edge cases, don’ts)
  • Routes: python-stdlib
  • Checks: 2 in outcome/checks.yaml
  • Code: gate.py
  • Tools: python3

Usage, last 8 weeks

New: no recorded use yet.

Purpose (from 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.