Repository navigation
fix(coordinator): preserve model aliases after validation read failures - #931
Gajesh2007 wants to merge 4 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@codex review |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head ( |
Transient model-registry reads currently fall through as if the alias or concrete ID did not exist. A following write can succeed, dropping rollout history, replacing an OpenRouter-only alias through the standard endpoint, creating an alias over a concrete model ID without takeover, or registering a concrete build over an existing alias.
Both alias upsert endpoints and concrete model registration now stop before writing when namespace validation fails. Registration also stops before fetching artifacts. Standard upserts also require a successful prior-alias read, and distinguish failed member reads (500) from confirmed missing builds (400). The duplicated desired/previous validation follows one ordered loop; the error-swallowing
priorAliashelper is removed. Existing successful updates, takeover rules, endpoint ownership and missing-ID behavior remain covered by the alias tests.flowchart LR subgraph Before A[Alias upsert or model registration] --> B[Namespace or priorAlias read fails] B --> C[Assume missing] C --> D[Alias or concrete model write succeeds] D --> E[200 with lost lineage or conflicting ownership] end subgraph After F[Alias upsert or model registration] --> G[Check namespace and prior alias errors] G -->|Store failure| H[500 before any write] G -->|Successful read or confirmed namespace miss| I[Validate ordered desired and previous members] I -->|Store failure| H I -->|Missing member| J[400] I -->|Valid| K[Existing ownership checks then appropriate write] endValidation:
GOTOOLCHAIN=go1.25.0 go test -race ./api -run 'Test.*(Alias|DesiredModels)' -count=1passed (5.406s), including existing creation, takeover, missing-member, lineage, OpenRouter and desired-model publication cases.scripts/docs-check.sh --allpassed (278 pages); current Markdown has no references to the removed helper.GOTOOLCHAIN=go1.25.0 go test ./...passed for the full coordinator (API package 194.207s); CI also validates the published branch.This change addresses validation-read failures. It does not change alias deletion ordering or claim transactional serialization across coordinator processes.