GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||
GeezerVison is showing github.com — mcpx: thin provider layer core — internal/model, model.* settings, intent routing (#1925 slice 1) by dezren39 · Pull Request #2592 · developing-today/code Conversation
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 53 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: d33249c30a
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Six findings from the Codex review of d33249c, each fixed in the PR: - P1 routes_consumer: the legacy prov==nil guard no longer gates the model layer; a model.provider-only configuration reaches generate. - P1 consumer/model: auto no longer prefers sampling over a configured provider -- broker presence is not a live sampling path; sampling is auto's fallback and first choice only when named explicitly. - P2 consumer: a model-layer resolution error returns errNoModel instead of falling through to the legacy repair provider. - P2 routes_consumer: handleIntent passes only the explicit request model; repair.model no longer overrides model.default in the layer (the legacy path applies repair.model itself for its label). - P2 consumer: brokerSampler bounds the sampling wait with a context deadline from model.timeout, not only the question TTL that Broker.Get renews. - P2 consumer: the intent session is propagated into the sampling question so Pending session filtering can find it. Tests: model_layer_test.go (resolution-error no-fallback, layer-alone answers, broker session+timeout); TestResolveAuto updated for the new precedence. go test ./internal/model/ ./internal/daemon/ passes on the laptop.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 6cb37afc5b
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…2592) Round on 6cb37af, all four in the intent/model path: - Explicit provider wins: generate() now takes the request's explicit provider and consults the daemon model layer only when none was supplied -- a request naming provider=claude no longer has its model id sent to the configured model.provider endpoint. - Repair follows generation: handleIntent repairs through the backend that generated the script. A model-layer script is repaired via modelRepairProvider (the layer's backend under the layer's budget); a layer that no longer resolves means no repair, never an unrelated auto-discovered legacy provider. - Budget clamp: modelMaxTokens treats a nonpositive per-call limit as unset, so prompt.maxTokens=-1 can no longer bypass model.budget by being omitted from the request. - Token-limit field: the OpenAI backend sends max_completion_tokens to o-series and GPT-5 models, which reject max_tokens; other models and endpoints keep max_tokens. Tests: TestGenerateExplicitProviderSkipsModelLayer, TestModelMaxTokens, TestModelRepairProviderCarriesLayerBounds, TestTokenLimitParam; the existing chat-completion test now asserts the gpt-5 field. go test ./internal/model/ ./internal/daemon/ pass.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Here are some automated review suggestions for this pull request.
Reviewed commit: 79aea580d8
Your 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".
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…sample lifecycle) P2 openai.go: Generate no longer sends the invented model id "default" -- Resolve threads model.default into the provider as its only fallback, and an unnamed request with no configured default is ErrUnavailable (callers fall back deterministically). model.default settings text stops promising a backend default. P2 consumer.go: brokerSampler publishes sample.opened before Await and sample.answered after it, mirroring the upstream sampling path, so sample.opened hook answerers can answer model.provider=sampling requests. Tests: no-model sends nothing, configured default reaches the endpoint, broker sampler publishes the lifecycle in order.
…tent routing (#1925 slice 1) Queue task 3215. Approach C from #1925: a Provider interface mcpx owns (Generate; provider/model id namespace), an OpenAI-compatible configured-provider backend honouring model.baseURL/model.apiKeyEnv, the broker sampling path exposed as a backend, model.* settings through the one registry with daemon default model.provider=none (no behaviour change when unconfigured), /v1/intent generation routed through the layer with deterministic fallback, and the docs/consumer.md provider sentence reversed in the same change per SEP-2577. Out of slice: profiles/sets, plugin backend (#47), answerLocally, proxy, script-side generate.
Six findings from the Codex review of d33249c, each fixed in the PR: - P1 routes_consumer: the legacy prov==nil guard no longer gates the model layer; a model.provider-only configuration reaches generate. - P1 consumer/model: auto no longer prefers sampling over a configured provider -- broker presence is not a live sampling path; sampling is auto's fallback and first choice only when named explicitly. - P2 consumer: a model-layer resolution error returns errNoModel instead of falling through to the legacy repair provider. - P2 routes_consumer: handleIntent passes only the explicit request model; repair.model no longer overrides model.default in the layer (the legacy path applies repair.model itself for its label). - P2 consumer: brokerSampler bounds the sampling wait with a context deadline from model.timeout, not only the question TTL that Broker.Get renews. - P2 consumer: the intent session is propagated into the sampling question so Pending session filtering can find it. Tests: model_layer_test.go (resolution-error no-fallback, layer-alone answers, broker session+timeout); TestResolveAuto updated for the new precedence. go test ./internal/model/ ./internal/daemon/ passes on the laptop.
…2592) Round on 6cb37af, all four in the intent/model path: - Explicit provider wins: generate() now takes the request's explicit provider and consults the daemon model layer only when none was supplied -- a request naming provider=claude no longer has its model id sent to the configured model.provider endpoint. - Repair follows generation: handleIntent repairs through the backend that generated the script. A model-layer script is repaired via modelRepairProvider (the layer's backend under the layer's budget); a layer that no longer resolves means no repair, never an unrelated auto-discovered legacy provider. - Budget clamp: modelMaxTokens treats a nonpositive per-call limit as unset, so prompt.maxTokens=-1 can no longer bypass model.budget by being omitted from the request. - Token-limit field: the OpenAI backend sends max_completion_tokens to o-series and GPT-5 models, which reject max_tokens; other models and endpoints keep max_tokens. Tests: TestGenerateExplicitProviderSkipsModelLayer, TestModelMaxTokens, TestModelRepairProviderCarriesLayerBounds, TestTokenLimitParam; the existing chat-completion test now asserts the gpt-5 field. go test ./internal/model/ ./internal/daemon/ pass.
…sample lifecycle) P2 openai.go: Generate no longer sends the invented model id "default" -- Resolve threads model.default into the provider as its only fallback, and an unnamed request with no configured default is ErrUnavailable (callers fall back deterministically). model.default settings text stops promising a backend default. P2 consumer.go: brokerSampler publishes sample.opened before Await and sample.answered after it, mirroring the upstream sampling path, so sample.opened hook answerers can answer model.provider=sampling requests. Tests: no-model sends nothing, configured default reaches the endpoint, broker sampler publishes the lifecycle in order.
56e0dcb to
a9ef359
Compare
|
🤖 Agent note · parked
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.