Repository navigation
Description
Found during the 2026-10-25 NixOS switch (generation 504, built from main @45c817e0).
Symptom 1 — declarative commandcode-proxy unit crash-loops (stopped manually after 59 restarts):
commandcode-proxy.service: Unable to locate executable '/nix/store/3gy9alpqrmkvyvjz8x34fwh1knq3dycl-bin/commandcode-proxy-start.sh': No such file or directory
Main process exited, status=203/EXEC
The -bin store copy contains only 16 files — exactly the bin/ tree of the old main (e18acea era). It is missing every bin file added Oct 24–25: commandcode-proxy.mjs/.test.mjs/-start.sh, claude-code-proxy., muse-proxy-start.sh, proxy-relay.mjs, proxy-supervise.. The ExecStart in home/common/default.nix is ${../../bin}/commandcode-proxy-start.sh, and the file IS in the repo (100755, verified via git ls-tree) and in the flake source export (25 files in bin/).
Symptom 2 — OpenChamber's managed opencode is still 2.0.30+e7baa0d after the switch, even after killing it so OpenChamber respawns it (new port, same old store path), while /run/current-system (gen 504) ships 2.0.30+954ff7c.
Deterministic, not a switch-time race: building nixosConfigurations.amd.config.system.build.toplevel from a clean checkout of current main (and from ~/code) reproduces the running toplevel bit-for-bit (2lrvq0pi…), stale -bin included. So somewhere in the eval graph the home layer (home/common and friends) is sourced from a tree that predates the Oct 24–25 bin additions, even though lib.from-root resolves to inputs.self.outPath and the flake source export itself is complete.
Impact: low right now — the proxy-supervisor's transient fps-commandcode-proxy unit serves :18748 (HTTP 200 verified), and the background opencode service (which does serve the new build + the opencode-go-* instances) is unaffected. But the declarative unit cannot take over until this is fixed, and the managed server will not pick up new opencode builds.
Pointers for whoever digs in: check how home-manager.users.user is assembled for amd (nixos/hosts/amd-krdp.nix, nixos/home/default.nix) and whether any input or module list pins a second copy of this repo at an old rev; compare nix flake metadata source bin/ (25 files) against the -bin path baked into the built unit (16 files).
Acceptance criteria
- The root cause of the stale home-layer source tree is identified and named (which input/module pins the pre-Oct-24 tree), not just worked around.
- A clean-checkout build of
nixosConfigurations.amd.config.system.build.toplevelproduces a-binstore copy containing the full currentbin/tree (including commandcode-proxy-start.sh and claude-code-proxy.*). - After a switch, the declarative
commandcode-proxyunit starts without 203/EXEC and serves on its registered port. - OpenChamber's managed opencode picks up the current build after a switch/respawn (version/rev matches the system profile).
Activity
developing-today commentedon Oct 25, 2026
CODE-135
dezren39 commentedon Oct 26, 2026
Intake review
Fleet monitor intake pass (2026-10-25 run). Acceptance criteria appended to the body this pass (original body preserved verbatim above it).
Still live — no resolution found this run: The body establishes this is deterministic (a clean-checkout build reproduces the stale
-bincopy bit-for-bit), so it will not heal on the next switch. No merged PR since filing names the home-layer source pin as fixed.Related: #894 (claude-code-proxy home wiring — its home-manager unit will land in this same home layer; if the layer is sourced from a stale tree, that unit won't take effect either, so this issue may gate part of #894), and the 2026-10-25 switch record (generation 504, main @45c817e0) in the body.
Notes / suggested approach: The body's own pointers are the right start: how
home-manager.users.useris assembled for amd (nixos/hosts/amd-krdp.nix,nixos/home/default.nix), whether any input or module list pins a second copy of this repo at an old rev, andnix flake metadatasource paths vslib.from-rootresolving toinputs.self.outPath. The discriminating experiment: evaluate the home layer'sbinsource path directly (nix evalthe relevant module arg) and compare its rev/file list against the flake source export's 25 files — the stale tree has exactly 16.Risks: Medium investigation risk — eval-graph source pinning can hide in an unexpected input (a locked flake input of a sub-flake is the classic shape). Impact today is contained (transient supervisor unit serves the proxy), but every future home-layer change is silently suspect until this is root-caused, hence priority/high.
dezren39 commentedon Oct 29, 2026
Partial blast-radius fix landed as PR #2092 (open, awaiting CI as of 2026-10-28 evening CDT — checks queued on the backlogged self-hosted runners).
What #2092 changes:
home/openclaw/default.nix— removescommandcode-proxy.service,design-code-proxy.service, andagy-proxy.servicefromopenclaw-gateway'sWants(mcpx.servicekept). The proxies are owned by the proxy-supervisor now (transientfps-*units, canonical ports 18742–18749), so a gateway restart could previously re-pull the manual units — including this issue's crash-loopingcommandcode-proxywith its stale nix-store ExecStart. After this change a gateway restart can no longer resurrect it.Still to do once #2092 merges: deploy via nixos-rebuild switch on amd, restart openclaw-gateway, and verify the manual proxy units stay inactive while the supervisor-owned proxies answer on :18748/:18746.
Not in #2092: the manual unit declarations themselves stay in
home/common/default.nixas documented manual one-off fallbacks. Noted follow-up:openchamber.servicehas the same Wants pattern ondesign-code-proxy.service(plus clef/codex/antigravity-ls manual units) and deserves the same treatment in a separate change.dezren39 commentedon Oct 29, 2026
Follow-up to the manual-proxy-unit
Wantscleanup: PR #2094 — "fix(home): drop openchamber wants on manual proxy units" — is open as the twin of #2092 (which removed the same class ofWantsfromopenclaw-gateway).openchamber.service(home/common/default.nix) declaredWantson four manual per-proxy units; #2094 removes exactly those:clef-proxy.servicecodex-proxy.serviceantigravity-ls-proxy.servicedesign-code-proxy.servicenetwork-online.targetandmcpx.serviceare preserved, theAfterordering entries are untouched, and a comment in #2092's style records why the manual units must not be re-added (proxy-supervisor owns the proxies on canonical ports 18742–18749; OpenChamber reaches them by port; the manual units are stopped fallbacks — the manual design-code unit is the one that fights the supervisor's instance for its taken port). The manual unit declarations themselves are retained as fallbacks, same as in #2092.Status as of 2026-10-28 evening CDT: PR #2094 is open and mergeable, but CI on the self-hosted runners is backlogged —
Nix flake evaluation,run, andtreefmt checkstayed pending through an ~18-minute watch (CodeRabbit skipping), the same queue holding #2092. Per the merge-only-on-green rule it has not been merged, and the deploy step (converge +nixos-rebuild switch --flake …#amd, openchamber restart trigger-verification,systemctl --user reset-failed agy-proxy.service) is deferred until it merges.dezren39 commentedon Nov 2, 2026
🤖 Agent note · triaged — CONFIRMED still actionable (mitigated, not root-caused); fix packet enqueued
$HOME/code/bincheckout ExecStarts — the original 203/EXEC crash-loop is mitigated for the proxies, and the supervisor is retired.lib/default.nix:22-27(root=inputs.self.outPath, self-consistent — the stale tree is NOT via from-root) and no second copy of this repo anywhere inflake.nixinputs, so the stale source is still unexplained.home/common/default.nix:892(sync-models oneshot ExecStart bakes${../../bin/sync-models.mjs}) and:1643+(writeShellScriptBinCLI shims for clef/agy/codex/antigravity-ls/design-code proxies plus sync-models/update-models all bake${../../bin}/*.mjsstore paths). If the home layer ever evaluates from a stale tree again, these go stale the same way.repo-health:v1:fix:developing-today/code:issue:883): run the discriminating eval probe on amd (home-layer bin source file list vs repobin/), name the pin, eliminate or justify the remaining store-path refs. Deploy (nixos-rebuild switch) stays with the operator — explicitly out of scope.85 remaining items
dezren39 commentedon Nov 12, 2026
🤖 Agent note · resumed existing PR verification
6959a79187. PR fix(home): run sync-models and proxy shims from checkout bin (#883) #4673 is CLOSED, unmerged; do not revive it. No deployment or host switch was made.lib.from-root→inputs.self.outPath) and reports the eval probe; note 6833369309 records successful config eval/nixfmt/parse.dezren39 commentedon Nov 12, 2026
🤖 Agent note · parked — CI failures need baseline triage
6959a79187. Existing eval/source work and root-cause evidence are in comments 6833231522 and 6833369309. PR fix(home): run sync-models and proxy shims from checkout bin (#883) #4673 is CLOSED unmerged and is not the current implementation.targeted_tests_failed; no merge, deploy, or switch.Merge pull request #8982 from developing-today/queue/6513-883-sync-mo…
dezren39 commentedon Nov 12, 2026
agent-note:v1
state: done (code side)
lane: any-b (task 6513)
summary: Task 6513 complete — outcome fixed_merged. PR #8982 merged 2026-11-12T20:37:52Z, merge commit f75d6c7. What landed: the three remaining ${../../bin/sync-models.mjs} refs in home/common/default.nix (sync-models service + sync-models/update-models shims) now run "$HOME/code/bin/sync-models.mjs" (the #2107 checkout pattern), with the source pin named in the #883 comment (lib.from-root -> inputs.self.outPath flake source snapshot) and — added this shift for the CodeRabbit finding — an explicit existence guard in all three scripts. Verification across lanes: eval probe (flake source bin/ = all 35 tracked files, exact match), full amd home-config eval succeeds with the new ExecStart, nixfmt --check + nix-instantiate --parse pass, no ${../../bin} refs remain in home/common/default.nix; CI failures on the PR were the proven baseline set (issue #8900). Remaining, by the packet's own scope: the operator deploy (nixos-rebuild switch on amd) — this issue stays OPEN for that deploy step.