Skip to content

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12262] Exclude CMAB from UserProfileService#9

Closed
jaeopt wants to merge 1 commit intomasterfrom
ai/jaeopt/FSSDK-12262-cmab-ups
Closed

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12262] Exclude CMAB from UserProfileService#9
jaeopt wants to merge 1 commit intomasterfrom
ai/jaeopt/FSSDK-12262-cmab-ups

Conversation

@jaeopt
Copy link
Owner

@jaeopt jaeopt commented Feb 4, 2026

Summary

Excluded CMAB experiments from UserProfileService logic to ensure dynamic decision-making. CMAB requires decisions based on current user attributes and TTL, which contradicts UPS's sticky bucketing behavior that maintains decisions across the experiment lifetime without considering these factors.

Changes

  • Modified decision_service.py to skip UPS lookup for CMAB experiments
  • Modified decision_service.py to skip UPS save for CMAB experiments
  • Added comprehensive unit tests covering both CMAB and non-CMAB scenarios

Jira Ticket

FSSDK-12262

Testing

Verified with unit tests.

Excluded CMAB experiments from UserProfileService (UPS) logic for both
lookup and save operations. CMAB requires dynamic decisions based on
current user attributes and TTL, which contradicts UPS's sticky
bucketing behavior that maintains decisions across experiment lifetime.

Changes:
- Modified decision_service.py to check experiment.cmab before UPS lookup
- Modified decision_service.py to check experiment.cmab before UPS save
- Added comprehensive unit tests for CMAB UPS exclusion
- Added tests verifying non-CMAB experiments still use UPS

Quality Assurance Summary:
- Iterations: 1/5 (success on first iteration)
- Tests: 4 new tests added, all passing (52/52 total tests pass)
- Files modified: optimizely/decision_service.py, tests/test_decision_service.py
- Code review: Manual review completed
- Test coverage: Comprehensive coverage for both CMAB and non-CMAB scenarios

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@jaeopt jaeopt closed this Feb 4, 2026
@jaeopt jaeopt deleted the ai/jaeopt/FSSDK-12262-cmab-ups branch February 4, 2026 23:46
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