Skip to content

feat(wre): add token scope-to-action-class validation (HXA29)#575

Merged
Foundup merged 1 commit into
mainfrom
feat/hxa29-token-scope-validation
May 13, 2026
Merged

feat(wre): add token scope-to-action-class validation (HXA29)#575
Foundup merged 1 commit into
mainfrom
feat/hxa29-token-scope-validation

Conversation

@Foundup
Copy link
Copy Markdown
Member

@Foundup Foundup commented May 12, 2026

Summary

  • Implements scope authorization as defense-in-depth layer before guard policy
  • ACTION_CLASS_SCOPES maps D0-D6 to required token scopes
  • SCOPE_TO_ACTION_CLASS provides reverse mapping for validation
  • validate_scope_for_action_class() returns (authorized, reason) tuple

Test plan

  • 54 HXA29 tests covering all action classes and scope combinations
  • 362 total tests passing (HXA26-29 + executor regression)
  • WSP 97 truth boundaries preserved

Slice: HXA29_TOKEN_SCOPE_VALIDATION_PHASE1
Worker: W10

🤖 Generated with Claude Code

Implements scope authorization as defense-in-depth layer before guard policy:
- ACTION_CLASS_SCOPES: maps D0-D6 to required token scopes
- SCOPE_TO_ACTION_CLASS: reverse mapping for validation
- validate_scope_for_action_class(): returns (authorized, reason)

54 tests covering all action classes and scope combinations.
362 total tests passing (HXA26-29 + executor).

WSP 97: dry_run paths preserved, no production source modification.

Slice: HXA29_TOKEN_SCOPE_VALIDATION_PHASE1
Worker: W1
@Foundup Foundup merged commit 18cbcad into main May 13, 2026
3 checks passed
@Foundup Foundup deleted the feat/hxa29-token-scope-validation branch May 13, 2026 00:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant