Repository navigation
refactor(inference): own attempt cancellation and provider feedback - #1034
Gajesh2007 wants to merge 5 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. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
…/coordinator-inference-attempt # Conflicts: # docs/developer/build.md # docs/developer/test.md # docs/reference/protocol-messages.md
|
@codex review Refreshed the parent branch and resolved documentation/source-map conflicts. Existing subsystem implementations and regression tests are preserved. Exact parent composition and independent review pass; all coordinator test packages compile and documentation checks pass. |
|
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 ( |
Dispatch, provider ingress and response relays shared cancellation and provider-feedback policy through
api.Server.inference/attemptnow owns those operations and their cancellation history.api/inference_attempt.gosupplies current registry, model-store, reservation, logger and metric dependencies; response relays use the sameServicedirectly.Stacked on #1027 (
refactor/coordinator-inference-settlement). This is the shared attempt boundary for the subsequent dispatch and ingress extractions.Before
After
The tracker keeps its existing bounds, expiry, recency and resend rules. Nonblocking enqueue acceptance and sent marking remain under the tracker mutex so an immediate terminal cannot observe an accepted cancel as unsent. Cancellation still records before pending removal, refunds only the attempt it removes, and preserves first-content timeout arbitration. API terminal claiming, parked settlement and route outcomes retain their ordering. Typed neutral, capacity and legacy failure classifications are unchanged.
Pure policy/history tests follow their owner. Actual WebSocket, financial and response tests remain at the API boundary; two fixtures consume the same terminal receipts as ingress instead of accessing tracker maps. No tracker mutex or map is exported. The existing three metric adapters share one name and implementation across attempt and settlement bindings.
Validation:
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.