Skip to content

chore(decisioning): AuthInfo migration to kind-discriminated credential variant #358

Closed

Description

@bokelley

Summary

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.

Cross-references

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    claude-triaging
    on May 2, 2026
  2. bokelley commented on May 2, 2026

    @bokelley
    ContributorAuthor

    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 | 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.


    Triaged by Claude Code. Session: https://claude.ai/code/session_011PGotVENidpbb36UBK3LoE


    Generated by Claude Code

  3. added and removed
    claude-triaging
    on May 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claude-triagedenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions