From d7a8bc89f5ce28f38f8d8e1d73fd83395c330d77 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 22:10:06 -0600 Subject: [PATCH 1/2] fix(mcpx): sync vendorHash with go.mod after the x/net bump Dependabot's gomod group bump (3141777acee) raised golang.org/x/net to v0.63.0 in go.mod/go.sum but vendorHash in package.nix still covered the v0.62.0 module set, so every build of mcpx failed with "go: inconsistent vendoring". The hash here is the one the failed fixed-output build reported. Refs #14051 --- pkgs/mcpx/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/mcpx/package.nix b/pkgs/mcpx/package.nix index 413aaec101..a0baa940b3 100644 --- a/pkgs/mcpx/package.nix +++ b/pkgs/mcpx/package.nix @@ -102,7 +102,7 @@ buildMcpxGoModule { # # Everything else -- the MCP client, the process pools, the JSON Schema to # TypeScript compiler, the CLI -- is standard library. - vendorHash = "sha256-WixeikMvYYYvvOssmUiVqlglEprQjP2p1pMXpkOLTME="; + vendorHash = "sha256-gNz9/Jj8zJt8o9cscqgLIhtpR3+bXo7EvPhP6I8j40A="; subPackages = [ "cmd/mcpx" ]; From e30fce8b8f394a0aaa99216229379df5ab84a015 Mon Sep 17 00:00:00 2001 From: Drewry Pope Date: Mon, 23 Nov 2026 22:10:08 -0600 Subject: [PATCH 2/2] docs(mcpx): write the Provider.Generate reference as prose TestEveryDocumentationLinkResolves treats a backticked path-shaped token as a file path; `internal/model.Provider.Generate` in docs/program/libraries-models.md named a symbol, not a file, and failed the check phase of every mcpx build. The sentence now names the Generate method of the Provider interface in internal/model in prose, which the checker accepts and which says the same thing. Refs #14051 --- pkgs/mcpx/docs/program/libraries-models.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/mcpx/docs/program/libraries-models.md b/pkgs/mcpx/docs/program/libraries-models.md index b5fb37b2b6..b5a617db8e 100644 --- a/pkgs/mcpx/docs/program/libraries-models.md +++ b/pkgs/mcpx/docs/program/libraries-models.md @@ -15,7 +15,7 @@ ## Model resolution, prompt, proxy, repair, hooks and administration -**Existing behavior.** The book already documents `internal/model.Provider.Generate`, named `model.providers`, ordered `model.profiles`, explicit credential variable names, `model.budget`, `model.timeout`, and per-attempt timeout. The configured provider defaults to `none`. The configuration chapter adds an important qualification: explicit model/provider requests and the legacy scripting provider's environment or installed-CLI discovery can select generation when the request permits it. The old `repair.provider` and `repair.model` settings mentioned in a fleet file are reported as unregistered. The behavioral oracle for “no model” must count every attempted outbound call and CLI spawn. Reading `model.provider` alone cannot prove it. [Configuration](https://developing-today.github.io/code/configuration.html) · [Consumer](https://developing-today.github.io/code/consumer.html) +**Existing behavior.** The book already documents the `Generate` method of the `Provider` interface in `internal/model`, named `model.providers`, ordered `model.profiles`, explicit credential variable names, `model.budget`, `model.timeout`, and per-attempt timeout. The configured provider defaults to `none`. The configuration chapter adds an important qualification: explicit model/provider requests and the legacy scripting provider's environment or installed-CLI discovery can select generation when the request permits it. The old `repair.provider` and `repair.model` settings mentioned in a fleet file are reported as unregistered. The behavioral oracle for “no model” must count every attempted outbound call and CLI spawn. Reading `model.provider` alone cannot prove it. [Configuration](https://developing-today.github.io/code/configuration.html) · [Consumer](https://developing-today.github.io/code/consumer.html) **One resolution path.** For every model-consuming operation, resolve the ordered candidates from the existing provider/profile configuration and explicit request. Intersect with caller sensitivity ceiling, eligible plan endpoints, total deadline and remaining quota. Require explicit eligibility for the selected route, including plugins, compatible remote endpoints and legacy CLI providers. Resolve credential references only after eligibility and keep values in process. Expose configured profile ID, selected provider/model, configuration revision, selection reason and measured or unknown usage. A 402 terminates model work for that request. A subsequent candidate is eligible after an unstarted or known-safe failure only within the same authorization, quota and deadline. Once a streamed response is partially delivered, retain partial status and stop. Mark usage unresolved if a provider never delivered the final usage frame. [OpenAI streaming reference](https://developers.openai.com/api/reference/resources/chat)