oficina / equipo Public

Clone
git clone https://amadan.net/oficina/equipo

Plain git — no account needed to clone.

Download

Download this file

1# S5b progress: models chosen per step
2
3Branch `connections-s5b-models` from main 5880ab10 (S1 to S5 merged),
4with main's e8e7dd28 (S5's under-count line) merged in. Spec:
5`docs/superpowers/specs/2026-11-12-equipo-connectors-and-token-scheduling.md`
6revision 3.3, §16, approved by the controller as written (7348f56e on
7`connections-models-design`), brought into main's spec here with the
8controller's notes: the tier table beside the price tables (and covering
9OpenCode Go), OpenCode's model fixed over ACP (no bridge), protocol 18.
10`CODEX-FINDINGS-CONNECTORS-MODELS.md` copied from that branch.
11
12No real key, sign-in or provider: fakes only (fakepi in the real
13bubblewrap namespace, a fake TensorX on 127.0.0.1).
14
15## Done, by §16 item
16
17- **16.1 Allowed sets.** Runner: `metered_models` (one row per allowed
18 model: state, failed_at, reason) and `models_revision`; `SetModels`
19 moves the revision first, bound to the connection id and above the
20 revision held, then the rows (kept models keep their state, new ones
21 start unprobed, removed ones go); the connection's one model (S1's,
22 what an older instance sees) is the cheapest allowed. The connect card
23 is `PromptModels` with every listed model and its eligibility; the
24 runner waits for the `models` frame (or an older instance's `model`
25 frame, taken as a set of one at revision 1) and proves the key on the
26 cheapest allowed model. The key's list is kept and read again on Check
27 again (`listed`), and hello carries the applied set, its states and
28 the list. Instance: migration 0076 (sets, revisions, states, list;
29 usage family, tier, tier_version, model_mismatch; the step's model),
30 `PUT /api/v1/connections/{id}/models` and the page's form (owner-only,
31 roster in the transaction, audited `connection.models`, at least one
32 allowable model, revision-checked, 409 `runner_too_old` below 18, 422
33 `models_not_allowed`), the durable frame, pending until the ack, sent
34 again when a hello shows the runner behind.
35- **16.2 Tiers.** `internal/runner/metered/tiers.go`: `tiers-2026-11-12`
36 (dated), TensorX's ten as listed, OpenCode Go's eighteen (below).
37 Eligible = priced in the connection's pinned price table and tiered
38 in the current tier table. Usage's source line: "TensorX prices taken
39 from the public page on 12 Nov 2026. Model tiers are Equipo’s own,
40 dated 12 Nov 2026."
41- **16.3 Pairs.** `schedule.Decide` over (connection, model): `TierCap`
42 from the fill, `PickModel` (highest tier at or below the cap, else the
43 lowest present; output price, input price, id); rule 1 keeps a kept
44 session on its own model while eligible; Review's groups: other family,
45 same family elsewhere, Engineering's own connection (labels as built).
46 Engineering's family is the dispatch's `avoid_family` (the instance
47 reads Engineering's newest step on that account), else the runner's own
48 admission record, else the subscription's one family. Questions never
49 go through Decide: the guard admits them only on their session's model
50 (allowed, priced, not unhealthy), else `model_unavailable`.
51- **16.4 Probes.** A chosen unprobed model is probed in `Conns.admit`:
52 the scheduler's admission (release into grant, admission row) commits
53 in the probe's guard transaction, the slot is claimed by
54 `probe:<step>:<attempt>:<model>` (role probe, usage frame with that
55 probe id), then the step is decided again (at most three probes per
56 look). Verdicts commit with the charge: answered by that model:
57 healthy; 401/403: connection refused, no model marked; 404 or
58 model_not_found: unhealthy `not_found`, nothing billed; another model:
59 unhealthy `other_model`, charged as that model; no usage: spend
60 unknown. Retries on demand only: Check again (key on the cheapest
61 allowed, then every unhealthy allowed model) or a pick a day after
62 `failed_at`. A step that fails model-not-found (Pi 404 or a 4xx naming
63 model_not_found; OpenCode `provider.model-not-found`) makes its model
64 unhealthy.
65- **16.5 Bindings.** Admissions record model, family, tier,
66 price_version and tier_version (immutable once the attempt launches);
67 kept sessions record model and family; both backfilled from the
68 connection's one model. Usage rows carry the reported model's family
69 and tier, the tier version and `model_mismatch` (charged at the
70 reported model's price, chosen model unhealthy until Check again). The
71 harness is launched with the chosen model (Pi `--model` and
72 `models.json`; OpenCode's config), and the OpenCode adapter now refuses
73 a prompt, and fails the turn, once ACP reports the model option changed.
74- **Wire, protocol 18** (`ProtocolModels`): the `models` frame (refused
75 below), `PromptModels` (said as the one-model pick of the eligible
76 models below), held sets, states and choices, usage family, tier,
77 tier_version, model_mismatch and `avoid_family` (dropped below),
78 `model_unavailable` (said as `account_unavailable` below). The step
79 runs first in Encode's chain.
80- **Pages.** The models card; "Models: 1 of 2" opening the same list
81 (No price yet greyed, Not answering, tiers); an older runner's row as
82 before with "needs an update"; a metered step's line names its model;
83 Usage groups by model; a `model_unavailable` question says whether its
84 model was unticked or is not answering.
85
86## OpenCode Go tiers (for the controller to check)
87
88Same table and version. A model TensorX also serves keeps TensorX's
89tier; the rest by Go's output price per million and the vendor's own
90naming (flash, small and older coding models a tier below the
91flagship). Families are the S5 harness rule's.
92
93| Model | Family | Tier | Go price in / out |
94|---|---|---|---|
95| glm-5.3 | glm | strong | 1.40 / 4.40 |
96| kimi-k3.1-pro | kimi | strong | 2.00 / 10.00 |
97| kimi-k3 | kimi | strong | 3.00 / 15.00 |
98| deepseek-v4-pro | deepseek | strong | 1.32 / 3.96 |
99| glm-5.2 | glm | standard | 1.40 / 4.40 |
100| kimi-k2.7-code | kimi | standard | 0.95 / 4.00 |
101| deepseek-v4.1-flash | deepseek | standard | 0.30 / 1.20 |
102| longcat-2.0 | longcat | standard | 0.30 / 1.20 |
103| mimo-v2.6-pro | mimo | standard | 0.435 / 0.87 |
104| mimo-v2.5-pro | mimo | standard | 0.435 / 0.87 |
105| hy4 | hunyuan | standard | 0.834 / 2.501 |
106| hy4-preview | hunyuan | standard | 0.834 / 2.501 |
107| step-5-preview | step | standard | 1.00 / 2.70 |
108| glm-5.3-flash | glm | cheap | 0.15 / 0.50 |
109| mimo-v2.6-flash | mimo | cheap | 0.14 / 0.28 |
110| mimo-v2.5 | mimo | cheap | 0.14 / 0.28 |
111| minimax-m3.1-flash | minimax | cheap | 0.15 / 0.60 |
112| hy3 | hunyuan | cheap | 0.14 / 0.58 |
113
114## Tests
115
116- §16.6 invariants as properties: (a), (b), (e)
117 `TestDecidePairsInvariants` (20,000 random inputs, connections and
118 models shuffled); (c) `TestPickModelMonotone` (20,000, prices shuffled
119 so a cheaper strong model exists, on one connection and through
120 Decide); (a), (d), (g) at the guard `TestGuardModelInvariants` (random
121 sets, states, roles and models). (d), (f), (g) end to end below.
122- §16.7 finish line, `internal/runner/thin` with fakes:
123 `TestModelsEngineeringProbesThenRunsTheStrongest` (probe, then the
124 strongest; at 0.8 fill a cheap one, no probe; (f) the usage's model is
125 the chosen one), `TestModelsReviewAcrossFamilies` (Kimi; GLM labelled
126 same_family with Engineering elsewhere, same_account on its own),
127 `TestModelsQuestionOnAnUntickedModel` (model_unavailable, nothing
128 admitted or charged), `TestModelsProbeAnsweredByAnotherModel`
129 (unhealthy, the next pick runs; not found likewise, unbilled),
130 `TestModelsMigratedConnectionAsBefore`, `TestContractModelsOlderRunner`
131 (instance: refused, nothing sent, the row as before).
132- Also: `TestModelsProbeFailures`, `TestModelsUnhealthyRetriedOnDemand`,
133 `TestModelsStepMismatch`, `TestModelsStepModelGone`,
134 `TestModelsFixRoundOnlyOnItsModel`, `TestModelsFrame`;
135 `internal/schedule` `TestPickModel`, `TestDecidePairs`;
136 `internal/runner/metered` `TestTierTableMatchesPrices`,
137 `TestTierVersionsRetireModels`, `TestCheapestTieRule`,
138 `TestModelsMigration`, `TestSetModelsRevisionAndBinding`,
139 `TestGuardAdmitsOnlyAllowedModels`, `TestChargeModelMismatch`,
140 `TestModelRetryable`; `internal/wire`
141 `TestEncodeBelowProtocol18AgainstFrozenSchemas` (every protocol 1 to
142 17 against frozen protocol 17 key and value sets),
143 `TestModelsFrameAndAllowedSet`; `connect` `TestAPIClientModelsAndProbe`
144 (404 and model_not_found); Pi and OpenCode decoders; instance
145 `TestModelsWritesCheckOwnerRosterAndRevision`, `TestStepRecordsItsModel`,
146 `TestContractModels`, `TestContractReviewNamesEngineeringFamily`,
147 `TestUsageTierSource`, `TestModelsOnStepsAndQuestions`, `TestModelsRow`.
148- S1 to S5 tests updated where S5b changed a fact (holders name a model,
149 rigs carry a migrated allowed set, the connect card is the models card,
150 the S1 API fixture shows the set); otherwise unchanged and passing.
151- Local runs were targeted only (`-run`, `-tags testbuild` for thin),
152 plus gofmt, go vet (linux, testbuild, darwin runner build),
153 staticcheck on the changed packages, `rastrillo budget size` (lines
154 updated) and the dead-reference scan.
155
156## Mutations, each observed failing
157
158- wire W1: downgradeModels never called -> TestEncodeBelowProtocol18AgainstFrozenSchemas (a models frame encoded at 17)
159- wire W2: the one-model pick offered every listed model -> same (prompt at 17 offers vendor/unpriced)
160- wire W3: model_unavailable kept below 18 -> same (answer at 17 carries model_unavailable)
161- wire W4: avoid_family kept below 18 -> same (dispatch at 17 carries avoid_family)
162- wire W5: the held set kept below 18 -> same (hello at 17: connections carries models)
163- wire W6: tier_version and model_mismatch kept below 18 -> same (usage at 17: rows carries tier_version)
164- wire W7: the models frame not refused -> same (a models frame encoded at 17)
165- wire W8: an empty allowed set valid -> TestModelsFrameAndAllowedSet (ValidAllowed([]) = true)
166- metered MM8: the guard's model check off -> TestGuardAdmitsOnlyAllowedModels (engineering admitted on unprobed kimi-k3)
167- metered MM9: a step admitted on any eligible model, healthy or not -> same (engineering on unprobed kimi-k3)
168- metered MM10: a question admitted on an unhealthy model -> same (ask on unhealthy glm-5.2)
169- metered MM11: an attempt naming no model admitted -> same (engineering with no model)
170- metered MM12: SetModels not bound to the connection (both layers: the check and the UPDATE's condition) -> TestSetModelsRevisionAndBinding (another connection's set applied); either layer alone: still refused (layered). First run MISSED: SetModels changed rows before the conditional UPDATE refused it; the revision now moves first and the test checks the set is unchanged
171- metered MM13: SetModels not above the revision held (both layers) -> same (revision 1 again applied); either alone: still refused (layered)
172- metered MM14: an unpriced model allowed -> same (an unpriced model allowed)
173- metered MM15: a removed model's row kept -> same (removed models stayed), TestGuardAdmitsOnlyAllowedModels (engineering admitted on a removed model)
174- metered MM16: a reported model not compared with the chosen -> TestChargeModelMismatch (ModelMismatch false)
175- metered MM17: the chosen model not made unhealthy on a mismatch -> same (chosen model healthy)
176- metered MM18: the migration made every picked model healthy -> TestModelsMigration (unproven: healthy)
177- metered MM19: eligibility without the tier -> TestTierVersionsRetireModels
178- metered MM20: a priced Go model left untiered -> TestTierTableMatchesPrices (opencode-go: priced ... hy3, tiered without it)
179- metered MM21: the tie rule without the input price -> TestCheapestTieRule
180- metered MM22: an unhealthy model retryable at once -> TestModelRetryable (retry boundary)
181- schedule SM20: the cap ignored (the highest tier present) -> TestPickModel (at 0.5: the strong model), TestDecidePairs (at 0.8: glm-5.3)
182- schedule SM21: the fallback the highest tier present (finding 6's rule) -> TestPickModel (strong and standard at 0.9: strong), TestPickModelMonotone (#95: fill 0.54 standard, fill 0.81 strong)
183- schedule SM22: the strong cap at or below 0.5 -> TestPickModel (at 0.5: strong)
184- schedule SM23: metered models not split by family -> TestDecidePairs (review of glm ran glm-5.3), TestDecidePairsInvariants ((b) Review ran minimax's family though another was admissible)
185- schedule SM24: no family groups -> TestDecidePairs, TestDecidePairsInvariants ((b) Review ran codex's family)
186- schedule SM25: a kept session kept on a removed or unproven model -> TestDecidePairs (kept model removed)
187- schedule SM26: a metered connection with no eligible model a candidate -> TestDecidePairs (ran with no model), TestDecidePairsInvariants ((a) model "")
188- schedule SM27: the model picked without the fill's cap -> TestDecidePairs (at 0.8: glm-5.3)
189- schedule SM28: the tie rule without the output price -> TestPickModel (below 0.5: glm-5.3, not deepseek-v4-pro)
190- schedule SM29: the decision not saying the model needs a probe -> TestDecidePairs (first pass not unprobed), TestDecidePairsInvariants ((a))
191- schedule SM30: the same family elsewhere ranked with Engineering's own connection -> TestDecidePairs (same family elsewhere first), TestDecideReviewFamily (another account next)
192- runner T1: an unprobed choice launched without its probe -> TestModelsEngineeringProbesThenRunsTheStrongest (deferred: the guard refused the unproven model; no probe)
193- runner T2: the step's holder without its model -> same (held, never ran)
194- runner T3: the binding not given the pair's model -> same (at 0.8 ran glm-5.3, not the cheap model)
195- runner T4: the harness launched with the connection's one model, not the chosen (§16.6 f) -> same (usage on another model)
196- runner T5: a question run on the connection's model instead of its session's: with askPi's own check kept -> TestModelsQuestionOnAnUntickedModel (q3 failed model_unavailable); with both layers off -> same (q1 answered on glm-5.3-flash). Hard-coding the holder's model to the session's own (as first written) SURVIVED: not a real change; replaced by these two
197- runner T6: a question the guard refused for its model held instead of failed -> same (no final answer)
198- runner T7: Engineering's family from the connection, not the dispatch's record -> TestModelsReviewAcrossFamilies (review of a kimi step ran kimi)
199- runner T8: a kept session's model not recorded -> TestModelsQuestionOnAnUntickedModel (kept session Model "")
200- runner T9: a probe answered by another model not marked other_model -> TestModelsProbeAnsweredByAnotherModel (reason model_mismatch from the charge's layer, not other_model)
201- runner T10: a 404 probe charged as spend unknown -> same
202- runner T11: the models frame's binding check off -> TestModelsFrame (a frame naming another runner name errored; another person's applied)
203- runner T12: the kept-session backfill off -> TestModelsMigratedConnectionAsBefore (kept session Model "")
204- runner T13: Check again not probing unhealthy models -> TestModelsFrame (no Check again probes)
205- runner T14: the connect proof on the first model picked, not the cheapest -> TestModelsFrame (connect probes [z-ai/glm-5.3])
206- runner T15: a fix round resumed on its connection whatever the model -> TestModelsFixRoundOnlyOnItsModel (resume true after its model left)
207- runner T16: a step's model-not-found not marked -> TestModelsStepModelGone (model healthy)
208- runner T17: the admission's model, family, tier and versions not recorded -> TestModelsEngineeringProbesThenRunsTheStrongest
209- runner T18: hello without the applied set -> TestModelsMigratedConnectionAsBefore (Models [], revision 0)
210- runner T19: an unhealthy model retried at once -> TestModelsUnhealthyRetriedOnDemand
211- instance I1: a set change sent to a runner below 18 -> TestModelsWritesCheckOwnerRosterAndRevision (a protocol 17 runner: accepted)
212- instance I2: the set's revision not checked -> same (a stale revision accepted)
213- instance I3: models the key did not list as allowable accepted -> same (an unpriced model)
214- instance I4: the audit left out -> same (audits [])
215- instance I5: the roster check left out -> same (a removed person's set)
216- instance I6: the connection looked up without its owner -> same (another person's set reached the runner check)
217- instance I7: the models frame's ack not applied -> same (pending after the ack)
218- instance I8: a hello behind the set not answered with the frame again -> TestContractModels (not sent again)
219- instance I9: the row counting every listed model -> TestModelsRow ("Models: 2 of 2")
220- instance I10: model_unavailable said as a generic failure -> TestModelsOnStepsAndQuestions ("something went wrong")
221- instance I11: the tier table not named on Usage -> TestContractModels
222- instance I12: hello's listed models not kept -> first SURVIVED (the connect card's choices already set them); a hello with a newly listed model was added to TestContractModels, then caught ("Models: 2 of 3" never shown)
223- instance I13: a subscription's model recorded on the step -> TestStepRecordsItsModel
224- instance I14: an empty set accepted -> TestModelsWritesCheckOwnerRosterAndRevision (none accepted)
225- instance I15: Review's dispatch without Engineering's recorded family -> TestContractReviewNamesEngineeringFamily (protocol 18: avoid_family empty)
226
227## Decisions where §16 was open
228
229- **Labels as built.** Review on the same connection as Engineering is
230 `same_account` whatever the model; the finish line's "GLM labelled
231 same family" holds when Engineering ran on another connection (the
232 test shows both).
233- **Engineering's family**: the instance sends Engineering's recorded
234 family as `avoid_family`; the runner falls back to its own admission
235 record of the task's Engineering attempt, then (a connection from
236 before S5b with neither) its one model's family.
237- **A probe answered by that model with no usage** marks the model
238 healthy (it answered) and pauses the connection (spend unknown).
239- **404 / model_not_found is not billed** (like a refused key); any
240 other probe failure after the request stays spend unknown.
241- **Questions** need their model allowed, priced and not unhealthy; an
242 unprobed session model cannot occur (it ran).
243- **Admission records** follow a re-admission until the attempt
244 launches (the probe's admission row becomes the step's), immutable
245 after.
246- **Tiers on old rows** are not backfilled (no table existed then); model
247 and family are.
248- **The key's list** is kept on the runner and read again on Check again,
249 so a connection from before S5b gets its list (until then its row
250 offers its one model).
251- **At most three first-use probes per look**, then a short hold.
252- **The step's model on the page** is shown for metered steps only (rows
253 with a price version), so subscription steps read as before.
254- **OpenCode's model-not-found error name** (`provider.model-not-found`)
255 is assumed from OpenCode's provider error pattern: no real provider,
256 not probed on the real binary.
257
258## Copy keys (COPY REVIEW REQUIRED, in the Plan 3 inventory)
259
260- `chat.connections.metered.models_pick`: Tick the models I may choose from. I pick one for each step: the strongest your budget allows.
261- `chat.connections.metered.models_use`: Use these models
262- `chat.connections.metered.models_one`: Keep at least one model ticked.
263- `chat.connections.metered.no_price`: No price yet
264- `chat.connections.metered.models_count`: Models: %d of %d
265- `chat.connections.metered.models_too_old`: Your runner needs an update before it can allow more models.
266- `chat.connections.metered.model_unhealthy`: Not answering
267- `chat.connections.metered.tier.strong`: Strong
268- `chat.connections.metered.tier.standard`: Standard
269- `chat.connections.metered.tier.cheap`: Cheap
270- `work.ask.model_removed`: That model is no longer allowed on %s.
271- `work.ask.model_unhealthy`: That model is not answering.
272- `work.step.model`: on %s
273- `usage.tier_source`: Model tiers are Equipo’s own, dated %s.
274- `usage.by.model`: Model
275- `usage.no_model`: No model reported
276
277## Copy: delegated review (Astra, 2026-11-13)
278
279The 16 strings went through Astra as the copy-review gate (Paul's
280delegation of 2026-10-25): 10 kept, 6 changed, applied verbatim, each
281now `COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)` in `copy.go` and in
282the Plan 3 inventory. The list above shows the texts as first written.
283The changes: the models card says to untick what not to use and that a
284model is chosen per step from the budget; "Price or tier unavailable";
285"Models allowed: %d of %d"; the older runner's line says the allowed
286models cannot change; the removed-model card names "this %s
287connection"; the Usage line says "Model tiers reflect Equipo’s judgement
288as of %s." Tests that quote them updated.
289
290## Security round (Astra, read-only, on 71dbb9ec)
291
292Verdict NOT READY: nine mechanical findings, fixed here, each with a
293test written first and a mutation observed; one design finding (#7),
294ruled by the controller (accept and state).
295
2961. Pi's tally kept only the first message's model (`pi/decode.go`): it
297 now keeps one row per reported model, with its own figures and
298 reported cost; the request count rides the first row; an uncountable
299 message leaves every row unknown. A later request on another model is
300 its own row, so its mismatch is seen and it is priced as itself (an
301 unpriced one pauses). `TestTallyRowsPerModel`,
302 `TestModelsLaterRequestOnAnotherModel` (fakepi's `thenby:`).
3032. A re-probe reused probe id and attempt 1 (`thin/models.go`,
304 `thin/apikey.go`): each execution of a probe id takes the next value
305 of a durable sequence (`probe_seq`, committed before the probe runs)
306 as its usage attempt and slot holder's attempt; a resent frame of one
307 execution still charges once. `TestModelsReprobeChargedAgain`.
3083. Sets not held to the key's list (`metered/models.go`): a change is
309 checked against the list this runner read, in the same transaction;
310 a connection with no list yet (from before S5b, until Check again)
311 may shrink or keep its set, never grow it.
312 `TestSetModelsRevisionAndBinding`.
3134. A refused set shown applied (`chat/metered.go`, `chat/runner.go`,
314 `chat/connections.go`): the models frame's ack is receipt only; the
315 applied revision and states come from the runner's hello alone, never
316 maxed with an ack or an earlier hello. The runner's hello follows an
317 applied set. `TestModelsWritesCheckOwnerRosterAndRevision`,
318 `TestContractModels`, `TestModelsFrame` (a refused set stays at the
319 revision held).
3205. Review's three groups (`schedule/schedule.go`): two family groups;
321 in each, §7's rules in order (preference, subscription, metered), and
322 within the rule that yields candidates another connection than
323 Engineering's first, then room. "Equal rank" is read as the same
324 rule, as the scheduler did before (Review runs away from
325 Engineering's account): the first fix read it as equal room, and the
326 hosted headless C5 tests (Review on a second Claude account) caught
327 it, since Engineering's account has a reading and the other none.
328 `TestDecidePairs`, `TestDecideReviewFamily` (S3's cases as they were).
3296. A mismatch retried by time (`metered/models.go`): `model_mismatch` is
330 never retryable; it stays until Check again. `TestModelRetryable`.
3317. (Design) OpenCode's ACP usage names no model: accepted and stated in
332 §16.5 and §12, with the follow-up slice that closes it (OpenCode's
333 per-request rows from `OPENCODE_DB` after the attempt, which also
334 closes the under-count gap). No code or copy changed; Pi is
335 unaffected.
3368. Probe tests (`thin/models_test.go`): at the fake provider's request
337 the admission row is committed with the probed model and the slot is
338 the probe's (`TestModelsProbeRunsInsideTheAdmission`); leave to spend
339 withdrawn before the admission commits means no request and no charge
340 (`TestModelsProbeNeedsTheAdmission`); four candidates the provider
341 does not have: three probes, then a short hold
342 (`TestModelsProbesBounded`).
3439. OpenCode's prompt refusal through the launcher (`opencode/acp_test.go`):
344 a fake ACP process changes the session's model before session/new
345 answers; StartTurn returns ErrIdentity and writes nothing.
346 `TestLauncherRefusesAChangedModel`.
34710. Downgrade coverage (`wire/models_test.go`): a reply's and an
348 answer's usage, with every protocol 18 field, checked against the
349 frozen protocol 17 key sets at every lower protocol.
350
351Mutations observed:
352
353- S1a: a step's rows cut to the first model (the tally's one row, as it was) -> TestModelsLaterRequestOnAnotherModel (one row on glm-5.3: no mismatch, the unpriced model's request folded in). The test failed to build before the fix (no Rows), observed first
354- S1b: every request summed under the first model -> TestTallyRowsPerModel (one row)
355- S2: every probe execution attempt 1 (as it was) -> TestModelsReprobeChargedAgain (charges 1 over 1 attempts: the second spend dropped as a resend). The test failed before the fix, observed first
356- S3a: a set not held to the key's list (as it was) -> TestSetModelsRevisionAndBinding (a priced, tiered model the key does not list allowed). The test failed before the fix, observed first
357- S3b: a connection with no list allowed to grow its set -> same (a model added with no list of the key's)
358- S4a: hello's applied revision maxed with what the instance held (as it was) -> TestModelsWritesCheckOwnerRosterAndRevision (a hello behind was maxed away). The test failed before the fix, observed first
359- S4b: the models frame's ack taken as applied (as it was) -> same (an ack showed the set applied), TestContractModels (an ack showed the set applied)
360- S5a: Review's three groups (as it was) -> TestDecidePairs (subscription before metered: ran on u; the preference before another connection). The test failed before the fix, observed first
361- S5c: Engineering's own connection kept in a rule while another is there (room alone deciding, the first fix) -> TestDecidePairs (same family elsewhere at the same rule: ran on t), TestDecideReviewFamily (another account next). Hosted CI's TestHeadlessConnections C5_review_failover and C5_review_auth failed on that first fix
362- S6: a model_mismatch retried after a day (as it was) -> TestModelRetryable (a mismatch retried by time). The test failed before the fix, observed first
363- S8a: the first-use probe run without the step's admission (nil admit) -> TestModelsProbeRunsInsideTheAdmission (no admission row at the probe's request), TestModelsProbeNeedsTheAdmission (the probe ran though leave to spend was withdrawn before the admission). Before these tests, TestModelsEngineeringProbesThenRunsTheStrongest passed with it, as the finding says (its admission check comes after the step's own admission). The first run hung to the test timeout on the held fake; the test now releases it on failure
364- S8b: no bound on first-use probes (10) -> TestModelsProbesBounded (four probes, then the step ran)
365- S9: StartTurn's model-change guard off -> TestLauncherRefusesAChangedModel (a prompt to a session whose model changed: accepted). Before this test, TestDecodeModelFixed alone passed with it off, as the finding says
366- S10a: a reply's usage fields not stripped below 18 -> TestEncodeBelowProtocol18AgainstFrozenSchemas (reply at 17: usage carries tier_version). The test MISSED it before (no reply fixture); the reply fixture was added first
367- S10b: an answer's usage fields not stripped below 18 -> same (answer at 17: usage carries tier_version). MISSED before (the answer's usage was empty)
368- S7 (DESIGN, controller's ruling: accept and state): no code change; §16.5 and §12 state OpenCode's gap and name the follow-up slice (per-request rows from OPENCODE_DB, which also closes the under-count gap)
369
370## Open
371
372- OpenCode's model identity (security round #7, stated): the follow-up
373 slice reading `OPENCODE_DB`.
374- No browser test of the models card's checkboxes (checked server-side).
375- OpenCode's model-not-found class is unprobed on the real binary.
376- The S1 `model` prompt and frame stay for older peers; `ChooseModel`
377 records a set of one.
378