# S5b progress: models chosen per step

Branch `connections-s5b-models` from main 5880ab10 (S1 to S5 merged),
with main's e8e7dd28 (S5's under-count line) merged in. Spec:
`docs/superpowers/specs/2026-11-12-equipo-connectors-and-token-scheduling.md`
revision 3.3, §16, approved by the controller as written (7348f56e on
`connections-models-design`), brought into main's spec here with the
controller's notes: the tier table beside the price tables (and covering
OpenCode Go), OpenCode's model fixed over ACP (no bridge), protocol 18.
`CODEX-FINDINGS-CONNECTORS-MODELS.md` copied from that branch.

No real key, sign-in or provider: fakes only (fakepi in the real
bubblewrap namespace, a fake TensorX on 127.0.0.1).

## Done, by §16 item

- **16.1 Allowed sets.** Runner: `metered_models` (one row per allowed
  model: state, failed_at, reason) and `models_revision`; `SetModels`
  moves the revision first, bound to the connection id and above the
  revision held, then the rows (kept models keep their state, new ones
  start unprobed, removed ones go); the connection's one model (S1's,
  what an older instance sees) is the cheapest allowed. The connect card
  is `PromptModels` with every listed model and its eligibility; the
  runner waits for the `models` frame (or an older instance's `model`
  frame, taken as a set of one at revision 1) and proves the key on the
  cheapest allowed model. The key's list is kept and read again on Check
  again (`listed`), and hello carries the applied set, its states and
  the list. Instance: migration 0076 (sets, revisions, states, list;
  usage family, tier, tier_version, model_mismatch; the step's model),
  `PUT /api/v1/connections/{id}/models` and the page's form (owner-only,
  roster in the transaction, audited `connection.models`, at least one
  allowable model, revision-checked, 409 `runner_too_old` below 18, 422
  `models_not_allowed`), the durable frame, pending until the ack, sent
  again when a hello shows the runner behind.
- **16.2 Tiers.** `internal/runner/metered/tiers.go`: `tiers-2026-11-12`
  (dated), TensorX's ten as listed, OpenCode Go's eighteen (below).
  Eligible = priced in the connection's pinned price table and tiered
  in the current tier table. Usage's source line: "TensorX prices taken
  from the public page on 12 Nov 2026. Model tiers are Equipo’s own,
  dated 12 Nov 2026."
