Skip to content

feat: add examples/model_drift — answer-drift gate for model migrations - #59

Closed
Therealdk8890 wants to merge 1 commit into
mainfrom
DK/model-drift-example
Closed

feat: add examples/model_drift — answer-drift gate for model migrations#59
Therealdk8890 wants to merge 1 commit into
mainfrom
DK/model-drift-example

Conversation

@Therealdk8890

Copy link
Copy Markdown
Owner

Check whether a replacement model drifts from a soon-to-be-discontinued one on a fixed prompt set. Records the old model's answers as a golden run and the new model's as a candidate, then gates with RegressionGate + a pluggable answer-equivalence evaluator (stdlib lexical or LLM-as-judge). The LLM judge fails closed: any reply that isn't a clean [0,1] score reads as drift, so a flaky judge can't silently pass a regression.

record_baseline(...) / --record-golden + --golden-db let you pin the old model's golden while it's still callable and gate against it after retirement (the old model is never re-called on the reuse path). Ships a deterministic offline FakeModelClient so the flow runs in CI with no key; the OpenAI client and its opt-in 'openai' extra are lazily imported, keeping dprovenancekit/ stdlib-only and unchanged.

Check whether a replacement model drifts from a soon-to-be-discontinued one on a fixed prompt set. Records the old model's answers as a golden run and the new model's as a candidate, then gates with RegressionGate + a pluggable answer-equivalence evaluator (stdlib lexical or LLM-as-judge). The LLM judge fails closed: any reply that isn't a clean [0,1] score reads as drift, so a flaky judge can't silently pass a regression.

record_baseline(...) / --record-golden + --golden-db let you pin the old model's golden while it's still callable and gate against it after retirement (the old model is never re-called on the reuse path). Ships a deterministic offline FakeModelClient so the flow runs in CI with no key; the OpenAI client and its opt-in 'openai' extra are lazily imported, keeping dprovenancekit/ stdlib-only and unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Therealdk8890
Therealdk8890 deleted the DK/model-drift-example branch July 21, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant