Repository navigation
refactor(config,runtime): collapse built-in HTTP credentials into one variant (ENG-1066) - #372
Conversation
… variant (ENG-1066)
HttpCredential::{ApiKey, OpenAiCodex, XAi} become HttpCredential::Builtin
{ provider, api_key, profile } (ADR-0064 §4). The runtime, catalog,
doctor and harness read the stored name, variables and audience from the
provider table row instead of spelling them per provider.
Request-shape identities of every built-in are pinned to the bytes
recorded on origin/main before the collapse.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Slice AP7b of the auth-providers plan (ENG-1066), after #368.
What changed
No user-visible change. The three per-provider built-in credential variants
HttpCredential::{ApiKey, OpenAiCodex, XAi}collapse into oneHttpCredential::Builtin { provider, api_key, profile }(ADR-0064 §4). Each provider table row now carries its credential audience and environment variables.qq-config:builtin_provider(id)lookup andBuiltinProvider::stored_name(profile)(<id>/<profile>,defaultwhen unset).builtin_audience(the one place table audiences andqq-auth's OAuth audiences meet) andresolve_builtin_api_keyinsrc/runtime.rs.qq doctor, model discovery and its cache probe, and the harness plan-size estimate read the row instead of spelling providers. Root non-test code no longer hard-codes"openai-codex/{}","xai/{}"or"XAI_API_KEY".Verification
builtin_request_shape_identities_are_pinned: request-shape identities for all five built-ins, recorded by running the same test on unmodifiedorigin/main; byte-identical after the change.builtin_provider_patches_layer_over_their_presetsstill asserts stored name, variables, audience, explicit key and profile per provider.every_api_key_row_names_a_variabletable invariant.cargo xtask checkpassed;cargo xtask smoke9/9.Notes
xtask/src/legacy-sleeps.txt: 8 existing entries' line numbers shifted by the edits; no new sleeps.openairow (nothing stored) instead of a fabricated credential pointing at a stored name.