GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing · Issue #10796 · developing-today/code

fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing #10796

New issue
Copy link
New issue
Copy link
Done
#12795
Done
fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing#10796
#12795
Copy link
Labels
effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestpriority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Nov 16, 2026
Issue body actions

Drew's directive (2026-11-16, Reports chat): the transport fallback belongs in the fleet binary itself, not in the Python laptop-agent scripts.

Current state (verified 2026-11-16)

  • The binary's proxy transport already does Cloudflare-primary / Tailscale-fallback: PR feat(fleet-proxy): Cloudflare-primary/Tailscale-fallback sandbox<->laptop transport #10577 merged 2026-11-16T00:56:57Z. Transport design home: Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356 (open).
  • The laptop-agent CLIENT is still Python (~/tools/laptop-agent.py + laptop-agent-broker.py in dezren39/hatch): the binary's fleet laptop-agent domain is a registry stub (exit 69; epic epic: one fleet multicall binary — search, queue, dispatch, proxy — with capability-selected builds #5412 closed with the domain left as a later step).
  • The Python client currently carries behavior that belongs in the binary: (a) the automatic fallback ladder — broker/CF failure retries over SSH instead of blocking callers (patched into the Python client 2026-11-16 after the morning outage; the daemon dying at 07:35 CST blocked every route because the fallback lived client-side); (b) the Cloudflare Access credential, now fetched from fleet secrets (cloudflare.access-laptop-agent, migrated 2026-11-16; the loose file tools/laptop-agent-cf-access.json is deleted). Both landed in dezren39/hatch commit 84fbd0475 — that Python behavior is the spec to mirror.

Build

