Repository navigation
Conversation
6 failing -> 0 failing
…s paths mutate: 24 alive -> 5 alive, all equivalent
Contributor
Author
Review notesNot blocking, not verified. Each is one reviewer's claim.
Written by an agent. |
V3RON
marked this pull request as ready for review
October 5, 2026 16:46
This was referenced Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #336
Status
Implement: done (40/40 green) Review: round 1, 0 open Mutate: 5 alive (equivalent) Hardware: n/a Gate: merged
Done when
pnpm checkis green.Completion conditions of #326
Conditions about a single worker are proved by the tests of #332 to #335, which this PR does not touch (
e2e/lease-lifecycle.test.ts,src/core/*). The gateway-facing ones:lease --platform ioswith no class: served through a gateway, forwarded with nomodel/class(fleet-coordinator.test.ts"forwards a request naming neither model nor class with neither"; dispatcher%stable); a worker grants the phone (single worker:lease-lifecycle.test.ts).--class phone:warm-hit.test.ts"counts a ready device of another model in the requested class as warm". An exact request still needs the exact model (same file, exact cases).--class watch: same test,iPad Pro(tablet) is not warm forphoneand is fortablet.--os '>=18',--os '<=17':request-match.test.ts(range matches / does not),serviceability.test.tsrow 4 "with the range as typed", e2egateway-fast-failRUNTIME_MISSINGwith and without--allow-download, e2egateway-fleet--os '>=18'lands on the worker whose runtime is in range.^18is refused by the contract before the gateway (--os accepts a version range #335).warm-hit.test.ts"does not count a device in a mode the request refuses as warm" and "another image tag";request-match.test.ts"counts only runtimes with an image of the tag for a class request".UNKNOWN_MODELnaming the config key: a worker decision, forwarded untouched (The catalog shows the default model per class, from config over built-in lists #333, A request names a class or nothing, and is served by a fitting idle device before a new one #334). Through a gateway,UNKNOWN_MODELfor a class no worker lists names the key too (serviceability.test.ts).--classwith--deviceisBAD_REQUEST: refused by the contract schema before the gateway.fleet-coordinator.test.ts"dispatches an Android phone request to the worker with a warm Pixel over one with free capacity" and e2egateway-fleet"grants an Android --class phone request on the worker holding a warm Pixel" (the grant is the warm device, nothing provisioned on the other worker). A request with room that no worker can serve fails at once: e2egateway-fast-fail"fails a class or range request nothing in the fleet can serve at once".simlock catalogclasses and defaults: The catalog names each model's class #332/The catalog shows the default model per class, from config over built-in lists #333, unchanged here.docs/CLI.md,docs/HTTP-API.md,docs/CLIENT.mddrop "for now" and describe gateway matching of a class and a range;docs/internal/ARCHITECTURE.mdrouting section updated; bothEVENTS.mdrows forrequest.dispatchedcarrymodel?/class?under the ADR 0015 §9 exception.Equivalent mutants
fleet-coordinator.tsroutable()model/class spread:{ model: undefined }reads the same as an absent key.fleet-coordinator.tsforwardedModel: the view of a picked worker always exists in the list it came from.request-match.ts[]for "no device fits": any other array of versions matches no device either.warm-hit.tsdeviceSpec:{ imageTag: undefined }and an absent key compare equal infits.Assumptions
UNKNOWN_MODELmessage for a class request — it names<platform>.defaultModels.<class>and says "on a worker", as the worker's own message names the key; the details carryclass, nomodel.src/gateway/boundary.test.tsallowscore/catalog-match.js— architecture rule 10 has the gateway importfindCatalogModelfrom it, and the file is pure functions.request.dispatchedclassis typedstringinsrc/bus/index.ts, as the bus imports no core types.Review
Spec review: 0 blocking, 0 fixed, 2 notes. Code review: 0 blocking, 0 fixed, 0 notes.
Mutate: 131 mutants, 5 alive.
Written by an agent.