Repository navigation
Description
mcpx: cascade binary pin (mcpx-src 031cde2) cannot parse the new readOnlyTools settings — fleet switch feeds an incompatible daemon
Finding (from PR review)
On PR #6265 ("mcpx: operator-declared readOnlyTools + typed gate refusals (#6116)"), Codex review raised a P1 finding that was never replied to, never fixed, and whose review thread is still unresolved; the PR merged with the finding live.
Reviewer: chatgpt-codex-connector[bot], 2026-11-05T15:38:25Z
Comment: #6265 (comment)
Location: home/common/mcpx-settings.nix:107
Update the cascade binary alongside the new configuration
On the configured fleet deployment,
services.mcpx.packagedeliberately uses the cascade's package rather than this checkout's build (home/common/default.nix:1163–1168). However,flake.lockstill pins that cascade'smcpx-srcto031cde20f71c2fafa068c47b69e68175b72994a5, whose parser lacksReadOnlyToolsand rejects unknownmcpxkeys usingDisallowUnknownFields. A fleet switch therefore feeds this new configuration to an incompatible daemon, preventing it from starting. Update the cascade source pin alongside this configuration so the selected service binary includes the new parser support.
No-response evidence
- PR mcpx: operator-declared readOnlyTools + typed gate refusals (#6116) #6265 merged 2026-11-05T16:03:17Z (merge commit 4e6cdb9), after the comment.
- The comment has no replies (verified by a fresh
gh apiread of the PR's inline comments, reviews, and conversation comments, cross-checked twice), and its GraphQL review thread reportsisResolved: false. - No follow-up commit or PR has bumped the pin (see still-live evidence below).
Still-live evidence (current main, verified 2026-11-06)
flake.lockon main still pinsmcpx-srcto rev031cde20f71c2fafa068c47b69e68175b72994a5(identical narHashsha256-UeoH+e/9HREDUyV1n5vBjv9fSqhdf0i1vwmQ0FnAAK4=).home/common/default.nix(services.mcpx, ~line 1171): the package is deliberately unset, so the daemon is the cascade's build from the pinnedmcpx-src(Drew's ruling, code#5027);pkgs/mcpx/modules/common.nixbuilds from that pinned input.home/common/mcpx-settings.nixon main setsmcpx.readOnlyTools = [ "find_files" "grep" "multi_grep" ]for thefff,fff-nix, andfff-worktreeservers.- At the pinned rev,
pkgs/mcpx/internal/config/config.gocontains noReadOnlyToolsfield, andpkgs/mcpx/internal/config/keys.godecodes server config withdec.DisallowUnknownFields()(line 74 at that rev) — so the rendered settings'readOnlyToolskey is an unknown field to the cascade daemon's parser and config load refuses it. - On main,
pkgs/mcpx/internal/config/config.go:179does defineReadOnlyTools []string— the parser support exists at HEAD; only the cascade pin lags.
Cross-repo note: dezren39/darwin-nix pins the same mcpx-src rev, but a code search there finds no readOnlyTools usage in its configuration, so the incompatibility does not arise there today; no separate issue is filed for nix. If the fix bumps the shared pin pattern, check the nix pin for parity as part of this issue.
Acceptance criteria
- The cascade
mcpx-srcpin (and any sibling pin that selects the deployed mcpx binary) is updated to a rev whose config parser supportsreadOnlyTools, OR the deployed package selection is changed so the daemon that receivesmcpxSettingsis built from a rev with that support — with the choice recorded on this issue. - A fleet switch / daemon start with the current
mcpx-settings.nixrendered config succeeds (the daemon parses its config without an unknown-field refusal), verified by evidence posted on this issue. - Or: the finding is resolved by a documented decision on this issue explaining why the current pin/config combination cannot reach the daemon.
Activity
developing-today commentedon Nov 6, 2026
CODE-1959
dezren39 commentedon Nov 6, 2026
🤖 Agent note · filed
dezren39 commentedon Nov 7, 2026
Picked up by repo-worker-code-p (lane code-p, repo-queue worker shift, FALLBACK MODE — queue backend down: fleet queue health/claim failing HTTP 503 PGRST002, code#6619). Working issue #6492 under the worker runbook §0a fallback protocol.
17 remaining items
dezren39 commentedon Nov 7, 2026
Progress from
repo-worker-code-k: verified: issue #6492 open, no hard stops; code main HEAD 0ff771b has ReadOnlyTools (config.go:179), package.nix interface unchanged since pin 031cde2; laptop opencode primary clean on main. Next: worktree on laptop, nix flake update mcpx-src in the fork, build .#mcpx.dezren39 commentedon Nov 7, 2026
Progress from
repo-worker-code-k: step 1 in flight: opencode fork PR #1911 (developing-today-forks/opencode#1911) bumps mcpx-src 031cde2 -> bcc0901. Verified on laptop: nix build .#mcpx passes at new pin; built binary parses the live rendered mcpx config, old-parser binary refuses it (server fff: no key readOnlyTools). Next: merge fork PR, then bump code's opencode pin.dezren39 commentedon Nov 7, 2026
Progress from
repo-worker-code-k: step 2 verified: code flake.lock opencode pin 08eca393 -> 4b2fc8ae (fork merge of PR #1911), transitive mcpx-src 031cde2 -> bcc0901; nix eval of nixosConfigurations.amd home-manager services.mcpx.package from the updated code flake resolves to /nix/store/9s20h4jdl7xk646bxppmww5yxwjq678i-mcpx-0.1.0 - the exact build parse-verified against the live rendered config. Next: commit + PR in code.Merge pull request #6750 from developing-today/queue/6492-opencode-pin
dezren39 commentedon Nov 7, 2026
Fix landed — issue #6492 resolved (fallback-mode fix, lane code-k, 2026-11-07)
The cascade set from lane code-p's triage is complete. The choice recorded per the acceptance criteria: bump the cascade pins (not the
services.mcpx.packageoverride, which stays unset per Drew's code#5027 ruling).What landed
4b2fc8aee2a2fff8501166465216cb8da4b1496a):flake.lockmcpx-srcpin031cde20→bcc090152f3fd7d97d5fbc81c4815224a39d4d30(current code main; descends from4e6cdb92, PR mcpx: operator-declared readOnlyTools + typed gate refusals (#6116) #6265's merge — the first rev whose mcpx config parser carriesReadOnlyToolsatpkgs/mcpx/internal/config/config.go:179).3c7417018b4924585211876e921a8e3b6db95797):flake.lockopencodepin08eca393→4b2fc8ae; the transitivemcpx-srcnode moves031cde20→bcc09015with it. Two lock nodes changed, nothing else.nix flake update opencodeon the laptop twice resolved the fork HEAD to a stale rev (81854860, 2026-11-05) from the nix fetcher cache — including with--refresh— whilegit ls-remoteshowed HEAD at4b2fc8ae. The pin was set withnix flake lock --update-input opencode --override-input opencode github:developing-today-forks/opencode/4b2fc8ae…; the lock'soriginalattrs are unchanged.readOnlyTools(re-checked at filing and triage), so the incompatibility cannot arise there today.Verification evidence (laptop, fresh this shift)
nix build .#mcpxin the fork at the new pin succeeds: drv/nix/store/n1vw6cp486z194w1w64yn8iymlr1d84d-mcpx-0.1.0.drv, out/nix/store/9s20h4jdl7xk646bxppmww5yxwjq678i-mcpx-0.1.0. (One earlier build attempt's log tail reported a test failure in a test file that exists in neither mcpx rev —TestServeVersionEndpoint/internal/api/server_test.goare absent from both031cde20andbcc09015; the file-captured rebuild is the ground truth and exits 0.)nix eval .#nixosConfigurations.amd.config.home-manager.users.user.services.mcpx.package.outPath→/nix/store/9s20h4jdl7xk646bxppmww5yxwjq678i-mcpx-0.1.0— the service package a fleet switch will run is that verified build./nix/store/ar8zv80nyhfcl6wy8lwb21b5aypv99jp-mcpx-config.json, the file the running daemon was started with; rendered from currentmcpx-settings.nix):mcpx --config <rendered> config --sourceslists every server — the config parses clean, including the threereadOnlyToolsblocks;mcpx: parse config …: server "fff": its "mcpx" block has no key "readOnlyTools"; it takes argumentRules, callTimeout, …— the filed failure, reproduced verbatim.has_any_findings: false. PR chore: bump opencode pin to 4b2fc8ae — cascade mcpx gets readOnlyTools parser (#6492) #6750'sbasic: scripts-testchecks were still pending at merge time (unrelated to a lock-only change); the merge proceeded under the standing merge authority with the local build/eval/parse verification above.mainflake.lockhasopencode=4b2fc8ae,mcpx-src=bcc09015; forkmainhasmcpx-src=bcc09015.The next fleet switch will start the cascade daemon from the new pin; the daemon-parse acceptance bar is met by the evidence above. Closing this issue.
dezren39 commentedon Nov 7, 2026
🤖 Agent note · done
repo-worker-code-k(issue mcpx: cascade binary pin (mcpx-src 031cde20) cannot parse the new readOnlyTools settings — fleet switch feeds an incompatible daemon #6492 is the task in fallback mode)queue/queueditems in scan order)nix build .#mcpxpasses at the new pin; code'snixosConfigurations.amdmcpx service package evaluates to that exact build; the built binary parses the live rendered config while the old-parser binary refuses it (server "fff": no key "readOnlyTools"). Evidence comment on this issue; the originating Codex P1 thread on PR mcpx: operator-declared readOnlyTools + typed gate refusals (#6116) #6265 has been replied to with the disposition. Issue closing.dezren39 commentedon Nov 7, 2026
Released by
repo-worker-code-k(outcome: done). Fixed and merged as a cascade set: opencode fork PR #1911 (mcpx-src 031cde2 -> bcc0901, merge 4b2fc8ae) + code PR #6750 (opencode pin -> 4b2fc8ae, merge 3c74170). Verified on laptop: nix build .#mcpx passes at new pin; code flake eval resolves the laptop mcpx service package to that exact build; built binary parses the live rendered config, old-parser binary refuses it (server fff: no key readOnlyTools). Evidence on issue #6492; Codex P1 thread on PR #6265 replied to. Issue closed.