Skip to content

modelpin 0.4.0

Choose a tag to compare

@samarthputhraya samarthputhraya released this 15 Sep 16:56
· 145 commits to main since this release
a619f1e

Changelog

All notable changes to Modelpin are documented here.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

Unreleased

Nothing yet.

[0.4.0] - 2026-09-15

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 check exits 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 as changed_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 at
    runs: 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 input confirm: false). The published false-positive measurements in
    docs/fp-measurement.md describe 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] with ANTHROPIC_API_KEY,
    or Claude on Vertex AI with ANTHROPIC_VERTEX_PROJECT_ID and application-default credentials.
    Multi-turn tool calls, refusal and stop-reason mapping, SDK retries. Newer Claude models accept
    only default sampling, so a scenario's temperature/top_p is sent only to models that accept
    it. claude-* judge ids route to Anthropic without judge_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 init configures itself from your repository. It reads the model your code calls
    and the credentials you have set, and writes a matching providers: and a
    judge_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's must_contain: ["hello"]
    failed on most runs in a live Gemini check.
  • .modelpin/.gitignore is written the first time the store is created, so git add picks
    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 429 or 5xx no longer ends the run. google-genai retries nothing
    unless told to; [M] one shared-quota 429 on Vertex killed a whole baseline. 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: provider no longer overrides modelpin.yaml. It defaulted to openai
    and 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.
  • --config naming 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 the providers extra).
    Opt out with MODELPIN_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/o4 count 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.sample and .env.template are read; .env and .env.local
      are no longer opened;
    • the judge in Modelpin's own modelpin.yaml is not reported as an app dependency.

0.3.1 - 2026-09-12

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 of escalate[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 from modelpin.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_baseline dumped the
    full trace — messages included — in every release from 0.1.0 through 0.3.0, and
    actions/README.md has instructed git add … .modelpin/ since 0.1.2.

    If you have ever committed a .modelpin/baseline-*.json to a public repository, it contains
    your prompts.
    Two things to do, in this order:

    1. Rotate any credential that appeared in a prompt. Assume it is public. This is the only
      remedy that does not depend on rewriting history.
    2. Re-record with modelpin baseline and 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 scan could 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 scan could 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-09 The 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-11 The first dependency vulnerability scan this project has
    run found no known vulnerability in the closure pip install "modelpin[providers]"
    installs — 40 packages on Linux, 41 on Windows, the difference being colorama, which
    click and typer require 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 in
    black, 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-example writes 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 in examples/ 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]
    a single scenario 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 first modelpin baseline from 5
    replays / 5 calls to 10 replays / up to 35 — spent on a fictional shop that measures nothing
    about your app. modelpin init names the flag on both its branches, so it is findable
    without leaving the package.

Changed

  • modelpin scan separates models you CALL from models you merely mention, and reads your
    documentation.
    [M] On a one-file app beside a freshly modelpin 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 the modelpin.yaml Modelpin 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: .md
    was 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.5 is 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 own
    model="..." sample. .txt stays 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-09 Both candidate preconditions from ADR-0041 were rejected on it, and
    modelpin/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 under
    reports/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-v2
    corpus — 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 exits 4.

  • 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 —
    said mp init, mp scan, mp check. [M] PowerShell's built-in mp alias
    (Move-ItemProperty) fails with a ParameterBindingException containing no characters that
    connect it to this tool, so a reader who copied from the table had nothing to search for.

0.3.0 - 2026-09-08

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

