Release note: version 1.10.1 was never released. Its release pipeline runs stopped fail-closed at the public-API snapshot gate (no build, GitHub Release, or PyPI artifact was produced) and the
v1.10.1tag was retired. 1.10.2 carries the intended 1.10.1 changes below, plus the corrected public-API snapshot.
Fixed
- Proxy upstream transport reliability. Transient upstream failures (connection resets,
server disconnects, retryable 5xx honoring
Retry-After) are now retried with a bounded, policy-driven recovery before any bytes reach the client — and never after streaming output has started. Failed-request recovery metadata is persisted with credentials redacted. - Connection pool no longer hands retries a dead connection. A pooled client that raises a
transport error is evicted (identity-checked) so the retry gets a fresh connection; evicted,
idle-reaped, and LRU-displaced clients are retired and closed after a grace period instead of
being closed while requests are still in flight on them. New pool metrics
evicted_clientsandretired_pending_close; pool timeouts are env-tunable viaTOKENPAK_POOL_CONNECT_TIMEOUTandTOKENPAK_POOL_READ_TIMEOUT.
Deprecated
tokenpak.proxy.server.MAX_UPSTREAM_RETRIESis retained as a compatibility alias so existing imports continue to work, but it is now non-authoritative and deprecated (planned for removal in a future minor release): retry behavior is governed byUpstreamRetryPolicy, andTOKENPAK_UPSTREAM_RETRIESremains the supported operator control. Operator-facing behavior is unchanged.
Release integrity
- Public-API snapshot regenerated in the canonical release environment. The previous snapshot
had been regenerated against a stale installed package instead of the source tree, which is what
stopped the 1.10.1 release runs at the snapshot gate. The snapshot now records the bounded-retry
public surface (
tokenpak.proxy.upstream_retry, re-exported bytokenpak.proxy.serverandtokenpak.proxy.server_async) and drops two symbol records that were never part of the released package, plus a host-specific import-error record.