Implement the laptop-agent domain in the fleet binary (exec / run / poll / kill / jobs against the laptop daemon) with:

  1. Automatic, non-blocking transport fallback inside the binary: fleet-proxy Cloudflare leg → Tailscale leg → SSH leg, in that order, without callers having to know or retry manually. A dead daemon or a dead leg degrades to the next leg; it never wedges the caller.
  2. The Cloudflare Access credential sourced from fleet secrets (cloudflare.access-laptop-agent) by the binary — no credential files on disk.
  3. Parity proofs before the Python client is retired: round-trip exec on each leg, hash-checked file transfer both ways, a forced-leg-down test showing the fallback carries the call, and trip logging equivalent to the Python client's v2.
  4. On parity: re-point ~/tools/laptop-agent.py (and laptop-ssh.sh's delegation) at the binary and retire the Python routing code, per the epic: one fleet multicall binary — search, queue, dispatch, proxy — with capability-selected builds #5412 stub plan.

Acceptance

  • fleet laptop-agent exec works on all three legs with automatic fallback demonstrated under a forced failure.
  • No Python socket/routing code remains in the call path; the Python files are thin delegates or gone.
  • The CF Access credential is read from fleet secrets by the binary; no on-disk credential file exists for it anywhere.

Activity

Next
  1. developing-today commented on Nov 16, 2026

    @developing-today
    developing-todayBot
    on Nov 16, 2026 – with developing.today
    Contributor
    More actions

    CODE-3906

  2. github-actions
    assigned
    dezren39
    on Nov 17, 2026
  3. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    Agent note — task 19358 triage (lane any-k): #10796 triaged — stub verified live; fix routed as task 20682

    • state: triaged
    • Fresh revalidation 2026-11-17: issue fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing #10796 OPEN, no labels, no hard-stop labels, no prior triage note (only the Kaneo link).
    • Verified live this run: fleet laptop-agent exec on the laptop build still prints the epic: one fleet multicall binary — search, queue, dispatch, proxy — with capability-selected builds #5412 stub ("included in this build but not implemented yet ... the step-1 skeleton of epic epic: one fleet multicall binary — search, queue, dispatch, proxy — with capability-selected builds #5412"). The Python client (dezren39/hatch 84fbd0475) remains the only carrier of the CF -> Tailscale -> SSH fallback ladder and the fleet-secrets CF Access credential — exactly the gap Drew's 2026-11-16 directive targets.
    • Design home Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356 is OPEN but is not a blocker: the Build list in this issue is self-contained (mirror the Python behavior as spec).
    • Triage verdict: work kind small_fix (implementation build), priority/high (fleet-working line 1 adjacency — every lane's laptop execution rides this transport; band 20 in queue terms), effort/l. First concrete step: implement exec/run/poll/kill/jobs against the daemon in pkgs/fleet with the secrets-sourced credential, then the parity proofs (per-leg round-trip, hash-checked transfer, forced-leg-down) before any client re-pointing.
    • Acceptance check for the fix: the issue's Acceptance section, with parity evidence recorded on this issue.
    • Follow-on: fix packet enqueued as task 20682 (dedupe repo-health:v1:fix:developing-today/code:issue:10796, priority 20). Queue scanned first — no other live task for fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing #10796.
  4. dezren39
    added
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    priority/highImportant and time-sensitive
    effort/lLarge: multi-day or open-ended; expect staged check-ins
    kind/featureNew feature or capability request
    on Nov 17, 2026
  5. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: opencode claimant (opencode-claimant)
    • Session / ID: queue task 20682; bound session ses_e5e17b7c028ffeiWJHmZ5lTj5J
    • Found via: queue task handoff on the opencode execution lane
    • Task: Fix fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing #10796: implement the fleet binary laptop-agent domain (CF -> Tailscale -> SSH fallback in the binary)
    • Expectation: the bound worker session works task 20682 to a terminal queue state and must not claim another task. It revalidates the issue/PR before acting.
    • Links: fleet binary: implement the laptop-agent domain — automatic transport fallback (CF → Tailscale → SSH) + CF Access credential from fleet secrets; retire the Python client's routing #10796
  6. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    PR #11122 implements the laptop-agent domain: fleet-laptop-agent with exec, run, poll, kill, jobs, health and fetch over the ladder broker → Cloudflare → Tailscale → SSH.

    Parity status (not yet proven, so ~/tools/laptop-agent.py and laptop-ssh.sh are not re-pointed):

    • Round-trip exec per leg: needs a live laptop (sandbox has no HTTPS_PROXY). Open.
    • Hash-checked transfer, laptop → sandbox: implemented (fetch), live run open.
    • Hash-checked transfer, sandbox → laptop: not implemented; the daemon has no upload route.
    • Forced-leg-down fallback: covered by ladder unit tests; live run open.
    • Trip-log equivalence: trip record field order is unit-tested; live comparison open.
    • SSH leg: stub, because ~/tools/laptop-ssh-real.sh is absent here.
  7. dezren39 commented on Nov 17, 2026

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parity-checked — NOT at parity; PR #11122 stays open, Python client NOT re-pointed
    task: 20682 (repo-health-code-pilot, lane code-d, resumed direct after the dispatched session's lease expired)
    issue: #10796 — fleet binary laptop-agent domain

    Context: the dispatched opencode session (ses_e5e17b7c028ffeiWJHmZ5lTj5J) delivered PR #11122 (crate fleet-laptop-agent, 11 files, +1564) and then stopped heartbeating; its lease expired 2026-11-17T07:34:41Z and this lane re-claimed the task and ran the live-laptop parity phase from the sandbox (the real client topology), with the binary built on the laptop from the PR branch (a689cd1; stripped sha256 b1dc795cadf793d9c533bf0664c539c8c5dae5b9f62534322ea97e52ea4e6e0c).

    PROVEN live this shift:

    • cargo test -p fleet-laptop-agent on the laptop: 19/19 pass. cargo build -p fleet --features laptop-agent: builds (1 warning).
    • Broker leg: health round-trip (ok, uptime/jobs/load), exec round-trip, detached run -> poll (output + done exit=0), jobs list — all work.
    • Forced broker-down (scratch HOME, no broker socket): the ladder falls through and the TAILSCALE leg serves exec — twice. Total-failure error names every leg and its failure class.
    • Hash-checked transfer of the test binary itself (laptop -> sandbox via the Python fetch path): sha256 identical both sides.

    NOT at parity (each blocks merge + re-pointing):

    1. Cloudflare leg FAILS: in scratch-HOME isolation it failed after ~120 s on both attempts (fleet config copied in for the second) and Tailscale served instead. Suspect the in-process secrets resolution (fleet-secrets resolver chain) under a relocated HOME, or the CF connect itself — needs diagnosis with the leg's own error surfaced (today it is only visible as "cloudflare failed" in the fall-through note). The Python client treats CF as its primary leg, so this is the headline gap.
    2. fetch is broken on the broker leg: GET /file returned "HTTP 502: broker: JSONDecodeError" — the broker protocol is JSON-only; the Python client bypasses the broker for /file chunks for exactly this reason. The binary must route fetch to direct legs only. Via direct legs the fetch then hit "no reply before the deadline" (~75 s, the CF leg's slow failure consumed the budget) — fetch is unproven on every leg.
    3. Trip logging is v1-shaped only: the binary's TripRecord carries ts/trip/path/total_ms/status; the Python v2 fields (v, transport, t_sent, t_returned, t_received) are missing. The acceptance asks for v2 equivalence.
    4. SSH leg is a named stub (PR states this): ~/tools/laptop-ssh-real.sh IS present on the sandbox, so the leg can be implemented and verified here.
    5. Fetch upload direction unimplemented (daemon has no upload route, per the PR) — decide on the issue whether parity requires a daemon route or the direction is scoped out.

    Remaining order of work: fix the CF leg diagnosis first (it also unblocks direct-leg fetch timing), route fetch off the broker, add the v2 trip fields, implement/verify the SSH leg, then re-run this parity list end-to-end; only on a full pass, re-point ~/tools/laptop-agent.py + laptop-ssh.sh (dezren39/hatch) and merge PR #11122. No Codex reviews exist on PR #11122 as of this note (reviews: none).

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

    @dezren39
    dezren39
    on Nov 17, 2026
    MemberAuthor
    More actions

    agent-note:v1
    state: parked (capacity - needs a full-budget shift)
    task 20682 (repo-health-code-pilot, lane any-q)

    Pickup, 2026-11-17. Resuming from lane code-d's parity checkpoint on this issue (2026-11-17T08:00Z), not restarting.

    Verified fresh this run: PR #11122 is OPEN (head queue/20682-muse-send, updated 2026-11-17T08:34Z); issue #10796 OPEN, priority/high, effort/l, no hard-stop labels. Lane code-d's parity record stands: broker leg proven live, Tailscale fallback proven, 19/19 crate tests pass; five parity gaps remain (Cloudflare leg failure undiagnosed, fetch broken on the broker leg, trip logging v1-shaped only, SSH leg still a stub, fetch upload direction undecided) and PR #11122 must not merge or re-point the Python client until the full parity list passes.

    This lane is at the tail of its shift budget; the remaining work is a multi-item implementation + live-parity program (code-d's recorded order: CF diagnosis first, fetch routing, v2 trip fields, SSH leg, full re-run). Task 20682 is parked for capacity with a 180-minute required budget so a fresh full-budget shift takes it with room to finish, instead of another partial pass.

  10. dezren39
    added a commit that references this issue on Nov 17, 2026

    fix(fleet-laptop-agent): fetch bypasses the JSON-only broker leg; tri…

    72c8891
  11. 29 remaining items

  12. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 21, 2026
  13. dezren39 commented on Nov 21, 2026

    @dezren39
    dezren39
    on Nov 21, 2026
    MemberAuthor
    More actions

    Picked up task 20682. Revalidated issue #10796 OPEN and bound PR #11122 MERGED at a03c409; proceeding to already-done disposition.

  14. dezren39 commented on Nov 21, 2026

    @dezren39
    dezren39
    on Nov 21, 2026
    MemberAuthor
    More actions

    Task 20682 is already done: bound PR #11122 merged on 2026-11-17 as a03c409. Issue #10796 remains open; merged PR and passing check verified live.

  15. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 21, 2026
  16. dezren39
    added 2 commits that reference this issue on Nov 22, 2026

    feat(fleet): implement the SSH leg of the laptop-agent ladder (#10796)

    75ddb67

    fix(fleet): restore the SSH-leg helper section lost in the #10796 rec…

    f1f3678
  17. developing-today
    added
    status:in-review
    on Nov 23, 2026
  18. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Progress note — xaltha, 2026-11-22: the SSH-leg slice is PR'd: #12795

    What landed: PR #12795 (branch xaltha/10796-ssh-leg, Refs #10796) replaces the SSH-leg stub that PR #11122 merged with the real SshLeg in pkgs/fleet/crates/fleet-laptop-agent/src/legs.rs — the implementation proven live in the 2026-11-17 parity shift (forced-leg-down harness: health + exec answered by SSH after broker/Cloudflare/Tailscale failed; trips recorded with transport:"ssh").

    One repair was needed on the way: the recovered commit 75ddb67ef carried the leg's tests and call sites but not the helper definitions they use, so the crate did not compile (20 errors — json_reply, sh_quote, ssh_inner, query_u64, job_segment, cap_tail, b64_decode, find_subslice undefined). Fix commit f1f3678ae restores that section verbatim from the proven staged implementation still preserved in the parity shift's laptop worktree, cargo fmt-formatted. The PR's net diff vs main is +529/−13 in the one file.

    Test evidence (laptop, branch head f1f3678ae):

    • cargo test -p fleet-laptop-agent from pkgs/fleet: 24 passed, 0 failed, including all six SSH-leg tests (sh_quote_matches_shlex, ssh_inner_flattens_env_cwd_and_argv, b64_decode_round_trips_and_tolerates_noise, ssh_leg_is_absent_without_the_script, ssh_leg_carries_no_other_surfaces, ssh_health_answers_through_a_fake_script).
    • cargo fmt --check for the crate: clean.
    • Clippy not run: the laptop's rustup has no clippy component configured, so CI is the first clippy run (pre-existing laptop toolchain gap).

    What remains on #10796 after this PR merges: re-pointing ~/tools/laptop-agent.py + laptop-ssh.sh at the binary once a fleet build carrying this leg deploys (the issue's own sequencing — re-pointing before that deploy would route every lane at a binary that does not yet ship the leg). The fetch-upload decision already stands on this issue (no daemon upload route; parity covers fetch).

    Known follow-up, deliberately not in this slice: the ladder does not pin /jobs/sshfb-* routes to the SSH leg (sshfb- job routing gap).

  19. dezren39
    added a commit that references this issue on Nov 24, 2026

    Merge pull request #12795 from developing-today/xaltha/10796-ssh-leg

    b8c35c0
  20. dezren39
    closed this as completedin #12795on Nov 24, 2026
  21. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 24, 2026
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

    effort/lLarge: multi-day or open-ended; expect staged check-inskind/featureNew feature or capability requestpriority/highImportant and time-sensitivestatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.