Repository navigation
Publish immutable runtime manifests and serialize policy updates - #967
Gajesh2007 wants to merge 2 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. What shall we delve into next? 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 ( |
Release updates wrote a plain runtime-manifest pointer while provider verification and the public manifest handler read it repeatedly. Concurrent calls raced, and maps passed to
SetRuntimeManifestremained caller-owned: changing those maps after publication changed which runtime hashes were accepted.Publish immutable snapshots through an atomic pointer, and serialize inventory rebuilds and fallback merges through connected-provider revalidation. Registration, challenge verification and revalidation load one snapshot while holding the provider lock, so hash verification and the resulting provider flags use the same policy. The setter deep-copies all maps, preserving nil sets and false membership values. Public manifest responses also use one snapshot.
Move the runtime-manifest operations out of
server.gointoruntime_manifest.go. Preserve the union of active releases, legacy backend refusal, manifest-withdrawal routing behavior, inventory-error fallbacks, response schema and cache TTL. TheSetRuntimeManifest(nil)comment now describes the existing distinction between the low-level matcher and the routing gate accurately.flowchart LR subgraph Before A[Release inventory or committed fallback] --> B[server.go assigns shared manifest pointer] B --> C[Verification reads pointer multiple times] C --> D[Provider flags may use different policies] E[Caller mutates setter input maps] --> B B --> F[Manifest handler rereads shared maps] end subgraph After A2[Release inventory or committed fallback] --> B2[runtime_manifest.go serializes rebuild and publication] B2 --> C2[Atomic immutable snapshot] C2 --> D2[Provider lock: one snapshot for verification and flags] B2 --> E2[Revalidate connected providers before next writer] F2[SetRuntimeManifest] --> G2[Copy all caller-owned maps] G2 --> C2 C2 --> H2[One complete snapshot per manifest response] endValidation:
GOTOOLCHAIN=go1.25.0 go test -race ./coordinator/api -count=1passes (226.591s), including the new concurrent publication/withdrawal checks and 32 simultaneous committed-release fallback merges, plus existing release-overlap, inventory-failure, withdrawal, backend, registration and challenge fixtures.f1ccb8d43.No provider/model execution or deployment is part of this change.