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 — secrets client never-hang residuals: 120s unanswered-leg budget (decision) + unbounded fallback subprocess waits · Issue #14040 · developing-today/code

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

New issue
Copy link
New issue
Copy link
Done
Done
secrets client never-hang residuals: 120s unanswered-leg budget (decision) + unbounded fallback subprocess waits#14040
Copy link
Labels
status:in-review

Description

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

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
    developing-todayBot
    on Nov 24, 2026 – with developing.today
    Contributor
    More actions

    CODE-5158

  2. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Triage verdict — A decided, B routed (coverage reconciliation pass 2, 2026-11-24)

    Verified fresh 2026-11-24 (lane oc-code-06, queue task 22494): issue OPEN, premise confirmed (PR #14021 merged 2026-11-24T03:12:32Z). No prior triage action.

    Residual A — DECIDED: keep 120 s. Rationale: the never-hang ruling is satisfied — the unanswered leg is bounded (120 s), not a hang; the answered cases already fast-fail (~0.0005 s 503) and per-attempt timeout is 10 s. The 120 s budget was sized for broker+tunnel restart windows, and no restart-window evidence on record justifies tightening it. Changing one constant either way is trivial, so this stays reversible: if restart-window measurements show the budget is slack, file a follow-up with the numbers. Acceptance path for A ('explicitly decided and recorded') is met by this comment.

    Residual B — ROUTED: enqueued task 23275 (small_fix: bound every fallback-tier subprocess wait with the same timeout discipline as the broker legs, plus a never-exiting-child test). BROKER_RETRY_BUDGET/BROKER_ATTEMPT_TIMEOUT explicitly out of scope there.

    Issue stays open until the B packet lands. Tracking: #14158.

  3. dezren39 commented on Nov 24, 2026

    @dezren39
    dezren39
    on Nov 24, 2026
    MemberAuthor
    More actions

    Correction: Residual B packet enqueued as task 23285 (not 23275 as stated above). — lane oc-code-06

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

    fleet-secrets: bound every fallback subprocess wait (#14040 Residual B)

    2c0f7e0
  5. developing-today
    added
    status:in-review
    on Nov 24, 2026
  6. dezren39
    added a commit that references this issue on Nov 24, 2026

    Merge pull request #14362 from developing-today/queue/23285-neverhang-b

    3b7ba82
  7. developing-today-fleet commented on Nov 24, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 24, 2026 – with developing.today fleet
    Contributor
    More actions

    Residual B landed — PR #14362 merged 2026-11-24, merge commit 3b7ba827e569add681fe27946648a01949f92079 (queue task 23285, lane ITEM-WORK-139).

    What changed, all in pkgs/fleet/crates/fleet-secrets/src/lib.rs:

    • run_command_bounded: a bounded Command::output() — spawn, drain stdout/stderr on threads, poll try_wait, kill at the deadline. Same spawn/poll/kill shape as the secrets broker's own BwsRunner in fleet-queue.
    • SUBPROCESS_ATTEMPT_TIMEOUT (10s, mirroring BROKER_ATTEMPT_TIMEOUT) is now the per-invocation ceiling carried by ProcessRunner (the op tier) and BwsTokenRunner (the bws tier); both accept a caller-chosen ceiling for tests.
    • The bws --version probe in program resolution is bounded too (PROGRAM_PROBE_TIMEOUT, 5s, via program_runs_within) — a wedged candidate fails the runnable gate instead of hanging resolution.

    Verification: cargo test -p fleet-secrets — 42 passed, 0 failed, including 5 new tests driving a real never-exiting child (sh -c "sleep 60") through the helper, both runners, and the probe. cargo check -p fleet-queue and -p fleet pass; the CommandRunner trait is unchanged. (Test route: a fleet Actions exec dispatch returned HTTP 422, so the suite ran with cargo in the laptop worktree — not a nix-store build; main-branch CI verifies on the merge push.)

    Residual A is untouched, exactly as decided: BROKER_RETRY_BUDGET stays 120s, and this issue stays open for it.

  8. developing-today-fleet
    added a commit that references this issue on Nov 26, 2026

    fleet-secrets: refresh #14151 branch onto current main (shepherd, que…

    590818c
  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    🤖 Agent note · triage (queue task 24536, lane oc-code-02)

    • Residual A: decided earlier (keep 120 s, reversible). Recorded on this issue. No change needed.
    • Residual B: landed in PR fleet-secrets: bound every fallback subprocess wait (#14040 Residual B) #14362 (merge 3b7ba82), which bounds every fallback subprocess wait in pkgs/fleet/crates/fleet-secrets/src/lib.rs. Verified merged.
    • Both acceptance paths are met, so closing as implemented. No follow-up needed.
  10. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    Contributor
    More actions

    Closed as implemented.

  11. developing-today-fleet
    closed this as completedon Nov 26, 2026
  12. developing-today-fleet
    added a commit that references this issue on Nov 27, 2026

    fleet-secrets: OpSource self-loads service account token; add [secret…

    37236c1
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

    status:in-review

    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.