Skip to content

fleet clients: probe-based UDS/TCP transport selection (from #5699) #6218

Closed

Description

@dezren39

Implementation follow-up from the design decision on #5699 (adopted 2026-11-05, task 10135 triage).

Scope

Client migrations to probe-based transport selection (explicit URL/env override wins, then the [<role>] transport config preference, then probe: socket file exists + connect succeeds -> UDS, else TCP — the dispatch client's probe-then-choose pattern, crates/fleet-dispatch/src/lib.rs:152-183):

  • queue client direct path (crates/fleet-queue/src/client.rs:69-84,100-113)
  • queue-broker's DirectSecrets hop to secrets-broker (crates/fleet-queue/src/queue_broker.rs:48-51,604-605) — gains a unix:// form or sibling secrets_socket setting
  • laptop-local fleet secrets path
  • On the way past: fix the queue client's hardcoded broker-sock path (client.rs:55-57) to ask fleet-config instead.

Sandbox consumers are untouched — they speak UDS to their local proxy, a different socket.

Acceptance

  • Each migrated client works over UDS when the role socket answers and falls back to TCP when it does not.
  • No behavior change when only TCP is configured.

Acceptance criteria

  • Fleet clients select UDS vs TCP per role by probing, with no manual configuration.
  • A failed or absent socket probe falls back to TCP within the same connection attempt.
  • Probe behavior is covered by tests for socket-present, socket-absent, and socket-stale cases.

Activity

  1. added
    app/fleetpkgs/fleet multicall binary + platform crates
    on Nov 5, 2026
  2. developing-today commented on Nov 5, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Nov 5, 2026
  4. dezren39 commented on Nov 5, 2026

    @dezren39
    MemberAuthor

    Intake review

    • Related PRs (number search, this run): none found by number search this run
    • Still live: verified open this run; no merged PR found that explicitly resolves this issue, so it stays open.
    • Labels: normalized this pass (kind/enhancement, priority/normal, effort/m, status/needs-triage; meta/enriched added).
    • Notes: priority/normal: client half of the design: ports vs local transports — Unix sockets for same-machine fleet roles, dual-stack with proxy TCP #5699 transport work; pairs with the proxy/broker slices.
    • Risks: Risk: stale sockets are the classic false-positive - the probe must verify a live listener, not a file.
    • Suggested approach: Approach: probe with a bounded dial; cache the result per role; fall back to TCP on any probe error.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-05T15:33:58Z
    • Found via: monitor reconciliation (Duty 2 intake enrichment)
    • Task: Intake pass per protocol §5: verified live, acceptance criteria appended, labels normalized, related PRs linked above.
  5. added
    task/triageQueue packet kind: verify, reproduce, and route this item
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    and removed on Nov 6, 2026
  6. 54 remaining items

  7. added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    and removed
    queue/claimedQueue worker lifecycle state
    on Nov 9, 2026
  8. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Resumed by lane code-f (task 14372). Fresh verification: PR #8033 OPEN at 5d63b51, diff matches the #6218 intent (fleet-config RoleTransport/probe_socket, queue client + queue-broker + fleet-secrets route selection, 6 files); Codex review failed on usage limits with zero findings (disposition posted on PR #8033); checks still QUEUED (fleet Actions stall). Merging PR #8033 under standing merge authority, then completing task 14372 and closing this issue.

  9. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    Done: PR #8033 merged (squash, merge commit 5763542) implementing probe-based UDS/TCP transport selection for fleet broker clients per the #5699 design. Verified by lane code-f on task 14372 resume: diff matches intent, laptop tests recorded by the implementing lane (fleet-config 26, fleet-queue 119, fleet-secrets, fleet + fleet-dispatch suites) all passing, Codex review produced no findings (failed on usage limits; disposition on PR #8033). Closing as complete.

  10. removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 9, 2026
  11. dezren39 commented on Nov 9, 2026

    @dezren39
    MemberAuthor

    agent-note:v1 task 11118 lane code-m: picked up, execution lane opencode (row 3448), handed off to claimant and parked 1200s. Fresh check 2026-11-09T08:09:26Z: issue #6218 OPEN, no hard-stop labels

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

Metadata

Metadata

Assignees

Labels

app/fleetpkgs/fleet multicall binary + platform crateseffort/mMedium: expected under 1 day of workkind/enhancementmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)status:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions