Changelog
From CHANGELOG.md at modelpin 0.5.7.
0.5.7
Released 26 Nov 2026.
Changed
modelpin watchnow reports that Claude Opus 4.5 is retiring. Anthropic deprecatedclaude-opus-4-5-20251101on 23 November 2026, with 22 January 2027 as its tentative retirement date andclaude-opus-5-5as the recommended replacement. The retirement includes the undatedclaude-opus-4-5. Vertex AI gives the same shutdown date for Claude Opus 4.5 on Google Cloud; Amazon Bedrock's date was not checked. 0.5.6 and earlier list the model as active, so theirwatchshows it as active and does not flag it.modelpin initnow also prints the retirement date when it configures either id.Five Claude models are added, all active:
claude-opus-5-5,claude-haiku-5-5,claude-fable-5-2,claude-mythos-5-1andclaude-mythos-5-2, from Anthropic's model status table.watchused to report them as unknown.What was re-read on 26 November 2026:
- Anthropic's deprecations page and models overview. The status and dates of the registry's
other Claude entries still match the page's model status table. The page no longer names a
replacement for
claude-mythos-preview; the registry keepsclaude-mythos-5, which the page named on 17 September 2026, and that entry's note now says so. The other Claude entries keep theirfetched_atdates. - Vertex AI's partner-models page.
- OpenAI's deprecations page. It lists no model shutdown announced since the 22 November re-read.
The registry's Gemini entries were not re-read in full for this release and keep their earlier
fetched_atdates. The registry now has 100 entries.- Anthropic's deprecations page and models overview. The status and dates of the registry's
other Claude entries still match the page's model status table. The page no longer names a
replacement for
0.5.6
Released 25 Nov 2026.
Fixed
modelpin initno longer sets you up with models that are about to stop answering.- OpenAI:
initset up OpenAI apps withgpt-4o-minias the placeholder model andgpt-4.1-mini(orgpt-4o-mini) as the semantic judge. OpenAI shuts both down on 14 January 2027. Its models endpoint lists that date for the plain names and for their dated snapshots. - Claude: a Claude setup on
claude-haiku-4-5gotclaude-sonnet-4-5as its judge. Anthropic retires that model on 30 November 2026 (its tentative date). - What
initwrites now:- OpenAI:
gpt-6-lunaas the placeholder (the replacement OpenAI names forgpt-4o-mini), andgpt-5.6-terraas the judge, orgpt-5.6-lunawhen your app is ongpt-5.6-terra.gpt-6-lunais never the default judge: OpenAI names it as the replacement for every model it shuts down on 14 January, so it is likely to be the candidate in the checks those apps run next, and a judge should not be one of the two sides it compares. - Claude:
claude-sonnet-5-5as the fallback judge. - OpenRouter: the same OpenAI models.
- Google, Groq, Together and Cerebras: unchanged. The Google judge,
gemini-3.5-flash, is deprecated: Google is not shutting it down, but its requests are answered bygemini-3.6-flash, somodelpin watchflags a new Google config. It stays until a replacement judge has been checked live.
- OpenAI:
- A config written by an earlier
initkeeps its old models. If it namesgpt-4.1-mini,gpt-4o-miniorclaude-sonnet-4-5(asjudge_model:or undermodels:), change it before those dates;modelpin watchflags these. On OpenRouter (openai/gpt-4.1-mini,openai/gpt-4o-mini) it cannot, because it reports OpenRouter ids as unknown. - Calibration: the semantic threshold was calibrated with
gpt-4o-minias the judge, at temperature 0, and the run of record's false-alarm measurements were judged bygpt-4o-miniandgpt-4.1-mini. The new default judges have been through neither. They also run at the model's default sampling:gpt-5.6-terraandgpt-5.6-lunaare reasoning models andclaude-sonnet-5-5accepts no temperature, so the judge does not send themtemperature: 0.
- OpenAI:
initno longer picks your app's own model as its judge when your code pins an OpenAI dated snapshot. For example, it judged an app ongpt-4.1-mini-2025-04-14withgpt-4.1-mini, which is the same model. The notecheckprints when the judge is one of the two models being compared now catches that case too.initnow says when the model it configured is retiring. It used to print "Configured claude-sonnet-4-5 ..." and nothing about the date, though a baseline can only be recorded while the model still answers. It now prints the shutdown date, the days left and the replacement the vendor names, read from the same registry asmodelpin watch, or says the model is already shut down.modelpin watchis now one of the next stepsinitlists.
Changed
- The GitHub Action's README and
examples/github-workflow.ymlusegpt-6-luna, notgpt-4.1-mini, as the example model to test.examples/voicerag-suite/modelpin.yamlkeeps itsgpt-4o-minijudge, because the published VoiceRAG run used it, and now says that model shuts down on 14 January 2027.
0.5.5
Released 23 Nov 2026.
Fixed
- Claude Sonnet 4.5, Haiku 4.5 and the other Claude models up to Opus 4.6 can be checked again
with today's
anthropicSDK.anthropic2.x (measured on 2.12.0) sends API version 2026-10-21, on which the API rejectstemperatureandtop_pon every model. Modelpin still sent a scenario'stemperatureto those models, so every scenario that set one came back "could not replay": live on 23 November,claude-sonnet-4-5answeredtemperature: 0with a 400, "temperature: Extra inputs are not permitted". Modelpin now reads the API version the SDK sends and, from 2026-10-21 on, sends no sampling parameters to any Claude model; the Claude judge does the same. Withanthropic1.x nothing changes. A Claude baseline recorded throughanthropic1.x ran at the scenario's temperature; re-record it so both sides run at the same sampling. - Tool scenarios replay on
gpt-6.1-terra, the model OpenAI names asgpt-5-mini's replacement. Like the gpt-5.6 models, it accepts function tools on Chat Completions only withreasoning_effort: none, which Modelpin now sends (one 2-run live probe on 23 November; its record was not kept).gpt-6.1-solstill takes no tools on Chat Completions at any effort (it rejectsnone), so tool scenarios against it come back "could not replay" until Modelpin supports the Responses API.
0.5.4
Released 22 Nov 2026.
Changed
The registry was re-read against the vendors' deprecation pages on 22 November 2026.
modelpin watchnow reports:gpt-5,gpt-5-pro,o3ando3-pro(shutting down 11 December 2026): OpenAI now namesgpt-6.1-solas the replacement (forgpt-5-proando3-pro, withreasoning.mode: proin the Responses API), sowatchsuggests checking against it rather thangpt-5.6-sol.gpt-5-mininow points togpt-6.1-terraandgpt-5-nanotogpt-6-luna.gpt-6.1-solandgpt-6.1-terraare now in the registry.gemini-omni-1.1-flash: the Gemini API lists 3 December 2026 as its shutdown date and routes its requests togemini-omni-1.2-flashfrom that day. It was listed as active.gemini-3.6-flash: Vertex AI now lists a retirement date of 28 January 2027, replacementgemini-4-hydrogen(the Gemini API announces no date). It was listed with no date.gpt-image-2(an image model): deprecated on 10 November 2026, shutting down on 10 February 2027. The GPT Image retirements now namegpt-image-2.6-sunburst.gemini-3.7-flash: Vertex AI now namesgemini-4-hydrogenas its replacement; the Gemini API still routes it togemini-3.8-flash, whichwatchkeeps suggesting.- New entries:
gemini-4-hydrogen,gemini-omni-1.2-flash,gpt-6.1-sol,gpt-6.1-terra,gpt-image-2.6-sunburst,gpt-image-2.6-flare, andgpt-5.5-cyber-preview(deprecated, shutting down 1 February 2027).
Claude Sonnet 4.5 (30 November 2026) and the Gemini 2.5 Pro and Flash re-routing (1 December 2026) are unchanged on the vendors' pages. 16 entries changed and 7 were added; 17 other entries were re-read and still match, so their
fetched_atmoved to 2026-11-22. The other 55 keep their earlier dates.
0.5.3
Released 5 Nov 2026.
Changed
A new tagline: "Pin the behavior, not the model." On PyPI it reads "For teams shipping LLM apps: before you switch models, replay your app's real requests on the new one and see what actually changed." It replaces the old "Dependabot" tagline on PyPI, in
modelpin --helpand in the README, and two published reports now call Modelpin "a model-migration check" (their results are unchanged). Modelpin does not open upgrade pull requests, and another tool already uses the old phrase. The package keywords dropdependabotand addmodel-migrationandmodel-deprecation.The registry was re-read against the vendors' deprecation pages on 5 November 2026.
modelpin watchnow reports:gpt-4o-2024-08-06,gpt-4o-2024-11-20,gpt-4o-mini-2024-07-18,gpt-4.1-2025-04-14andgpt-4.1-mini-2025-04-14(and thegpt-4o,gpt-4o-mini,gpt-4.1,gpt-4.1-minialiases): deprecated on 14 October 2026, removed from the OpenAI API on 14 January 2027, successorgpt-6-luna. They were listed as active.claude-sonnet-4-5-20250929(aliasclaude-sonnet-4-5): deprecated on 30 September 2026, retiring on 30 November 2026 on the Claude API and on Vertex AI, successorclaude-sonnet-5-5, which is now in the registry. It was listed as active.gemini-3.7-flashandgemini-3.5-flash: Modelpin now marks both deprecated. The Gemini API already routes their requests togemini-3.8-flashandgemini-3.6-flashrespectively (the page says the endpoints are not shutting down).gemini-3.7-flashretires on Vertex AI on 28 January 2027.gemini-omni-flash-preview: shut down on 22 October 2026, not 30 September.claude-sonnet-4-20250514(retired): the successor Anthropic names is nowclaude-sonnet-5-5.
52 other entries were re-read on those pages and still match; their
fetched_atmoved to 2026-11-05. The 20 entries read from a model page, which was not re-read, andgpt-5.6-cyber, which today's deprecations page no longer names, keep their earlier dates.
Fixed
- The report's "typical run" example now shows typical behavior. Each side's example was
the most common exact run, wording included, so runs that did the same thing in different
words tied, and the first run won even when it was the one run that behaved differently. In
the live Gemini sample, the old model's example for
optional_availability_before_bookingshowed the one run in five that calledcheck_availability. Examples are now chosen by what the run did (which tools, in what order, refused or not), then by exact arguments and wording; the new model's example prefers a new tool path or refusal first. Examples are illustration chosen after the verdict; no verdict or exit code changes.
Security
- A
--configpath that is not a file, or amodelpin.yamlover 1 MiB, is refused before it is read or parsed (#24). The Action's README now saysmodelpin-specis trusted input: it goes straight topip installwith the job's secrets in the environment, so it must never come from pull-request titles, branch names or other user-controlled values.
Documentation
- The README states the build-failing false-alarm bound, with the denominator of each figure, in its limits section: 0 in 9 exposed trials, 28.3% over trials or 39.3% over the 6 distinct scenarios, none of them on tool calls.
- A "Related tools" section lists eval platforms and eight 2026 model-migration and statistical A/B tools, each described from its own PyPI or npm page.
0.5.2
Released 5 Nov 2026.
The first release on PyPI since 0.5.0: it also carries everything listed under 0.5.1.
Fixed
modelpin watchno longer reports as retired four Gemini models that Google's pages still list as available. The registry carried Vertex AI's 20 October 2026 date forgemini-2.5-pro,gemini-2.5-flashandgemini-2.5-flash-lite, and, forgemini-2.5-flash-image, the 2 October 2026 date it read from the Gemini API on 17 September. Once those dates passed (forgemini-2.5-flash-image, from the day 0.5.0 shipped),watchcalled all four retired. Read again on 5 November 2026:gemini-2.5-proandgemini-2.5-flash: the Gemini API gives 1 December 2026 as the shutdown date, after which requests to them route togemini-3.8-flashandgemini-3.5-flash-literespectively; access is already limited to earlier users.watchnow names those successors.gemini-2.5-flash-lite: the Gemini API says it "is not deprecated and remains available through the API until further notice". Vertex AI still lists the passed 20 October date, sowatchreports it deprecated with no shutdown date, and namesgemini-3.8-flash, the first successor Vertex lists.gemini-2.5-flash-image: both Google pages now give 15 March 2027, successorgemini-3.1-flash-lite-image.
Where two Google surfaces disagree, the registry still carries the earlier date, but no longer once that date has passed while the other surface still lists the model as available.
0.5.1
Released 4 Oct 2026.
Tagged and released on GitHub, but never published to PyPI: the publish job waited for the
required pypi approval, none was given, and GitHub failed it after 30 days. These changes
first reach PyPI in 0.5.2.
Fixed
- Tool scenarios should now replay on
gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna,gpt-6-solandgpt-6-luna. According to OpenAI's and Azure OpenAI's documentation, Chat Completions accepts tools from these models only withreasoning_effort: noneand rejects the request otherwise (for gpt-5.6, even when no effort is sent). So every tool scenario in a check against the successor OpenAI names for its 23 October 2026 retirements would come back "could not replay"; this has not yet been confirmed by a live call. Modelpin now sendsnonewhen a scenario sends tools to one of them and no effort was chosen, and the reports say so. With noreasoning_effortset, no other request changes, apart from thegpt-6*change below. gpt-6*ids are now treated as reasoning models: they getmax_completion_tokensand notemperature.
Added
reasoning_effortfor OpenAI reasoning models, inmodelpin.yamlor as--reasoning-effortonbaselineandcheck, so a check measures the effort you will ship. It is sent only to reasoning models (gpt-5.x, gpt-6, o-series); a scenario can set its own.last-report.md(the pull-request comment) andmigration-report.mdstate the effort each side was sent, read from the recorded runs.modelpin reportdoes not read the setting yet. Choosing an effort other thannonefor a tool scenario on one of the models above stops that scenario before any call, because Chat Completions would reject it. The Responses API is not supported yet.A migration report for the person who decides on the switch. Whenever
modelpin checkwriteslast-report.md, it now also writes.modelpin/migration-report.md: the same run in plain English, with a one-line bottom line, a one-paragraph verdict, each changed scenario with what it means for your app and a before and after example, what the check did not cover (untested behavior, changes that show up in only some runs, scenarios that could not be measured or compared), and the run's date, both models, runs per scenario, judge calls and tokens. It is a renderer over the verdictscheckalready computes and changes no verdict or exit code.
0.5.0
Released 4 Oct 2026.
Added
modelpin watch: which of your models are retiring, when, and what to check next. It crosses the models inmodelpin.yaml(itsmodels:andjudge_model; with--scan, the ids in your source; recorded baselines are listed, never alarmed on) with a registry shipped inside the package, prints days remaining, the successor the vendor names, and the exactmodelpin check --from ... --to ...line, and exits1inside a notice window or already retired,3for a model the registry does not know (unknown is not a clearance),0when all clear,4when nothing is declared or the config or registry cannot be read.--jsonfor scripts;--registry <path>to use a differentdata/models.json. It never touches the network.- The model registry now carries real dates, and every entry carries its source. 87
sourced entries (55 OpenAI, 16 Anthropic, 16 Google), a transcription of the vendor sections
named per entry rather than a complete catalogue, each naming the page it was read from and
the day it was read;
Modelrefuses an entry without both, so an unsourced claim cannot enter from the shipped seed or from a--registryfile. Vendor aliases are recorded, sogpt-4finds thegpt-4-0613row andgpt-4o-miniits dated snapshot; image and audio models carry amodalityso no chat check is suggested for them. The old seed's two OpenAI ids,gpt-5.2andgpt-5.5(its note declared every OpenAI and Google id and every date UNVERIFIED), appeared on none of the vendor lifecycle pages fetched on 2026-09-17 and were removed as entries; the dated snapshots behind those aliases were added from their model pages.scripts/registry_check.pyvalidates the JSON and regenerates the Python mirror. The OpenAI entries were re-read on 2026-10-04: the 2026-10-23 shutdowns are unchanged, GPT-5.1 and GPT-5.4-Nano are now deprecated with a 2027-04-01 shutdown, the GPT Image rows name their new replacements, andgpt-5.4-cyberno longer names a successor, because the page no longer does.
0.4.2
Released 1 Oct 2026.
Two changes. Python 3.11 is now supported. And a fix that affects you only if you set
match: subset or match: superset: the default strict mode and unordered are not on
that code path and are unchanged.
Added
- Python 3.11 is supported.
requires-pythonis now>=3.11, so Modelpin installs on the interpreter many long-tail projects and CI images are still pinned to. The only 3.12-only call in the package wasos.path.isjunction, used bymodelpin scanto refuse to follow an NTFS junction out of the repository; below 3.12 the detector reads the reparse tag the way CPython's ownntpath.isjunctionreads it, and a test asserts the two agree wherever both exist. CI runs the full suite on 3.11, 3.12 and 3.13. The GitHub Action'spython-versiondefault is unchanged at3.12: a default, not a floor.
Fixed
A directional match mode could miss a real regression when the baseline was noisy. Under
subset/superset, both sides were scored against a single representative baseline run, and the baseline's disagreements with itself were subtracted from the candidate's. So a baseline that varied run to run could hide a genuine change. Measured, with the candidate calling a toolsubsetforbids on 10 of 10 runs: a quiet baseline reportedregressionand exit 1, a noisy one reportedunchangedand exit 0 — same candidate, same forbidden call.Each side is now compared against the baseline's whole repertoire instead: everything it was ever seen to do (
subset), or what it did on every run that called a tool (superset). Each baseline run is scored against the other runs only, so neither side is graded against a reference it helped build. Priced against the previous engine over every committed corpus: on the held-out sets (3,196 same-model and 150 detection trials per mode), no new false alarms, one removed, and detection unchanged. No calibrated threshold moved.Tool match/Arg matchprint—when the mode required nothing. Undersuperset, a baseline that shares no call across its runs requires nothing of the candidate, so no run can fail the check. 0.4.1 still printed a number there, scored against a single baseline run — sometimes1.00, which reads as "identical". It now prints—, the same as any other unmeasured signal, and the field isnullin the JSON outputs.
0.4.1
Released 16 Sep 2026.
Added
python -m modelpinruns the CLI. The same commands, with nothing required onPATH— for a venv you have not activated, a container that calls the interpreter directly, or a Windows policy that blocks the generatedmodelpin.exe. It previously answeredNo module named modelpin.__main__, which reads like a broken install.- A machine-readable run record. Every
modelpin checkwrites.modelpin/runs/check-<from>-to-<to>-<time>.jsonbeside its archived report: the exit code, every verdict with its signals and explanation, and every candidate run it recorded (prompts excluded). Scripts no longer need to parse Markdown, and a reviewer can read every run behind a verdict. - Progress while a live run works: one line per scenario, so a long
baselineorcheckno longer looks hung. modelpin draft <file>drafts scenarios from one file of your app, using your configured model (one call). Drafts go toscenarios/.drafts/, whichbaselineandcheckignore. The system prompt and tools are kept only if they appear in the file; user messages, canned tool results and suggested assertions are marked as invented, and suggestions never become live assertions. Key-shaped strings are redacted before the file is sent.
Fixed
Found by walking the documented first-run path — a freshly built wheel in a clean environment,
and one live modelpin draft on a real application file:
modelpin draftdropped the system prompt when the file spread it over several string fragments. Python implicit concatenation and+-joined strings put quote characters and\nescapes between the words the model hands back, so the "is this actually in the file?" check — which compared raw text — reported "the model's system prompt did not appear in the file word for word" and left out the single most important part of a scenario. Triple-quoted blocks, JS template literals and YAML block scalars already matched, and still do. Quoting no longer counts; every word must still be present, in order, in the file, so a prompt the model invented is still refused.modelpin initrecommended a command that could not run. Afterpip install modelpin(without the[providers]extra) it printed "Credentials for google are already set" and "modelpin baseline" as the next step — andbaselinethen died with "The Google GenAI SDK is not installed", exit 4. Everyinitthat namesmodelpin baselinenow names a missing SDK first, including a re-run in a repo whosemodelpin.yamlalready existed — the case where someone clones a configured repo onto a machine without the SDK.- The Google adapter pointed at a different install command (
pip install google-genai) than the OpenAI and Anthropic adapters and the README. All three now saypip install "modelpin[providers]", double-quoted so the printed line can be pasted intocmd.exeas well as PowerShell, bash and zsh.
Found by a live validation campaign on Gemini (Vertex AI) — 972 same-model checks and six real model upgrades, written up in docs/live-validation.md:
A decline was flagged on its phrasing. One Gemini version said "I do not have the ability to browse live URLs" and the next "I cannot access external URLs"; only the second matched a refusal marker, so
checkfailed the build onrefusal rate 0% -> 100%over identical behavior, twice. The markers now cover both, priced first on 3,524 stored baseline/candidate pairs with 0 gate results changed.A prompt Gemini's safety filter blocks is a refusal, not an error.
gemini-3.8-flashreturned no candidates (block_reason: SAFETY) for an unsafe prompt in a public suite, and the wholebaselineexited 4.baselinekeeps every scenario it could record. One scenario the provider rejects is named and skipped; the rest are saved and the command exits 3. Recording nothing at all still exits 4.Archived reports no longer vanish on Windows in deep folders. The archive name carries both model ids; past the Windows path limit it now falls back to a short name instead of failing.
Examples beside a verdict say when a run stopped early (the tool-call limit, the token limit, the content filter).
Changed
- Live runs are about 4x faster. A scenario's runs are sent to the provider together (up to
5 at a time), and separate runs are judged together.
[M]12 scenarios ongemini-2.5-flashvs itself, judgegemini-3.5-flash, one run each: baseline 170 s → 43 s, check 208 s → 62 s. The runs are independent samples by design and each run asks the judge exactly the same questions, so no verdict changes.
0.4.0
Released 15 Sep 2026.
This release is about the first hour a new user spends with Modelpin: a config that works on the first try, a verdict that shows its evidence, a CI build that does not go red on a fluke, and Claude support.
Changed — how a build fails
- A regression must reproduce before
modelpin checkexits 1. When a scenario looks like a regression, Modelpin replays the candidate again and diffs the fresh runs on their own against the same baseline. The build fails only if the same kind of change (tool calls, refusals, or meaning) shows up again. A change that does not reproduce is reported aschanged_minor, with the first finding in full; one whose second sample recorded nothing exits 3.[M]On the one tool-channel false alarm this project has recorded (MP-220), the fresh-sample check withholds the alarm against all nine other same-model samples from the same run (an in-sample check on the alarm this change was built against, not a rate).[M]Exact enumeration atruns: 5(modelled: one optional call, binomial runs): a same-model alarm on an optional tool call made on half of runs falls from 2.15% to 0.25% per scenario. The cost is recall on borderline changes: a tool call dropping from 80% to 20% of runs is caught 22% of the time instead of 38%; complete changes are caught as before. It does not fix an unusual baseline, which is recorded once and reused. The pre-spend line states the extra calls. Disable with--no-confirm(Action inputconfirm: false). The published false-positive measurements indocs/fp-measurement.mddescribe the engine without this step and are unchanged. - A judge or confirmation call that still fails after retries costs that scenario (exit 3), not the whole run. Before, one failed judge call discarded every paid replay.
Added
- Anthropic (Claude) provider and judge.
providers: [anthropic]withANTHROPIC_API_KEY, or Claude on Vertex AI withANTHROPIC_VERTEX_PROJECT_IDand application-default credentials. Multi-turn tool calls, refusal and stop-reason mapping, SDK retries. Newer Claude models accept only default sampling, so a scenario'stemperature/top_pis sent only to models that accept it.claude-*judge ids route to Anthropic withoutjudge_provider:. The adapter is verified offline against the SDK's real request shapes; no live Claude run has been recorded yet. - Example runs beside every flagged verdict, on the console and in the PR comment: one baseline run and one candidate run, so a reviewer can see what changed.
modelpin initconfigures itself from your repository. It reads the model your code calls and the credentials you have set, and writes a matchingproviders:and ajudge_model:different from your current model. The starter scenario is now a sentiment classifier whose case-sensitive assertion a model can actually meet; the old greeting starter'smust_contain: ["hello"]failed on most runs in a live Gemini check..modelpin/.gitignoreis written the first time the store is created, sogit addpicks up baselines and ignores per-run reports.- New docs: How Modelpin works and Writing scenarios. The README is rewritten as a guide for a first-time user.
Fixed
- Google: a transient
429or5xxno longer ends the run.google-genairetries nothing unless told to;[M]one shared-quota 429 on Vertex killed a wholebaseline. Requests now retry with backoff through the SDK. The SDK's "automatic function calling" warning no longer prints into every run. - Google: a namespaced call to a declared tool (
default_api.request_box) is recorded under its declared name (MP-237). The prefix alone made one tool look like two. - GitHub Action:
providerno longer overridesmodelpin.yaml. It defaulted toopenaiand was always passed, so a Gemini or Claude repo's CI replayed on OpenAI. It now defaults to the config. The sticky comment lookup is paginated, and a comment that cannot be posted no longer fails the job by itself. --confignaming a file that does not exist is an error (exit 4) instead of silently running on defaults.- Live calls work behind a TLS-inspecting corporate proxy on Windows and macOS: Modelpin
trusts the operating system's certificate store (
truststore, now in theprovidersextra). Opt out withMODELPIN_NO_TRUSTSTORE=1. modelpin scan:- a path that does not exist is an error (exit 4), not "No model identifiers found"; a single file can be scanned;
.tsx,.jsx,.mjs,.cjs, Go, Ruby, Java, Kotlin, C#, PHP, Rust and Swift files are read — a Next.js app's model calls were invisible;- minified bundles and lockfiles are skipped, and bare
o1/o3/o4count only in a model context, so minifier variables are no longer reported as models; - ids used as filenames (
gpt-4o-mini.csv) and version wildcards (gemini-3.x) are dropped; - Vertex (
claude-...@20251001), Bedrock (us.anthropic.claude-...), vendor-prefixed and more open-model ids are reported in full; - only
.env.example,.env.sampleand.env.templateare read;.envand.env.localare no longer opened; - the judge in Modelpin's own
modelpin.yamlis not reported as an app dependency.
0.3.1
Released 12 Sep 2026.
Security
A security review of 0.3.0 found six issues. All six are fixed here. One of them — the baseline transcript, below — affects every version this project has released, not only 0.3.0.
If you use the GitHub Action, check how you pin Modelpin. The first item below let a
model's output put a link into the comment our Action posts on your pull request. The fix is in
the Modelpin package, so if you use samarthputhraya/modelpin@v1 and have never set
modelpin-spec, your next run installs 0.3.1 and picks the fix up with no change from you. If
you pinned modelpin-spec to a version or a git ref (modelpin[providers]==0.3.0, for
instance), you must bump it — you will not get the fix otherwise. Comments already posted by
an affected run are not rewritten; delete any you do not trust.
We know of no exploitation, and of no installation of the Action outside this repository. We have no telemetry, so that is an absence of evidence rather than a guarantee.
A model could inject a link, image or HTML into the PR comment the Action posts. The comment escaped only block-level Markdown, and tool names come from the model — which can hallucinate one.
[M]A tool name ofescalate[Build passed - view logs](https://…)rendered as a masked link: a forged CI banner, linking anywhere, posted by our bot into your pull request. Model ids frommodelpin.yaml— which a pull request can edit — reached the same comment unescaped at 29 interpolation sites, including every verdict header, and at 9 more in the published Report. Every untrusted value in both is now escaped, and the tests check the RENDERED page, not the source text. One residual, stated rather than hidden: those tests render CommonMark, which does not linkify a bare URL, while GitHub's GFM does. The escaping targets that too, but it is[A]until confirmed on a real rendered comment.The baseline file our docs tell you to commit stored every prompt, once per run.
[M]A key placed in a 2-scenario baseline's prompt appeared 10 times in the file. Nothing in the comparison reads the prompt transcript, so baselines no longer store it; your prompts stay where you wrote them, in your scenario files. Baselines recorded by 0.3.0 still load.This affects every version before 0.3.1, not just 0.3.0.
[M]save_baselinedumped the full trace —messagesincluded — in every release from 0.1.0 through 0.3.0, andactions/README.mdhas instructedgit add … .modelpin/since 0.1.2.If you have ever committed a
.modelpin/baseline-*.jsonto a public repository, it contains your prompts. Two things to do, in this order:- Rotate any credential that appeared in a prompt. Assume it is public. This is the only remedy that does not depend on rewriting history.
- Re-record with
modelpin baselineand commit. This does not remove the old prompts — a new commit leaves the previous blob reachable in git history, in every existing clone and fork, and through the GitHub API. Purging it needs a history rewrite (git filter-repo) and a force-push, and even then forks and caches may retain it.
A re-recorded baseline still holds the model's output text and the arguments of every tool call, verbatim, by design. The Action README now says exactly what each committed file holds and when not to commit it.
modelpin scancould report files outside the directory it was pointed at, through a Windows directory junction, which needs no privilege to create. Only file paths, line numbers and model ids were shown, on your own terminal; no file content was read into the output and nothing was transmitted. A path can itself be sensitive, which is why this is fixed rather than accepted. Fixed for junctions and symlinks alike; a link that stays inside the repository still works.modelpin scancould appear to hang on a minified JavaScript bundle. The per-line de-dupe was quadratic in matches per line, and a bundle is one enormous line.[M]Measured here before the fix: 4 KB 0.03 s, 8 KB 0.10 s, 16 KB 0.56 s — quadrupling per doubling. It is now linear:[M]the same shape at 96 KB scans in 0.08 s. ([S] 2026-09-09The security review measured a 96 KB file at 105 s on its own machine; that figure is theirs, and is not a before/after pair measured in one environment.) Files over 5 MB are skipped and named, never skipped silently.Error messages missed six common credential shapes. AWS access key ids, GitHub tokens, PEM private keys and Azure storage keys are now redacted. Keys with no distinctive prefix (Azure OpenAI's bare hex keys, for instance) are not recognised; the README says so rather than claiming a failed call "never leaks your key", which it previously did.
The Action referenced two third-party actions by movable tag. Both are now pinned to the exact commit their tags pointed to, so nothing you run changed — it just can no longer change underneath you.
[M] 2026-09-11The first dependency vulnerability scan this project has run found no known vulnerability in the closurepip install "modelpin[providers]"installs — 40 packages on Linux, 41 on Windows, the difference beingcolorama, whichclickandtyperrequire only there — as of that date, against the advisory databases the audit queried then. A CVE published after it changes that answer, which is exactly why CI now runs the same audit on every change, blocking. The same scan did flag two advisories inblack, a dev-only formatter no customer installs; neither applies as this project uses it, and the toolchain bump is tracked separately (MP-245).
Added
modelpin init --agent-examplewrites a runnable agent scenario. The tool-call trajectory diff is the signal this project exists for, and until now the only worked examples of"kind": "agent"lived inexamples/on GitHub — which the wheel deliberately does not ship. A newcomer had to leave the installed package to learn the main feature. The flag scaffolds an annotated two-step refunds agent (lookup_order→issue_refund) with canned tool results, generated by code so the wheel stays code-only.It is behind a flag rather than in the default scaffold, and the reason is your bill:
[M]asinglescenario costs one model call per replay while an agent scenario drives the tool loop up to six, so scaffolding it by default would take a firstmodelpin baselinefrom 5 replays / 5 calls to 10 replays / up to 35 — spent on a fictional shop that measures nothing about your app.modelpin initnames the flag on both its branches, so it is findable without leaving the package.
Changed
modelpin scanseparates models you CALL from models you merely mention, and reads your documentation.[M]On a one-file app beside a freshlymodelpin init-ed config, scan reported six rows and three distinct models — of which a third of the rows, and one whole model, came from comments inside themodelpin.yamlModelpin had just written itself, explaining its own judge-collision rule. The tool was reporting itself as your dependency, on the first command you run.[M]The same config also made scan blind in the other direction:.mdwas not scanned, so a README saying "we use claude-3-5-sonnet as a fallback" produced nothing at all.The headline is now "N distinct model(s) called" and counts only wired-up calls and active configuration. Mentions in YOUR comments and documentation are listed beneath it, labelled and counted separately, because a
# TODO: evaluate gpt-5.5is a real intention worth showing and hiding it would be the same defect facing the other way. (A model appearing only inside Modelpin's own config is dropped outright rather than relabelled — the tool has no business reporting its own scaffold in either table.)[M]The reproduction above goes from 6 rows / 3 distinct to 3 called rows / 1 distinct model called, with the other 2 listed separately as mentions, and the README model that was invisible is now found.[M]Documentation scanning was checked for fabrication on two real repositories before being enabled — 37 documentation files actually scanned (9 in a real app, 28 in a site-packages tree), 14 prose rows, 3 distinct model ids, zero invented: each appears either in the same repo's code or inside a vendor SDK's ownmodel="..."sample..txtstays excluded because scraped logs are where the last batch of fabrications came from.The tool-trajectory gate was put to a new labelled calibration set and left unchanged.
[M] 2026-09-09Both candidate preconditions from ADR-0041 were rejected on it, andmodelpin/diff/is untouched: no threshold, verdict or exit code moves. This is not evidence that the gate is safe and must not be read as any. The set pre-registers its own criterion — a run that flags nothing "does not discriminate the rules and must be reported as a non-result, not as a success" — and this run's null arm flagged nothing, so it is reported as a non-result. That set (examples/calibration/tool/, 35 labelled pairs) is a tuning surface under ADR-0025, so no false-positive rate, detection rate or other result is claimed from it and none is published here; the raw artifacts are committed underreports/tool-calibration/2026-09-09/for anyone who wants to re-derive their own.The tool-channel false-positive rate of record is unchanged at 1 in 26 scored tool-exposed trials, one-sided 95% upper bound 17.0%, measured on the held-out
examples/fp-suite-v2corpus — but only two distinct scenarios contribute any scored trial and 24 of the 26 come from one of them, so per ADR-0042 D3 the constraining figure is 1 in 2 shapes, upper bound 97.5%. It bounds one shape, not tool use in general.
Fixed
A scenario file that is valid JSON but not a valid scenario now says so in Modelpin's own words. The error carried pydantic's internal repr — a dict dump,
input_type=dict, and a link to pydantic's documentation — around the one sentence that actually said what was wrong. It now reads like the malformed-JSON error beside it, reports every problem rather than the first, and still exits4.The CLI reference table stopped printing the form PowerShell shadows. Every runnable block already said
modelpin, but the table — what a reader skims instead of the prose — saidmp init,mp scan,mp check.[M]PowerShell's built-inmpalias (Move-ItemProperty) fails with aParameterBindingExceptioncontaining no characters that connect it to this tool, so a reader who copied from the table had nothing to search for.
0.3.0
Released 8 Sep 2026.
⚠️ Upgrading breaks your existing baselines. Re-run
mp baselineonce.Every baseline recorded before this version will be refused, and your first
mp checkafter upgrading compares nothing and exits3until you re-record.mp baselinenow stores a content fingerprint of each scenario definition beside its traces, andmp checkwill not compare a scenario whose definition has changed since — or whose baseline carries no fingerprint at all, which is every baseline that exists today.mp baseline # once, after upgrading. Then mp check works as before.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 reportedOK 1 scenario(s) unchanged, exit0, over a candidate that had genuinely started refusing; and two unrelated scenarios sharing a filename producedREGRESSION (confidence 0.99), exit1, off nothing but a name collision. Applying it to Modelpin's own tracked dogfood baseline found the defect live. Full rationale below and in ADR-0039.Also breaking, smaller: a setup failure (missing key, bad config, usage error) now exits
4, not1.1means only a real regression. A caller treating any non-zero code as "regression" will now see4where it saw1.
Beyond the two breaking changes: the false-positive rate this project is named for is bounded for the first time on surfaces where a false alarm was actually possible, the semantic channel stops hiding a class of real regression, and five ways the tool could report something it had not measured — or discard something you had written — are closed. Three of those ended in a confident verdict; two of them spent your API key first.
Changed
- BREAKING: a baseline that cannot say which scenario it describes is no longer compared.
mp baselinenow records a content fingerprint of each scenario definition beside its traces, andmp checkrefuses to compare a scenario whose definition has changed since — or whose baseline records no fingerprint at all. Every baseline recorded before this version has none, so your firstmp checkafter upgrading will compare nothing and exit3until you re-runmp baselineonce. That is a real cost, taken deliberately:[M]the store keyed a baseline to a scenario by id alone, and got it wrong in both directions. Rewriting a scenario from"Say hello."to"Delete the production database and confirm."while leaving the baseline gaveOK 1 scenario(s) unchanged, exit0, over a candidate that had genuinely started refusing — the stale store was the only difference between a green tick and aconfidence 1.00regression. And in the other direction, a fresh clone plus your ownscenarios/refund_request.json— a filename the README's own worked example uses — producedREGRESSION ... (confidence 0.99), exit1, off two scenarios sharing nothing but a name. A refused scenario is skipped, never failed: it is not replayed (so you are not charged for it), it is named on the console with both fingerprints, and the published report discloses it asNO USABLE BASELINE. Exit1still means only a real regression.[M]Applying this to Modelpin's own tracked dogfood baseline found the defect live —order_statushad changed meaning five days after that baseline was written. See ADR-0039. - BREAKING (exit codes): a setup failure now exits
4, not1.[M]Every one of the 28 places the CLI reports a configuration, credential or usage problem exited1— the codecheck --helpdocuments as "at least one real regression (the CI gate)" and the GitHub Action publishes as::error::Modelpin detected a behavioral regression. So a contributor who had not yet addedOPENAI_API_KEYto repository secrets received a public annotation on their pull request stating that their model migration had regressed, with no replay run and nothing compared. Exit1now means only what it always claimed to mean.0,1and3are unchanged;4is new. A caller treating any non-zero code as "regression" will now see4where it saw1— it was already reporting missing keys as regressions, but it was doing so because of us. See ADR-0035. - An unknown key in
modelpin.yamlis now an error naming the key and its nearest match.[M]It was silently discarded, soprovider:forproviders:— singular, the most natural slip on this file — loaded as the default provider,openai, at 5 runs. A config written to get a free offline check billed your own key for five paid replays per scenario.
Packaging
- Version bumped to
0.3.0.[M]pyproject.tomlstill read0.2.1— a version already tagged and published — while this release carries a breaking exit-code change. Nothing in the suite compared the two, so the gate stayed green while the repo was un-releasable. A test now fails if the declared version matches an existing tag. modelpin versionnow reads the installed distribution, not a second hardcoded copy.[M]modelpin/__init__.pyheld its own literal, so the bump movedpyproject.tomland leftmodelpin versionprinting0.2.1— the string a bug report quotes. A test now pins the two together.- The sdist ships
actions/.[M]An sdist installed exactly asCONTRIBUTING.mdinstructs failed 3 of its own tests, from two missing directories.actions/— the Action's published output-contract docs — is now grafted..github/deliberately stays out (it is a hidden path, which the sdist invariant forbids); the two repo-hygiene tests that read it now skip outside a checkout.
Added
A scenario can pin its own tool-call match mode.
"match": "strict" | "unordered" | "subset" | "superset"in a scenario file overrides the run's--matchfor that scenario alone; scenarios that declare nothing keep using the flag, so nothing changes for anyone who does not opt in. The run header and the published Report both name every scenario that overrode the flag, so a run that used two modes never publishes one.This exists because
--matchwas global and some prompts make a tool call optional.[M]On a same-model, same-prompt null, a scenario whose system prompt says of its second tool "use it when it would be useful" had the model send the courtesy email on 4 of 5 baseline samples and 0 of 5 candidate samples, and Modelpin publishedregressionat confidence 0.952 and exit1— a red build for a model using discretion the prompt handed it.[M]Undersubsetthat comparison does not fire at all, and[M]a globalsubsetdefault would silence the tool channel on 7 of the 10 tool-channel detection rows in our recall arm (those 7 are still caught by the semantic judge, so no detection loss is measured — over only 4 distinct scenarios, 95% upper bound 52.7%) — so the relation belongs to the scenario that holds it, not to a global default. The engine's thresholds are unchanged andmodelpin/diff/is untouched; the underlying tool-channel false positive remains open — measured on its own corpus at 1 in 26 scored tool-exposed trials, one-sided 95% upper bound 17.0%, which is a different run from the false-positive rate of record below and is never pooled with it — and its published bound is unmoved.Adding
"match"does not invalidate a baseline you already paid to record. The scenario fingerprint introduced in this version deliberately excludes it: the field changes how two recordings are compared and cannot change a byte sent to a provider, so a baseline recorded before the declaration still describes the scenario exactly.The false-positive rate of record is bounded for the first time.
[M]710 same-model comparisons at the shipped defaults on 2026-09-07: 0 false alarms in 39 scored trials (one-sided 95% upper bound 7.4%), and 0 in the 710 that reached a verdict (upper bound 0.4%, reported for completeness — 671 of those 710 could not have fired at any threshold) — on two OpenAI models plus a 12-trial single-repeat sanity arm on Groq that constrains nothing, with the semantic judge on. The bound is carried by 9 of 27 scenario shapes, and 30 of its 39 trials could only have fired on the argument gate, which is advisory and can never fail a build on its own; on this run the tool-call and assertion channels saw no exposure at all — both have since been measured on their own corpora, and each produced one false alarm; see the two entries below. Detection on the same surfaces: 45 of 46 perturbed replays flagged (21 of 22 distinct perturbations on every surface). Until this release the document the README pointed to for this number read "0 false alarms in 0 scored trials": every set that had ever been run ran at temperature 0, where every channel returnedp = 1.00and no trial could fire (the sevenarg_*scenarios at 0.7 had existed since MP-54 but had never been run under the shipped engine). Every trial and its traces are committed underreports/fp-runs-adr0040/2026-09-07/(the original replays are kept beside them inreports/fp-runs/2026-09-07/), and a test regenerates the published block from them. Bound, not zero; seedocs/fp-measurement.mdfor what it does not say — including that 30 of the 39 scored trials sat on the advisory argument gate, that the detection increase is partly in-sample, and that the new semantic rule's safety is conditional on judge leniency and not yet priced.The published false-positive rate is split by severity, and the hard one is read first (ADR-0042).
[M]One pooled rate covered two verdicts whose consequences are not comparable:scripts/fp_measurement.pycounts an advisorychanged_minoron a same-model null exactly like a red build, and 30 of the run of record's 39 scored trials could only ever have fired on the advisory argument gate, which can never exit1. So 77% of the denominator behind the number quoted for "if Modelpin says it broke, it broke" was a channel a user's CI never sees. The page now leads with 0 in 9 hard-exposed trials, upper bound 28.3% — 6 distinct scenarios, so 39.3% — beside the advisory 0 in 30 (9.5%; 3 shapes, 63.2%) and the unchanged pooled 0 in 39 (7.4%).[M]The hard bound's 9 trials are 8 semantic + 1 refusal + 0 tool + 0 assertion: it constrains the tool trajectory not at all, and the split makes that visible in the headline. The classifier is unchanged and no verdict, exit code or pooled number moves — reclassifyingchanged_minoras clean would hand every future channel a way out of the north-star metric. The split is re-derived offline from the committed artifacts, never recorded by the engine (modelpin/diff/is frozen), andtests/test_fp_severity.pypins each channel's severity behaviourally. The two denominators overlap and are never summed.The format/assertion channel has a false-positive bound for the first time, in either direction — and it is not zero.
[M]1 false alarm in 30 scored assertion-exposed trials = 3.3%, one-sided 95% upper bound 14.9%; over 7 distinct scenarios that is1/7, upper bound 52.1%, and per ADR-0042 the shape figure is the one that constrains. 312 same-model trials onexamples/fp-suite-v3, two OpenAI models each judged by the other, both anchors quiet; artifacts underreports/channel-exposure/2026-09-08/, reproducible offline withpython scripts/channel_exposure.py reports/channel-exposure/2026-09-08/v3[abcd]-*.jsonl. The flagged trial is published as a false positive with its traces (standup_digest_keeps_the_ids#6,changed_minor @ 0.996) — it is advisory and could not have failed a build, which is a fact about severity, not a reason to discount it.[M]The run is 312 trials, not the 400 pre-registered: one of four surfaces returned a provider error on 88 of its 100 trials. Both models and both judges are OpenAI; no scenario in this corpus declarestools, so it says nothing about the tool trajectory.The semantic channel compares each candidate run to every baseline run, not to one arbitrary modal baseline run (ADR-0040).
[M]It fixes two measured false negatives — a candidate that answered differently on 5 of 5 runs readunchangedbecause the judge also called 2–4 of the 5 baseline runs non-equivalent to an arbitrarily chosen reference — and detection rises 43/46 → 45/46 with 0 new false alarms across 710 same-model trials. It is not free:[M]judge calls per run rise about 4.4×, the scored denominator of the published bound halves (82 → 39), and on an exact enumeration of a modelled null the rule is 1.6×–9.6× more prone to a false alarm at the shippedruns: 5, with its measured safety conditional on the judge being lenient — ADR-0040's fourth falsifier is open.examples/fp-suite/: twelve held-out scenarios modelled on long-tail apps at the API's default temperature (1.0) — the first scenario set in the repo on which a same-model false alarm can actually occur. Rolescore; reviewed before its first run; never edited after.scripts/fp_measurement.pycan be cut and resumed, and re-scored without a key.--outwrites one JSON line per trial (verdict, repertoires, traces) as it completes;--resumecontinues from the trial a rate limit stopped on and refuses an artifact recorded under another configuration;--rescorerebuilds both arms offline;--workersruns trials concurrently with an identical report at any count;--onlyrestricts a smoke run. Nineteen more perturbations (sevenarg_*, twelvefp-suite).scripts/fp_aggregate.pypools artifacts into the published tables, conditional and unconditional rates each with their bound.mp scannow sees Llama, Qwen, Mistral, DeepSeek andgpt-ossids, and reads.env.example.[M]It was OpenAI/Anthropic/Google-shaped: a repo namingllama-3.3-70b-versatile,qwen/qwen3-32bandopenai/gpt-oss-20bscanned toNo model identifiers found., exit 0 — while appending onegpt-4o-miniline to that same file produced a populated table.scanis the first command of the README's "real flow, on your own app", and cross-vendor coverage is the point of the tool, so a Groq or Together shop met a confident empty result.[M]The new patterns were measured over the same 6,228 third-party files used to narrow the o-series: the only false positive wasdeepseek-ai, a HuggingFace org rather than a model, and the shipped pattern enumerates DeepSeek's real families to exclude it.
Fixed
mp scanno longer invents model ids out of URLs and asset filenames.[M]On a real repo that does not call an LLM at all, 28 of 28 hits were fabricated — a percent-encoded news slug, an article headline, and base64 PNG data — all from URLs inside scraped JSON. The correct answer was zero. Measured across four real repos before shipping: those 28 dropped to 0 with zero true positives lost elsewhere.mp scanno longer reports Modelpin's own.modelpin/store as your dependencies.[M]On a real repo it was 61 of 76 hits — 80% of the table — the recorded traces of a previous run, in the directory the Action docs tell you to commit.- Scenarios in a subdirectory were silently skipped.
[M]scenarios/auth/nested.jsonholding a real refusal regression producedOK 1 scenario(s) unchanged, exit 0 — a green tick over a regression, caused by nothing but putting scenarios in folders. Directories namedresults,__pycache__and anything dot-prefixed are still skipped, so run output kept beside your scenarios is not read as a scenario. - Two scenario files sharing an
idare now rejected, naming both files.[M]One recording was silently overwritten — after both had been replayed and paid for — while the console still reported the full scenario count and the PR comment published**REGRESSIONS (3)**for two distinct regressions, listing one of them twice. - A non-ASCII scenario or model id no longer crashes the CLI on a non-UTF-8 console.
[M]On a stock Windows console it raisedUnicodeEncodeErrorwhile printing the summary and exited1— again publishing "detected a behavioral regression", over byte-identical traces, while the report written moments earlier said**UNCHANGED (1)**. Unencodable characters are now escaped for display only; the artifact keeps its real bytes. - The semantic judge is now checked against BOTH compared models, not just the candidate.
[M]It compared only against--to, so a judge equal to the baseline never triggered the independence note — and that is exactly whatmp initshipped, writinggpt-4o-minias both the app's model and the judge. A new user's firstcheckhad the judge reading its own output as the reference, silently. The scaffolded config now says so at the point of editing. - The coverage disclosure no longer contradicts the verdict printed above it.
[M]In a run whose only finding was a tool-call regression, the footer stated three things that were all false of it: that the tool-trajectory channel was inert, that the scenario "called no tool" (its baseline called one in 5 of 5 runs), and that "no CI-failing channel could see a content change". It fires when a scenario omitstoolswhile its recorded traces carry them. The scenario is still not credited with coverage — that conservatism is deliberate and unchanged — but the disclosure now says what actually happened. - Provider error text is no longer silently truncated.
[M]It was cut at 300 characters and closed with punctuation, so the result read as a complete sentence while the remedy — which providers put at the end — was gone, with nothing saying anything had been removed. Both ends now survive, with a visible[... N chars elided ...]marker between them. - An unwritable baseline store now gives an error, not a traceback and a stray
.tmp.[M]save_baseline's atomic write had no failure path: theOSErrorescaped uncaught and the half-written temp file was left in the directory the docs tell you to commit. - The PR comment no longer says "could not measure" on a run that exits 0.
[M]check --helpbinds that phrase to exit 3, so a PR could get a green check beside a comment whose headline described a different exit code. The refusal to give an affirmative green header is unchanged and correct; the headline now says the narrower true thing — only a refusal could have failed this run — matching the wording the published Report already used. - A model id containing markup or a
|no longer corrupts output.[M]--to 'm2[/]'raisedMarkupError;--to 'm2|evil'added a cell to the published Report's settings table and broke the row.
0.2.1
Released 2 Sep 2026.
Two ways a run could report looks safe to adopt over something it never measured are
closed, and the first error a stranger hits no longer hands them the command they just ran.
A green exit code is still not proof of full coverage. A scenario with no recorded baseline is disclosed everywhere a reviewer looks, and costs the run its affirmative clearance, but it does not by itself fail the build (ADR-0033). A published Report's headline also does not yet qualify itself when scenarios were skipped. Read the coverage disclosure, not the exit code.
Fixed
- User-facing error text is text, not markup.
[M]A user whose install lacked the SDK extra was told to runpip install 'modelpin'— the command they had just run — because rich parsed[providers]as a style tag and ate it. It is the first error such a user hits. The same defect had a quieter half: a message containing anything bracket-shaped was silently rewritten, with no exception, naming something that did not exist. Errors are now escaped once at the root rather than at each call site, where the class had been closed five separate times. modelpin scanreported file paths that do not exist, andmodelpin initmisdescribed the directory you had just named.[M]A folder calledsrc [experimental]rendered assrc— a rich table parses its cells as markup, and those cells are paths discovered in your repo. Any project using bracketed directory names, such as Next.js route folders, saw every affected row corrupted.
Added
The semantic judge runs cross-vendor. It accepted OpenAI judge models only, which left a hole with teeth: cross-vendor is a core promise, and for a suite that declares no
toolsthe judge is the only CI-failing channel that responds to a change in meaning — so a Groq- or Gemini-only user was running an engine that could not catch a wrong-but-confident answer at all. Judges now run on OpenAI, Google/Gemini and the four OpenAI-compatible hosts. A new optionaljudge_provider:key names the host when the model id does not:gpt-*andgemini-*do,qwen/qwen3.8-27bdoes not, and Modelpin will not guess — an OpenRouter id such asopenai/gpt-oss-120bbegins with a different vendor's name, so a prefix parse would spend the wrong key against the wrong host. The judge's false-positive rate has only ever been measured with an OpenAI judge; running everywhere is not the same as being calibrated everywhere, anddocs/fp-measurement.mdnow separates those two claims.A
modelpin checkrun that produces a report also archives it, where the next run cannot delete it. Alongside the unchanged.modelpin/last-report.md, the run writes.modelpin/runs/check-<from>-to-<to>-<UTC>.md, byte-identical to it. Previously one path was overwritten on every run, so no result survived to be cited or diffed. Two runs still leave nothing, because both exit before a report exists: one where the provider rejects every scenario, and one with no baseline. An archive failure is a warning and never costs the stable report. Model ids are slugged in the filename, and a same-second collision gains a-2suffix rather than overwriting.A channel census: both
modelpin checkand the public Modelpin Report now disclose what they could not measure.checkgained it first in this cycle (MP-138) andmodelpin report— the artifact that goes to strangers — did not, so a Report over a suite with notoolsand nojudge_modelstill headlinedNo behavioral change observedwith nothing said about which detectors were switched off.[M]A published Report now carries a## Coveragesection listing the channels that could report a regression, the ones that are advisory-only, the ones that were inert and why, and how many scenarios were compared at a run count where no signal could reach significance. When no channel could have produced a regression on a change in content, the affirmative headline is replaced rather than qualified.
Changed
A scenario with no recorded baseline now reaches the report, and can no longer ride a green tick.
[M]It reached exactly one console note that runs afterlast-report.mdis written, so a scenario the run never compared appeared in zero artifacts while the run exited 0 — including, in the reproduction, a proven regression reported as adoptable. Such scenarios are now named above the verdict buckets in the PR comment, on the console and in the archived copy, counted on the provenance line, and they remove the affirmative "looks safe to adopt" clearance. Deliberately, they do not fail the build.[M]The only remedy,modelpin baseline, replays and re-bills the whole suite and re-pins every reference to thefrommodel's behaviour today, and adding a scenario is the most routine thing a user does — a gate clearable only by overwriting your own reference is worse than no gate. That changes once a baseline can be recorded for just the missing scenarios. Two exit-code corrections ship with it. A run where nothing could be compared used to exit 1 — the code meaning regression — over a run that measured nothing; it now exits 3, per the rule that a run which measured nothing abstains. And that path wrote no artifact at all, so the previous run's report stayed on disk and the Action published a stale verdict under a failing run; it now writes its own. And a run with no usable baseline file exited 1, so the Action annotated the PR with "Modelpin detected a behavioral regression" over a run that never called a model — a false claim about someone's model, posted into their PR. It abstains now. The documented exit-code contract was wrong in all four places it appears:--helpsaid 3 covered "no baseline recorded" (it never did), the README andaction.ymldescribed 3 too broadly, and the Action README omitted 3 entirely. All four are corrected. Also fixed: a scenario id containing rich markup ([/]) crashedmodelpin checkafter the report was written, and crashedmodelpin reportoutright.The channel census now counts a tool the models actually CALLED, not one a scenario merely declared.
[M]Reproduced on byte-identical fixtures: a scenario carrying onetoolsentry that no run on either side ever exercised turnedcould not measure … NOT cleared on contentintono behavioral change … looks safe to adopt, over a baseline of "FRAUD DETECTED: block this transaction" against a candidate of "Looks fine, approve it." The census read the suite and the config; it never read the traces. A declared tool nothing calls sits exactly where refusal already sits — it can only fire if the candidate starts calling tools, so a confident wrong answer never touches it — and the census had always excluded refusal for that reason. Worse, the disclosure's own remedy was the exploit: it told the user to "addtools", and doing so bought the green. That message now names the scenarios whose declared tools went uncalled and points at ajudge_modelinstead. No verdict, confidence or exit code changes — the census governs disclosure only — but the PR-comment headline flips from✅ no behavioral changeto❔ could not measureon such a run, and never the other way: the census requires both a declaration and a recorded call, so it can only ever withhold a clearance the previous version granted. Two details for anyone parsing the output: the phrasedeclare no `tools`in the coverage line becamecalled no tool, and the Report sidecar'scoverage.tools_declaredkey becametools_exercised, joined by a newdeclared_unused_tools.[M]The defect is not hypothetical. On a six-scenario suite run against a real model (openai/gpt-oss-120b), all six scenarios declaredtoolsand only four ever called one — a third of the suite was collecting a clearance it had not earned. (That run is a maintainer dogfood suite and is not in the public repo; the reproduction intests/is.) This closes the declaration-shaped instance, not the whole class. A tool called identically on both sides still clears a run whose answer inverted, because the trajectory channel reads what the model does, not what it says. That residual is pinned by a strictxfailintests/test_census_from_traces.pyrather than left to a tracker.The public suite
modelpin-public-v2is now version3.0.0(sha256:ffd99774f681→sha256:5cba1dc8b691).Assertion.expected_tool_callsandAssertion.output_schemawere removed: they were recorded and never read.expected_tool_callswas proved inert by differential over five trace configurations returning byte-identical verdicts with the field set and with no assertions at all;output_schemahad zero readers and was declared by no scenario in any shipped suite. No scenario's meaning changed and no verdict moves — the suite hash covers the validated model, so deleting a field moves it even when behaviour is identical, and a published artifact whose fingerprint changes without its version changing is an unannounced change. A scenario file still carrying either key is not an error, but Modelpin now names it on every run rather than letting pydantic drop it silently; the same check also catches a typo such asmust_containn, which no version has ever compared. Usemust_contain/must_not_contain, or rely on the tool-trajectory channel, which measures tool use distributionally and always did the workexpected_tool_callsappeared to. The held-out false-positive setexamples/suite/carried the same dead keys and its fingerprint moved with them:sha256:44cbde8e3b74→sha256:3edf6b1ae19a(order_statusis left declaring no assertions). It is unversioned and no published number cites its hash —docs/fp-measurement.mdquotes none — but the fingerprint moved, so it is announced here rather than left to be discovered.The report JSON sidecar gained a top-level
coverageobject alongsidemetaandresults—channels_live,channels_inert,underpowered_scenarios. A consumer pinning the sidecar's exact key set will see one new key.nulland[]mean different things and are not interchangeable:nullmeans no census was taken for that run (a Report rendered by a caller that never measured coverage), while[]means a census was taken and found none.metaalso gainedcensusandunderpowered; both default to absent, so a sidecar written by an earlier version still re-renders.
Fixed
- One scenario a provider rejects no longer deletes the whole run. A hard 400 on a single
scenario aborted every scenario in the run and produced no verdicts and no report — including
when the cause was a model hallucinating a tool name, which is itself the behavior change
Modelpin exists to catch.
checknow skips the scenario, names it with the provider's own message, excludes it from every coverage number, and withholds the clean clearance. A real regression elsewhere still exits 1; otherwise the run exits3(could not measure) rather than reporting a regression it did not find. This is not a retry — a 400 is still never retried. - The GitHub Action's
providerinput advertisedanthropic, whose adapter raisesNotImplementedError. It was also unmarked in the--providerhelp forbaseline,checkandreport, and in the unknown-provider error — five places. Four now render from one source (provider_help());action.ymlcannot call Python, so its string stays hand-written and is pinned to the same list by a test.anthropicis still listed, and now says it is not yet implemented. - The Groq quickstart named a model Groq had retired.
llama-3.3-70b-versatilereturns404 model_not_found; the copy-paste command in the README could not run. Replaced with a currently-available id and a note that Groq rotates its catalogue. The earlier measured result that used it is kept and annotated, not deleted. - The
Homepagelink on the PyPI project page was dead.pyproject.tomlsetHomepage = https://modelpin.dev;[M]nslookup modelpin.devreturns a name with no address, and the value shipped that way in 0.2.0 (verified live onpypi.org/pypi/modelpin/json). PyPI renders[project.urls]as the sidebar link list, so the most-visited Modelpin surface a stranger reaches led with a link to a domain that has never existed. It now points at the repository. A guard intests/test_report_claims.pyallowlists the hosts a published URL may use, so the check that had sat unticked indocs/PUBLISHING.mdsince 2026-06-25 is now executable. (MP-126) - The PR comment no longer leads a partially blind run with a green "no behavioral
change". The header branch tested
len(underpowered) >= len(results), so a run where only some scenarios were compared at a run count that could not reach significance fell through to the green tick — while the bucket label below it flagged those scenarios as unmeasurable and the footer called the model "only partially cleared".[M]Reproduced end to end: a baseline holding 4 recorded runs for two scenarios and 2 for the other two, checked at--runs 4, wrote✅ Modelpin: no behavioral changeas line 1 oflast-report.mdand exited 0 — andaction.ymlposts that file verbatim after an invisible HTML comment, so it is the first line a PR reviewer reads. Such a run now reads❔ Modelpin: partially measured. A real regression, an abstention or a minor change still outranks it: this downgrades a clearance and never a verdict. (The public Report renderer,mp report, was tracked separately as MP-123 and is fixed in this same unreleased cycle — see the coverage entry above. MP-44, the skipped-scenario version of the same headline defect, is still open.) (MP-116) - The scenarios a run could not measure are now named, on both surfaces.
[M]underpoweredwas a list of scenario ids and neither renderer printed them, so a reviewer told "2 of 4 could not have reported a regression" had no way to learn which two short of reading the sidecar JSON — and by construction every other bucket is empty whenever that path is live. The CLI summary and the PR comment now name them. (MP-117) - The persisted report carries the concrete remedy the CLI already gave. The pre-spend
warning says
Use --runs 5;last-report.md— the artifact the Action posts — said merely "re-run with more runs per side" when every scenario was blind, and gave no remedy at all when only some were. Both branches now name the run count, and namemodelpin baselineas well asmodelpin check: the permutation floor depends on both sides, so a remedy naming onlycheckleaves a short baseline blind. A test pins the two surfaces to the same constant so they cannot drift apart again. (MP-117) mp checkdiscloses a baseline whose scenarios hold different numbers of recorded runs. Such a baseline is scored correctly per scenario, but it silently splits a run into a measured half and a structurally blind half, and nothing said so —save_baselineandload_baselineapplied zero uniformity validation in either direction.mp checknow prints the per-scenario counts before it spends, for the scenarios it will actually replay and no others:[M]an unscoped version of this warning fired over a baseline entry whose scenario file had been deleted, and over an entry holding 0 recorded runs, in both cases while every scenario in the run was measured at full power. Reported rather than refused: the engine can use the file, so the gap was in what it said. (MP-116)tool_call_matchis the tool-name signal again, soTool match 0.00no longer renders besideunchanged. 0.2.0 redefined the published field as1 - max(tool_tvd, arg_tvd), folding the argument distance into a column named for tool calls.[M]On a scenario whose tool names are identical on every run but whose free-text argument jitters, the Report publishedTool match 0.00next to✅ unchangedat confidence1.00— a document contradicting itself.[M]Sharper still: a regression caused entirely by refusal, tool names identical throughout, publishedTool match 0.00too, which reads as the tool trajectory having broken. It had not. The argument distance keeps its own published column (Arg match, added in 0.2.0). No verdict, no threshold, and no already-published number changes: the field is informational —tool_regressedreadstool_p/tool_tvddirectly and never this field.[M]All 60 drift-map records were re-scored by replay fromdocs/reports/data/drift_cache_drift-suite.json:args_comparedis false on every one, so the old and the new formula reproduce the publishedtool_call_matchexactly, 60/60 —max()was a genuine no-op there.[M]The other 10 records (reports/modelpin-report-gpt-4.1-vs-gpt-4o-2026-06-24.json) carrymodelpin_version: 0.1.1and the six-fieldDiffSignalsschema that predatestool_arg_match, so their values were already computed as1 - tool_tvd; no trace cache for that pair is tracked, so they cannot be re-scored. Going forward the field can differ, and only ever in one direction: the argument gate runs at all only when the tool-name trajectory is unimodal on each side and identical across them (structural.py::name_trajectory_is_stable), sotool_tvdis exactly0.0whereverArg matchis populated and the new value is exactly1.00wherever the old one was1 - arg_tvd.[M]an FP review priced how often that differs by resampling the committed argument repertoires over 120,000 args-compared comparisons at N=2–6 × 4 match modes: 36,581 move (30.5%), every one toward1.00and none away. That is why this lands before the next Report publication rather than after it, and it is also whyTool matchis a constant1.00in that regime — the two columns are complementary, not redundant. (MP-74)
0.2.0
Released 27 Aug 2026.
Changed (breaking)
--fixturesis now required with--provider fake. The fake provider no longer fabricates a trace when it has no canned one: it raisesMissingCannedTraceand the CLI exits 1 with an error naming the flag. Previously a baremp baseline --provider fakeproduced placeholder traces that were structurally indistinguishable from real ones, so a run could reportunchanged— "safe to adopt" — about behaviour that was never measured. Any scripted offline invocation that omitted--fixtureswill now fail. Pass--fixtures <file>;modelpin init --demowrites one. If you ever ran a fixture-lessbaselineon 0.1.2, delete the stored baseline and re-record. That run wrote placeholder traces to.modelpin/baseline-*.json, and this release does not detect them there — the guard is on the replay path, not the store. A fully correctcheck --fixturesagainst such a baseline reports regressions at confidence 1.00 that did not happen. See ADR-0015.
Fixed
- The README's links, and a published Report's method citation, now resolve for someone who
is not standing in this checkout.
[M]16 of README's 22 links were relative — andpyproject.tomlmakesREADME.mdthe PyPI long description, which PyPI renders on its own domain where a relative path resolves to nothing. The wheel ships nodocs/at all (ADR-0011), so those targets do not exist for an installed user either. All 16 are now absolute. A PyPI description is fixed at upload and cannot be amended without cutting a new version, so this had to land before a release rather than after one; a guard intests/test_report_claims.pynow fails on any relative link inREADME.md. The same defect travelled further than the README: a rendered Modelpin Report cited a bare`docs/fp-measurement.md`in four places, and a Report is posted as a PR comment on someone else's repository. Those are absolute links now, with a second guard that strips complete markdown links before hunting bare paths — the first draft of that guard flagged its own correct link, because a label is followed by a backtick, not a). - The README no longer promises a "zero cost" cross-vendor check that bills your OpenAI key.
README.mdandactions/README.mdboth offered a free Groq key as a zero-cost third vendor.[M]The command printed under that heading loads the defaultmodelpin.yaml, whichmp initscaffolds withjudge_model: gpt-4o-mini; the semantic judge is OpenAI-only, so a reader who exported onlyGROQ_API_KEY— exactly as the surrounding text instructs — goterror: semantic judge ('gpt-4o-mini'): OPENAI_API_KEY is not setand exit 1 before any replay, while a reader whose OpenAI key was still exported was silently billed. Only the replay side is free:checkreads its baseline off disk and replays only the candidate. Both passages now say so and point at removingjudge_modelfor a genuinely free run. The--provider fake"zero cost and no key" claim is unaffected and remains true — that path builds no judge at all.
Changed
The detection arm of
scripts/fp_measurement.pynow publishes a confidence interval, as the false-positive arm already did. The two arms were asymmetric in the direction that flatters detection.[M]fp_summaryprintedFalse-positive rate: {fp}/{scored} = {rate}and a one-sided 95% Clopper-Pearson upper bound;recall_summaryprinted onlyDetection: {d}/{checked} injected perturbations caught— no interval — even thoughREADME.mdanddocs/fp-measurement.mdboth already published the lower bound. The tool understated what the documents conceded, and it is the tool a user runs.[M]The floor is the same helper by complement,1 - upper_bound_95(misses, checked): the run of record, 2 of 3, bounds the true rate at 13.5%; a hypothetical3/3bounds it at only 36.8%.[M]Nothing about the accounting moved — numerator, denominator and both exclusions are unchanged,git difftouches three hunks in that file (two docstrings andrecall_summary), and no tally assertion in the suite was edited. This arm still prints no point percentage:3/3 = 100%would be the withdrawn0/8 = 0%mirrored (ADR-0022). The FP arm does print= {rate}beside its fraction — ADR-0022 kept it, with the bound and the exclusion counts alongside — so the two arms are now symmetric on the interval, not on the point estimate. The bound is over perturbations applied, not over behaviour changes — the denominator includes the case the model resisted, and ADR-0023 forbids this arm asserting a perturbation changed behaviour — and it carries the exchangeability caveat both documents carry: three perturbations chosen one per signal are by construction not exchangeable trials. No interval is printed when nothing was checked,[M]the one shape the document's verbatim quote provably could not see.The false-positive rate now excludes trials that could not have produced a false alarm — and the previously published
0/8result is WITHDRAWN.scripts/fp_measurement.pycounted a scenario as a passed trial even when the engine measured no effect on any channel.[M]diff/stats.py:128-129early-exits atp=1.0when two sides are distributionally identical, so such a trial scoresunchangedregardless of any change to the engine — counting it as clean credits the engine for a test it could not fail. The temperature-0 held-out suite therefore published0/8 = 0%; re-scored (not re-run — no API call was made) the same recorded verdicts give0/0 = n/a, whose 95% upper bound is unbounded. A trial is now excluded iff the engine reportsunchangedat confidence exactly 1.0 — under ADR-0001 that confidence ismin(p), so it holds precisely when nothing could have fired at ALPHA. This is sound by construction: a flagged verdict never carriesunchanged-confidence, so the exclusion can never remove a false positive. Excluded counts are printed beside the rate, never folded into it.[M]The same correction applies to the golden-test row: the 4 "noisy-but-equivalent" pairs intests/test_diff.pyall returnunchangedat confidence 1.0000, so0/4is also0/0. Two further rows in that table have not been re-scored and must not be quoted as an FP rate. The engine did not change —git diffovermodelpin/for this work is comment-only, and no threshold moved. Only the accounting, and the claims resting on it, changed.The published confidence interval was wrong for every non-zero result. The harness printed
1 - alpha**(1/n), which is the Clopper-Pearson upper bound only at k=0.[M]at 1/8 it understated 47.1% as 31.2%; at 4/8 it printed 31.2% — an upper bound below the 50% observed rate. Replaced with an exact bisection bound.MIN_SEMANTIC_DELTA's evidence is restated from three independent conditions to one, and that one is weaker than first published. The held-out re-validation contributed 0 scored trials, and[M]the two calibration runs share their scenarios and perturbations and both record"judge": "gpt-4o-mini", differing only in the candidate model — so the judge, which is what this floor gates, provably did not vary.[M]Of the surviving run's 6 equivalent pairs, 5 returnp = 1.00and could not have fired, so the evidence is 0/1 (95% upper bound 95.0%), not 0/6 at 39.3% — that figure was itself the pre-MP-75 accounting, corrected here. The threshold value is unchanged; only the claimed evidence for it.mp baseline,mp checkandmp reportstate how many replays a run will make, before making them. The pre-spend line wasprovider=… model=… runs=…; it now also carriesN scenario(s) from <dir> -> M replays, >=M paid calls, and+ up to J judge callswhen ajudge_modelis configured. The>=is deliberate: one replay is one adapter call, but akind: agentscenario's replay drives a tool loop of up toMAX_TOOL_TURNScompletions, so replays are a floor on the paid calls of a run that completes, never a ceiling. (A run cut short — a provider error, a skipped scenario — bills less.)mp checkcounts only scenarios that have a baseline, since the rest are skipped rather than replayed.--provider fakeclaims no cost at all — that path replays canned traces and bills nothing. See ADR-0019.Jis the judge axis, and it counts runs, not replays: the semantic judge scores every run on both sides, soJ = <reference runs> + <candidate runs>. Forbaselinethere is no judge; formp reportboth sides come from this run's ownreplay(), so both arerunsandJ = 2 × scenarios × runs. Formp checkthe reference side is whatevermp baselinerecorded, which--runsdoes not bound — a baseline recorded at--runs 20and checked at--runs 5scores 20 reference runs against 5 candidate ones.checktherefore reads the stored run count off disk rather than assuming--runsof them.[M]before this was fixed, that pairing disclosedup to 10 judge callsfor one scenario and then made 24 — reproduce withpytest tests/test_first_run_cost.py -k check_judge_disclosure_bounds. Under-disclosing a paid axis is the same ADR-0019 violation as publishing an exact count, pointed the other way. The bound stays loose on purpose: an output identical to the modal reference skips the judge, so a real run makes fewer calls thanJ, andup tois the honest word for that.mp reportdiscloses a two-sided run as two-sided. It replays--fromand--to, so its line readsN scenario(s) from <dir> x 2 models -> M replaysand its replay and paid-call figures are twice what the same suite costs undermp check— exactly twice when every scenario has a baseline, sincecheckcounts only those.[M]the 14-scenarioexamples/report-suitequeues 140 replays (modelpin report --to B --from A --suite-dir examples/report-suite, 14 ×runs: 5× 2 models). Before this release that line named the suite directory but not its size, so the user sawruns=5with no hint that 140 replays were queued, and learned the scenario count only from the results table — after the calls had been billed. The judge figure is deliberately not doubled: forreportthe semantic judge scores every run on both sides whether or not both were replayed live, so it is bounded by2 × scenarios × runs.mp checkdiscloses that same figure over the same suite only when the stored baseline holds exactlyrunstraces per scenario — otherwise its reference side is the recorded count, per the judge-axis note above. The header also drops its now-redundantsuite=<dir>token, which the disclosure line names.mp initnames the scenario set it adopted. When amodelpin.yamlalready exists,inithonours itsscenarios_dir(0.1.2 behaviour, unchanged) but now also prints how many scenarios that directory holds and where the config is, so an adopted config is visible beforemp baselineacts on it.The detection arm of
scripts/fp_measurement.pyis now a pure, tested function, and it counts provider errors instead of skipping them. (Developer harness:scripts/ships in neither the wheel nor the sdist, so nothing about the installed package changes.) The arm was inline inmain(), which needs a live provider, so no test reached it:[M]at58c87dc, eight of nine mutants applied to that inline arm left the then-302-test suite green — includingdetected += int(caught)->detected += 1, which makes the harness printDetection: 3/3for an engine that flagged nothing, and replacing the entire loop body withcontinue, which makes it print0/0. The accounting now lives inrecall_outcome/recall_tally/recall_report/recall_summaryplus a sharedbuild_row, with 30 tests over them — the same treatment the false-positive arm received in this release.[M]Those original nine cannot be re-run: the extraction deleted every line they mutate. A fresh 39-mutant battery at the new anchors, covering all nine original defect classes, kills 38. The one survivor deletes a source comment (the rationale block abovePERTURBATIONS); comments are not pinned, and the vocabulary it explains is pinned behaviourally instead. Three of those 38 close a hole that was symmetric in the false-positive arm and older than this change: deleting either arm's per-scenarioprintloop, or discarding its lines at the call site, left the whole suite green — the lines' content was covered, their consumption was not. The engine did not change —git diffovermodelpin/for this work is empty, and no calibrated constant moved. Three behaviour changes in the harness itself. A missed perturbation, which was already labelledMISSEDper scenario and already counted in the denominator, is now also counted out in the summary with a note saying a miss is never an exclusion — and saying why: the harness cannot tell a candidate that resisted the injected instruction from an engine that is dead, so it always counts the miss and asserts nothing about whether behaviour changed (ADR-0022, whose closing rationale this corrects; ADR-0023). A run where every perturbed scenario errored, or abstained, now prints a banner saying so instead of a bare0/0. And provider errors, previously printed as they occurred but left out of the accounting, are now counted and published beside the fraction. The arm also stops calling the injected instructions "regressions".[M]1 of the 3 inPERTURBATIONS(decline_pii) returnedunchangedon the run of record; reading that trace by hand, the model still declined and emitted no email — an analysis, not a measurement, since the arm cannot tell resistance from a dead engine. So whether a perturbation is a regression is the thing being measured, not a premise.README.mdalready used this vocabulary; the harness now matches it.docs/fp-measurement.mdpublished a detection number the harness never printed, and it is now corrected. The document stated "Detection: every perturbation that actually changed behavior was caught" and concluded "2/2 real behavior changes were flagged".[M]The harness scored that same run 2/3, before and after the change above: the document's own table lists three injected perturbations and showsdecline_piiasunchanged, whichrecall_outcomemaps to a miss. The third was removed from the denominator by argument — the model resisted the instruction and still declined, so behaviour did not change — which is exactly the exclusion ADR-0023 rejects, and for the reason it gives: a perturbed pair readingunchangedis either an engine that failed to see a real change or a candidate that ignored the instruction, and this arm cannot tell them apart, so an arm permitted to exclude on that basis lets a dead engine post0/0. The document now publishes what the harness prints —2/3, the verbatim summary block including theMISSEDnote, and[M]the 95% one-sided lower bound of 13.5% — with the resistance reading demoted to a labelled correction note beneath it.README.mdhas carried this framing ("2 of 3 injected perturbations were flagged") since the withdrawal above; its interval sentence is corrected here too — it published a 95% lower bound for the withdrawn2/2denominator (22.4% at 2/2, 13.5% at 2/3), offering the excluded reading as a co-equal alternative on the surface most readers meet first.README.mdsends the reader todocs/fp-measurement.mdas the "Full writeup".[M]The same defect appeared twice more in the same document and both are fixed here:## Detection (control)called the injections "three controlled regressions" and attributeddecline_piia "(comply → … semantic change)" — the forbidden assertion, stated as fact, on the one scenario the run shows the model resisted, together with anExpected verdictline naming the channel a reader would loosen to close the gap; and the Phase-0 DoD line read "detection met" with no interval and no mention of the miss. The published interval now carries the command that produces it (1 - upper_bound_95(1, 3)) and the note that Clopper-Pearson treats the three perturbations as exchangeable trials, which by construction they are not. No number the tool computes changed —git diffovermodelpin/andscripts/for this work is empty.[M]Eleven tests tie the document to the function whose output it quotes, pinning the quoted block, the prose headline, the interval, the scenario set, the correction note's existence, the arm's one exclusion, the README's own detection fraction and test count, and a perfect-score tripwire. Two batteries, 30 mutants, run against the final tree: 15 structural ones all red — including a fully self-consistent forgery that edits the table, the fraction, the recomputed interval and the note together — and 15 rewording ones, 6 of which survive and are named below rather than left for a reader to discover.[M]Seven holes found and closed, every one by RUNNING the battery rather than reading the tests — recorded because the pattern is the point: a guard that reads as coverage and provides none is this project's recurring defect, and these guards exhibited it seven times before they stopped. The banned-claim scan split its section positionally, so re-asserting a withdrawn claim below the correction note passed; the ban was one-directional, refusing2/2while allowing the flattering3/3; after both fixes it was still section-scoped, so the same sentence one line above the headline passed; it then stripped every blockquote, so a> **In brief.**pull-quote re-asserted all three withdrawn claims in the most-read position on the page; then it stripped blockquotes adjacent to a withdrawal note too, because a blank line did not end the note; the3/3ban was a bare substring that misfired on ordinary fractions like13/30and was unsatisfiable beside the verbatim guard — a legitimate perfect score could not be published at all, and the cheapest repair would have silently gutted the scan; and finally the replacement pattern for "a miss is a false negative" was written through a shell heredoc that collapsed\binto the backspace control character, so the guard added specifically to catch that claim contained three literal0x08bytes and could never match anything. It passed review, and it passed its own green suite, while asserting nothing at all. The scan is now whitespace-normalised and emphasis-stripped, because[M]the assertion it was written to catch was sitting in the file the whole time — 65 lines below its own correction, invisible to a substring match for two independent reasons: markdown emphasis (*negative*) and a hard line wrap between "is" and "a false". The tripwire is now a state assertion over the document's own tally, so a legitimate perfect score turns exactly one test red: the deliberate review ADR-0023's falsifier calls for. What these tests still cannot do, stated because they read stronger than they are: they do not prove the table matches a run that happened — no artifact of the detection run is committed (MP-83).[M]Six mutants still survive, all of them prose deletions rather than number forgeries: dropping the0/1 — 95% upper bound 95.0%figure or the not-fitted gloss fromREADME.md; removing the exclusion's soundness property, the0 of 8/1 of 6planning figures, or restoring "the conservative floor earns its keep" indocs/fp-measurement.md; and re-asserting a withdrawn claim inside a> **Corrected**note, where quoting it is the point and no guard can distinguish intent. Pinning every sentence of a document from a unit test is the wrong shape — the scope of what is and is not guarded, and why, is recorded in ADR-0024 — so these are disclosed and tracked (MP-85) rather than papered over. What IS pinned is every number, every fraction, and every claim about what the harness measured.[M]The299 tests passingline — 42 short for several releases — is now pinned to the collected count and cannot drift again.
Added
scripts/arg_repertoire.py— measures the observed argument repertoire (distinct tool-call payloads per scenario per model across N runs), the numberREADME-arguments.mdasks for, as a standalone pre-flight probe.scripts/fp_measurement.py::repertoire()already reports distinct payloads per scenario per side, but only inside a paired FP run; this answers the question upstream of it — can this scenario fire on this model at all? It reports raw and key-sorted counts separately, so a raw-vs-canonical gap is visible as key-order jitter.[M]The component that would collapse such a gap in the engine,diff/argkey.py, is on the unmerged MP-04 branch — no gating signal onmainreads tool-call arguments at all.[M]It carries an explicit error column because the first version of this probe reported a clean "0 of 7 vary" against a host whose key had been revoked: every call raised, every list stayed empty, and an empty set has one distinct element. A measurement harness without an error column manufactures its own null result.- The Google adapter can bill Vertex AI instead of an API key. Set
GOOGLE_GENAI_USE_VERTEXAI=true(orGOOGLE_GENAI_USE_ENTERPRISE=true, the SDK's current spelling — both are honoured) andGOOGLE_CLOUD_PROJECT, and Modelpin authenticates with Application Default Credentials — no key. The API-key path is unchanged and remains the default, and ADR-0008 still holds either way: Modelpin reads only what you put in your own environment and never hardcodes, stores or ships a credential.GOOGLE_CLOUD_LOCATIONdefaults toglobal— the SDK's own default, and[M]the only location serving current models: everygemini-3.xid returns 404 on regional endpoints such asus-central1, where only the legacy 2.5 family is available. Set a region only for data residency, which costs you the newer models.[M]This exists because the two doors are not interchangeable for billing. An AI Studio API key bills a prepaid wallet separate from Google Cloud billing: with Cloud credit available, every current model returned429 RESOURCE_EXHAUSTED — "Your prepayment credits are depleted", and a freshly created key in the credited project was refused identically — prepay is a property of the billing account, not the project, so no new key can reach it. The same project on Vertex answered normally and billed the Cloud credit.[M]Vertex also rejects API keys outright ("API keys are not supported by this API. Expected OAuth2 access token"), so this could not be done by swapping a key.[M]The catalogues differ too:gemini-2.5-flashis404 "no longer available to new users"on AI Studio and still served on Vertex. - Tool-call arguments are now compared, not just tool names. Up to and including 0.1.2
the behavioral diff read only the tool-call names, so a candidate that called the right
tool with a catastrophically wrong argument —
issue_refund(amount=49.99)becomingissue_refund(amount=4999.00)— was reported asunchangedat confidence 1.00. Nothing else caught it: with the output text identical, the semantic judge short-circuits and is never invoked, so the tool signal was the only place an argument could register. The new signal is deliberately narrow, because widening a detector is how a tool starts crying wolf. It fires only when the two sides' argument payloads are fully disjoint (no run on one side used a payload any run on the other used), and only when the tool-name trajectory is stable across both sides, both sides recorded arguments on every run, and both used the same--runs. A single odd run is still noise.DiffSignalsgainstool_arg_match, wherenullmeans the argument comparison did not run — which is not the same as1.0. The signal ships ADVISORY. It raises a scenario tochanged_minorand can never reach a build-failingregressionon its own, because its effect-size floorMIN_TOOL_ARG_TVDhas no labelled calibration set behind it — the same cap the semantic judge shipped under until37b63a1calibrated it.[M]Uncapped, the gate failed a build with the same model on both sides: identical tool names, identical output text, no refusal, one optional argument field present on every baseline run and absent on every candidate run returnedregressionat confidence 0.992 at the shippedruns: 5, where 0.1.2 returnedunchangedat 1.0. State the cost plainly: the headline example above no longer fails a build.[M]mp checkexits 0 on an argument-only change (cli.pygatesexit 1onregressionalone), andaction.ymlgates its red X on that exit code — so a 100× refund argument now arrives as a warning a human must read, not as a stopped pipeline.[M]Nothing is withheld:action.ymlposts the PR comment regardless of verdict, and a minor still gets a report header, a MINOR CHANGES section and a "Pin to … until resolved" line.[M]It also moves no published figure, becausescripts/fp_measurement.pyalready scoreschanged_minoras a false positive. The falsifiable condition for promoting it later is in ADR-0029;runsis explicitly not a knob for this, as the cost is non-monotone in N.tool_arg_matchis rendered as an Arg match column in the Report's per-scenario table, where—means the comparison did not run. insufficient_evidenceverdict, and exit code 3. A scenario where at least half of one side's runs recorded no behaviour — no output, no tool call, no refusal — now abstains instead of reportingunchanged. Below that threshold (e.g. 2 of 5) the run still reportsunchanged; the counts are recorded onDiffSignalsbut gate nothing. Previously two identically-degenerate sides scoredunchangedat confidence 1.00, because every p-value was 1.0 and unchanged-confidence ismin(p): the engine's least-evidence case scored as its most confident.mp checkexits 3 when a scenario abstains and nothing regressed — a regression still outranks it and exits 1 — and the report omits "safe to adopt". See ADR-0018.
Fixed
A run that could not have reported a regression no longer says it found none.
[M]On the shipped demo,mp check --runs 2printedOK 4 scenario(s) unchanged, exited 0, and wrote "No behavioral regressions found;demo-model-v2looks safe to adopt" — while the same fixtures at--runs 5find two regressions and a minor. The cause is not a weak signal, it is a structural one: an exact permutation test overC(4,2) = 6relabelings has a hard p-floor of1/6 = 0.167, so at 2 runs/side nothing can reachALPHA = 0.05at any effect size. The old warning said the run had less power; it never said the run was incapable of a conclusion, and the report then asserted the opposite. Now:[M]the pre-spend disclosure states the floor and that the run cannot report a regression (ADR-0019, one level up — disclosing a run size that cannot conclude, without saying so, is the same defect); at 3 runs/side it names the narrower trap, that refusal and format drift still fire while the tool-call and argument signals cannot reachALPHAunderstrict/unordered(floor0.100); and no affirmative clearance renders over a blind comparison — the header drops from ✅ to ❔, theUNCHANGEDbucket loses its green tick, and the footer reads "is NOT cleared". A partially-blind run is reported as partially cleared, naming how many scenarios were measurable.[M]The floors are measured from the shipped permutation functions, not restated as a formula, so they cannot drift from the test they describe — and they are priced on both sides and the match mode, because neither is optional: a baseline recorded at 5 runs and checked at 2 is a 5v2 comparison whose floor is0.048, below the line, and the directional modes (subset/superset) route the tool and argument signals through the one-sided statistic, so they reach significance at N=3 wherestrict/unorderedcannot.[M]Getting either wrong produces the same defect this entry describes, pointing the other way: priced on the candidate alone the tool asserted "this run cannot report a regression, whatever the models do" in an invocation that then reported two of them and exited 1. The README publishes the whole table. Deliberately unchanged:MIN_RUNS, every effect-size floor, and the exit code — an underpowered run still exits 0. Those are sensitivity surfaces (ADR-0016, ADR-0002) and moving one needs its own calibration; this change governs only what the tool claims. It is the same rule ADR-0018 already draws for a run that measured nothing, applied to a run that measured but could not conclude.The argument gate's "cannot spend the FP metric" claim is retracted, and the gate is priced instead.
[M]modelpin/diff/__init__.pysetsverdict = regressiononarg_regressedwith no conjunction withtool_regressed, so it is an independent verdict-raising path: same model both sides, identical tool names on every run, disjoint float jitter returnsregressionat confidence 0.9520 wheremainreturnsunchangedat 1.0.[M]The+0.0056 ppdefence (1.2654% -> 1.2710% over 72,072 relabelings) comes from a null carrying two payloads, and the gate fires only when the two sides are disjoint AND each side is internally concentrated — so that null prices a different signal from the one that ships. Retracted in all four code sites, with the narrower claim that survives put in its place and verified more strongly than the one withdrawn:[M]the two gates are mutually exclusive per pool (0 counterexamples over 191,808 pool pairs x 4 match modes), and the argument channel does not raise the name gate's worst-case per-pool ceiling — exhaustive over every payload multiset, N=3..6 read 0/20, 2/70, 12/252, 44/924 on both channels, with the N=5 argument worst pool reached at repertoire 6-7 rather than 2. A ceiling is not a rate, and conflating the two is how the retracted claim was born.scripts/arg_gate_price.pyprices that cost offline, with no API key.[M]Dealing the committed repertoires' actual runs into two disjoint sides and driving the realdiff_scenariothrough the repo's own ADR-0022 predicate: the worst cell is 4.18% of scored trials (arg_optional_fields,gpt-4.1-mini,--match subset, N=3), with 26 of 48 cells non-zero over a 0.08%-4.18% range, against 0/0 onmainwhere the harness prints *** THIS RUN MEASURED NOTHING ***. Three findings change how the gate should be described.[M]Disjointness is not the firing condition — a fully disjointa,a,a,b,cvsd,d,e,f,gdoes not fire (p=0.0873) and ten pooled distinct payloads give p=1.0, because the permutation test is relabeling-invariant and the gate goes SILENT at maximum jitter.[M]The match modes invert: at N=3 the equivalence modes cannot fire at all whilesubsetreaches 4.18%; by N=5 that reverses.[M]Where the N-curve peaks is an artifact of the estimator — without replacement the peak is N=6, with replacement N=5, on the same 16 runs. Deliberately published with no interval over replicates: those are draws from an assumed population, a Clopper-Pearson bound over them shrinks with compute (3.82% at 1k, 3.27% at 4k), and[M]upper_bound_95raisesOverflowErrorpast n~3,000 — now documented as a guard rail rather than a defect. The binding uncertainty is stated instead: Good-Turing puts 31-44% of the payload mass on values the 16 runs never saw, and truncating that tail moves the rate in both directions.Two guards on the argument gate that CI could not defend.
[M]MIN_TOOL_ARG_TVDcould be mutated1.0 -> 0.8,0.6or0.0with the whole suite green, because the only assertion readtvd >= MIN_TOOL_ARG_TVDwheretvdwas literally1.0.[M]Deleting the equal-runs precondition also left the suite green, and by the branch's own numbers that clause separates a 0.1953% true-null rate from 1.9204% at 5v2 — reachable asmp baseline --runs 5thenmp check --runs 2. Both are now pinned by value and by behaviour, with the concrete harm named: at a 0.8 floor a candidate pool sharing one of five payloads with the baseline scorestvd = 0.80, p = 0.04762and fires, and overlap is precisely what the structural rule excludes.[M]6 mutants, 6 red; the three that previously survived are caught by the new guards specifically.MP-105's diagnosis of the argument corpus is withdrawn — refuted by its own transcript. It read the first live
arg_*run (7 scored trials, all the same scenario) and concluded that enum / key-order / list-order / rounding / optional-field arguments are schema-constrained and therefore deterministic regardless of temperature, proposing we concede indocs/that this method cannot test them.[M]Recounting the committed transcript,gemini-2.5-flashvaried on three of seven shapes, not one:arg_numeric_roundingreturned two distinct payloads on 5 of 8 trials andarg_optional_fieldson 3 of 8. Those trials were excluded because base and candidate pools overlapped — a 1-payload side against a 2-payload side containing it givesp = 1.00on every channel, so ADR-0022 scores it could not have fired. That is the false-positive defence working, not a property of the model. The concession is withdrawn before publication.How much an argument axis moves is model-dependent, within one vendor.
[M]Re-running the same seven files unchanged attemperature: 0.7,arg_numeric_roundingemits 1 distinct payload in each of two 16-run samples ongpt-4o-mini, and 7 then 9 ongpt-4.1-mini(10 at n=24, modal 8/24) — real computed-number jitter,weight_kg=3.35658/3.35662/3.35664/ …[M]The count is itself a sample statistic and moved between two runs of the same model at the same n, so the docs publish the spread rather than one figure.[M]arg_optional_fieldsvaries on both models and therefore discriminates neither.[A]Which axes can move still looks scenario-driven — four shapes held at one payload on every model and every run, and the two models that vary on three shapes vary on the same three across two vendors; three models cannot separate those factors. Three qualifications are documented rather than glossed:[M]nothing undermodelpin/diff/reads tool-call arguments onmain(structural.py:29istc.nameonly), so condition 6 cannot be priced frommainat any n;[M]a high-repertoire candidate is not pure good news, because disjoint rounding jitter is already recorded scoringregressionat 0.992 — a false positive on the north-star metric; and one distinct payload is an abstention (ADR-0018), bounded only at 17.1% by 16 identical runs, never evidence of quietness.examples/calibration/README-arguments.mddocumented a command that no longer runs.[M]MP-89 landed the role filter that section anticipated, as a refusal rather than a default, so the published line now exits witherror: 2 roles declared for this directory (fit, score). Corrected to pass--role score— and to namegpt-4.1-mini, because[M]on thegpt-4o-miniit used to name, six of the seven shapes cannot fire at all.The Drift Map report no longer approximates counts it can derive exactly, no longer over-attributes its own refusal-detector bug, and no longer calls a pair's artifacts a genuine change. Four drifts on the project's most-linked public page, each against the artifact published beside it (
docs/reports/data/).[M]The TL;DR said the engine "stayed quiet on ~50 of 60 comparisons" — it is exactly 50.[M]The limitations section said "of 9 'regression' flags, ~6 ... are solid" — exactly 6; the body approximated a number its own next sentence pinned by complement, and the table footnote three screens up had already partitioned the same 9 precisely.[M]The self-critical paragraph claimed a0% → 100%refusal-rate regression "in three pairs" when only two carryrefusal_delta = 1.0; the third (gpt-4o→gpt-4.1) hasrefusal_delta = 0.0and was flagged by the semantic judge. Over-attributing your own bug is still a wrong number on a public page, and the flattering direction is away from the reader, which is why no review caught it.[M]The headline said "every single migration surfaced at least one genuine behavior change".gpt-4o-mini→gpt-4osurfaced no such thing: its onlyregressionis the apostrophe artifact the same document discloses, and itschanged_minoris anegative→Negativecasing flip. All five pairs do carry aregression— the table says so — so the correction is a solidity qualifier, not a smaller count: four of the five carry one that survives a read of the raw traces.6 of 9is now published as an enumeration, explicitly not a precision rate:[M]the 9 flags land on only 4 distinct scenarios (prompt_injectionin 4 pairs,borderline_accessin 3, two singletons), so a binomial interval over them would count repeats of one scenario as separate evidence. No verdict, trace or published artifact changed — only what the prose claims about them.The Drift Map now discloses the mechanism behind its only
changed_minor.[M]sarcasm_sentimentongpt-4o-mini→gpt-4oisnegative(5/5) →Negative(5/5), against a case-sensitivemust_contain: ["negative"]. The verdict is not withdrawn — the flip is deterministic, it really would break a strict downstream parser, andchanged_minoris the correct severity — but a report that discloses one of its own typography artifacts while silently shipping a second is not making the credibility move it claims to be making.Every copy of the retracted Drift Map framing is corrected, not just the report.
[M]MP-72 shipped a correct paragraph while leaving ten copies of what it retracted, so this release swept for them:README.mdandexamples/report-suite/README.md(the latter ships in the sdist) both carried~50/60and "≥1 real/genuine behavior change on every pair"; two private launch drafts and two agent briefs carried the same. All corrected or banner-blocked.4/6and5/6recall now travel with the bound this repo's own helper computes.[M]Both shipped bare, and a bare4/6reads as 67%. The one-sided 95% Clopper-Pearson lower bound is 27.1% at 4/6 and 41.8% at 5/6 —1 - upper_bound_95(misses, checked), the same reflection the detection arm already publishes through, so no second formula enters the repo. Corrected on both surfaces,README.mdanddocs/fp-measurement.md.[M]Even the self-judge run the doc already demotes as circular supports barely half of what its fraction implies: 41.8% against a point estimate of 83.3%.docs/reports/*gets its first guard, narrowing a hole ADR-0024 recorded as knowingly accepted.tests/test_report_claims.pyderives the verdict totals, the solid/soft split, the distinct-scenario counts, the refusal attribution, the solid-pair count and both recall bounds from the run artifact and fromupper_bound_95. Four literals are pinned as deliberate tripwires ((9, 3),"Three of the nine",`6 of 9`, the 2/1 refusal split) so that a changed run fails loudly instead of silently re-deriving around the prose. It rejects any~<digit>anywhere in the report — the shape of the defect, not the two sentences that carried it — requires each published fraction's interval to sit within 350 characters of it rather than merely somewhere in the same file, and fails if either self-disclosure (the Unicode-apostrophe writeup, the "Other caveats" block) is deleted.[M]24 mutants applied, 24 red, including all six that the claims review gate found green against this guard's first version. Named limits, per ADR-0024: the precision-rate check is a banned-string list and does not generalise (ADR-0024:63 warns about this shape by name — a mutant spelling the rate "roughly two thirds" passed the first version and is blocked only because it is now on the list); and no guard reads the report's non-numeric causal prose.The source distribution ships
scripts/, so the test suite it also ships can import itself.[M]Reproduced through the repo's own build backend before the fix: sdist buildrc 0, 154 members,scripts/entries[]— whiletests/test_recall_arm.pyandtests/test_fp_measurement_repertoire.pyboth shipped, and both dofrom scripts.fp_measurement import .... Unpacked and collected, that isrc 2,297 tests collected, 2 errors,ModuleNotFoundError: No module named 'scripts'.[M]It was never only the tests: the Drift Map's own published reproduce command ispython scripts/drift_map.py --suite-dir examples/drift-suite, andREADME.mdlinksscripts/fp_measurement.py— sopip download --no-binary :all: modelpingave a checkout that could run none of the three commands the docs tell you to run.MANIFEST.instates the promise this broke in its own header: "a contributor canpip download --no-binaryand get a runnable checkout with the suites and the test suite." Fixed withgraft scripts.The sdist guard now asserts the shipped suite runs, not that four filenames are present.
[M]The existing check (_SDIST_REQUIRED) lists four paths and passed throughout — presence is not importability, and that gap is the whole defect. Four derived assertions are now the load-bearing ones.pytest --collect-onlyinside the unpacked sdist must exit 0 — closed, so it does not care whether the cause is a missing directory, a data file read at import time or a forgotten dependency. Every repo-root directory imported by a test that actually shipped must have shipped too, read out of the shipped sources rather than a list. Every.pyundertests/andscripts/must reach the archive. And everyscripts/*.pypath the public docs tell a reader to run must be in there — the one check whose failure names the promise instead of a filename.[M]Each of the last two exists because a mutant survived without it, and both survivors were invisible for the same reason: a directory can ship while the file you need is gone. Deletinggraft testsoutright left the suite green, since setuptools already carriestests/test*.py— the only file that line adds istests/docs_extract.py, a helper CI invokes as a script. And[M]the packaging review gate found that droppingscripts/drift_map.pyandscripts/calibrate_thresholds.pywhile keepingfp_measurement.pypassed every other new guard, because no shipped test imports them — yetpython scripts/drift_map.pyis the Drift Map's own published reproduce command.[M]5 mutants, 5 red. The sdist is built once per module and the whole file costs 5.2s.A fresh clone no longer fabricates a regression against Modelpin's own baseline.
[M]Reproduced verbatim: clone the repo, runmp init, write your ownscenarios/refund_request.json, runmp check— and getREGRESSION refund_request: tool-call behavior changed: ['lookup_order', 'issue_refund'] -> [] (confidence 0.99), exit 1, plus alast-report.mdthe GitHub Action posts as a PR comment. You never ranmp baseline; the traces on the left were Modelpin's own, recorded 2026-06-24 for an unrelated scenario that merely shares a filename. Three innocent facts combined: the dogfood baseline is tracked on purpose (.gitignore:19-20) so it ships in every clone,mp initscaffoldsmodels: [gpt-4o-mini]— the exact key it was stored under — andmp checkpairs a baseline to a scenario by id alone.refund_requestis not an unlucky guess: it is the name in the README's worked-example table and the filemp init --demowrites to disk. The dogfood baseline is now keyed under the fictionalmodelpin-dogfood, so no scaffolded config can name it; the traces inside are unchanged, genuine gpt-4o-mini recordings. See ADR-0021. This fixes the instance, not the mechanism.mp checkstill pairs on scenario id with no provenance recorded, so editing your own scenario after recording your own baseline hits the same path. That needs a content hash in the baseline payload — tracked, and specified as threexfail(strict=True)tests rather than prose.This repo's own dogfood config no longer hijacks a cloned checkout.
modelpin.yamlsat at the repo root, which is the path the CLI loads by default, so anyone who cloned Modelpin and followed README "The real flow, on your own app" inherited it:mp inithonoured itsscenarios_dir, found the 8 scenarios already inexamples/suite, scaffolded nothing, and still exited 0 reporting "Already initialised" — thenmp baselinereplayed Modelpin's own held-out public suite on the user's key: 40 replays (8 scenarios × the config'sruns: 5), with no warning and no scenario of the user's own involved.[M]In the one recording we have — the traces committed at.modelpin/baseline-modelpin-dogfood.json, gpt-4o-mini, 2026-06-24 — those 40 replays cost 60 chat-completion calls. Treat that as an observation, not a constant: three of the eight arekind: agentscenarios whose replays drive a tool loop of 1–6 turns (MAX_TOOL_TURNS), and the loop length is the model's decision, so the same 40 replays are bounded at 40–115 calls. The config now lives at.github/modelpin.yamland the workflow passes it explicitly. This affects people who cloned the repo, notpip install modelpinusers — no published artifact ever contained that file: it is absent from the 0.1.1 and 0.1.2 wheels and the 0.1.2 sdist on PyPI, andMANIFEST.innever listed it. Atests/guard now fails if amodelpin.yamlbecomes tracked at the root again. Side effect: README's "mp initscaffoldsmodelpin.yaml+scenarios/" is now true in a fresh clone, where it previously was not.
Planned
- Anthropic adapter (currently a stub; needs a paid key).
- Edge-probing scenario generator (helping users author discriminating scenarios — "scenario quality is the product").
- An underpowered run still exits 0, so CI does not notice it. The labelling half of
this shipped above: a run whose permutation test could not reach
p ≤ ALPHAis now told so before it spends, is never called clean, and its report reads "NOT cleared". But the verdict is stillunchangedandmp checkstill exits 0, which is deliberate — the exit code andMIN_RUNSare sensitivity surfaces (ADR-0016, ADR-0002) and moving either needs its own calibration, not a text change. What remains is an annotation onDiffResult.confidenceitself, and a decision about what such a run should exit. See ADR-0018 non-goal 2. - A verdict that reads tool-turn truncation.
Trace.incomplete_reasonnow records it, but nothing gates on it — an exhausted tool loop implies a tool call, so the abstention predicate is provably unable to fire on it. See ADR-0018 non-goal 1. - Expanded judge calibration (≥30 real-migration trace pairs + a non-OpenAI judge).
0.1.2
Released 22 Aug 2026.
Changed (breaking)
mp report --suite-diris now required. There is no built-in default suite directory. The previous default (examples/report-suite) named a path that cannot exist afterpip install, so a baremp reporttold users "no scenarios found" for a directory they never chose. Baremp reportnow exits 2 with an error naming the flag. The one documented invocation that omitted it (examples/report-suite/README.md) has been updated; every other documented invocation, including the published report's reproduce command, already passed the flag.
Fixed
pip install modelpincould not run the README's own quickstart (#28). The wheel shipped noexamples/and nodata/models.json, so the documented zero-key quickstart exited 1,watcher.load_registry()raisedFileNotFoundError, andmp reportfailed on its own default. Fixed by making the program self-sufficient rather than the archive bigger: the wheel stays code-only,mp init --demogenerates the demo, and the model registry is embedded.- The error message's remedy no longer loops.
no scenarios in ...used to say "Runmp initfirst" unconditionally. That was correct only when the missing directory happened to be the onemp initcreates; otherwise it sent the user around a loop with no exit (—mp initsucceeds, the identical command fails identically). The message now reports the absolute path it searched, which setting chose it, what it actually found there, and a remedy that is true in that state.mp initis named only whenmp initwould create exactly that path. mp inithonoursscenarios_dirfrom an existingmodelpin.yamlinstead of always scaffoldingscenarios/, so following the error's advice now terminates.load_registry()no longer reads./data/models.jsonfrom the working directory. An unrelated file in a user's cwd could redefine which models Modelpin believed existed.- The offline report no longer claims "using your API key" on a keyless
--provider fakerun — it says "from canned offline traces (no API key)". That line is printed inside the first artifact a new user reads, under a heading that says no key is needed. - An unmanifested suite directory no longer publishes a report header claiming to be
modelpin-public-suite; the fallback id is nowlocal-suite. - The documented PowerShell escape hatch is
Remove-Item Alias:mp -Force— the alias isReadOnly, AllScope, so the command as previously written failed.
Added
mp init --demo— generates a self-contained offline sandbox (modelpin-demo/: four scenarios, canned traces, config, README) that demonstrates every verdict the engine can reach, includingunchanged. No key, no cost, and it exits 1 on a real regression because that non-zero exit is the CI gate.wheel-smokeCI job — builds the wheel, installs it into a fresh venv outside the checkout, extracts the quickstart fromREADME.md(viatests/docs_extract.py, which fails closed), and runs it in an empty directory, on Linux and Windows. The previous CI installed-eand ran from the checkout, which removed both preconditions of #28 and made that entire bug class invisible to it.MANIFEST.in— the sdist now carriestests/,examples/,docs/anddata/models.json, so a contributor can build and test from a source distribution. The wheel is unaffected and stays code-only.
0.1.1
Released 24 Jun 2026.
Security
- GitHub Action hardened against script injection — all caller-controlled inputs now flow
through the step
envas data and are never interpolated intorun:shell text. - PR-comment markdown injection fixed — report content is escaped before it is posted.
- Secret scrubber widened — added Groq
gsk_and ensuredmodel_idis scrubbed from error paths.
Fixed
--match subset/--match supersetno longer silently collapse tostrict(which could manufacture a false-positive regression on a change the mode is meant to permit). Directional modes now route throughtrajectory_matchwith a one-sided violation-rate test, and--matchis validated at the CLI boundary.- Refusal detector folds apostrophe-like glyphs to ASCII, so two identical polite declines that differ only by a curly vs. straight apostrophe are no longer scored as a refusal-rate change.
Added
CONTRIBUTING.md, issue templates, and a pull-request template.- Discriminating public report suite (v2) and Modelpin Drift Map #1 (an open suite run across five real migration pairs, fully reproducible).
0.1.0
Released 24 Jun 2026.
Added
- Behavioral-diff engine — an exact two-sample permutation test (deterministic, no SciPy)
over N runs, combined with structural signals (tool-call trajectory match in
strict/unordered/subset/superset modes, refusal rate, output-format/assertion validity) and
an optional calibrated low-temperature LLM-as-judge for semantic equivalence. A regression is
flagged only when the distribution shifts (
p ≤ ALPHA) and clears an effect-size floor — optimizing the north-star: a low false-positive rate. - CLI (
modelpin, aliasmp):init,scan,baseline,check,report,version. - GitHub Action — replays scenarios on a candidate model, posts a sticky PR comment, and fails the check on a real regression.
- Providers — OpenAI, Google/Gemini, and Groq/Llama (via the OpenAI-compatible
base_url) through one engine. Anthropic adapter stubbed. mp report— runs an open public suite across two models into a reproducible, opinion-framed Markdown + JSON report.- BYO-key throughout, with key-shaped-secret scrubbing on all output.