Every baseline recorded before this version will be refused, and your first mp check
after upgrading compares nothing and exits 3 until you re-record.
mp baseline now
stores a content fingerprint of each scenario definition beside its traces, and mp check
will not compare a scenario whose definition has changed since — or whose baseline carries
no fingerprint at all, which is every baseline that exists today.

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
reported OK 1 scenario(s) unchanged, exit 0, over a candidate that had genuinely started
refusing; and two unrelated scenarios sharing a filename produced REGRESSION (confidence 0.99), exit 1, off nothing but a name collision. Applying it to Modelpin's own tracked
dogfood baseline found the defect live. Full rationale below and in ADR-0039.

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

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 baseline now records a content fingerprint of each scenario definition beside its
    traces, and mp check refuses 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 first mp check after upgrading will compare nothing and exit 3 until you
    re-run mp baseline once.
    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 gave OK 1 scenario(s) unchanged, exit 0, over a candidate that had genuinely
    started refusing — the stale store was the only difference between a green tick and a
    confidence 1.00 regression. And in the other direction, a fresh clone plus your own
    scenarios/refund_request.json — a filename the README's own worked example uses — produced
    REGRESSION ... (confidence 0.99), exit 1, 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 as NO USABLE BASELINE. Exit 1 still means only a real regression. [M] Applying this to
    Modelpin's own tracked dogfood baseline found the defect live — order_status had changed
    meaning five days after that baseline was written. See ADR-0039.
  • BREAKING (exit codes): a setup failure now exits 4, not 1. [M] Every one of the
    28 places the CLI reports a configuration, credential or usage problem exited 1 — the
    code check --help documents 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 added OPENAI_API_KEY to repository secrets received a public
    annotation on their pull request stating that their model migration had regressed, with no
    replay run and nothing compared. Exit 1 now means only what it always claimed to mean.
    0, 1 and 3 are unchanged; 4 is new. A caller treating any non-zero code as
    "regression" will now see 4 where it saw 1 — it was already reporting missing keys as
    regressions, but it was doing so because of us. See ADR-0035.
  • An unknown key in modelpin.yaml is now an error naming the key and its nearest match.
    [M] It was silently discarded, so provider: for providers: — 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.toml still read 0.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 version now reads the installed distribution, not a second hardcoded copy.
    [M] modelpin/__init__.py held its own literal, so the bump moved pyproject.toml and left
    modelpin version printing 0.2.1 — the string a bug report quotes. A test now pins the two
    together.
  • The sdist ships actions/. [M] An sdist installed exactly as CONTRIBUTING.md
    instructs 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 --match for 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 --match was 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 published regression at
    confidence 0.952 and exit 1 — a red build for a model using discretion the prompt handed
    it. [M] Under subset that comparison does not fire at all, and [M] a global subset
    default 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 and modelpin/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 returned p = 1.00 and no trial could fire (the seven arg_* 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 under reports/fp-runs-adr0040/2026-09-07/ (the original replays are
    kept beside them in reports/fp-runs/2026-09-07/), and a test regenerates the
    published block from them. Bound, not zero; see docs/fp-measurement.md for 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.py counts an advisory changed_minor on 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 exit 1. 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
    — reclassifying changed_minor as 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), and
    tests/test_fp_severity.py pins 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 is 1/7, upper
    bound 52.1%, and per ADR-0042 the shape figure is the one that constrains. 312 same-model
    trials on examples/fp-suite-v3, two OpenAI models each judged by the other, both anchors
    quiet; artifacts under reports/channel-exposure/2026-09-08/, reproducible offline with
    python 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
    declares tools, 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 read unchanged because 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 shipped runs: 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. Role score; reviewed before its first run; never edited after.

  • scripts/fp_measurement.py can be cut and resumed, and re-scored without a key. --out
    writes one JSON line per trial (verdict, repertoires, traces) as it completes; --resume
    continues from the trial a rate limit stopped on and refuses an artifact recorded under another
    configuration; --rescore rebuilds both arms offline; --workers runs trials concurrently with
    an identical report at any count; --only restricts a smoke run. Nineteen more perturbations
    (seven arg_*, twelve fp-suite). scripts/fp_aggregate.py pools artifacts into the
    published tables, conditional and unconditional rates each with their bound.

  • mp scan now sees Llama, Qwen, Mistral, DeepSeek and gpt-oss ids, and reads .env.example.
    [M] It was OpenAI/Anthropic/Google-shaped: a repo naming llama-3.3-70b-versatile,
    qwen/qwen3-32b and openai/gpt-oss-20b scanned to No model identifiers found., exit 0 —
    while appending one gpt-4o-mini line to that same file produced a populated table. scan is
    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 was deepseek-ai, a HuggingFace org rather than a model, and the shipped
    pattern enumerates DeepSeek's real families to exclude it.

