Repository navigation
Commit 99a2924
fix(lab): report the model gates the way the adapters actually match them
`resolveProductionBehaviorValues` is documented as "authoritative effective
values emitted by the production route/model/adapter resolver", and its hash
is the behavior fingerprint that keys Lab evidence. Ten of its rows are
membership tests over the provider's `no*Models`-style lists, and they went
through a local
function includesModel(list, modelId) {
return Array.isArray(list) && list.includes(modelId);
}
while every runtime gate those rows describe matches through `modelInList`,
which also accepts a bare entry for a tagged id.
ollama-cloud serves `gpt-oss:120b`, `qwen3-coder:480b`, `qwen3.5:397b` and
`gemma4:31b`, and the same registry row writes the bare `gpt-oss` into
noVisionModels -- the bare-prefix form is how these lists are meant to be
written. So with `noTemperatureModels: ["gpt-oss"]` the adapter omitted
temperature from the request for `gpt-oss:120b` while the report said
`sampling.omitTemperature: false`. Same for omitTopP, omitPenalties,
reasoning.budgetMode, reasoning.splitMode, reasoning.toggleMode,
reasoning.supported, reasoning.replayMode's two flags, and
tools.choiceRestrictions.
The blast radius is confined to subjects that were being described wrongly.
Fingerprints measured on the same config, before and after:
gpt-oss:120b 54154e19bd2c8ee4 -> 45a73577c5c257f9 (was wrong)
gpt-oss 45a73577c5c257f9 -> 45a73577c5c257f9 (unchanged)
glm-5.3 54154e19bd2c8ee4 -> 54154e19bd2c8ee4 (unchanged)
Note the first line against the third: a model whose sampling gates were
applied hashed identically to one where they were not. It now hashes with
`gpt-oss`, the id it actually behaves like. Recorded evidence for unaffected
subjects keeps its fingerprint, so `resolverVersion` is left at 2 rather than
invalidating every recorded subject globally -- say the word if you would
rather draw a clean generation boundary and I will bump it.
Tests assert the wire the adapter really builds first, then hold the report to
that same wire, so the pair cannot drift apart silently. The five report cases
fail on current dev.
Co-Authored-By: Claude Opus 5 <[email protected]>1 parent 69650fa commit 99a2924
2 files changed
Lines changed: 85 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
40 | 50 | | |
41 | | - | |
| 51 | + | |
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
0 commit comments