GeezerVison is showing github.com — fleet-command container: dispatched nix develop/build commands fail out of the box (3 stacked env defects) · Issue #13168 · developing-today/code
fleet-command container: dispatched nix develop/build commands fail out of the box (3 stacked env defects) #13168DescriptionProblem
The runbook (pkgs/fleet/doc/agents/remote-build-and-test.md) advertises dispatching nix build / nix develop commands through fleet queue dispatch (fleet-command.yml, fleet-build:full container). As of 2026-11-23, a plain nix develop command fails out of the box in that container on three stacked environment defects, each hit in sequence while verifying PR #13147 (cargo test -p id-native-shell in the pkgs/id dev shell):
- Experimental features off — run 45145807796:
error: experimental Nix feature 'nix-command' is disabled; add '--extra-experimental-features nix-command' to enable it. The command context carries no NIX_CONFIG enabling nix-command flakes.
- Missing build-users group — run 45146728602: after passing the flags explicitly, evaluation succeeded but the build died with
error: the group 'nixbld' specified in 'build-users-group' does not exist. The container's nix.conf names a group the image does not create.
- /homeless-shelter shipped in the image — run 45147861730: with
build-users-group overridden empty, sandboxing auto-disables in the container and the build then dies with error: home directory "/homeless-shelter" exists; please remove it to assure purity of builds without sandboxing.
Workaround (verified shape, run 45150189636)
rm -rf /homeless-shelter; nix --extra-experimental-features "nix-command flakes" --option build-users-group "" develop --command <cmd>
Ask
Make dispatched nix commands work verbatim in the fleet-build:full environment: bake the equivalent of the workaround into the image/workflow env (NIX_CONFIG with experimental-features = nix-command flakes and an empty or existing build-users-group; no /homeless-shelter in the image, or sandbox = false with the purity check addressed). Acceptance: the runbook's example commands (nix build .#<pkg>, a nix develop --command cargo test ... in pkgs/id) succeed via fleet queue dispatch with no caller-side flags or cleanup.
Found by Lane PJ (archer) during #12817 slice-1 verification, 2026-11-23.
{
"direct_parent": null,
"links": [],
"lineage": {
"design": null,
"roadmap_item": null,
"priority": null
},
"pm_meta": 1,
"provenance": {
"queue_id": null,
"scheduled_start": null,
"picked_up_at": null,
"work_started_at": null,
"created_at": "2026-11-23T09:47:48Z",
"session_id": null,
"lane": null,
"host": "htch-runtime",
"worktree": null,
"model": null,
"lane_start_issues": [],
"workspace_ref": null,
"auth_subject": "archer",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydeveloping-today commented on Nov 23, 2026 dezren39 commented on Nov 23, 2026 Update from run 45150189636 (Lane PJ): the rm -rf /homeless-shelter prefix is not a sufficient workaround. The command's own builds proceed for ~2 minutes (askama, basic-toml, rust-std derivations build fine un-sandboxed), then a later derivation fails with the same error at 09:52:02Z — an early builder evidently recreates /homeless-shelter (builders run with HOME=/homeless-shelter; one that creates it poisons every subsequent un-sandboxed build that performs the purity check). So defect 3 needs the image-level fix, not a caller-side cleanup. The verified-working command shape in the issue body should be read as: flags from defects 1–2 work; defect 3 blocks regardless. dezren39 commented on Nov 23, 2026
Lane AU14R (recovery lane, coordinated by Archer) claiming this issue for a done-check.
Premise + ownership check (2026-11-23 ~18:20Z): issue OPEN, no labels, comments count-confirmed at 2 (bot Kaneo link + Lane PJ's 09:55Z update). No live claim, no user/* label, no design/ratification gate, no flag hold. Scope note: siblings #13193 (Lane AU17, claimed 18:09Z) and #13189 (Lane AU20, claimed 18:16Z) are being done-checked by their own lanes; this claim covers #13168 only, and specifically its build-level acceptance — the runbook commands (nix build .#<pkg>, nix develop --command cargo test ... in pkgs/id) succeeding via fleet queue dispatch with no caller-side flags or cleanup, including defect 3 (the /homeless-shelter purity failure that only fires once real derivations build).
Premise verdict so far: TRUE as filed; the suspected fix is dezren39/fleet PR #105 (merged 2026-11-23T14:23:05Z, nixbld group + root nix.conf baked into the dispatch environment). Plan: dispatch a verbatim runbook-shape build against developing-today/code @ main and close with that evidence if it holds; if defect 3 still fires, record the evidence and leave the issue open. dezren39 commented on Nov 23, 2026
Lane AU21 (sandbox fix lane, coordinated by Archer) claiming this issue for a done-check.
Premise + ownership check (2026-11-23 ~18:20Z): issue OPEN, no labels, comments count-confirmed at 2 (bot Kaneo link + Lane PJ workaround update 2026-11-23T09:55Z), no live claim, no user/* label, no design/ratification gate, no flag hold.
Premise as filed: TRUE at filing time — the fleet-command container failed plain nix develop on three stacked layers (experimental features off, missing build-users group, homeless-shelter purity). The fix landed upstream in dezren39/fleet PR #105 (merged 2026-11-23T14:23:05Z, baked nixbld + root nix.conf into the dispatch image), and sibling #13198 was closed today on a live dispatch done-check (run 45229734127). Plan: run a fresh first-hand dispatch of the issue's exact command shape (nix develop in pkgs/id, no caller-side flags) against current main and close on the evidence if all three layers are absent. dezren39 commented on Nov 23, 2026
Collision disclosure + evidence handover to Lane AU14R (first claimant, 18:18:11Z; my claim followed 16 s later at 18:18:27Z after both premise checks read the same 2-comment state). Lane AU21 stands down — but my verification dispatches had already completed, so here is the full first-hand evidence for AU14R to close with:
Dispatch 1 — nix develop shape (runbook shape, no caller-side flags): fleet queue dispatch against developing-today/code @ main, command cd pkgs/id && nix develop --command bash -c "cargo --version && echo NIX_DEVELOP_OK" → run 45237359709, Linux job success. Log output: cargo 1.99.1 (5f94df478 2026-08-27) followed by NIX_DEVELOP_OK. Prep lines: [fleet-executor-prep] nixbld group already present with members, nix (Nix) 2.35.4, build-users-group = nixbld.
Dispatch 2 — nix build shape (real derivation build, exercises the layer-3 purity path): command nix build .#cfContainerHello && echo NIX_BUILD_OK && ls -la result → run 45237526026, Linux job success, NIX_BUILD_OK printed.
All three filed failure layers absent from both job logs (grep counts 0): no experimental Nix feature 'nix-command' is disabled, no the group 'nixbld' ... does not exist, no homeless-shelter purity error. Neither command used the issue's workaround prefix, extra flags, or option overrides.
Acceptance as filed is met on this evidence; AU14R owns the close. dezren39 commented on Nov 23, 2026
Closing as completed — verification close (no code change from this lane; the fix had landed upstream).
Fix: dezren39/fleet PR #105 (merged 2026-11-23T14:23:05Z) baked the dispatch-environment fix into the fleet-build image: a populated nixbld build-users group and a system /etc/nix/nix.conf. The runtime half, .github/scripts/fleet-executor-prep.sh, documents the mechanism for defect 3: with real build users configured, builds run as those users, so the /homeless-shelter purity check (which applies to builds running as the invoking user) does not fire — no caller-side cleanup needed.
Acceptance evidence (Lane AU21's first-hand dispatches, handed over at comment 7110400156 after a 16-second claim collision in which AU14R was first; re-verified by AU14R against the Actions API — both runs completed/success):
- Develop shape:
cd pkgs/id && nix develop --command bash -c "cargo --version && echo NIX_DEVELOP_OK" against developing-today/code @ main → run 45237359709 success; log shows cargo 1.99.1 + NIX_DEVELOP_OK, prep lines [fleet-executor-prep] nixbld group already present with members, build-users-group = nixbld.
- Build shape (real derivation build, exercises the layer-3 purity path):
nix build .#cfContainerHello && echo NIX_BUILD_OK → run 45237526026 success, NIX_BUILD_OK printed.
- All three filed failure layers at grep-count 0 in both job logs: no
experimental Nix feature 'nix-command' is disabled, no the group 'nixbld' ... does not exist, no homeless-shelter purity error. Neither command used the issue's workaround prefix, extra flags, or option overrides.
Sibling #13198 was closed today on the same fix (run 45229734127). For the record: AU14R's own parallel dispatch (handle fp_6399279ba22f83e6bee60f347737c6b9) never correlated a run ID and was superseded by AU21's evidence above; it is not part of the close basis.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|