Skip to content

mcpx: cascade binary pin (mcpx-src 031cde20) cannot parse the new readOnlyTools settings — fleet switch feeds an incompatible daemon #6492

Closed

Description

@dezren39

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.package deliberately uses the cascade's package rather than this checkout's build (home/common/default.nix:1163–1168). However, flake.lock still pins that cascade's mcpx-src to 031cde20f71c2fafa068c47b69e68175b72994a5, whose parser lacks ReadOnlyTools and rejects unknown mcpx keys using DisallowUnknownFields. 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 api read of the PR's inline comments, reviews, and conversation comments, cross-checked twice), and its GraphQL review thread reports isResolved: 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.lock on main still pins mcpx-src to rev 031cde20f71c2fafa068c47b69e68175b72994a5 (identical narHash sha256-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 pinned mcpx-src (Drew's ruling, code#5027); pkgs/mcpx/modules/common.nix builds from that pinned input.
  • home/common/mcpx-settings.nix on main sets mcpx.readOnlyTools = [ "find_files" "grep" "multi_grep" ] for the fff, fff-nix, and fff-worktree servers.
  • At the pinned rev, pkgs/mcpx/internal/config/config.go contains no ReadOnlyTools field, and pkgs/mcpx/internal/config/keys.go decodes server config with dec.DisallowUnknownFields() (line 74 at that rev) — so the rendered settings' readOnlyTools key is an unknown field to the cascade daemon's parser and config load refuses it.
  • On main, pkgs/mcpx/internal/config/config.go:179 does define ReadOnlyTools []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-src pin (and any sibling pin that selects the deployed mcpx binary) is updated to a rev whose config parser supports readOnlyTools, OR the deployed package selection is changed so the daemon that receives mcpxSettings is built from a rev with that support — with the choice recorded on this issue.
  • A fleet switch / daemon start with the current mcpx-settings.nix rendered 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

  1. added
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    task/triageQueue packet kind: verify, reproduce, and route this item
    priority/highImportant and time-sensitive
    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)
    on Nov 6, 2026
  2. developing-today commented on Nov 6, 2026

    @developing-today
    Contributor
  3. dezren39 commented on Nov 6, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · filed

  4. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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.

  5. added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 7, 2026
  6. 17 remaining items

  7. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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.

  8. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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.

  9. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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.

  10. added a commit that references this issue on Nov 7, 2026
  11. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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.package override, which stays unset per Drew's code#5027 ruling).

    What landed

    1. developing-today-forks/opencode PR mcpx: how the JavaScript runtime is chosen, what each does with TypeScript, and an automatic validate/compile step #1911 (merged, merge commit 4b2fc8aee2a2fff8501166465216cb8da4b1496a): flake.lock mcpx-src pin 031cde20 → bcc090152f3fd7d97d5fbc81c4815224a39d4d30 (current code main; descends from 4e6cdb92, PR mcpx: operator-declared readOnlyTools + typed gate refusals (#6116) #6265's merge — the first rev whose mcpx config parser carries ReadOnlyTools at pkgs/mcpx/internal/config/config.go:179).
    2. developing-today/code PR chore: bump opencode pin to 4b2fc8ae — cascade mcpx gets readOnlyTools parser (#6492) #6750 (merged, merge commit 3c7417018b4924585211876e921a8e3b6db95797): flake.lock opencode pin 08eca393 → 4b2fc8ae; the transitive mcpx-src node moves 031cde20 → bcc09015 with it. Two lock nodes changed, nothing else.
      • Method note: a plain nix flake update opencode on the laptop twice resolved the fork HEAD to a stale rev (81854860, 2026-11-05) from the nix fetcher cache — including with --refresh — while git ls-remote showed HEAD at 4b2fc8ae. The pin was set with nix flake lock --update-input opencode --override-input opencode github:developing-today-forks/opencode/4b2fc8ae…; the lock's original attrs are unchanged.
    3. dezren39/darwin-nix parity: not changed — it renders no readOnlyTools (re-checked at filing and triage), so the incompatibility cannot arise there today.

    Verification evidence (laptop, fresh this shift)

    • nix build .#mcpx in 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.go are absent from both 031cde20 and bcc09015; the file-captured rebuild is the ground truth and exits 0.)
    • From code's flake at the new lock: 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.
    • Parse test against the live rendered config (/nix/store/ar8zv80nyhfcl6wy8lwb21b5aypv99jp-mcpx-config.json, the file the running daemon was started with; rendered from current mcpx-settings.nix):
      • new binary: mcpx --config <rendered> config --sources lists every server — the config parses clean, including the three readOnlyTools blocks;
      • installed old-parser binary, same file: mcpx: parse config …: server "fff": its "mcpx" block has no key "readOnlyTools"; it takes argumentRules, callTimeout, … — the filed failure, reproduced verbatim.
    • Codex review on PR chore: bump opencode pin to 4b2fc8ae — cascade mcpx gets readOnlyTools parser (#6492) #6750: completed, has_any_findings: false. PR chore: bump opencode pin to 4b2fc8ae — cascade mcpx gets readOnlyTools parser (#6492) #6750's basic: scripts-test checks 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.
    • Fresh post-merge readback: code main flake.lock has opencode=4b2fc8ae, mcpx-src=bcc09015; fork main has mcpx-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.

  12. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · done

  13. dezren39 commented on Nov 7, 2026

    @dezren39
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/mcpxPackage/app: mcpx (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/highImportant and time-sensitivesource/pr-comment-reviewFiled by the pr-comment-review jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions