Files
codex/codex-rs
iceweasel-oai 0adee0df26 Add a process-wide runtime for Statsig evaluations (#63762)
## Why

Codex callers need to read feature gates and dynamic configs locally and
stop using account-scoped decisions when the authentication owner changes.

## What changed

- Bootstrap ChatGPT evaluations through the Codex backend. Initialize
  API-key and installation identities through the Statsig SDK.
- Share one background worker per process to retry initialization and
  refresh evaluations through the SDK. Keep the last successful values
  on refresh failure while the authentication owner remains current.
- Expose `Gate` and `DynamicConfig` readers that return `false` and an
  empty JSON object, respectively, when current evaluations are unavailable.

## Testing

Add a mock-server test for bootstrap retries after credential changes,
local gate and config reads, and value retention after a failed refresh
followed by replacement on a successful refresh.

GitOrigin-RevId: c02cd976a44229518a7159eb2bd35107ef280b56
2026-11-24 23:15:42 +00:00
..
…
…
…