- **16.3 Pairs.** `schedule.Decide` over (connection, model): `TierCap`
  from the fill, `PickModel` (highest tier at or below the cap, else the
  lowest present; output price, input price, id); rule 1 keeps a kept
  session on its own model while eligible; Review's groups: other family,
  same family elsewhere, Engineering's own connection (labels as built).
  Engineering's family is the dispatch's `avoid_family` (the instance
  reads Engineering's newest step on that account), else the runner's own
  admission record, else the subscription's one family. Questions never
  go through Decide: the guard admits them only on their session's model
  (allowed, priced, not unhealthy), else `model_unavailable`.
- **16.4 Probes.** A chosen unprobed model is probed in `Conns.admit`:
  the scheduler's admission (release into grant, admission row) commits
  in the probe's guard transaction, the slot is claimed by
  `probe:<step>:<attempt>:<model>` (role probe, usage frame with that
  probe id), then the step is decided again (at most three probes per
  look). Verdicts commit with the charge: answered by that model:
  healthy; 401/403: connection refused, no model marked; 404 or
  model_not_found: unhealthy `not_found`, nothing billed; another model:
  unhealthy `other_model`, charged as that model; no usage: spend
  unknown. Retries on demand only: Check again (key on the cheapest
  allowed, then every unhealthy allowed model) or a pick a day after
  `failed_at`. A step that fails model-not-found (Pi 404 or a 4xx naming
  model_not_found; OpenCode `provider.model-not-found`) makes its model
  unhealthy.
- **16.5 Bindings.** Admissions record model, family, tier,
  price_version and tier_version (immutable once the attempt launches);
  kept sessions record model and family; both backfilled from the
  connection's one model. Usage rows carry the reported model's family
  and tier, the tier version and `model_mismatch` (charged at the
  reported model's price, chosen model unhealthy until Check again). The
  harness is launched with the chosen model (Pi `--model` and
  `models.json`; OpenCode's config), and the OpenCode adapter now refuses
  a prompt, and fails the turn, once ACP reports the model option changed.
- **Wire, protocol 18** (`ProtocolModels`): the `models` frame (refused
  below), `PromptModels` (said as the one-model pick of the eligible
  models below), held sets, states and choices, usage family, tier,
  tier_version, model_mismatch and `avoid_family` (dropped below),
  `model_unavailable` (said as `account_unavailable` below). The step
  runs first in Encode's chain.
- **Pages.** The models card; "Models: 1 of 2" opening the same list
  (No price yet greyed, Not answering, tiers); an older runner's row as
  before with "needs an update"; a metered step's line names its model;
  Usage groups by model; a `model_unavailable` question says whether its
  model was unticked or is not answering.

## OpenCode Go tiers (for the controller to check)

Same table and version. A model TensorX also serves keeps TensorX's
tier; the rest by Go's output price per million and the vendor's own
naming (flash, small and older coding models a tier below the
flagship). Families are the S5 harness rule's.

| Model | Family | Tier | Go price in / out |
|---|---|---|---|
| glm-5.3 | glm | strong | 1.40 / 4.40 |
| kimi-k3.1-pro | kimi | strong | 2.00 / 10.00 |
| kimi-k3 | kimi | strong | 3.00 / 15.00 |
| deepseek-v4-pro | deepseek | strong | 1.32 / 3.96 |
| glm-5.2 | glm | standard | 1.40 / 4.40 |
| kimi-k2.7-code | kimi | standard | 0.95 / 4.00 |
| deepseek-v4.1-flash | deepseek | standard | 0.30 / 1.20 |
| longcat-2.0 | longcat | standard | 0.30 / 1.20 |
| mimo-v2.6-pro | mimo | standard | 0.435 / 0.87 |
| mimo-v2.5-pro | mimo | standard | 0.435 / 0.87 |
| hy4 | hunyuan | standard | 0.834 / 2.501 |
| hy4-preview | hunyuan | standard | 0.834 / 2.501 |
| step-5-preview | step | standard | 1.00 / 2.70 |
| glm-5.3-flash | glm | cheap | 0.15 / 0.50 |
| mimo-v2.6-flash | mimo | cheap | 0.14 / 0.28 |
| mimo-v2.5 | mimo | cheap | 0.14 / 0.28 |
| minimax-m3.1-flash | minimax | cheap | 0.15 / 0.60 |
| hy3 | hunyuan | cheap | 0.14 / 0.58 |

## Tests

- §16.6 invariants as properties: (a), (b), (e)
  `TestDecidePairsInvariants` (20,000 random inputs, connections and
  models shuffled); (c) `TestPickModelMonotone` (20,000, prices shuffled
  so a cheaper strong model exists, on one connection and through
  Decide); (a), (d), (g) at the guard `TestGuardModelInvariants` (random
  sets, states, roles and models). (d), (f), (g) end to end below.
- §16.7 finish line, `internal/runner/thin` with fakes:
  `TestModelsEngineeringProbesThenRunsTheStrongest` (probe, then the
  strongest; at 0.8 fill a cheap one, no probe; (f) the usage's model is
  the chosen one), `TestModelsReviewAcrossFamilies` (Kimi; GLM labelled
  same_family with Engineering elsewhere, same_account on its own),
  `TestModelsQuestionOnAnUntickedModel` (model_unavailable, nothing
  admitted or charged), `TestModelsProbeAnsweredByAnotherModel`
  (unhealthy, the next pick runs; not found likewise, unbilled),
  `TestModelsMigratedConnectionAsBefore`, `TestContractModelsOlderRunner`
  (instance: refused, nothing sent, the row as before).
- Also: `TestModelsProbeFailures`, `TestModelsUnhealthyRetriedOnDemand`,
  `TestModelsStepMismatch`, `TestModelsStepModelGone`,
  `TestModelsFixRoundOnlyOnItsModel`, `TestModelsFrame`;
  `internal/schedule` `TestPickModel`, `TestDecidePairs`;
  `internal/runner/metered` `TestTierTableMatchesPrices`,
  `TestTierVersionsRetireModels`, `TestCheapestTieRule`,
  `TestModelsMigration`, `TestSetModelsRevisionAndBinding`,
  `TestGuardAdmitsOnlyAllowedModels`, `TestChargeModelMismatch`,
  `TestModelRetryable`; `internal/wire`
  `TestEncodeBelowProtocol18AgainstFrozenSchemas` (every protocol 1 to
  17 against frozen protocol 17 key and value sets),
  `TestModelsFrameAndAllowedSet`; `connect` `TestAPIClientModelsAndProbe`
  (404 and model_not_found); Pi and OpenCode decoders; instance
  `TestModelsWritesCheckOwnerRosterAndRevision`, `TestStepRecordsItsModel`,
  `TestContractModels`, `TestContractReviewNamesEngineeringFamily`,
  `TestUsageTierSource`, `TestModelsOnStepsAndQuestions`, `TestModelsRow`.
- S1 to S5 tests updated where S5b changed a fact (holders name a model,
  rigs carry a migrated allowed set, the connect card is the models card,
  the S1 API fixture shows the set); otherwise unchanged and passing.
- Local runs were targeted only (`-run`, `-tags testbuild` for thin),
  plus gofmt, go vet (linux, testbuild, darwin runner build),
  staticcheck on the changed packages, `rastrillo budget size` (lines
  updated) and the dead-reference scan.

## Mutations, each observed failing

- wire W1: downgradeModels never called -> TestEncodeBelowProtocol18AgainstFrozenSchemas (a models frame encoded at 17)
- wire W2: the one-model pick offered every listed model -> same (prompt at 17 offers vendor/unpriced)
- wire W3: model_unavailable kept below 18 -> same (answer at 17 carries model_unavailable)
- wire W4: avoid_family kept below 18 -> same (dispatch at 17 carries avoid_family)
- wire W5: the held set kept below 18 -> same (hello at 17: connections carries models)
- wire W6: tier_version and model_mismatch kept below 18 -> same (usage at 17: rows carries tier_version)
- wire W7: the models frame not refused -> same (a models frame encoded at 17)
- wire W8: an empty allowed set valid -> TestModelsFrameAndAllowedSet (ValidAllowed([]) = true)
- metered MM8: the guard's model check off -> TestGuardAdmitsOnlyAllowedModels (engineering admitted on unprobed kimi-k3)
- metered MM9: a step admitted on any eligible model, healthy or not -> same (engineering on unprobed kimi-k3)
- metered MM10: a question admitted on an unhealthy model -> same (ask on unhealthy glm-5.2)
- metered MM11: an attempt naming no model admitted -> same (engineering with no model)
- 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
- metered MM13: SetModels not above the revision held (both layers) -> same (revision 1 again applied); either alone: still refused (layered)
- metered MM14: an unpriced model allowed -> same (an unpriced model allowed)
- metered MM15: a removed model's row kept -> same (removed models stayed), TestGuardAdmitsOnlyAllowedModels (engineering admitted on a removed model)
- metered MM16: a reported model not compared with the chosen -> TestChargeModelMismatch (ModelMismatch false)
- metered MM17: the chosen model not made unhealthy on a mismatch -> same (chosen model healthy)
- metered MM18: the migration made every picked model healthy -> TestModelsMigration (unproven: healthy)
- metered MM19: eligibility without the tier -> TestTierVersionsRetireModels
- metered MM20: a priced Go model left untiered -> TestTierTableMatchesPrices (opencode-go: priced ... hy3, tiered without it)
- metered MM21: the tie rule without the input price -> TestCheapestTieRule
- metered MM22: an unhealthy model retryable at once -> TestModelRetryable (retry boundary)
- schedule SM20: the cap ignored (the highest tier present) -> TestPickModel (at 0.5: the strong model), TestDecidePairs (at 0.8: glm-5.3)
- 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)
- schedule SM22: the strong cap at or below 0.5 -> TestPickModel (at 0.5: strong)
- 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)
- schedule SM24: no family groups -> TestDecidePairs, TestDecidePairsInvariants ((b) Review ran codex's family)
- schedule SM25: a kept session kept on a removed or unproven model -> TestDecidePairs (kept model removed)
- schedule SM26: a metered connection with no eligible model a candidate -> TestDecidePairs (ran with no model), TestDecidePairsInvariants ((a) model "")
- schedule SM27: the model picked without the fill's cap -> TestDecidePairs (at 0.8: glm-5.3)
- schedule SM28: the tie rule without the output price -> TestPickModel (below 0.5: glm-5.3, not deepseek-v4-pro)
- schedule SM29: the decision not saying the model needs a probe -> TestDecidePairs (first pass not unprobed), TestDecidePairsInvariants ((a))
- schedule SM30: the same family elsewhere ranked with Engineering's own connection -> TestDecidePairs (same family elsewhere first), TestDecideReviewFamily (another account next)
- runner T1: an unprobed choice launched without its probe -> TestModelsEngineeringProbesThenRunsTheStrongest (deferred: the guard refused the unproven model; no probe)
- runner T2: the step's holder without its model -> same (held, never ran)
- runner T3: the binding not given the pair's model -> same (at 0.8 ran glm-5.3, not the cheap model)
- runner T4: the harness launched with the connection's one model, not the chosen (§16.6 f) -> same (usage on another model)
- 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
- runner T6: a question the guard refused for its model held instead of failed -> same (no final answer)
- runner T7: Engineering's family from the connection, not the dispatch's record -> TestModelsReviewAcrossFamilies (review of a kimi step ran kimi)
- runner T8: a kept session's model not recorded -> TestModelsQuestionOnAnUntickedModel (kept session Model "")
- runner T9: a probe answered by another model not marked other_model -> TestModelsProbeAnsweredByAnotherModel (reason model_mismatch from the charge's layer, not other_model)
- runner T10: a 404 probe charged as spend unknown -> same
- runner T11: the models frame's binding check off -> TestModelsFrame (a frame naming another runner name errored; another person's applied)
- runner T12: the kept-session backfill off -> TestModelsMigratedConnectionAsBefore (kept session Model "")
- runner T13: Check again not probing unhealthy models -> TestModelsFrame (no Check again probes)
- runner T14: the connect proof on the first model picked, not the cheapest -> TestModelsFrame (connect probes [z-ai/glm-5.3])
- runner T15: a fix round resumed on its connection whatever the model -> TestModelsFixRoundOnlyOnItsModel (resume true after its model left)
- runner T16: a step's model-not-found not marked -> TestModelsStepModelGone (model healthy)
- runner T17: the admission's model, family, tier and versions not recorded -> TestModelsEngineeringProbesThenRunsTheStrongest
- runner T18: hello without the applied set -> TestModelsMigratedConnectionAsBefore (Models [], revision 0)
- runner T19: an unhealthy model retried at once -> TestModelsUnhealthyRetriedOnDemand
- instance I1: a set change sent to a runner below 18 -> TestModelsWritesCheckOwnerRosterAndRevision (a protocol 17 runner: accepted)
- instance I2: the set's revision not checked -> same (a stale revision accepted)
- instance I3: models the key did not list as allowable accepted -> same (an unpriced model)
- instance I4: the audit left out -> same (audits [])
- instance I5: the roster check left out -> same (a removed person's set)
- instance I6: the connection looked up without its owner -> same (another person's set reached the runner check)
- instance I7: the models frame's ack not applied -> same (pending after the ack)
- instance I8: a hello behind the set not answered with the frame again -> TestContractModels (not sent again)
- instance I9: the row counting every listed model -> TestModelsRow ("Models: 2 of 2")
- instance I10: model_unavailable said as a generic failure -> TestModelsOnStepsAndQuestions ("something went wrong")
- instance I11: the tier table not named on Usage -> TestContractModels
- 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)
- instance I13: a subscription's model recorded on the step -> TestStepRecordsItsModel
- instance I14: an empty set accepted -> TestModelsWritesCheckOwnerRosterAndRevision (none accepted)
- instance I15: Review's dispatch without Engineering's recorded family -> TestContractReviewNamesEngineeringFamily (protocol 18: avoid_family empty)

## Decisions where §16 was open

- **Labels as built.** Review on the same connection as Engineering is
  `same_account` whatever the model; the finish line's "GLM labelled
  same family" holds when Engineering ran on another connection (the
  test shows both).
- **Engineering's family**: the instance sends Engineering's recorded
  family as `avoid_family`; the runner falls back to its own admission
  record of the task's Engineering attempt, then (a connection from
  before S5b with neither) its one model's family.
- **A probe answered by that model with no usage** marks the model
  healthy (it answered) and pauses the connection (spend unknown).
- **404 / model_not_found is not billed** (like a refused key); any
  other probe failure after the request stays spend unknown.
- **Questions** need their model allowed, priced and not unhealthy; an
  unprobed session model cannot occur (it ran).
- **Admission records** follow a re-admission until the attempt
  launches (the probe's admission row becomes the step's), immutable
  after.
- **Tiers on old rows** are not backfilled (no table existed then); model
  and family are.
- **The key's list** is kept on the runner and read again on Check again,
  so a connection from before S5b gets its list (until then its row
  offers its one model).
- **At most three first-use probes per look**, then a short hold.
- **The step's model on the page** is shown for metered steps only (rows
  with a price version), so subscription steps read as before.
- **OpenCode's model-not-found error name** (`provider.model-not-found`)
  is assumed from OpenCode's provider error pattern: no real provider,
  not probed on the real binary.

## Copy keys (COPY REVIEW REQUIRED, in the Plan 3 inventory)

- `chat.connections.metered.models_pick`: Tick the models I may choose from. I pick one for each step: the strongest your budget allows.
- `chat.connections.metered.models_use`: Use these models
- `chat.connections.metered.models_one`: Keep at least one model ticked.
- `chat.connections.metered.no_price`: No price yet
- `chat.connections.metered.models_count`: Models: %d of %d
- `chat.connections.metered.models_too_old`: Your runner needs an update before it can allow more models.
- `chat.connections.metered.model_unhealthy`: Not answering
- `chat.connections.metered.tier.strong`: Strong
- `chat.connections.metered.tier.standard`: Standard
- `chat.connections.metered.tier.cheap`: Cheap
- `work.ask.model_removed`: That model is no longer allowed on %s.
- `work.ask.model_unhealthy`: That model is not answering.
- `work.step.model`: on %s
- `usage.tier_source`: Model tiers are Equipo’s own, dated %s.
- `usage.by.model`: Model
- `usage.no_model`: No model reported

## Copy: delegated review (Astra, 2026-11-13)

The 16 strings went through Astra as the copy-review gate (Paul's
delegation of 2026-10-25): 10 kept, 6 changed, applied verbatim, each
now `COPY ACCEPTED BY DELEGATION (Astra, 2026-11-13)` in `copy.go` and in
the Plan 3 inventory. The list above shows the texts as first written.
The changes: the models card says to untick what not to use and that a
model is chosen per step from the budget; "Price or tier unavailable";
"Models allowed: %d of %d"; the older runner's line says the allowed
models cannot change; the removed-model card names "this %s
connection"; the Usage line says "Model tiers reflect Equipo’s judgement
as of %s." Tests that quote them updated.

## Security round (Astra, read-only, on 71dbb9ec)

Verdict NOT READY: nine mechanical findings, fixed here, each with a
test written first and a mutation observed; one design finding (#7),
ruled by the controller (accept and state).

1. Pi's tally kept only the first message's model (`pi/decode.go`): it
   now keeps one row per reported model, with its own figures and
   reported cost; the request count rides the first row; an uncountable
   message leaves every row unknown. A later request on another model is
   its own row, so its mismatch is seen and it is priced as itself (an
   unpriced one pauses). `TestTallyRowsPerModel`,
   `TestModelsLaterRequestOnAnotherModel` (fakepi's `thenby:`).
2. A re-probe reused probe id and attempt 1 (`thin/models.go`,
   `thin/apikey.go`): each execution of a probe id takes the next value
   of a durable sequence (`probe_seq`, committed before the probe runs)
   as its usage attempt and slot holder's attempt; a resent frame of one
   execution still charges once. `TestModelsReprobeChargedAgain`.
3. Sets not held to the key's list (`metered/models.go`): a change is
   checked against the list this runner read, in the same transaction;
   a connection with no list yet (from before S5b, until Check again)
   may shrink or keep its set, never grow it.
   `TestSetModelsRevisionAndBinding`.
4. A refused set shown applied (`chat/metered.go`, `chat/runner.go`,
   `chat/connections.go`): the models frame's ack is receipt only; the
   applied revision and states come from the runner's hello alone, never
   maxed with an ack or an earlier hello. The runner's hello follows an
   applied set. `TestModelsWritesCheckOwnerRosterAndRevision`,
   `TestContractModels`, `TestModelsFrame` (a refused set stays at the
   revision held).
5. Review's three groups (`schedule/schedule.go`): two family groups;
   in each, §7's rules in order (preference, subscription, metered), and
   within the rule that yields candidates another connection than
   Engineering's first, then room. "Equal rank" is read as the same
   rule, as the scheduler did before (Review runs away from
   Engineering's account): the first fix read it as equal room, and the
   hosted headless C5 tests (Review on a second Claude account) caught
   it, since Engineering's account has a reading and the other none.
   `TestDecidePairs`, `TestDecideReviewFamily` (S3's cases as they were).
6. A mismatch retried by time (`metered/models.go`): `model_mismatch` is
   never retryable; it stays until Check again. `TestModelRetryable`.
7. (Design) OpenCode's ACP usage names no model: accepted and stated in
   §16.5 and §12, with the follow-up slice that closes it (OpenCode's
   per-request rows from `OPENCODE_DB` after the attempt, which also
   closes the under-count gap). No code or copy changed; Pi is
   unaffected.
8. Probe tests (`thin/models_test.go`): at the fake provider's request
   the admission row is committed with the probed model and the slot is
   the probe's (`TestModelsProbeRunsInsideTheAdmission`); leave to spend
   withdrawn before the admission commits means no request and no charge
   (`TestModelsProbeNeedsTheAdmission`); four candidates the provider
   does not have: three probes, then a short hold
   (`TestModelsProbesBounded`).
9. OpenCode's prompt refusal through the launcher (`opencode/acp_test.go`):
   a fake ACP process changes the session's model before session/new
   answers; StartTurn returns ErrIdentity and writes nothing.
   `TestLauncherRefusesAChangedModel`.
10. Downgrade coverage (`wire/models_test.go`): a reply's and an
    answer's usage, with every protocol 18 field, checked against the
    frozen protocol 17 key sets at every lower protocol.

Mutations observed:

- 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
- S1b: every request summed under the first model -> TestTallyRowsPerModel (one row)
- 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
- 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
- S3b: a connection with no list allowed to grow its set -> same (a model added with no list of the key's)
- 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
- 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)
- 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
- 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
- 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
- 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
- S8b: no bound on first-use probes (10) -> TestModelsProbesBounded (four probes, then the step ran)
- 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
- 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
- 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)
- 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)

## Open

- OpenCode's model identity (security round #7, stated): the follow-up
  slice reading `OPENCODE_DB`.
- No browser test of the models card's checkboxes (checked server-side).
- OpenCode's model-not-found class is unprobed on the real binary.
- The S1 `model` prompt and frame stay for older peers; `ChooseModel`
  records a set of one.