Fixed

  • mp scan no 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 scan no 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.json
    holding a real refusal regression produced OK 1 scenario(s) unchanged, exit 0 — a green
    tick over a regression, caused by nothing but putting scenarios in folders. Directories
    named results, __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 id are 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 raised UnicodeEncodeError while printing the summary
    and exited 1 — 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 what mp init shipped, writing gpt-4o-mini as both
    the app's model and the judge. A new user's first check had 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 omits tools while 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: the OSError escaped 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 --help binds 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[/]'
    raised MarkupError; --to 'm2|evil' added a cell to the published Report's settings
    table and broke the row.

0.2.1 - 2026-09-02

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 run pip 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 scan reported file paths that do not exist, and modelpin init misdescribed
    the directory you had just named. [M] A folder called src [experimental] rendered as
    src — 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 tools the
    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
    optional judge_provider: key names the host when the model id does not: gpt-* and
    gemini-* do, qwen/qwen3.8-27b does not, and Modelpin will not guess — an
    OpenRouter id such as openai/gpt-oss-120b begins 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, and docs/fp-measurement.md now separates those two claims.

  • A modelpin check run 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
    -2 suffix rather than overwriting.

  • A channel census: both modelpin check and the public Modelpin Report now disclose what
    they could not measure.
    check gained it first in this cycle (MP-138) and modelpin report — the artifact that goes to strangers — did not, so a Report over a suite with no
    tools and no judge_model still
    headlined No behavioral change observed with nothing said about which detectors were
    switched off. [M] A published Report now carries a ## Coverage section 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 after last-report.md is
    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 the from model'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:
    --help said 3 covered "no baseline recorded" (it never did), the README and action.yml
    described 3 too broadly, and the Action README omitted 3 entirely. All four are corrected.
    Also fixed: a scenario id containing rich markup ([/]) crashed modelpin check after the
    report was written, and crashed modelpin report outright.

  • 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 one tools entry
    that no run on either side ever exercised turned could not measure … NOT cleared on content
    into no 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 "add
    tools"
    , and doing so bought the green. That message now names the scenarios whose declared
    tools went uncalled and points at a judge_model instead. No verdict, confidence or exit
    code changes
    — the census governs disclosure only — but the PR-comment headline flips from
    ✅ no behavioral change to ❔ could not measure on 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
    phrase declare no `tools` in the coverage line became called no tool, and the Report
    sidecar's coverage.tools_declared key became tools_exercised, joined by a new
    declared_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 declared tools and 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 in tests/ 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 strict
    xfail in tests/test_census_from_traces.py rather than left to a tracker.

  • The public suite modelpin-public-v2 is now version 3.0.0 (sha256:ffd99774f681 →
    sha256:5cba1dc8b691). Assertion.expected_tool_calls and Assertion.output_schema were
    removed: they were recorded and never read. expected_tool_calls was proved inert by
    differential over five trace configurations returning byte-identical verdicts with the field
    set and with no assertions at all; output_schema had 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 as must_containn, which no version has ever compared. Use must_contain /
    must_not_contain, or rely on the tool-trajectory channel, which measures tool use
    distributionally and always did the work expected_tool_calls appeared to.
    The held-out false-positive set examples/suite/ carried the same dead keys and its
    fingerprint moved with them: sha256:44cbde8e3b74 → sha256:3edf6b1ae19a (order_status is
    left declaring no assertions). It is unversioned and no published number cites its hash —
    docs/fp-measurement.md quotes none — but the fingerprint moved, so it is announced here
    rather than left to be discovered.

  • The report JSON sidecar gained a top-level coverage object alongside meta and
    results — channels_live, channels_inert, underpowered_scenarios. A consumer
    pinning the sidecar's exact key set will see one new key. null and [] mean different
    things and are not interchangeable:
    null means 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. meta also gained census and underpowered; 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. check now 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 exits 3 (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 provider input advertised anthropic, whose adapter raises
    NotImplementedError.
    It was also unmarked in the --provider help for baseline,
    check and report, and in the unknown-provider error — five places. Four now render from
    one source (provider_help()); action.yml cannot call Python, so its string stays
    hand-written and is pinned to the same list by a test. anthropic is still listed, and now
    says it is not yet implemented.
  • The Groq quickstart named a model Groq had retired. llama-3.3-70b-versatile returns
    404 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 Homepage link on the PyPI project page was dead. pyproject.toml set
    Homepage = https://modelpin.dev; [M] nslookup modelpin.dev returns a name with no
    address
    , and the value shipped that way in 0.2.0 (verified live on
    pypi.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 in tests/test_report_claims.py allowlists
    the hosts a published URL may use, so the check that had sat unticked in docs/PUBLISHING.md
    since 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 change as line 1 of last-report.md and
    exited 0 — and action.yml posts 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]
    underpowered was 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 name modelpin baseline as
    well as modelpin check: the permutation floor depends on both sides, so a remedy naming
    only check leaves a short baseline blind. A test pins the two surfaces to the same
    constant so they cannot drift apart again. (MP-117)
  • mp check discloses 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_baseline and
    load_baseline applied zero uniformity validation in either direction. mp check now
    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_match is the tool-name signal again, so Tool match 0.00 no longer renders
    beside unchanged.
    0.2.0 redefined the published field as 1 - 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
    published Tool match 0.00 next to ✅ unchanged at confidence 1.00 — a document
    contradicting itself. [M] Sharper still: a regression caused entirely by refusal, tool
    names identical throughout, published Tool match 0.00 too, 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_regressed reads tool_p/tool_tvd directly
    and never this field. [M] All 60 drift-map records were re-scored by replay from
    docs/reports/data/drift_cache_drift-suite.json: args_compared is false on every one, so
    the old and the new formula reproduce the published tool_call_match exactly, 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) carry modelpin_version: 0.1.1 and the six-field DiffSignals schema that predates tool_arg_match, so their
    values were already computed as 1 - 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), so
    tool_tvd is exactly 0.0 wherever Arg match is populated and the new value is exactly
    1.00 wherever the old one was 1 - 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 toward 1.00 and none
    away. That is why this lands before the next Report publication rather than after it, and
    it is also why Tool match is a constant 1.00 in that regime — the two columns are
    complementary, not redundant. (MP-74)

