Skip to content

[AI-FSSDK] [FSSDK-12369] Add local holdouts support (includedRules, per-rule evaluation)#450

Closed
Mat001 wants to merge 1 commit into
masterfrom
ai/mat001/FSSDK-12369-local-holdouts
Closed

[AI-FSSDK] [FSSDK-12369] Add local holdouts support (includedRules, per-rule evaluation)#450
Mat001 wants to merge 1 commit into
masterfrom
ai/mat001/FSSDK-12369-local-holdouts

Conversation

@Mat001
Copy link
Copy Markdown
Contributor

@Mat001 Mat001 commented May 13, 2026

Summary

This PR adds Local Holdouts support to the Go SDK. Local holdouts target specific experiment or delivery rules within a flag (via includedRules), while global holdouts (with includedRules == nil) continue to apply to all rules across all flags as before.

Changes

  • Add optional IncludedRules []string field to the datafile and SDK Holdout entity; add IsGlobal() computed method
  • Update MapHoldouts to build a ruleHoldoutsMap for local holdouts alongside the existing flagHoldoutsMap for global holdouts
  • Add GetGlobalHoldouts() and GetHoldoutsForRule(ruleID) to ProjectConfig interface and implementation
  • Add EvaluateLocalHoldouts to HoldoutService and wire it into FeatureExperimentService and RolloutService for per-rule evaluation before forced decisions
  • Old datafiles without includedRules parse correctly as global holdouts (backward compatible)

Jira Ticket

FSSDK-12369

@Mat001
Copy link
Copy Markdown
Contributor Author

Mat001 commented May 14, 2026

Closing as part of cleanup for FSSDK-12369.

@Mat001 Mat001 closed this May 14, 2026
@Mat001 Mat001 deleted the ai/mat001/FSSDK-12369-local-holdouts branch May 14, 2026 21:01
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