Repository navigation
refactor(coordinator): isolate provider inference frame lifecycle - #1052
Gajesh2007 wants to merge 4 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. |
|
Consolidated into #1056 for review and merge after #1094, #1095 and #1096. #1056 contains this branch's exact head ( |
Provider acceptance, encrypted chunks and terminal accounting were mixed into the API's connection file. This moves those operations into
inference/providerframe.Service, reducingapi/provider.gofrom 1,219 to 255 lines. The Session binds four direct methods;api/provider_frames.gosupplies current registry, logger, attempt, settlement, profile and admission dependencies.The shared terminal claim, pending/parked records, cancellation tracker, reservation locks and billing operations stay with their existing owners. Completion still publishes usage and observes the outcome before waiting for credits, then signals consumer channels. Error/drain, deadline, speculative-race, decryption and overflow behavior remain unchanged. Shared cache/outcome emitters still serve both consumer and provider paths. The new service owns only the existing chunk-key cache and cumulative unknown-frame counter.
Stacked on #1046. No protocol, policy, model, dependency or deployment change.
Before:
After:
All 3,566 original test/benchmark/fuzz/example entries remain. Actual-Git strict-token checks preserve 38 mapped declarations and 11,076 retained declarations; the small constructor, callback, accessor and fixture boundaries are qualified separately. Pure key-cache/usage tests move beside the owner. API integration assertions remain; terminal key eviction is now observed through fresh-key decryption using the original key pointer, and the credit-order fixture binds the service before replacing its store.
Validation at source
359c622936(Go 1.25.0; database environment variables unset):The subsequent Session-parent refresh preserves every frame source byte and inherits only its reviewed deletion fixture plus three documentation fixes. Complete Git-tree composition is verified; 9 focused tests, command build and pinned lint pass after the merge (API 13.015s).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.