Repository navigation
Description
Fleet path Nix-build state: deployed fleet lags pkgs/fleet HEAD; remaining non-Nix pieces (audit 2026-11-04)
Drew's rule: any binaries we run should be built using Nix. Audit of the sandbox↔laptop fleet path against that rule, 2026-11-04 evening.
The fleet binary itself: Nix-built ✓, current ✗
- Package:
pkgs/fleet/default.nixvia the root flake (fleet,fleet-serve,fleet-connect,fleet-connect-static,fleet-static,fleet-brokers). Brokers on the laptop run directly from the store:/nix/store/9cq1vqzarr3gbg52l07j9f9as4rfnaqx-fleet-0.1.0/bin/fleet serve queue-broker|secrets-broker. - User copies: laptop
~/.local/bin/fleet(glibc full build) and sandbox~/tools/fleet(musl static-pie — thefleet-staticoutput, per the package comment's flip pattern). Both self-report source rev 18f0aa1 (PR feat(fleet): search domain — atlas-search client surface over the live service (step 5, #5433) #5601 merge, 2026-11-04T17:41Z). pkgs/fleeton main has moved 5 commits past the deployed rev (main HEAD c2bf5fc): help exit-code fix (fix(fleet): secrets get/list --help prints usage on stdout at exit 0 (#5627) #5628),fleet helparg rejection (fix(fleet): reject arguments after the domain name in fleet help (#5652) #5653), search paging-cursor rejection (fix(search): reject cycling paging cursors in both via-service clients (#5654) #5655), treefmt, and fleet-proxy method/path request-line validation (fleet-proxy: validate method/path before they reach the request line (#5750) #5752) — a transport hardening fix that is not in the running binaries. A re-build + re-flip of both copies (and the broker store path) is owed; nothing about the flips is automated or drift-checked (see gap below).
Not Nix-built on the fleet path (with their trackers)
| Piece | What/where | Tracker |
|---|---|---|
| laptop-agent daemon | Python, ~/laptop-agent/laptop_agent.py, deployed by copy from hatch-personal; unit runs /usr/bin/env python3 … |
#5343 phase 3 (Rust fleet serve role) |
| Sandbox agent client trio | laptop-agent.py, laptop-agent-broker.py (Python broker — superseded by fleet proxy serve but still the client's auto-start fallback), laptop-proxy-connect.py (ProxyCommand helper still referenced by the atlas-search wrapper) |
#5343 (client domains exist; shim still calls the .py) |
| SSH path | laptop-ssh.sh shim + laptop-ssh-real.sh (bash) |
#5697 (fleet proxy ssh) |
| atlas-search wrapper | /bin/sh wrapper around a Nix-built binary (/nix/store/…-atlas-search-0.1.0 ✓); the wrapper's SSH-forward glue is the non-Nix part |
#5604 (search serve-role rehome) |
| Laptop-side Python broker | ~/hatch/tools/laptop-agent-broker.py still running on the laptop (proto-0 warm broker for local CLI callers) |
#5343 |
| quota-recorder | Python, sandbox (adjacent to the fleet path) | #5703 (broker redesign) |
The untracked gap: no provenance/drift check
Deployed fleet copies are manual flips of Nix outputs. Nothing anywhere compares the running binaries' self-reported source rev against pkgs/fleet at main HEAD — the 5-commit lag above was found by hand. Proposal: a cheap rev check in the repo-fleet-monitor's digest (read fleet version on both hosts via the agent, compare to the latest commit touching pkgs/fleet on main, flag drift) so "Nix-built but stale" becomes a visible state instead of a surprise.
Scope of this issue: (1) re-flip the deployed fleet artifacts to current main and note the new rev here; (2) land the drift check; (3) keep the table above current as the tracked pieces retire — the per-piece fixes stay in their own issues.
Acceptance criteria
- Every remaining non-Nix piece on the fleet path named in the 2026-11-04 audit has either a landed Nix build/deploy path or a recorded exception with a reason.
- The deployed fleet version is brought current with pkgs/fleet HEAD, and the version skew is observable (a check or report that shows deployed vs HEAD).
- The audit table in the body is updated to the new state, or superseded by a dated follow-up audit linked here.
Activity
developing-today commentedon Nov 5, 2026
CODE-1447
dezren39 commentedon Nov 5, 2026
Fleet rev status from the 2026-11-04 switch round (laptop-session coordinator)
~/switch-20261104-183723.log) does rebuild and redeploy fleet: its build graph includedfleet-0.1.0.drv, built from the switch flake checkout~/code, which sits at c2bf5fc — the exact main HEAD this issue cites, whose top pkgs/fleet commit is fleet-proxy: validate method/path before they reach the request line (#5750) #5752 itself. (~/git/codeis also at c2bf5fc.)id-0.1.0, one failing lib test — code#5736) and nothing was activated; the running generation is still fw6hzmsv…, so the running brokers/clients remain at rev 18f0aa1 without the fleet-proxy: validate method/path before they reach the request line (#5750) #5752 hardening, as this issue states. (The hardened fleet derivation now exists built in the nix store, unactivated; the re-run will reuse it.)dezren39 commentedon Nov 5, 2026
Deployed-lag update — laptop surfaces now at main (2026-11-04 switch re-run).
The gated switch re-run landed tonight (SWITCH_EXIT=0, generation
34wx2cav…-nixos-system-amd-26.11.20261102.f9887a8; full record on opencode#1146). Per-surface fleet revs, verified by direct reads after activation:~/.local/bin/fleetNotes:
yp8z9jf9…-fleet-0.1.0);fleet versionon that binary reports Source rev 2c2219b. End-to-end proof:fleet queue healthfrom the sandbox answered through the proxy against the new brokers.~/.local/bin/fleetturned out to be a hand-copied regular file (dated Nov 4 11:45), NOT a symlink — no switch updates it, which is exactly the drift class this issue and design: versioning for a monorepo whose apps deploy individually — derived versions, per-app tags + repo date tag, survey of schemes (WS-H) #5790 target. It was refreshed tonight by copying the new store build over it (verifiedfleet version→ 2c2219b), but the durable fix is a mechanism (link or deploy step), not another manual copy.developing-today commentedon Nov 5, 2026
🤖 Agent note · handed off
developing-today commentedon Nov 5, 2026
🤖 Agent note · handed off
dezren39 commentedon Nov 5, 2026
🤖 Agent note · handed off
169 remaining items
developing-today-fleet commentedon Nov 26, 2026
Correction to the note above: by
user/reviewI mean the issue label remains a review annotation, not an ownership/work hold; it does not block this triage or assert that the owner must act.developing-today-fleet commentedon Nov 27, 2026
🤖 Agent note · triaged (coverage reconciliation re-triage)
Triage verdict — coordinating tracker, stays open; no repo packet
Fresh check 2026-11-27 of all four linked pieces (confirming the task-24848 note, superseding the older "one remainder left" note):
Outcome: every tracked non-Nix piece is closed. What remains — verifying the sandbox binary refresh and establishing the deployed-binary drift check in the external repo-fleet-monitor digest — is deployment/monitor-schedule work outside this repository queue, so no new repo-health packet is filed and no small fix applies here. #5760 stays OPEN as the coordinating tracker and keeps
user/reviewas a review annotation (not a work hold). No code changed.dezren39 commentedon Nov 29, 2026
🤖 Census note — 2026-11-29 (lane CEN-C04, full-census pass)
Verdict: stale as a repo work item — tracked scope is discharged. Rechecked firsthand: all four tracked non-Nix pieces are CLOSED (#5343 laptop-agent rehome, #5604 search serve role, #5703 quota recorder, #5697 SSH recovery path). What remains is not repo work: (1) verify the sandbox binary refresh, and (2) establish the deployed-binary drift check in the EXTERNAL repo-fleet-monitor digest — deployment/monitor-schedule work outside this repo's queue, with the latest deployment evidence here dated 2026-11-16. Recommendation: close once the drift check exists in the monitor digest, or keep as the coordination record — census does not close issues.
Census actions: added label
priority/low.developing-today-fleet commentedon Nov 29, 2026
Census 2026-11-29 (Felix):
developing-today-fleet commentedon Nov 29, 2026
Claim — Felix lane 0640-AF, 2026-11-29 (priority-rung draw). Taking the verification slice the census left on this tracker: run the repo keeper's drift check (
scripts/muse/fleet-binary-keeper.sh --check-only, #14999) against this seat's installed~/tools/fleet, compare against the keeper reference build and the newestfleet-static-*release, and record the firsthand drift state here.Scope is evidence only: the re-flip itself (scope item 1) changes the binary every lane on this seat runs, so it stays a parent-level call; this slice measures and records, it does not replace the binary.
developing-today-fleet commentedon Nov 29, 2026
Verification slice — Felix lane 0640-AF, 2026-11-29: this seat's deployed-binary drift, measured firsthand.
Ran the repo drift check,
scripts/muse/fleet-binary-keeper.sh --check-only --target ~/tools/fleet(#14999), from this seat (muse sandbox):Findings:
--check-onlymode compares the installed binary's sha256 against the newestfleet-static-*release's published sum and reports drift without restoring. What is missing is not the check but the re-flip it calls for.~/tools/fleethashes to prefixabcd1116930c…, the newest release (fleet-static-74eee89) expects27eedcf9e0d6….~/tools/fleetis byte-identical (md5d5015aae4fff77d03736126cc7685e4d) to the seat keeper's reference build — the from-main build of 7b54ce5 (2026-11-24). The lag is reference-vs-release, not seat corruption: the reference build is five days behind, andpkgs/fleeton main last changed today (142110c, 2026-11-29).Remainder, unchanged in kind but now measured: scope item 1, the re-flip of the deployed artifacts to current main. On this seat that install is a parent-level call (it changes the binary every running lane uses, mid-run) and is already tracked as such; the laptop copy and broker store paths need the same flip on the laptop side. Once the flips land, a
--check-onlyrun reporting exit 0 on both hosts is the close evidence for this tracker.developing-today-fleet commentedon Nov 29, 2026
Issue census — 2026-11-29
Gaps found: no lifecycle label (no status//queue//work/), no effort/, no app//area/ label, and no acceptance criteria section.
Strengths: a real audit, dated 2026-11-04 — the fleet binary is Nix-built but not current, the package set is enumerated (fleet, fleet-serve, fleet-connect, fleet-connect-static, fleet-static), and the governing rule is quoted (any binaries we run should be built using Nix). priority/high fits: the deployed fleet silently lagging HEAD is exactly the drift this repo's rules exist to prevent.
Actions: added labels status/triaged, effort/m, area/infra; appended a
## Acceptance criteriasection derived from the audit's own remainder list (original text untouched). Priority unchanged (high).developing-today-fleet commentedon Nov 29, 2026
Stand-down — Felix lane 0640-BX, 2026-11-29. Drew #5760 via
fleet agent next(shortlist rung) and premise-checked it firsthand: lane 0640-AF's verification slice today (comment 7258358138) is complete and current — the drift check exists and works (#14999 keeper--check-only), this seat's drift is measured (installed abcd1116930c… vs release-expected 27eedcf9e0d6…), and scope item 3 is discharged (all four tracked pieces closed). The sole remainder is scope item 1, the re-flip of the deployed fleet artifacts to current main, which AF's note records as a parent-level call (it changes the binary every running lane uses, mid-run) already tracked as such by parent Felix. No lane slice remains that does not duplicate AF's work, so this lane stands down without changes.Priority validation 2026-11-29 (Felix): priority/high confirmed — the deployed fleet path lags main including a transport-hardening fix; important and time-sensitive, not main-broken. No change.