feature/INT-1697 - Oauth scopes review - #667
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: Sound, but needs your judgementThis PR needs a human approval. The code itself reads as correct; whether it should land depends on context I don't have. The PR synchronizes the OAuthScope enum with the Checkout.com API spec, adds new scopes, retains backward-compat legacy scopes, and updates integration tests to use current scope names. The code is technically correct and well-documented, but the integration test changes to live scope requests are consequential operational decisions that require someone who knows the actual sandbox/production provisioning. For you to decide
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
OAuthScopeenum to synchronize it with the latest Checkout.com API specification, ensuring all documented OAuth 2.0 scopes are present and correctly named. It adds missing scopes, removes deprecated ones, and improves test coverage to catch future discrepancies. Additionally, integration tests are updated to use the correct, current scopes.OAuthScope enum synchronization and improvements:
DISPUTES_SCHEME_FILES,FLOW_REFLOW,ISSUING_DISPUTES,VAULT_CUSTOMERS,VAULT_GPAYME_ENROLLMENT,VAULT_TOKENS_METADATA, compliance-related scopes, etc.) and removed deprecated/retired ones (e.g.,MARKETPLACE,ISSUING_CARD_MGMT,ISSUING_CLIENT,FORWARD,FORWARD_SECRETS) to match the API spec. [1] [2] [3]PAYMENT_CONTEXTandGATEWAY_PAYMENT_CONTEXTSscopes, correcting previous naming and value mismatches.Test enhancements:
Integration test updates:
ACCOUNTSinstead ofMARKETPLACE, and the new issuing scopes instead ofISSUING_CARD_MGMT/ISSUING_CLIENT). [1] [2]