feature/INT-1697 - Oauth scopes review - #237
Conversation
🔴 Risk Classification: MAJORApproval route: AI Review + Human Approval Required Classification reasons
Operational gates
Files analysed: 4 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
🟠 Advisory review: Concerns worth a lookThis PR needs a human approval. Before you give it, these are the things I'd want resolved. The diff adds new scopes, removes deprecated ones, updates integration tests, and adds comprehensive test coverage. Most of it looks correct, but there are two concrete problems: the alphabetical ordering test is logically broken for the existing enum ordering, and the docstring contains a self-contradictory claim about deprecated scopes. Concerns
This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02 |
🔴 Risk Classification: MAJORApproval route: AI Review + Human Approval Required Classification reasons
Operational gates
Files analysed: 4 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
🔴 Risk Classification: MAJORApproval route: AI Review + Human Approval Required Classification reasons
Operational gates
Files analysed: 4 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
|



This pull request updates the
OAuthScopesenum and its usage to synchronize with the current Checkout.com API specification, remove deprecated scopes, and improve test coverage. The main focus is on aligning the SDK's OAuth scope definitions with the official API spec, removing outdated values, adding missing ones, and ensuring correctness through comprehensive tests.OAuth scope enum updates:
OAuthScopes, includingCOMPLIANCE_REQUESTS,COMPLIANCE_REQUESTS_READ,COMPLIANCE_REQUESTS_RESPOND, andVAULT_TOKENS_METADATA, which are required by some API operations but were not previously declared. [1] [2]ISSUING_CARD_MGMT,ISSUING_CLIENT,MARKETPLACE,MIDDLEWARE_GATEWAY,MIDDLEWARE_PAYMENT_CONTEXT, and ensured remaining scopes are alphabetically ordered for maintainability.OAuthScopesenum explaining its correspondence to the API spec and clarifying subtle differences between similar scopes.Test improvements and validation:
tests/oauth_scopes_test.pyto verify that all documented and newly added scopes are present, distinguish between similar but distinct scopes, and ensure every enum member has a unique, non-blank wire value.Integration test updates:
ACCOUNTSinstead ofMARKETPLACEfor payout schedules, andISSUING_CARD_MANAGEMENT_READ/WRITEinstead of retired issuing scopes), with comments explaining the changes and referencing the API spec. [1] [2]