GeezerVison is showing github.com — home profile: bin/mcpx collision between fork opencode package and standalone mcpx blocks cascade deploy · Issue #5027 · developing-today/code
home profile: bin/mcpx collision between fork opencode package and standalone mcpx blocks cascade deploy #5027DescriptionSymptom
Laptop cascade deploy round 2 (2026-11-03), worktree at 8912c83 building the Home Manager activation package: the build fails at home-manager-path — a buildEnv collision on bin/mcpx between the two packages in the profile:
/nix/store/b6mr9fv22rzajmpbnrib633945gmc1df-opencode-2.0.30+2d912e0/bin/mcpx (fork opencode package)
/nix/store/n35r5vj80rpnhszsb8zr5bqmfpy2hisp-mcpx-0.1.0/bin/mcpx (standalone mcpx)
Context
- The openchamber FOD gate that blocked round 1 is cleared; everything else in the activation realised (31 built / 123 fetched in the round-2 build). This collision is the sole remaining blocker for the cascade deploy.
- Nothing was switched: Home Manager generation 189 is still current, the pre-deploy state is intact.
- The deploy retries from the build step once a fix merges (worktree at 8912c83 + post-fix main).
Grounding (source + evaluated, 2026-11-03)
Evaluated for nixosConfigurations.amd.config.home-manager.users.user:
services.mcpx.package → mcpx-0.1.0 /nix/store/n35r5vj80rpnhszsb8zr5bqmfpy2hisp-mcpx-0.1.0
services.opencode.package → opencode-2.0.30+2d912e0 /nix/store/b6mr9fv22rzajmpbnrib633945gmc1df-opencode-2.0.30+2d912e0
home.packages contains both names — exactly the two colliding store paths.
How each package enters the profile:
(a) Standalone mcpx — not listed directly in home/common. The let binding in home/common/default.nix:56:
mcpx = pkgs.callPackage ../../pkgs/mcpx/package.nix { };
is pinned as the service package in home/common/default.nix (services.mcpx, ~line 916-921):
# This repo's own mcpx build — the package the hand-rolled unit
# ran (pkgs/mcpx) — rather than the fork's re-export default.
package = mcpx;
and code's own mcpx home-manager module (pkgs/mcpx/modules/home-manager.nix:32) puts it in the profile under lib.mkIf cfg.enable:
home.packages = [ cfg.package ];
So services.mcpx.package resolves to this repo's standalone pkgs/mcpx build (mcpx-0.1.0), deliberately overriding the fork module wrapper's mkDefault (the fork's packages.<system>.mcpx).
(b) Fork opencode package — arrives only via the service cascade modules. home/common/default.nix imports inputs.openchamber.homeManagerModules.openchamber (re-declared in home/user/default.nix's merge element); openchamber's module (pin f46050fc) imports opencode.homeManagerModules.opencode from its nested opencode pin 2d912e02. The fork's home-manager module (nix/modules/home-manager.nix:40 in developing-today/opencode) does:
{ home.packages = [ cfg.package ]; }
with services.opencode.package defaulted (mkDefault, fork flake.nix opencodeModule wrapper) to the fork's own packages.<system>.opencode. That opencode derivation bundles its own bin/mcpx (the fork's mcpx build is, in the fork flake's words, "the one opencode bundles") — hence the second bin/mcpx in the profile env.
Decision needed
Which bin/mcpx should the home profile expose? Candidates:
- (A) Standalone mcpx owns
bin/mcpx: exclude the fork opencode package's bundled copy from the profile env (e.g. strip/wrap the opencode package as it enters home.packages, or a dedicated profile-facing variant), keeping the standalone in the profile and the service pins as they are.
- (B) Drop the standalone from
home.packages: the fork's bundled mcpx owns PATH. The daemon is unaffected — services.mcpx still pins its own package via services.mcpx.package — but shells/agents resolving bare mcpx would get the fork's bundled build instead of pkgs/mcpx's.
- (C) Priority-mask one of them (
lib.hiPrio / meta.priority): keeps both packages in the profile, hides the duplication behind buildEnv priority. Least structural change; the losing binary is silently shadowed.
This is an open decision — the deploy is blocked on the choice, not on implementation difficulty. Activitydeveloping-today commented on Nov 3, 2026 ContributorAuthor More actions agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 8628 (triage, queued, priority 40) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 developing-today commented on Nov 3, 2026 ContributorAuthor More actions Ruling (corrected) + fix in flight. Drew, 2026-11-03 11:07 CST — superseding the earlier option-B scope, which kept two mcpx builds in play (this repo's standalone for the daemon, the fork's for PATH):
"no there shouldn't be 2. Just enable openchamber and take that one."
Corrected end state: one mcpx — the cascade's. The laptop consumer drops its services.mcpx.package pin to this repo's own pkgs/mcpx build and takes the fork build the cascade defaults to — at today's pins /nix/store/kjk6k9m89ynxnmidcqclg0mr3alimlp6-mcpx-0.1.0, the same derivation the opencode package's bin/mcpx already links to. The mcpx package's own home.packages entry is then opted out through a new module option, leaving the opencode package's link as the profile's only bin/mcpx provider. The daemon runs services.mcpx.package directly, so it is the cascade build either way.
Packaging investigation: the fork's packages.mcpx and the copy inside the opencode derivation are the same build — bin/mcpx in the opencode package is a symlink into the mcpx package. That does not let the module's profile contribution coexist: pkgs.buildEnv still counts the package and the link as two providers of bin/mcpx (an isolated buildEnv over just that pair fails with the conflict verbatim). So the gating branch was forced: new option services.mcpx.addPackageToProfile (bool, default true — no other consumer changes) in pkgs/mcpx/modules/home-manager.nix.
Landed in PR #5037 (opened as the app): the pin removal + the module option, with evaluation evidence — services.mcpx.package: standalone /nix/store/01gdkrm9…-mcpx-0.1.0 before → cascade kjk6k9… after; end-state evaluation (branch + opt-out line, cascade simulated) has no mcpx package in home.packages at all (455 entries, exactly one bin/mcpx provider). The consumer's addPackageToProfile = false line itself follows in the openchamber pin-bump PR: it cannot land earlier without breaking this config's evaluation, because the option reaches this config through the pins (fork mcpx-src bump → openchamber opencode bump → this repo's openchamber bump). The mcpx let binding in home/common/default.nix stays — the pin was not its last consumer (deploy key, ExecReload, mcpxDeploy handover, t3 PATH) — flagged in the PR for a follow-up decision.
Settings: home/common/mcpx-settings.nix is config-level (pure data, rendered by the module) and applies unchanged to the cascade mcpx.
Remaining deploy blocker, separate from this issue: a pre-existing bin/opencode collision (consumer writeShellScriptBin "opencode" wrapper vs the cascade's opencode package) that buildEnv had masked behind this one — filed as #5038 with evidence and options. Deploy round 3 needs that decision too. developing-today commented on Nov 3, 2026 ContributorAuthor More actions Resolved in configuration by the pin-cascade chain that carries services.mcpx.addPackageToProfile (PR #5037) from code up through the fork and openchamber and back into code's consumer config:
End-state evidence, evaluated and built at the PR #5074 branch head:
services.mcpx.addPackageToProfile exists in the option set and evaluates to false.
home.packages census for nixosConfigurations.amd's home-manager user: 456 entries, no mcpx package entry at all. (Baseline was 457 with the colliding standalone entry. PR feat(mcpx): addPackageToProfile option; laptop takes the cascade mcpx (#5027) #5037's simulation predicted 455 at its then-current base; code main gained net one profile entry from unrelated merges in between — the invariant that matters holds: zero mcpx entries.)
- The profile's exactly one
bin/mcpx provider is the opencode package's symlink: opencode-2.0.30+12acd9f/bin/mcpx → /nix/store/bylp1b5dhw9jh7c1jmwif1gl90648yc0-mcpx-0.1.0/bin/mcpx.
services.mcpx.package resolves to that same cascade derivation, /nix/store/bylp1b5dhw9jh7c1jmwif1gl90648yc0-mcpx-0.1.0 — not the old standalone pin (n35r5vj8…-mcpx-0.1.0). One mcpx build: the daemon runs it and the profile links to it.
Distinction, stated plainly: the mcpx collision is resolved in configuration, and this issue closes on that. The laptop deploy itself remains gated on the separate bin/opencode collision, tracked as #5038: building home-manager-path at the same head now fails with exactly one conflict —
pkgs.buildEnv error: two given paths contain a conflicting subpath:
`/nix/store/g6hvhvzhpl05pcf2nfysvkc2nwmps0m6-opencode/bin/opencode' and
`/nix/store/4n4b0zcik9bfy9xmw07ipja37m1f3rxs-opencode-2.0.30+12acd9f/bin/opencode'
— and no bin/mcpx conflict. Deploy round 3 waits on #5038, not on anything in this issue. dezren39 commented on Nov 3, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|