You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity
developing-today commentedon Nov 24, 2026
CODE-5158