GeezerVison is showing github.com — fleet-command: T2 token-file + T3 proxy-env provisioning follow-ups for #15651 · Issue #16368 · developing-today/code
fleet-command: T2 token-file + T3 proxy-env provisioning follow-ups for #15651 #16368DescriptionProblem
#15651's dispatched run (https://github.com/developing-today-forks/fleet/actions/runs/45855714319, 2026-11-26) failed all three laptop tiers for three distinct provisioning reasons. T1 (commander bearer) was routed to dezren39/fleet#128 — still OPEN, blocked on the hands-only bearer enrollment — and the no-leak half of criterion 1 landed in this repo as #16161. The other two tiers have no tracking issue anywhere:
- T2
fleet http health: token file …/tools/laptop-agent-token unreadable: entity not found — the tier reads a token file from the enrolled seat's home (fleet-laptop-agent/src/lib.rs:52-53, default tools/laptop-agent-token per fleet-config/src/lib.rs:438), absent in the runner. 0/5 warm calls, 0/10 batch.
- T3
fleet ssh health: HTTPS_PROXY is not set (the proxy CONNECT helper reads it) — the tier needs the session-proxy environment of an enrolled seat (fleet-proxy/src/tunnel.rs:181-201, credential from runtime env, never argv per fleet-proxy/src/stdio.rs:6-9), absent in the runner. 0/5 warm calls, 0/10 batch.
Needed
In-job provisioning, by name inside the job, for the T2 token file and the T3 proxy env — same constraint as T1: never as dispatch-command arguments (dispatch commands are visible in run metadata/logs; this repo now refuses such dispatches per #16161, fleet-queue/src/placement/adapters.rs:149-198).
Acceptance criteria
- A dispatched
fleet-command job can call the T2 http tier end-to-end with the token provisioned by name inside the job; no token value in dispatch args, run metadata, or logs (public run-log audit).
- A dispatched
fleet-command job can call the T3 ssh tier end-to-end with the proxy env provisioned inside the job; no proxy-credential value in dispatch args, run metadata, or logs.
- Link the resulting run evidence from fleet-command: dispatched jobs cannot call laptop tiers (no enrolled-seat credential provisioning) #15651; anything still failing becomes its own follow-up.
Refs #15651, #15423 (B5 batch measurement this unblocks), #10356, dezren39/fleet#128 (T1 sibling).
{
"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-28T00:25:51Z",
"session_id": "ses_e5de08c58cbffeymGrVt9YzXSK",
"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-06",
"stamped_by": "fleet 0.1.0 (native)"
}
}
Activitydeveloping-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions agent-note · lane 1837-I (alpha DRIVE, 2026-11-27 18:37 CST) · CLAIM
Claiming #16368 for the in-job provision-by-name code slice in the fleet-command dispatch path.
Premise + ownership check (firsthand, this lane): issue OPEN, 0 comments at claim time (no live claim possible), no held/user/gated labels, explicit Acceptance criteria in body, queue_id null in pm-metadata.
Scope of this slice (honest scoping per the 1807-I caveat):
- Code: extend the fleet-queue: refuse dispatches carrying laptop-tier credential values #16161 dispatch refusal in
pkgs/fleet/crates/fleet-queue/src/placement/adapters.rs so the T3 proxy credential is covered the same way T1/T2 already are — a dispatch command embedding the seat's resolved HTTPS_PROXY credential (or the full proxy URL) is refused by name before any POST, never echoing the value. Today DISPATCH_SECRET_NAMES covers desktop-commander.machine-bearer (T1) and fleet.laptop-agent-token (T2) only; the T3 credential travels in the HTTPS_PROXY env value and is invisible to the refusal.
- The in-job provisioning contract this protects is the seat pattern already in
scripts/muse/bootstrap.sh: T2 = fetch fleet.laptop-agent-token by name, write ~/tools/laptop-agent-token mode 0600, never print; T3 = join the tailnet with tailscale.auth-key fetched by name, run tailscaled userspace with --outbound-http-proxy-listen=127.0.0.1:3130, export HTTPS_PROXY=http://127.0.0.1:3130 inside the job only.
E2E gate (recorded, not hidden): a dispatched-job end-to-end T2/T3 call needs an enrolled seat's token file / proxy env inside the runner and the T1 sibling dezren39/fleet#128 is hands-blocked. This lane verifies the code slice in repo CI on the pushed branch; the dispatched-run e2e evidence remains the open gate on this issue / #15651 after the slice lands.
Key: 1837-I developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions agent-note · lane 1837-I · RESOLUTION (code slice landed; claim released; e2e gate remains)
Landed: PR #16377 #16377 MERGED 2026-11-28T01:22:21Z (merge commit 78b8b3e).
What landed — the T3 half of the #16161 leak boundary in the fleet-command dispatch path (pkgs/fleet/crates/fleet-queue/src/placement/adapters.rs):
- The named-secret refusal already covered T1 (
desktop-commander.machine-bearer) and T2 (fleet.laptop-agent-token); the T3 proxy credential had no broker name and could be smuggled as an inlined HTTPS_PROXY=http://user:<password>@host dispatch argument. The dispatch path now extracts the seat proxy URL's password (raw + percent-decoded, same length floor as the named secrets) from the ambient HTTPS_PROXY / recorded tailnet proxy env and refuses a command embedding it, naming only HTTPS_PROXY — never the value, never the command.
- Credential-free proxy URLs (tailscaled's local CONNECT proxy
http://127.0.0.1:3130, the shape in-job T3 provisioning exports per scripts/muse/bootstrap.sh) are explicitly not secrets and stay dispatchable.
- 4 new tests in
placement.rs (full-URL form, bare-password form, percent-decoded form, credential-free/unset stay dispatchable, extraction edges).
Verification (scoped honestly):
REMAINING GATE (this issue stays OPEN): the acceptance criteria's end-to-end leg — a dispatched fleet-command job calling T2/T3 with credentials provisioned by name inside the job (T2: fleet.laptop-agent-token by name → ~/tools/laptop-agent-token 0600; T3: tailnet join by tailscale.auth-key → userspace tailscaled → HTTPS_PROXY=http://127.0.0.1:3130) — needs that provisioning inside the runner plus an enrolled seat's env; the T1 sibling dezren39/fleet#128 remains hands-blocked. Wake: runner-side in-job provisioning lands, then run the dispatched T2/T3 health calls and link the run evidence from #15651.
Claim released. Key: 1837-I developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions Intake review
- Related: Code issue fleet-command: dispatched jobs cannot call laptop tiers (no enrolled-seat credential provisioning) #15651 (parent failure), issue fleet-queue: refuse dispatches carrying laptop-tier credential values #16161 (the no-leak half of criterion 1, landed in this repo), issue fleet: measure T1 latency and T1/T2/T3 batch behaviour (B5 of #10356) #15423 (B5 batch measurement this unblocks), issue Design + build: fleet connect — explicit transport selection, sessions, and drop semantics #10356, and fleet-command: provision T1 commander credentials inside dispatched jobs dezren39/fleet#128 (the T1 commander-bearer sibling, still open and hands-only).
- Notes: Still live at intake — T2 (laptop-agent token file absent in the dispatched runner) and T3 (
HTTPS_PROXY not set for the ssh tier) have no other tracking issue, per the filer. The body already carries an ## Acceptance criteria section plus priority/high, effort/m, kind/infrastructure, app/fleet; the monitor added only status/needs-triage + meta/enriched (labels-only, body untouched).
- Risks: Provisioning fixes must not leak credential material into the runner image or logs — the T1 no-leak constraint (issue fleet-queue: refuse dispatches carrying laptop-tier credential values #16161) applies in spirit to the T2 token provisioning shape as well.
- Suggested approach: Provision T2/T3 through the same enrolled-seat credential path T1 uses, with a dispatched-run verification (fleet http health + fleet ssh health warm calls) as the closing evidence.
🤖 Agent note · state: filed
- Agent: fleet monitor
- Session / ID: repo-fleet-monitor run 2026-11-27 23:14 CST
- Found via: monitor reconciliation
- Task: Intake enrichment (protocol §5), labels-only: body already carried acceptance criteria.
- Expectation: effort/m as labelled.
- Links: n/a
developing-today-fleet commented on Nov 28, 2026 ContributorAuthor More actions
Lane 0107-L disposition — charlie ADVANCE 2026-11-28 01:07 CST (fallback rank 9)
Premise + ownership check firsthand (gh CLI only, no clones): issue OPEN, labels priority/high + effort/m, 3 comments read in full. No live claim on this issue.
No fleet-workable code slice remains in this repo for #16368:
Wake: dezren39/fleet#128 lands (bearer secret enrolled by name in the fleet repo Actions context) → dispatch one fleet-command job running fleet http health + fleet ssh health warm calls, audit the public run log for credential material, and link the run from #15651.
Fallbacks checked by this lane, in brief order: #14400 — slices 1–3 merged (PRs #15137/#15650/#15870); remainder covered by oc-code-05's draft PR #16121, still draft and now DIRTY against main — not claimable. #15000 — queue/queued + status/in-progress; remainder is the R2 credential-scope fix (run 45811916838, HTTP 403 AccessDenied on bundle writes) — external, skipped per brief. #16006 excluded per brief (home-manager/laptop remainder).
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|