Skip to content

modelpin 0.3.0 — baselines get a fingerprint, and the false-positive rate is read by severity

Choose a tag to compare

@samarthputhraya samarthputhraya released this 08 Sep 18:10
· 145 commits to main since this release
cd7b649

⚠️ Upgrading breaks your existing baselines. Re-run mp baseline once.

Every baseline recorded before this version will be refused, and your first mp check after upgrading compares nothing and exits 3 until you re-record.

mp baseline          # once, after upgrading. Then mp check works as before.

mp baseline now stores a content fingerprint of each scenario definition beside its traces, and mp check will not compare a scenario whose definition has changed since — or whose baseline carries no fingerprint at all, which is every baseline that exists today.

This is a deliberate cost. [M] The store keyed a baseline to a scenario by id alone and got it wrong in both directions: a rewritten scenario compared against a stale baseline reported OK 1 scenario(s) unchanged, exit 0, over a candidate that had genuinely started refusing; and two unrelated scenarios sharing a filename produced REGRESSION (confidence 0.99), exit 1, off nothing but a name collision. Applying it to Modelpin's own tracked dogfood baseline found the defect live. See ADR-0039.

Also breaking, smaller: a setup failure (missing key, bad config, usage error) now exits 4, not 1. 1 means only a real regression. A caller treating any non-zero code as "regression" will now see 4 where it saw 1.

Action users: action.yml installs an unpinned modelpin[providers], so a workflow on @v1 picks this up automatically and its next mp check will exit 3 until mp baseline is re-run. Pin modelpin-spec: if you need to defer.


The false-positive rate is bounded — and now published by severity

The metric this project is named for is bounded for the first time on surfaces where a false alarm was actually possible. Every bound is one-sided 95%, and every one reads worse over distinct scenarios than over trials:

what it bounds over trials over distinct scenarios
CI-failing channels — can turn your build red 0/9 → 28.3% 6 shapes, 0/6 → 39.3%
advisory channels — annotate, never fail a build alone 0/30 → 9.5% 3 shapes, 0/3 → 63.2%
pooled — not the number to quote 0/39 → 7.4% 9 shapes, 0/9 → 28.3%
tool trajectory, own corpus — 1 false alarm 1/26 → 17.0% 24 of the 26 are one scenario
format/assertion, own corpus — 1 false alarm 1/30 → 14.9% 7 shapes, 1/7 → 52.1%

[M] One pooled rate was covering two verdicts whose consequences are not comparable: 30 of the run of record's 39 scored trials could only ever have fired on the advisory argument gate, which can never exit 1. So 77% of the denominator behind "if Modelpin says it broke, it broke" was a channel a user's CI never sees. The headline now leads with the CI-failing bound (ADR-0042). No verdict, exit code, threshold or pooled number moved.

The format/assertion channel has a bound for the first time in either direction, and it is not zero — 312 same-model trials on examples/fp-suite-v3, two OpenAI models each judged by the other, both anchors quiet. The flagged trial is published as a false positive with its traces.

Added

  • A scenario can pin its own tool-call match mode. "match": "strict" | "unordered" | "subset" | "superset" overrides the run's --match for that scenario alone. [M] On a same-model, same-prompt null, a scenario whose prompt calls its second tool optional had the model act on 4 of 5 baseline samples and 0 of 5 candidate samples, and Modelpin published regression at confidence 0.952 and exit 1 — a red build for a model using discretion the prompt handed it. A global subset default was rejected: [M] it would silence the tool channel on 7 of the 10 tool-channel detection rows in our recall arm. Adding "match" does not invalidate a baseline you already paid to record.
  • The semantic channel compares each candidate run to every baseline run, closing a class of real regression it had been hiding.

Fixed

Five ways the tool could report something it had not measured — or discard something you had written — are closed. Three ended in a confident verdict; two spent your API key first.


Full detail, including what these bounds do not say: CHANGELOG.md and docs/fp-measurement.md.