0.2.0 - 2026-08-27

Changed (breaking)

  • --fixtures is now required with --provider fake. The fake provider no longer
    fabricates a trace when it has no canned one: it raises MissingCannedTrace and the CLI
    exits 1 with an error naming the flag. Previously a bare mp baseline --provider fake
    produced placeholder traces that were structurally indistinguishable from real ones, so a
    run could report unchanged — "safe to adopt" — about behaviour that was never measured.
    Any scripted offline invocation that omitted --fixtures will now fail. Pass
    --fixtures <file>; modelpin init --demo writes one.
    If you ever ran a fixture-less baseline on 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 correct check --fixtures against 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 — and
    pyproject.toml makes README.md the PyPI long description, which PyPI renders on its
    own domain where a relative path resolves to nothing. The wheel ships no docs/ 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 in
    tests/test_report_claims.py now fails on any relative link in README.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.md and actions/README.md both offered a free Groq key as a zero-cost third vendor.
    [M] The command printed under that heading loads the default modelpin.yaml, which
    mp init scaffolds with judge_model: gpt-4o-mini; the semantic judge is OpenAI-only, so a
    reader who exported only GROQ_API_KEY — exactly as the surrounding text instructs — got
    error: semantic judge ('gpt-4o-mini'): OPENAI_API_KEY is not set and exit 1 before any
    replay
    , while a reader whose OpenAI key was still exported was silently billed. Only the
    replay side is free: check reads its baseline off disk and replays only the candidate.
    Both passages now say so and point at removing judge_model for 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.py now publishes a confidence interval, as
    the false-positive arm already did.
    The two arms were asymmetric in the direction that
    flatters detection. [M] fp_summary printed False-positive rate: {fp}/{scored} = {rate} and a one-sided 95% Clopper-Pearson upper bound; recall_summary printed only
    Detection: {d}/{checked} injected perturbations caught — no interval — even though
    README.md and docs/fp-measurement.md both 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 hypothetical 3/3
    bounds it at only 36.8%. [M] Nothing about the accounting moved — numerator,
    denominator and both exclusions are unchanged, git diff touches three hunks in that file
    (two docstrings and recall_summary), and no tally assertion in the suite was edited.
    This arm still prints no point percentage: 3/3 = 100% would be the withdrawn
    0/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/8 result is WITHDRAWN.
    scripts/fp_measurement.py counted
    a scenario as a passed trial even when the engine measured no effect on any channel. [M]
    diff/stats.py:128-129 early-exits at p=1.0 when two sides are distributionally identical,
    so such a trial scores unchanged regardless 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 published 0/8 = 0%; re-scored (not re-run — no API call was made) the same
    recorded verdicts give 0/0 = n/a, whose 95% upper bound is unbounded. A trial is now
    excluded iff the engine reports unchanged at confidence exactly 1.0 — under ADR-0001 that
    confidence is min(p), so it holds precisely when nothing could have fired at ALPHA. This is
    sound by construction: a flagged verdict never carries unchanged-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
    in tests/test_diff.py all return unchanged at confidence 1.0000, so 0/4 is also 0/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 diff over modelpin/ 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 return p = 1.00 and 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 check and mp report state how many replays a run will make,
    before making them.
    The pre-spend line was provider=… model=… runs=…; it now also
    carries N scenario(s) from <dir> -> M replays, >=M paid calls, and
    + up to J judge calls when a judge_model is configured. The >= is deliberate: one
    replay is one adapter call, but a kind: agent scenario's replay drives a tool loop of up
    to MAX_TOOL_TURNS completions, 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 check counts only scenarios that have a baseline, since the rest are skipped
    rather than replayed. --provider fake claims no cost at all — that path replays canned
    traces and bills nothing. See ADR-0019.

    J is the judge axis, and it counts runs, not replays: the semantic judge scores every
    run on both sides, so J = <reference runs> + <candidate runs>. For baseline there is no
    judge; for mp report both sides come from this run's own replay(), so both are runs
    and J = 2 × scenarios × runs. For mp check the reference side is whatever
    mp baseline recorded, which --runs does not bound — a baseline recorded at
    --runs 20 and checked at --runs 5 scores 20 reference runs against 5 candidate ones.
    check therefore reads the stored run count off disk rather than assuming --runs of
    them. [M] before this was fixed, that pairing disclosed up to 10 judge calls for one
    scenario and then made 24 — reproduce with
    pytest 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 than J, and up to is the honest word for that.

  • mp report discloses a two-sided run as two-sided. It replays --from and --to,
    so its line reads N scenario(s) from <dir> x 2 models -> M replays and its replay and
    paid-call figures are twice what the same suite costs under mp check — exactly twice
    when every scenario has a baseline, since check counts only those. [M] the 14-scenario
    examples/report-suite queues 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 saw runs=5 with 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: for report the semantic judge scores every run on both
    sides whether or not both were replayed live, so it is bounded by 2 × scenarios × runs.
    mp check discloses that same figure over the same suite only when the stored baseline
    holds exactly runs traces per scenario
    — otherwise its reference side is the recorded
    count, per the judge-axis note above. The header also drops its
    now-redundant suite=<dir> token, which the disclosure line names.

  • mp init names the scenario set it adopted. When a modelpin.yaml already exists,
    init honours its scenarios_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 before mp baseline acts on it.

  • The detection arm of scripts/fp_measurement.py is 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 in main(), which needs a live provider, so no test reached it: [M] at 58c87dc,
    eight of nine mutants applied to that inline arm left the then-302-test suite green —
    including detected += int(caught) -> detected += 1, which makes the harness print
    Detection: 3/3 for an engine that flagged nothing, and replacing the entire loop body with
    continue, which makes it print 0/0. The accounting now lives in recall_outcome /
    recall_tally / recall_report / recall_summary plus a shared build_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 above
    PERTURBATIONS); 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-scenario print
    loop, 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 diff
    over modelpin/ for this work is empty, and no calibrated constant moved.
    Three behaviour changes in the harness itself. A missed perturbation, which was already
    labelled MISSED per 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 bare 0/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 in
    PERTURBATIONS (decline_pii) returned unchanged on 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.md already used this
    vocabulary; the harness now matches it.

  • docs/fp-measurement.md published 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 shows decline_pii as unchanged, which
    recall_outcome maps 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
    reading unchanged is 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 post 0/0. The document now publishes what the
    harness prints — 2/3, the verbatim summary block including the MISSED note, and [M] the
    95% one-sided lower bound of 13.5% — with the resistance reading demoted to a labelled
    correction note beneath it. README.md has 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 withdrawn 2/2 denominator
    (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.md sends the reader to
    docs/fp-measurement.md as 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 attributed
    decline_pii a "(comply → … semantic change)" — the forbidden assertion, stated as fact, on
    the one scenario the run shows the model resisted, together with an Expected verdict line
    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 diff over modelpin/ and scripts/ 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, refusing
    2/2 while allowing the flattering 3/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; the 3/3 ban was a bare substring that misfired
    on ordinary fractions like 13/30 and 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 \b into the backspace
    control character
    , so the guard added specifically to catch that claim contained three
    literal 0x08 bytes 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 the 0/1 — 95% upper bound 95.0% figure or the not-fitted
    gloss from README.md; removing the exclusion's soundness property, the 0 of 8 / 1 of 6
    planning figures, or restoring "the conservative floor earns its keep" in
    docs/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] The 299 tests passing line — 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 number
    README-arguments.md asks 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 on main reads 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 (or GOOGLE_GENAI_USE_ENTERPRISE=true, the SDK's current
    spelling — both are honoured) and GOOGLE_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_LOCATION defaults to global — the SDK's own default, and [M] the only
    location serving current models: every gemini-3.x id returns 404 on regional endpoints such
    as us-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 returned 429 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-flash is 404 "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) becoming
    issue_refund(amount=4999.00) — was reported as unchanged at 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. DiffSignals gains
    tool_arg_match, where null means the argument comparison did not run — which is not
    the same as 1.0.
    The signal ships ADVISORY. It raises a scenario to changed_minor and can never reach a
    build-failing regression on its own, because its effect-size floor MIN_TOOL_ARG_TVD has
    no labelled calibration set behind it — the same cap the semantic judge shipped under until
    37b63a1 calibrated 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 returned regression
    at confidence 0.992 at the shipped runs: 5, where 0.1.2 returned unchanged at 1.0.
    State the cost plainly: the headline example above no longer fails a build. [M]
    mp check exits 0 on an argument-only change (cli.py gates exit 1 on regression
    alone), and action.yml gates 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.yml posts 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, because scripts/fp_measurement.py already scores
    changed_minor as a false positive. The
    falsifiable condition for promoting it later is in ADR-0029; runs is explicitly not a
    knob for this, as the cost is non-monotone in N.
    tool_arg_match is rendered as an Arg match column in the Report's per-scenario table,
    where — means the comparison did not run.
  • insufficient_evidence verdict, 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 reporting unchanged. Below that threshold (e.g. 2 of 5) the run
    still reports unchanged; the counts are recorded on DiffSignals but gate nothing. Previously two identically-degenerate sides scored unchanged at
    confidence 1.00, because every p-value was 1.0 and unchanged-confidence is min(p):
    the engine's least-evidence case scored as its most confident. mp check exits 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 2 printed OK 4 scenario(s) unchanged, exited 0, and
    wrote "No behavioral regressions found; demo-model-v2 looks safe to adopt" — while the
    same fixtures at --runs 5 find two regressions and a minor. The cause is not a
    weak signal, it is a structural one: an exact permutation test over C(4,2) = 6 relabelings
    has a hard p-floor of 1/6 = 0.167, so at 2 runs/side nothing can reach ALPHA = 0.05 at
    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 reach ALPHA
    under strict/unordered (floor 0.100); and no affirmative clearance renders over a
    blind comparison — the header drops from ✅ to ❔, the UNCHANGED bucket 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 is 0.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 where strict/unordered cannot.
    [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__.py sets verdict = regression on
    arg_regressed with no conjunction with tool_regressed, so it is an independent
    verdict-raising path: same model both sides, identical tool names on every run, disjoint
    float jitter returns regression at confidence 0.9520 where main returns unchanged at
    1.0. [M] The +0.0056 pp defence (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.py prices that cost offline, with no API key. [M] Dealing the
    committed repertoires' actual runs into two disjoint sides and driving the real
    diff_scenario through 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 on main where 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 disjoint
    a,a,a,b,c vs d,d,e,f,g does 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 while subset reaches 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_95 raises OverflowError past 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_TVD could
    be mutated 1.0 -> 0.8, 0.6 or 0.0 with the whole suite green, because the only
    assertion read tvd >= MIN_TOOL_ARG_TVD where tvd was literally 1.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 as
    mp baseline --runs 5 then mp 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 scores tvd = 0.80, p = 0.04762 and 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 in docs/ that
    this method cannot test them. [M] Recounting the committed transcript, gemini-2.5-flash
    varied on three of seven shapes, not one: arg_numeric_rounding returned two distinct
    payloads on 5 of 8 trials and arg_optional_fields on 3 of 8. Those trials were
    excluded because base and candidate pools overlapped — a 1-payload side against a
    2-payload side containing it gives p = 1.00 on 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 at temperature: 0.7, arg_numeric_rounding emits 1
    distinct payload in each of two 16-run samples on gpt-4o-mini, and 7 then 9 on
    gpt-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_fields varies 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 under modelpin/diff/ reads tool-call arguments on main (structural.py:29
    is tc.name only), so condition 6 cannot be priced from main at any n; [M] a
    high-repertoire candidate is not pure good news, because disjoint rounding jitter is already
    recorded scoring regression at 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.md documented 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 with error: 2 roles declared for this directory (fit, score). Corrected to pass --role score — and to name gpt-4.1-mini, because [M] on the
    gpt-4o-mini it 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 a 0% → 100% refusal-rate regression "in three
    pairs"
    when only two carry refusal_delta = 1.0; the third (gpt-4o → gpt-4.1) has
    refusal_delta = 0.0 and 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-4o surfaced no such thing: its only regression is the
    apostrophe artifact the same document discloses, and its changed_minor is a negative →
    Negative casing flip. All five pairs do carry a regression — 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 9 is now published as an enumeration, explicitly not a precision rate: [M] the 9
    flags land on only 4 distinct scenarios (prompt_injection in 4 pairs,
    borderline_access in 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_sentiment on gpt-4o-mini → gpt-4o is negative (5/5) → Negative (5/5),
    against a case-sensitive must_contain: ["negative"]. The verdict is not withdrawn — the
    flip is deterministic, it really would break a strict downstream parser, and changed_minor
    is 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.md and examples/report-suite/README.md (the latter ships
    in the sdist) both carried ~50/60 and "≥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/6 and 5/6 recall now travel with the bound this repo's own helper computes. [M]
    Both shipped bare, and a bare 4/6 reads 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.md and docs/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.py derives 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 from upper_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 build
    rc 0, 154 members, scripts/ entries [] — while tests/test_recall_arm.py and
    tests/test_fp_measurement_repertoire.py both shipped, and both do
    from scripts.fp_measurement import .... Unpacked and collected, that is
    rc 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 is
    python scripts/drift_map.py --suite-dir examples/drift-suite, and README.md links
    scripts/fp_measurement.py — so pip download --no-binary :all: modelpin gave a checkout
    that could run none of the three commands the docs tell you to run. MANIFEST.in states the
    promise this broke in its own header: "a contributor can pip download --no-binary and get
    a runnable checkout with the suites and the test suite."
    Fixed with graft 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-only inside 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 .py under
    tests/ and scripts/ must reach the archive. And every scripts/*.py path 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.
    Deleting graft tests outright left the suite green, since setuptools already carries
    tests/test*.py — the only file that line adds is tests/docs_extract.py, a helper CI
    invokes as a script. And [M] the packaging review gate found that dropping
    scripts/drift_map.py and scripts/calibrate_thresholds.py while keeping
    fp_measurement.py passed every other new guard, because no shipped test imports them —
    yet python scripts/drift_map.py is 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, run mp init, write your own
    scenarios/refund_request.json, run mp check — and get
    REGRESSION refund_request: tool-call behavior changed: ['lookup_order', 'issue_refund'] -> [] (confidence 0.99), exit 1, plus a last-report.md the GitHub Action posts as a PR
    comment. You never ran mp 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 init scaffolds models: [gpt-4o-mini] — the exact key it was stored under — and
    mp check pairs a baseline to a scenario by id alone. refund_request is not an unlucky
    guess: it is the name in the README's worked-example table and the file mp init --demo
    writes to disk. The dogfood baseline is now keyed under the fictional modelpin-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 check still 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 three
    xfail(strict=True) tests rather than prose.

  • This repo's own dogfood config no longer hijacks a cloned checkout. modelpin.yaml
    sat 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 init
    honoured its scenarios_dir, found the 8 scenarios already in examples/suite,
    scaffolded nothing, and still exited 0 reporting "Already initialised" — then
    mp baseline replayed Modelpin's own held-out public suite on the user's key: 40
    replays
    (8 scenarios × the config's runs: 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 are kind: agent scenarios 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.yaml and the
    workflow passes it explicitly. This affects people who cloned the repo, not
    pip install modelpin users
    — 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, and MANIFEST.in
    never listed it. A tests/ guard now fails if a modelpin.yaml becomes tracked at the
    root again. Side effect: README's "mp init scaffolds modelpin.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 ≤ ALPHA is now told so
    before it spends, is never called clean, and its report reads "NOT cleared". But the verdict
    is still unchanged and mp check still exits 0, which is deliberate — the exit code
    and MIN_RUNS are sensitivity surfaces (ADR-0016, ADR-0002) and moving either needs its own
    calibration, not a text change. What remains is an annotation on DiffResult.confidence
    itself, 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_reason now 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 - 2026-08-22

Changed (breaking)

  • mp report --suite-dir is now required. There is no built-in default suite directory.
    The previous default (examples/report-suite) named a path that cannot exist after
    pip install, so a bare mp report told users "no scenarios found" for a directory they
    never chose. Bare mp report now 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 modelpin could not run the README's own quickstart (#28). The wheel
    shipped no examples/ and no data/models.json, so the documented zero-key quickstart
    exited 1, watcher.load_registry() raised FileNotFoundError, and mp report failed on
    its own default. Fixed by making the program self-sufficient rather than the archive
    bigger: the wheel stays code-only, mp init --demo generates the demo, and the model
    registry is embedded.
  • The error message's remedy no longer loops. no scenarios in ... used to say
    "Run mp init first" unconditionally. That was correct only when the missing directory
    happened to be the one mp init creates; otherwise it sent the user around a loop with no
    exit (— mp init succeeds, 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 init is named only when mp init would create
    exactly that path.
  • mp init honours scenarios_dir from an existing modelpin.yaml instead of always
    scaffolding scenarios/, so following the error's advice now terminates.
  • load_registry() no longer reads ./data/models.json from 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 fake run
    — 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 now local-suite.
  • The documented PowerShell escape hatch is Remove-Item Alias:mp -Force — the alias is
    ReadOnly, 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, including unchanged. No key, no cost, and it exits 1 on a real regression because
    that non-zero exit is the CI gate.
  • wheel-smoke CI job — builds the wheel, installs it into a fresh venv outside the
    checkout, extracts the quickstart from README.md (via tests/docs_extract.py, which
    fails closed), and runs it in an empty directory, on Linux and Windows. The previous CI
    installed -e and ran from the checkout, which removed both preconditions of #28 and made
    that entire bug class invisible to it.
  • MANIFEST.in — the sdist now carries tests/, examples/, docs/ and
    data/models.json, so a contributor can build and test from a source distribution. The
    wheel is unaffected and stays code-only.

0.1.1 - 2026-06-24

Security

  • GitHub Action hardened against script injection — all caller-controlled inputs now flow
    through the step env as data and are never interpolated into run: shell text.
  • PR-comment markdown injection fixed — report content is escaped before it is posted.
  • Secret scrubber widened — added Groq gsk_ and ensured model_id is scrubbed from
    error paths.

Fixed

  • --match subset / --match superset no longer silently collapse to strict (which could
    manufacture a false-positive regression on a change the mode is meant to permit). Directional
    modes now route through trajectory_match with a one-sided violation-rate test, and --match
    is 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 - 2026-06-24

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, alias mp): 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.