Skip to content

secrets client never-hang residuals: 120s unanswered-leg budget (decision) + unbounded fallback subprocess waits #14040

Backlog

Description

@dezren39

Secrets client "never hang" residuals — follow-ups from the #13893 premise check

Context: the client fallback fix Drew ordered on 2026-11-23 ("clients should fall back after a regular timeout… clients should never hang") was found already implemented by secrets-plane slice S1 (#13948), merged as PR #14021 (35e5d56b). The premise check that established this (recorded on #13893, comment 7120851868) named two residuals that S1 does not cover. This issue tracks them so they survive #13893's closure.

Residual A — the never-answering leg's effective timeout is the 120 s retry budget (decision)

The answered cases are now immediate: a broker answering "secrets not loaded yet" (503) fast-fails in ~0.0005 s and the client asks the next tier. Per-attempt timeout is 10 s (BROKER_ATTEMPT_TIMEOUT). But a leg that never answers at all is bounded by the total retry budget (BROKER_RETRY_BUDGET, 120 s) before chain fall-through. That budget was sized for broker+tunnel restart windows. Drew's §5.4 figure in #13948 (~2–5 s) addressed the answered case. Tightening the unanswered case is a one-constant change with a real tradeoff (restart windows vs worst-case hang). Decision needed: keep 120 s, or tighten — and if tightened, to what, given restart-window evidence.

Residual B — fallback tiers' subprocess waits are unbounded (build gap)

The last-resort tiers invoke bws / op via Command::output() with no timeout (plus the bws --version probe). A wedged child process would hang the final tier indefinitely — the one remaining path by which a client can still hang under the never-hang ruling. Fix shape: bound every subprocess wait in the fallback chain with the same timeout discipline as the broker legs, with tests (a child that never exits must fail the tier within the bound).

Acceptance: both residuals either landed (with tests) or, for A, explicitly decided and recorded. Part of the #13948 secrets plane; relates to #13893.

{
  "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-24T03:12:48Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "archer",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. developing-today commented on Nov 24, 2026

    @developing-today
    Contributor
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions