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
{{ message }}
Repository navigation
chore(decisioning): AuthInfo migration to kind-discriminated credential variant #358
Sub-task of Tier 2 but deserves its own tracking. Current AuthInfo is flat (kind: str + key_id + principal + scopes). Migrate to a credential: ApiKeyCredential | OAuthCredential | HttpSigCredential discriminated union per JS ResolvedAuthInfo.
Design
New shape: AuthInfo.credential is a discriminated union keyed by kind
Keep flat shape as deprecated alias for one minor with DeprecationWarning
Existing adopter context_factory hooks continue to work via wrap-around shim
Removal in next minor after deprecation lands
Compatibility
Wrap-around shim translates flat → discriminated for legacy context_factory callsites. Adopters migrate at their own pace within the deprecation window.
The ApiKeyCredential | OAuthCredential | HttpSigCredential discriminated union this issue migrates AuthInfo into is itself defined by the open parent #349 ("BuyerAgentRegistry Protocol + AuthInfo discrimination"). The wrap-around shim and deprecation alias described here cannot land before that union type exists on main. Structurally, this issue is the "tracked separately" companion that #349's body explicitly flags.
My take: Even once #349 lands, the removal-in-next-minor step is a public breaking change (flat AuthInfo fields disappear from a @dataclass that adopters access directly), so the full migration cycle will need an explicit sign-off before the execute gate opens.
Activity
bokelley commentedon May 2, 2026
Triage
Classification: Feature request (breaking — multi-minor deprecation cycle)
Bucket(s): client (label not present in repo — gap noted)
Status: deferred
Blocked-on: #349 — resurfaces on merge
The
ApiKeyCredential | OAuthCredential | HttpSigCredentialdiscriminated union this issue migratesAuthInfointo is itself defined by the open parent #349 ("BuyerAgentRegistry Protocol + AuthInfo discrimination"). The wrap-around shim and deprecation alias described here cannot land before that union type exists onmain. Structurally, this issue is the "tracked separately" companion that #349's body explicitly flags.My take: Even once #349 lands, the removal-in-next-minor step is a public breaking change (flat
AuthInfofields disappear from a@dataclassthat adopters access directly), so the full migration cycle will need an explicit sign-off before the execute gate opens.Triaged by Claude Code. Session: https://claude.ai/code/session_011PGotVENidpbb36UBK3LoE
Generated by Claude Code
chore(decisioning): AuthInfo flat-field synthesis emits DeprecationWa…