Skip to content

queue-broker/laptop-agent bind fails at boot before Tailscale assigns 100.99.113.103 — add startup guard (follows #15131) #15533

Backlog

Description

@dezren39

Follow-up to #15131 (broker unreachable 2026-11-25T14:00:28Z to 2026-11-26T10:30:27Z, ~20.5h). Cause verified firsthand on the broker host (amd) user journal:

  • 03:38:42: queue-broker: cannot bind 100.99.113.103:4801: Cannot assign requested address, restart counter hit 5, start-limit-hit; same for laptop-agent and the tailnet socket.
  • 04:22:21 (after manual reset+restart): listening on 100.99.113.103:4801, backend turso. Broker healthy since.

The services start before Tailscale assigns the address, burn through their restart budget, and stay down after the address appears. Next reboot can repeat the outage exactly.

Scope: add a startup guard so the broker (and laptop-agent) survive Tailscale not being ready. Options (pick one, record why): bind-retry with backoff inside fleet serve, systemd ordering on the Tailscale address (After/Wants on the tailnet unit or address check), or a Restart policy that does not hit start-limit before the address exists. Cover laptop-agent the same way; it failed the same bind.

Acceptance:

  • Reboot-shape proof: with Tailscale delayed/absent at boot, the broker and laptop-agent end up listening once the address appears, with no manual reset.
  • No behavior change once the address exists at start.
  • Regression coverage names its oracle (a test or a boot-drill record on this issue).

Out of scope: closing #15131 (human closes per #10136); changing bind addresses.

{
  "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-26T10:37:42Z",
    "session_id": "ses_e5ded47a8e5ffeTMjRD6YISpCt",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "6fd30c93b62a4b6fba19e6444c7d69f343fb93a1"
    },
    "auth_subject": "oc-code-02",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Refs #15131.

Activity

  1. added
    task/triage
    status/needs-triage
    priority/high
    area/infra
    kind/infrastructure
    on Nov 26, 2026
  2. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Intake review

    • Related: issue fleet-stalling: queue broker unreachable since 2026-11-25T14:00:28Z #15131 (the ~20.5h broker outage this follows); issue pm stack: close authority — automation must never close an issue #10136 (closure convention named in the body).
    • Notes: Verified live at intake: no merged PR references this issue. Root cause is evidenced firsthand in the body (bind before Tailscale assigns the address; restart budget exhausted; start-limit-hit). The body already carries an Acceptance list, so no acceptance section was appended.
    • Risks: A guard that only retries in-process may still lose to systemd start limits; the fix must cover laptop-agent identically.
    • Suggested approach: Pick one guard (bind-retry with backoff, systemd ordering on the tailnet address, or a restart policy that cannot start-limit before the address exists), record the choice on the issue, and prove it with the reboot-shape drill the body names.
  3. added
    effort/s
    meta/enriched
    on Nov 26, 2026
  4. dezren39 commented on Nov 26, 2026

    @dezren39
    MemberAuthor

    Progress: opened #15570 with the startup bind guard slice (code-g). All three daemons retry only EADDRNOTAVAIL for up to 10 minutes with 1s→15s backoff; other errors fail immediately. Actual daemon-startup regression test fails against the original source with errno 99, then passes with the fix. Latest Rust and Python suites: 8/8 each; Rust production shares the tested driver. Remaining scope: live reboot drill and recovery beyond repeated exhausted retry budgets (systemd can still eventually hit its restart limit). This is a reviewable slice, not full completion of #15533.

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

    @developing-today-fleet
    Contributor

    agent-note:v1 — graph hygiene audit slice N2 under #14863 (queue-lane-SC, 2026-11-26)

    State correction (comment-only): status/needs-triage is stale. Progress was recorded on this issue at 2026-11-26T11:54Z — the startup bind-guard slice was opened as #15570 (all three daemons retry only EADDRNOTAVAIL for up to 10 minutes with backoff) — so triage is done and implementation is in flight under the child, yet the issue still carries status/needs-triage. Same recurring class as slice N1 (needs-triage not moved when work starts). Flagged for the owning lane; the audit made no label change. Refs #14863

  6. added
    stray-work
    epic/fleet-maintenance
    primary-parent/fleet-maintenance
    on Nov 26, 2026
  7. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    Contributor

    Triage refresh (oc-code-05, 2026-11-26): partially implemented, not resolved. PR #15570 is MERGED (77df348); it adds identical EADDRNOTAVAIL-only retry guards to queue-broker, secrets-broker and laptop-agent with bounded backoff. Tests and pre-change failure are documented in the PR. This selects in-process retry because it is host-agnostic/testable and preserves immediate bind when the address exists. Remaining acceptance is the live reboot-shape drill (delayed/absent Tailscale then listener recovery without manual reset) and evaluating behavior beyond repeated 10-minute retry budgets/systemd restart limits. No behavior change is claimed for that scenario. The laptop is currently unreachable via Fleet; no live reboot drill can be performed in this run. Resume the scoped operational proof when the laptop route is reachable; keep #15533 open.

  8. 9 remaining items

  9. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    🤖 Lane 2352-B-A (bravo SUSTAIN, 2026-11-26 23:52 CST) — shepherd progress: PR #15946 merged; its fleet-command run still in progress (metadata only)

  10. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · Lane 2337-A-C (alpha DRIVE, 2026-11-26 23:37 CST) — PR #15946 verification failed; not merged

    The fleet-command verification run 45944879391 for PR #15946 (head 1587b51fd) concluded failure at 2026-11-27T05:58:21Z (metadata only — CI logs held, not read). Per the wake note from lane 2307-C-E, the PR is not merged and stays open pending a successful re-verification.

    This issue remains open in any case: PR #15946 is Refs-only and the reboot drill for the deploy start-limit change is still outstanding.

  11. dezren39 commented on Nov 27, 2026

    @dezren39
    MemberAuthor

    🤖 Correction · Lane 2337-A-C (alpha DRIVE) — PR #15946 was merged; its verification run then failed

    Correcting my note above: PR #15946 was merged at 2026-11-27T05:56:03Z (merge commit 16bb7f72) while its fleet-command verification run 45944879391 was still in progress; the run concluded failure at 05:58:21Z (metadata only — CI logs held, not read). So the change has landed, but on a verification that ultimately failed; whether the failure implicates the merged change is undetermined from metadata alone and is flagged for a future lane.

    This issue correctly remains open: PR #15946 was Refs-only, and the reboot drill for the deploy start-limit change is still outstanding.

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

    @developing-today-fleet
    Contributor

    Decided: owner-park/blocked labels on this issue are not a hold — proceed with verification, keep issue open (live reboot drill outstanding).
    Why: lane-guard hold check: no held/user/owned/do-not-auto-edit labels (FDR-0013; assignment/park labels hold nothing). Both code slices verified present on origin/main: #15570 (77df348, EADDRNOTAVAIL-only bind retry) and #15946 (16bb7f7, RestartSec 5s + StartLimitIntervalSec 0 on the three daemons). Fresh remote verification: dezren39/fleet run 45996133642 SUCCESS at target HEAD ccf3954 (= origin/main at dispatch; both merges ancestors) — pkgs/deploy/test_deploy_slice2.py OK.
    Undo: a later PR advances the drill or the close decision.
    By: lane code-f

    Verification evidence (lane code-f, 2026-11-27):

    • Run https://github.com/dezren39/fleet/actions/runs/45996133642 (fleet-personal surface, followup of 45994401635 whose command shape was wrong — package ID miss, not a code defect): conclusion success, target checkout HEAD ccf3954, deploy slice2 suite OK. Note the runner-run metadata headBranch (main) is the runner repo branch; the target checkout HEAD is what matters and it is exact.
    • Caveat, stated plainly: the cargo invocation (cargo test -p fleet-queue --lib bind_guard) matched 0 of 174 lib tests, so this run did NOT re-exercise the Rust guard — Rust-guard evidence still rests on lane 2322-Ds exact-head (1587b51) success run recorded on fix(deploy): start-limit guard for broker-class systemd units (#15533) #15946 plus the code present on main. Next lane: re-run with an unfiltered lib pass or -- --list to find the true test path before claiming Rust re-verification.
    • No live delayed-Tailscale boot drill was attempted (broker-host hands, out of scope for this lane; no production reboot/activation performed).
    • Cleanup: empty verification branch xaltha/15533-boot-drill-verify carried no code changes and is deleted; note the xaltha prefix misattributes lane code-f work — branch naming should carry the lane, not another worker.

    Next step: ops lane with broker-host hands runs the live delayed-address boot drill and records it here; close only then per FDR-0010.

  13. developing-today-fleet commented on Nov 28, 2026

    @developing-today-fleet
    Contributor

    🤖 Agent note · dated re-check — lane 1637-A (failure lane, alpha DRIVE, 2026-11-28 16:37 CST)

    Transport and the laptop route have both recovered since the last re-checks, verified firsthand this run:

    Drill NOT executed by this lane: the remaining acceptance is the literal reboot-shape drill (delayed/absent Tailscale at boot → listeners recover with no manual reset). Rebooting amd from this lane would kill the laptop-agent channel and every in-flight fleet lane currently running through this host (delta 1622 + alpha 1637 runs are live on it right now), so the drill was not started blind from a gh failure lane.

    Wake (unchanged in substance, now schedulable): an ops lane in a maintenance window with the fleet quiesced reboots amd (or delays Tailscale past broker start), then records on this issue: Tailscale assignment time, each of queue-broker / secrets-broker / laptop-agent listener recovery on 100.99.113.103 with no manual reset, and behavior beyond the 10-minute bind-guard budget / systemd start limits. #15533 stays OPEN until that record exists.

  14. dezren39 commented on Nov 29, 2026

    @dezren39
    MemberAuthor

    Census re-verification — CEN-C16 (2026-11-29; delivery completed in a follow-up pass — the original drafts were lost with the census poster scratch, this text is regenerated from the C16 findings record).

    Verdict: blocked (operational proof only)

    Blocker: the live reboot-shape drill (delayed/absent Tailscale at boot → listeners recover, no manual reset) needs a maintenance window on host amd with the fleet quiesced — rebooting mid-flight would kill the laptop-agent channel every lane uses. That is an ops scheduling decision, not a code blocker.

    Strengths: complete arc — root cause journal-evidenced in the body; both code slices landed (PR #15570 EADDRNOTAVAIL bind retry for all three daemons; PR #15946 RestartSec 5s + StartLimitIntervalSec 0), design choice recorded, remote verification run 45996133642 SUCCESS; latest recheck (2026-11-28) confirms all three units active with listeners on 100.99.113.103.
    Gaps: none in detail. One recorded wrinkle: PR #15946 merged minutes before its verification run concluded failure (metadata-only); the later run 45996133642 succeeded on the merged main, which is the operative evidence.
    Priority: priority/high — unchanged (this outage class took the broker down ~20.5h in #15131).
    Label actions (census): none (labels sane).

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

    @developing-today-fleet
    Contributor

    Census 2026-11-29 (Felix): rechecked in full (body, labels, comments, edges).

    STRENGTHS: Firsthand root cause from the broker host's journal (bind attempts before Tailscale assigned 100.99.113.103, restart budget exhausted, start-limit-hit), bounded scope with three named fix options and a pick-one-and-record-why instruction, and acceptance that demands a reboot-shape proof rather than a unit test alone. kind/infrastructure + priority/high already set.

    GAPS: The code is fully landed — PR #15570 (EADDRNOTAVAIL-only bounded retry in queue-broker, secrets-broker, laptop-agent) and PR #15946 (deploy-side restartDelaySec / startLimitIntervalSec) both merged. The only remainder is the acceptance's live reboot drill: a boot where Tailscale is delayed and the services come up listening with no manual reset. That needs a coordinated amd-6 reboot window (the #8787 host drill needs the same kind of session — they could share one). status/blocked is accurate for that remainder; a decision note on the issue already records that the park/blocked labels are not a hold.

    FIXES I APPLIED: None — labels and priority verified correct.

    REMAINS: A coordinated laptop reboot drill. Drewry does not need to decide anything; it needs a scheduled window, ideally combined with other amd-6 reboot-gated verifications (darwin-nix#2352's post-rebuild check, CF-9's first-fire check).

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

    @developing-today-fleet
    Contributor

    Issue census — 2026-11-29

    Wave-2 recheck: body, labels and all comments re-read firsthand for this pass. Two full census verdicts from earlier today already stand on this issue (Felix and CEN-C15/C16 lanes) — their verdicts are not duplicated here; this note records only the residual check and any residual fix.

    Residual check (kind/infrastructure; priority/high; status: status/blocked; acceptance criteria present): no residual gaps found — verified complete, no changes.

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

    @developing-today-fleet
    Contributor

    🤖 Agent note · lane 1537-D (alpha DRIVE author lane, 2026-11-29) — CLAIM. Taking the startup-guard slice of #15533: broker/laptop-agent must survive Tailscale assigning 100.99.113.103 late at boot. Plan: locate the bind path + unit definitions across developing-today/code and dezren39/fleet, pick the guard option with evidence, land via PR, verify via fleet Actions exec / repo CI on the pushed branch. Queue rung is down (broker tunnel os error 11, #16762 family) so this is a direct claim per the work-loop no-queue fallback.

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

    @developing-today-fleet
    Contributor

    🤖 Agent note · lane 1537-D RELEASE + premise verdict (2026-11-29). Claim released: the code work of #15533 is already landed on main, verified by two agreeing reads (source + commit history):

  19. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    Decision — 2026-11-29, taken under Drew's standing decision posture (2026-11-23) and his 2026-11-29 order to handle the census's untouched items. This issue waited on approval for the reboot drill.

    The drill is approved. Planning and execution are fleet work from this point.

    One remainder is Drew's and is recorded exactly: confirm a reboot window for the laptop (amd) during which the drill may reboot it. Once a window is confirmed on this thread, the fleet runs the drill inside it without further approval.

  20. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 Lane 0407-O (charlie ADVANCE, 2026-11-30 04:07 CST) — claim-scan verdict: GENUINE STOP, not claimed.

    Issue + ALL comments read live this run; transport verified firsthand (two consecutive gh api rate_limit rc=0). No live claim (lane 1537-D claimed 2026-11-29T21:44Z and released 21:48Z with the same verdict).

    • All code work is landed and verified by prior lanes: PR fix(fleet): retry tailnet broker binds at startup #15570 (EADDRNOTAVAIL-only bind retry, queue-broker + secrets-broker + laptop-agent) and PR fix(deploy): start-limit guard for broker-class systemd units (#15533) #15946 (systemd RestartSec 5s / StartLimitIntervalSec 0 in pkgs/deploy). Nothing code-shaped remains.
    • The sole remainder is the acceptance reboot-shape drill: a live reboot of the laptop amd with Tailscale delayed — a live production operation (stop type 2 of 3). The 2026-11-30T01:38Z decision note on this issue approves the drill as fleet work but records one Drew remainder: confirm a reboot window for amd on this thread. No window is confirmed yet.
    • Wake: Drew confirms a reboot window on this issue → an ops lane with laptop hands runs the drill inside it (delay/absent Tailscale at boot; broker + laptop-agent listening once the address appears, no manual reset) and records the drill record here.
  21. developing-today-fleet commented on Nov 30, 2026

    @developing-today-fleet
    Contributor

    🤖 P3.1 reparenting — Felix lane 0640-XW (plan: #17071). This issue was an open sub-issue under closed parent #15131, which has no parent or named successor epic, so per the destination rule it is detached to top-level. GraphQL removeSubIssue, verified parent: null. No state, labels, or priority band changed.

  22. developing-today-fleet commented on Dec 1, 2026

    @developing-today-fleet
    Contributor

    🤖 Lane 1852-B (bravo SUSTAIN queue-truth, 2026-11-30) — queue-leg evidence for the parked task bound to this issue.

    Full claim-scan done live this run (body + all 21 comments). Concur with lane 0407-O's genuine-stop verdict: the code work is landed (PR #15570 bind retry + PR #15946 systemd restart delay) and the sole remainder is Drew confirming a reboot window for the laptop drill — not claimed.

    Queue-truth evidence recorded while reconciling the fleet queue against GitHub: the queue leg is still down from this seat, so no parked-task wake tied to queue recovery has fired. Two consecutive spaced fleet agent doctor reads this run: queue ok:false (repo-queue: not found; then broker tunnel to 100.99.113.103:4801 Resource temporarily unavailable (os error 11)) and shell ok:false (laptop-agent HTTP 502, same tunnel), bridge/github ok:true, fleet.toml direct = false verified firsthand. Zero queue mutations were made this run (the doctor gate for mutations did not pass).

    Wake (machine-checkable): two consecutive spaced fleet agent doctor reads with queue ok:true AND shell ok:true, plus Drew's reboot-window confirmation on this thread for the drill remainder.

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/sepic/fleet-maintenancekind/infrastructuremeta/enrichedprimary-parent/fleet-maintenancepriority/highqueue/parkedstatus/blockedstray-worktask/triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions