Repository navigation
Fix duplicate-provider scan race with attestation renewal - #919
Gajesh2007 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 41609402ef
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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 ( |
…es allow Review of #2058 and a read of the coordinator's cache receipts: - A network request the coordinator planned for its prompt cache (it carries a cache scope or receipt nonce) now renders the prompt of its plan, never Transformers' JSON. The prompt sidecar plans for the prompt as rendered before, so a flagged render would contradict the lookup receipt (prompt_anchor_mismatch) and fence this Mac's cache affinity for the model (60 s, doubling to 10 min); today's coordinator forwards unknown body fields, so a caller could set the field and provoke that. An unplanned request (no scope: platform #919's sidecar declines flagged tool requests) still renders as it asks (ChatTemplateControls.servingCoordinatorRequest). - DARKBLOOM_TEMPLATE_JSON=transformers applies to local chat requests only, no longer to the network's. - Transformers' rendering needs the request's bytes (Evidence.captured): the local batch route and /v1/responses, which decode the field without them, and a body whose tools the ordered parser refuses render as before instead of Transformers' filters over sorted members. - The local chat route copies the body once, as before. Docs (inference.md, direct-mode.md) and the changelog fragment state which requests render this way. Tests: onlyAnUnplannedCoordinatorRequestAsks, aRequestWhoseBodyWasNotReadRendersAsBefore. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Duplicate-device scans read a provider’s attestation pointer without the mutex used by attestation renewal. Concurrent renewal and a new connection’s duplicate scan race; repeated pointer reads also do not represent one snapshot. Use the existing
GetAttestationResultaccessor before comparing serials, preserving which sessions are disconnected and the existing teardown path.Before:
After:
Validation:
-race, with races inDisconnectDuplicatesBySerialandSetAttestationResult.GOTOOLCHAIN=go1.25.0 go test -race ./coordinator/registry/...passes after the fix (registry 24.654s; routing simulations 4.066s). Existing duplicate tests verify that matching sessions are removed while the kept session and other devices remain connected.scripts/docs-check.sh --allpasses (278 documents); canonical attestation ownership documentation and changelog updated.No wire format, model defaults, trust policy or deployment changes.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.