Skip to content

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12275] Skip unsupported experiment type during flag decision#496

Open
raju-opti wants to merge 1 commit intomasterfrom
ai/raju-opti/FSSDK-12275-experiment-type
Open

[AI-FSSDK] (DO NOT REVIEW) [FSSDK-12275] Skip unsupported experiment type during flag decision#496
raju-opti wants to merge 1 commit intomasterfrom
ai/raju-opti/FSSDK-12275-experiment-type

Conversation

@raju-opti
Copy link

@raju-opti raju-opti commented Feb 16, 2026

Summary

Implements experiment type filtering in the decision service to skip unsupported experiment types during flag decision evaluation.

Changes

  • ExperimentTypes Class: New class in entities.py with SUPPORTED_TYPES frozenset
  • Experiment Entity: Added optional type parameter (defaults to None)
  • Decision Logic: Updated get_decision_for_flag to skip experiments with unsupported types
  • Unit Tests: Added 5 test cases

Behavior

  • If type is None (not set in datafile): Experiment is evaluated (backward compatible)
  • If type is in SUPPORTED_TYPES: Experiment is evaluated
  • If type is non-None but NOT in SUPPORTED_TYPES: Experiment is skipped with debug log

Test Plan

  • All 55 tests pass (50 existing + 5 new)

Related


Generated with Claude Code

- Add ExperimentTypes class with supported types constant
- Add type parameter to Experiment entity (defaults to None)
- Update decision service to skip experiments with unsupported types
- Experiments with None type (not set in datafile) are still evaluated
- Add unit tests for type skipping, None type evaluation, all supported types, and parsing

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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