Skip to content

Fleet path Nix-build state: deployed fleet lags pkgs/fleet HEAD; remaining non-Nix pieces #5760

Open

Description

@dezren39

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 ✗

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

  1. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  2. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Fleet rev status from the 2026-11-04 switch round (laptop-session coordinator)

  3. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    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:

    Surface Rev before Rev now
    queue-broker / secrets-broker (systemd, restarted at activation 21:15:41 CST) 18f0aa1 2c2219b (= origin/main HEAD, includes the #5752 request-line hardening)
    Laptop PATH copy ~/.local/bin/fleet 18f0aa1 2c2219b… (see note)
    Sandbox fleet binary 18f0aa1 18f0aa1 — unchanged; separate update path, still lagging

    Notes:

    • The brokers' ExecStart store path is the new build (yp8z9jf9…-fleet-0.1.0); fleet version on that binary reports Source rev 2c2219b. End-to-end proof: fleet queue health from the sandbox answered through the proxy against the new brokers.
    • ~/.local/bin/fleet turned 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 (verified fleet version → 2c2219b), but the durable fix is a mechanism (link or deploy step), not another manual copy.
    • Remaining open on this issue: the sandbox surface's rev + the proposed rev-drift check in the monitor digest. The laptop half of the lag is closed by this switch.
  4. added
    queue/queued
    task/triage
    queue/parked
    status/parked
    work/assigned
    on Nov 5, 2026
  5. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  6. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor

    🤖 Agent note · handed off

  7. removed
    queue/queued
    on Nov 5, 2026
  8. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · handed off

  9. removed
    status/parked
    queue/parked
    on Nov 5, 2026
  10. 169 remaining items

  11. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Correction to the note above: by user/review I 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.

  12. developing-today-fleet commented on Nov 27, 2026

    @developing-today-fleet
    Contributor

    🤖 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):

    piece state
    #5343 laptop-agent rehome CLOSED
    #5604 search serve role CLOSED
    #5703 quota recorder CLOSED
    #5697 SSH recovery path CLOSED

    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/review as a review annotation (not a work hold). No code changed.

  13. added
    priority/low
    on Nov 29, 2026
  14. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    🤖 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.

  15. added
    priority/high
    kind/infrastructure
    and removed
    priority/low
    on Nov 29, 2026
  16. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix):

  17. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    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 newest fleet-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.

  18. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    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):

    2026-11-29T15:46:19Z drift tag=fleet-static-74eee89 installed=abcd1116930c expected=27eedcf9e0d6 target=/home/hatch/tools/fleet (check-only; not restored)
    exit code 3 (drift)
    

    Findings:

    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-only run reporting exit 0 on both hosts is the close evidence for this tracker.

  19. added
    status/triaged
    effort/m
    area/infra
    on Nov 29, 2026
  20. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    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 criteria section derived from the audit's own remainder list (original text untouched). Priority unchanged (high).

  21. developing-today-fleet commented on Nov 29, 2026

    @developing-today-fleet
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/infraeffort/mepic/fleet-orchestrationkind/infrastructurepriority/highstatus/triagedtask/triageuser/review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions