Repository navigation
Description
Symptom
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.0services.opencode.package→opencode-2.0.30+2d912e0 /nix/store/b6mr9fv22rzajmpbnrib633945gmc1df-opencode-2.0.30+2d912e0home.packagescontains 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 entershome.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.mcpxstill pins its own package viaservices.mcpx.package— but shells/agents resolving baremcpxwould get the fork's bundled build instead ofpkgs/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.
Activity
developing-today commentedon Nov 3, 2026
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 commentedon Nov 3, 2026
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):
Corrected end state: one mcpx — the cascade's. The laptop consumer drops its
services.mcpx.packagepin to this repo's ownpkgs/mcpxbuild 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'sbin/mcpxalready links to. The mcpx package's ownhome.packagesentry is then opted out through a new module option, leaving the opencode package's link as the profile's onlybin/mcpxprovider. The daemon runsservices.mcpx.packagedirectly, so it is the cascade build either way.Packaging investigation: the fork's
packages.mcpxand the copy inside the opencode derivation are the same build —bin/mcpxin the opencode package is a symlink into the mcpx package. That does not let the module's profile contribution coexist:pkgs.buildEnvstill counts the package and the link as two providers ofbin/mcpx(an isolated buildEnv over just that pair fails with the conflict verbatim). So the gating branch was forced: new optionservices.mcpx.addPackageToProfile(bool, default true — no other consumer changes) inpkgs/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.0before → cascadekjk6k9…after; end-state evaluation (branch + opt-out line, cascade simulated) has no mcpx package inhome.packagesat all (455 entries, exactly onebin/mcpxprovider). The consumer'saddPackageToProfile = falseline 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 (forkmcpx-srcbump → openchamber opencode bump → this repo's openchamber bump). Themcpxlet binding inhome/common/default.nixstays — 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.nixis 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/opencodecollision (consumerwriteShellScriptBin "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.Merge pull request #5037 from developing-today/mcpx-profile-option
developing-today commentedon Nov 3, 2026
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:12acd9f27467c0fb5710b821b8c9a368d9c2b503. Bumped only themcpx-srcinput: code282064c5→d51d7bef. Gate: the fetched pin'spkgs/mcpx/modules/home-manager.nixdefines the option (:29) and gateshome.packageson it (:47).e1e8bc3dad8cd444400fbd1f05f4b1af3fbbd28a. Bumped only theopencodeinput:2d912e02→12acd9f2(the nestedmcpx-srclock node moved with it,282064c5→d51d7bef).bca5683bf0d5bc84bf7a5c659080ea855983b8b9. Bumped theopenchamberinputf46050fc→e1e8bc3dand setservices.mcpx.addPackageToProfile = false;inhome/common(Drew's ruling, 2026-11-03). One process note: the first lock update silently no-oped on a stale fetcher cache; the cache was moved aside (.bak-20261103-cascade) and the update re-run with--refresh.End-state evidence, evaluated and built at the PR #5074 branch head:
services.mcpx.addPackageToProfileexists in the option set and evaluates tofalse.home.packagescensus fornixosConfigurations.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.)bin/mcpxprovider is the opencode package's symlink:opencode-2.0.30+12acd9f/bin/mcpx→/nix/store/bylp1b5dhw9jh7c1jmwif1gl90648yc0-mcpx-0.1.0/bin/mcpx.services.mcpx.packageresolves 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-pathat the same head now fails with exactly one conflict —— and no
bin/mcpxconflict. Deploy round 3 waits on #5038, not on anything in this issue.dezren39 commentedon Nov 3, 2026
🤖 Agent note · done
services.mcpx.addPackageToProfile), developing-today/opencode PR id(world): min_tick_ms (1000) is never enforced — a program can subscribe to time.tick:1 and drive ~1,000 journaled program updates per second #1546, developing-today/openchamber PR mcpx: Phase 3 of #1481 — validate elicitation form answers against requestedSchema in client.answer #1484, and PR feat(mcpx): ride cascade pins up; laptop profile takes opencode bin/mcpx #5074 merged as bca5683, which setaddPackageToProfile = falsein the consumer config; end-state evidence (zero mcpx entries in home.packages, exactly one bin/mcpx provider) is recorded on issue home profile: bin/mcpx collision between fork opencode package and standalone mcpx blocks cascade deploy #5027 in comment 6612592561. The remaining deploy gate is the separate bin/opencode collision, issue home profile: bin/opencode collision — consumer wrapper vs cascade opencode package blocks the generation build #5038 — not part of task 8628.