:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
feat(flags): add dormant ordered boolean rule evaluator (#102982)
Anders71fca8d8d162
diff --git a/docs/internal/feature-flags/flag-evaluation-engine.md b/docs/internal/feature-flags/flag-evaluation-engine.mdindex f131cfb8fd1c..b2d370503d40 100644--- a/docs/internal/feature-flags/flag-evaluation-engine.md+++ b/docs/internal/feature-flags/flag-evaluation-engine.md@@ -16,7 +16,7 @@ PostgreSQL decodes filters as raw JSON through the same reader used by service-cV2 validation checks the retained tokens for duplicate object keys, nonzero numeric underflow, and excess percentage precision before admitting the typed configuration.These checks share one token pass with the compact document-size limit; original tokens survive cache round trips.Validation cannot recover precision or duplicate keys already lost by an upstream producer, so writers must enforce these constraints before ordinary JSON decoding.-The prepared cache retains this data through an `Arc`; requests reuse the parse result, and its byte estimate includes raw JSON, typed rules, property values, and seeds.+The prepared cache retains this data through an `Arc`; requests reuse the parse result, and its byte estimate includes raw JSON, typed rules, property values, seeds, and compiled regexes.Manually constructed opaque filters still use the passthrough-map serialization fallback.The parser accepts person-assigned boolean configurations with ordered targeted-release and percentage-rollout rules.@@ -56,6 +56,34 @@ Those paths need independent exclusion and deployment-floor protection before suTo roll back parsing, remove its reader consumer first while retaining opaque non-v1 reads and evaluator/producer rejection.Never restore a reader that interprets v2 data as v1.+The dormant `evaluate_v2::Evaluator` consumes the reader's successful typed person-boolean config by reference.+The reader compiles each regex predicate once at parse time and stores it on the cached config, counted as a fixed `ESTIMATED_COMPILED_REGEX_BYTES` (2048) per compiled regex, as v1 does; an invalid pattern is stored rather than rejected, so its error surfaces only when evaluation reaches it.+The evaluator does not participate in the service cache or HTTP dispatch.+Its caller supplies the resolved person distinct ID, complete or partial properties (or unavailable context), timezone, exact-matching setting, and a fixed evaluation time.+The core truncates only the hashing subject to 200 Unicode scalar values without normalization; device and experience-continuity overrides are not part of this input.+The service adapter must retain eligibility and load/merge property context before invoking it.++Rules and their ANDed predicates run in stored order.+The first conclusive predicate miss skips that rule; a reached error fails the evaluation, and negation applies only after a conclusive result.+The property adapter reuses existing operator semantics and an explicit clock for relative dates.+Invalid compiled regexes are errors in this evaluator, so negation cannot turn invalid syntax into success; v1 keeps its existing invalid-pattern behavior.+Targeted matches and percentage inclusions return the rule's boolean, including false, with its UUID, kind, and original index.+With `on_rollout_miss: return_default`, a rollout miss returns the configured boolean/null default and reports the missed rule.+With `on_rollout_miss: continue`, evaluation moves to the next rule and the missed rule is not reported in the result.+Exhaustion returns the default with no matched rule.+Null means no configured value for the caller.+Errors and flags left out of the `/flags` response remain separate from a successful false or null.++Percentage rules use the stored seed and the shared SHA1/60-bit binary64 primitive with an empty salt.+The comparison is inclusive, including hash zero at 0%.+An empty subject always misses; a nonempty subject at 100% bypasses hashing.+Repeated seeds reuse their hash within one evaluation.+The evaluator has no database access, writes, events, identity allocation, or gate decisions.+Public response projection and mixed-format service-cache/fallback integration require separate consumers.+Evaluator fixtures from harness release 1.8.0 are pinned under contract version 2.2.0.+`SOURCE.json` lists the vendored subset; its README, manifest, and checksum index keep the upstream bytes, and the integrity test checks each vendored file against that index.+Rollback can remove this dormant consumer while retaining the format-aware readers and rejection required by stored data.+The production `v1_bucketing` functions accept prescribed hashes for contract tests.Rollout returns included at 100% before identifier resolution or hashing; other percentages use `hash <= percentage / 100.0`.Variant selection adds each `weight / 100.0` from left to right and uses `hash < cumulative`.diff --git a/rust/feature-flags/src/flags/config_v2.rs b/rust/feature-flags/src/flags/config_v2.rsindex 3e8ff18d6b9b..2385a27dd0f1 100644--- a/rust/feature-flags/src/flags/config_v2.rs+++ b/rust/feature-flags/src/flags/config_v2.rs@@ -203,7 +203,8 @@ impl Config {})}- pub(crate) fn estimated_heap_bytes(&self) -> usize {+ #[doc(hidden)]+ pub fn estimated_heap_bytes(&self) -> usize {self.rules.capacity() * std::mem::size_of::<Rule>()+ self.rulesdiff --git a/rust/feature-flags/src/flags/config_v2/properties.rs b/rust/feature-flags/src/flags/config_v2/properties.rsindex a84703106773..56bcf19c9527 100644--- a/rust/feature-flags/src/flags/config_v2/properties.rs+++ b/rust/feature-flags/src/flags/config_v2/properties.rs@@ -6,7 +6,9 @@ use super::{closed, object, required, string, ParseError, MAX_PREDICATES, PROPERTY_FIELDS, TARGETING_FIELDS,};use crate::properties::property_matching::to_semver_representation;-use crate::properties::property_models::OperatorType;+use crate::properties::property_models::{+ CompiledRegex, OperatorType, ESTIMATED_COMPILED_REGEX_BYTES,+};use crate::properties::relative_date::parse_relative_date_parts;use crate::utils::json_size::estimate_json_heap_size;@@ -16,6 +18,7 @@ pub struct PersonPredicate {pub value: Option<Value>,pub operator: OperatorType,pub negation: bool,+ pub compiled_regex: Option<CompiledRegex>,}impl fmt::Debug for PersonPredicate {@@ -101,16 +104,30 @@ impl PersonPredicate {}let value = property.get("value").filter(|value| !value.is_null());validate_value(operator, value)?;+ // An invalid pattern is a deferred evaluation error, not a parse error.+ let compiled_regex =+ matches!(operator, OperatorType::Regex | OperatorType::NotRegex).then(|| {+ value+ .and_then(Value::as_str)+ .map_or(CompiledRegex::InvalidPattern, CompiledRegex::new)+ });Ok(Self {key: key.to_owned(),value: value.cloned(),operator,negation,+ compiled_regex,})}pub(super) fn estimated_heap_bytes(&self) -> usize {- self.key.capacity() + self.value.as_ref().map_or(0, estimate_json_heap_size)+ self.key.capacity()+ + self.value.as_ref().map_or(0, estimate_json_heap_size)+ + if matches!(self.compiled_regex, Some(CompiledRegex::Compiled(_))) {+ ESTIMATED_COMPILED_REGEX_BYTES+ } else {+ 0+ }}}diff --git a/rust/feature-flags/src/flags/evaluate_v2.rs b/rust/feature-flags/src/flags/evaluate_v2.rsnew file mode 100644index 000000000000..f10969517c8e--- /dev/null+++ b/rust/feature-flags/src/flags/evaluate_v2.rs@@ -0,0 +1,210 @@+use std::collections::hash_map::Entry;+use std::collections::HashMap;+use std::fmt;++use chrono::{DateTime, Utc};+use chrono_tz::Tz;+use serde_json::Value;+use uuid::Uuid;++use super::config_v2::{Config, Outcome, RolloutMiss, Rule};+use super::flag_matching_utils::calculate_hash;+use super::flag_request::MAX_DISTINCT_ID_LEN;+use super::v1_bucketing::is_in_rollout;+use crate::handler::canonical_log::truncate_chars;+use crate::properties::property_matching::{+ match_property_input, FlagMatchingError, PropertyMatchInput, PropertyMatchingContext,+};+use crate::properties::property_models::CompiledRegex;++#[derive(Clone, Copy, Debug, PartialEq, Eq)]+pub enum RuleKind {+ TargetedRelease,+ PercentageRollout,+}++#[derive(Clone, Copy, Debug, PartialEq, Eq)]+pub struct MatchedRule {+ pub id: Uuid,+ pub index: usize,+ pub kind: RuleKind,+}++#[derive(Clone, Copy, Debug, PartialEq, Eq)]+pub enum Evaluation {+ TargetingMatch {+ value: bool,+ rule: MatchedRule,+ },+ RolloutMiss {+ value: Option<bool>,+ rule: MatchedRule,+ },+ NoRuleMatch {+ value: Option<bool>,+ },+}++#[derive(Clone, Copy, Debug, PartialEq, Eq)]+pub enum EvaluationError {+ MissingContext,+ InvalidProperty,+ InvalidRegex,+ Hash,+}++#[derive(Clone, Copy)]+pub enum PersonProperties<'a> {+ Complete(&'a HashMap<String, Value>),+ Partial(&'a HashMap<String, Value>),+ Unavailable,+}++pub struct EvaluationContext<'a> {+ // The service adapter supplies the person distinct ID, without device or continuity overrides.+ pub person_identifier: &'a str,+ pub properties: PersonProperties<'a>,+ pub timezone: Tz,+ pub use_explicit_exact_matching: bool,+ pub now: DateTime<Utc>,+}++impl fmt::Debug for EvaluationContext<'_> {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.debug_struct("EvaluationContext").finish_non_exhaustive()+ }+}++/// Borrows the reader's validated configuration. Admission and eligibility belong to the caller.+/// Cheap to build per request; compiled patterns live on the cached configuration.+pub struct Evaluator<'a> {+ config: &'a Config,+}++impl fmt::Debug for Evaluator<'_> {+ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {+ f.debug_struct("V2Evaluator")+ .field("rule_count", &self.config.rules.len())+ .finish_non_exhaustive()+ }+}++impl<'a> Evaluator<'a> {+ pub fn new(config: &'a Config) -> Self {+ Self { config }+ }++ pub fn evaluate(&self, context: &EvaluationContext<'_>) -> Result<Evaluation, EvaluationError> {+ self.evaluate_with_hash(context, |seed, subject| {+ calculate_hash(&format!("{seed}."), subject, "").map_err(|_| EvaluationError::Hash)+ })+ }++ /// Test seam for injecting hash values; not part of the supported API.+ #[doc(hidden)]+ pub fn evaluate_with_hash(+ &self,+ context: &EvaluationContext<'_>,+ mut hash: impl FnMut(&str, &str) -> Result<f64, EvaluationError>,+ ) -> Result<Evaluation, EvaluationError> {+ let subject = truncate_chars(context.person_identifier, MAX_DISTINCT_ID_LEN);+ let matching =+ PropertyMatchingContext::new(context.timezone, context.use_explicit_exact_matching)+ .at_time(context.now);+ // Unavailable properties fail only once a predicate is reached.+ let person_properties = match context.properties {+ PersonProperties::Complete(properties) => Some((properties, false)),+ PersonProperties::Partial(properties) => Some((properties, true)),+ PersonProperties::Unavailable => None,+ };+ let mut hashes = HashMap::new();+ for (index, rule) in self.config.rules.iter().enumerate() {+ if !rule_targets(rule, person_properties, matching)? {+ continue;+ }+ let matched_rule = |kind| MatchedRule {+ id: rule.id,+ index,+ kind,+ };+ let (kind, value) = match &rule.outcome {+ Outcome::TargetedRelease { value } => (RuleKind::TargetedRelease, *value),+ Outcome::PercentageRollout {+ value,+ rollout_percentage,+ on_rollout_miss,+ seed,+ } => {+ let included = !subject.is_empty()+ && is_in_rollout(*rollout_percentage, || {+ match hashes.entry(seed.as_str()) {+ Entry::Occupied(entry) => Ok(*entry.get()),+ Entry::Vacant(entry) => {+ hash(seed, subject).map(|value| *entry.insert(value))+ }+ }+ })?;+ if !included {+ match on_rollout_miss {+ RolloutMiss::Continue => continue,+ RolloutMiss::ReturnDefault => {+ return Ok(Evaluation::RolloutMiss {+ value: self.config.default_value,+ rule: matched_rule(RuleKind::PercentageRollout),+ })+ }+ }+ }+ (RuleKind::PercentageRollout, *value)+ }+ };+ return Ok(Evaluation::TargetingMatch {+ value,+ rule: matched_rule(kind),+ });+ }+ Ok(Evaluation::NoRuleMatch {+ value: self.config.default_value,+ })+ }+}++/// Whether every predicate of `rule` matches; a reached error fails the evaluation.+fn rule_targets(+ rule: &Rule,+ person_properties: Option<(&HashMap<String, Value>, bool)>,+ matching: PropertyMatchingContext,+) -> Result<bool, EvaluationError> {+ for predicate in &rule.targeting {+ let (properties, partial) = person_properties.ok_or(EvaluationError::MissingContext)?;+ if partial && !properties.contains_key(&predicate.key) {+ return Err(EvaluationError::MissingContext);+ }+ let regex = predicate.compiled_regex.as_ref();+ // An invalid pattern is not a conclusive false result that negation can invert.+ if matches!(regex, Some(CompiledRegex::InvalidPattern)) {+ return Err(EvaluationError::InvalidRegex);+ }+ let matched = match_property_input(+ PropertyMatchInput {+ key: &predicate.key,+ value: predicate.value.as_ref(),+ operator: predicate.operator,+ compiled_regex: regex,+ },+ properties,+ partial,+ matching,+ )+ .map_err(|error| match error {+ FlagMatchingError::MissingProperty(_)+ | FlagMatchingError::InconclusiveOperatorMatch => EvaluationError::MissingContext,+ FlagMatchingError::ValidationError(_) => EvaluationError::InvalidProperty,+ FlagMatchingError::InvalidRegexPattern => EvaluationError::InvalidRegex,+ })?;+ if matched == predicate.negation {+ return Ok(false);+ }+ }+ Ok(true)+}diff --git a/rust/feature-flags/src/flags/flag_models.rs b/rust/feature-flags/src/flags/flag_models.rsindex 7b77a7b0669f..4bf783f2e6d5 100644--- a/rust/feature-flags/src/flags/flag_models.rs+++ b/rust/feature-flags/src/flags/flag_models.rs@@ -6,7 +6,7 @@ use std::sync::Arc;use crate::cohorts::cohort_models::Cohort;use crate::flags::feature_flag_list::PreparedFlags;-use crate::properties::property_models::PropertyFilter;+use crate::properties::property_models::{PropertyFilter, ESTIMATED_COMPILED_REGEX_BYTES};// NOTE: The `evaluation_tags` field was renamed to `evaluation_contexts` in the Python// serializer (PR #52186). The Rust field keeps the old name for internal compatibility,@@ -475,7 +475,11 @@ fn estimate_filters_size(filters: &FlagFilters) -> usize {std::mem::size_of::<PropertyFilter>()+ p.key.len()+ p.value.as_ref().map_or(0, estimate_json_size)- + if p.compiled_regex.is_some() { 2048 } else { 0 }+ + if p.compiled_regex.is_some() {+ ESTIMATED_COMPILED_REGEX_BYTES+ } else {+ 0+ }+ estimate_json_map_size(&p.extra)}).sum()diff --git a/rust/feature-flags/src/flags/mod.rs b/rust/feature-flags/src/flags/mod.rsindex f3c7db1f2680..06a6632433fe 100644--- a/rust/feature-flags/src/flags/mod.rs+++ b/rust/feature-flags/src/flags/mod.rs@@ -4,6 +4,7 @@ pub mod cache_shadow;pub mod cache_writer;pub(crate) mod config_format;pub mod config_v2;+pub mod evaluate_v2;pub mod feature_flag_list;pub mod flag_analytics;pub mod flag_definitions_cache;diff --git a/rust/feature-flags/src/flags/property_filter.rs b/rust/feature-flags/src/flags/property_filter.rsindex b5735da94656..1393d1b7fc0c 100644--- a/rust/feature-flags/src/flags/property_filter.rs+++ b/rust/feature-flags/src/flags/property_filter.rs@@ -1,13 +1,10 @@-use fancy_regex::RegexBuilder;use serde_json::Value;use std::collections::HashMap;use crate::cohorts::cohort_models::CohortId;use crate::flags::flag_group_type_mapping::GroupTypeIndex;use crate::flags::flag_models::FeatureFlagId;-use crate::properties::property_matching::{- lookup_key_for, to_string_representation, REGEX_BACKTRACK_LIMIT,-};+use crate::properties::property_matching::{lookup_key_for, to_string_representation};use crate::properties::property_models::{CompiledRegex, OperatorType, PropertyFilter, PropertyType,};@@ -103,15 +100,7 @@ impl PropertyFilter {Some(v) => to_string_representation(v),None => return,};- self.compiled_regex = Some(- match RegexBuilder::new(&pattern_str)- .backtrack_limit(REGEX_BACKTRACK_LIMIT)- .build()- {- Ok(re) => CompiledRegex::Compiled(re),- Err(_) => CompiledRegex::InvalidPattern,- },- );+ self.compiled_regex = Some(CompiledRegex::new(&pattern_str));}}diff --git a/rust/feature-flags/src/flags/v1_bucketing.rs b/rust/feature-flags/src/flags/v1_bucketing.rsindex 4bf7a6753e97..95350f3eccbb 100644--- a/rust/feature-flags/src/flags/v1_bucketing.rs+++ b/rust/feature-flags/src/flags/v1_bucketing.rs@@ -1,12 +1,8 @@-use crate::api::errors::FlagError;use crate::flags::flag_models::MultivariateFlagVariant;/// The hash is a closure because identifier resolution and hashing must stay lazy at 100%:/// a flag at full rollout is included even when the identifier cannot be resolved.-pub fn is_in_rollout(- percentage: f64,- hash: impl FnOnce() -> Result<f64, FlagError>,-) -> Result<bool, FlagError> {+pub fn is_in_rollout<E>(percentage: f64, hash: impl FnOnce() -> Result<f64, E>) -> Result<bool, E> {if percentage == 100.0 {return Ok(true);}@@ -27,6 +23,7 @@ pub fn select_variant(hash: f64, variants: &[MultivariateFlagVariant]) -> Option#[cfg(test)]mod tests {use super::*;+ use crate::api::errors::FlagError;#[test]fn full_rollout_bypasses_hash_errors() {@@ -36,7 +33,7 @@ mod tests {is_in_rollout(99.0, hash_error),Err(FlagError::HashKeyOverrideError)));- assert!(is_in_rollout(100.0, || panic!("must not hash")).unwrap());+ assert!(is_in_rollout::<FlagError>(100.0, || panic!("must not hash")).unwrap());}#[test]diff --git a/rust/feature-flags/src/handler/canonical_log.rs b/rust/feature-flags/src/handler/canonical_log.rsindex 11e14489e5de..34f0acbb5e77 100644--- a/rust/feature-flags/src/handler/canonical_log.rs+++ b/rust/feature-flags/src/handler/canonical_log.rs@@ -112,7 +112,7 @@ where/// Truncate a string to a maximum number of characters (not bytes)./// Handles multibyte UTF-8 characters correctly.-fn truncate_chars(s: &str, max_chars: usize) -> &str {+pub(crate) fn truncate_chars(s: &str, max_chars: usize) -> &str {match s.char_indices().nth(max_chars) {Some((byte_idx, _)) => &s[..byte_idx],None => s,diff --git a/rust/feature-flags/src/properties/property_matching.rs b/rust/feature-flags/src/properties/property_matching.rsindex a7cbb929dda5..052b1caafc54 100644--- a/rust/feature-flags/src/properties/property_matching.rs+++ b/rust/feature-flags/src/properties/property_matching.rs@@ -8,14 +8,9 @@ use crate::properties::relative_date;use chrono::{DateTime, NaiveDate, NaiveDateTime, Utc};use chrono_tz::Tz;use dateparser::parse as parse_date;-use fancy_regex::RegexBuilder;use semver::{Version, VersionReq};use serde_json::Value;-/// Regex backtrack limit to prevent ReDoS attacks.-/// 10k steps completes in ~1ms worst case, which is acceptable for a hot path.-pub(crate) const REGEX_BACKTRACK_LIMIT: usize = 10_000;-/// Prefix used when storing PersonMetadata field values (e.g. created_at) in the/// person properties map. Avoids collision with user-set properties of the same name.const PERSON_METADATA_KEY_PREFIX: &str = "__posthog_person_metadata__";@@ -65,6 +60,7 @@ pub fn to_string_representation(value: &Value) -> String {pub struct PropertyMatchingContext {team_timezone: Tz,use_explicit_exact_matching: bool,+ evaluation_time: Option<DateTime<Utc>>,}impl PropertyMatchingContext {@@ -72,8 +68,14 @@ impl PropertyMatchingContext {Self {team_timezone,use_explicit_exact_matching,+ evaluation_time: None,}}++ pub fn at_time(mut self, now: DateTime<Utc>) -> Self {+ self.evaluation_time = Some(now);+ self+ }}pub fn to_f64_representation(value: &Value) -> Option<f64> {@@ -177,11 +179,37 @@ pub fn match_property(matching_property_values: &HashMap<String, Value>,partial_props: bool,context: PropertyMatchingContext,+) -> Result<bool, FlagMatchingError> {+ let lookup_key = lookup_key_for(property);+ match_property_input(+ PropertyMatchInput {+ key: lookup_key.as_ref(),+ value: property.value.as_ref(),+ operator: property.operator.unwrap_or(OperatorType::Exact),+ compiled_regex: property.compiled_regex.as_ref(),+ },+ matching_property_values,+ partial_props,+ context,+ )+}++pub(crate) struct PropertyMatchInput<'a> {+ pub key: &'a str,+ pub value: Option<&'a Value>,+ pub operator: OperatorType,+ pub compiled_regex: Option<&'a CompiledRegex>,+}++pub(crate) fn match_property_input(+ property: PropertyMatchInput<'_>,+ matching_property_values: &HashMap<String, Value>,+ partial_props: bool,+ context: PropertyMatchingContext,) -> Result<bool, FlagMatchingError> {let team_timezone = context.team_timezone;let use_explicit_exact_matching = context.use_explicit_exact_matching;- let lookup_key = lookup_key_for(property);- let key: &str = lookup_key.as_ref();+ let key = property.key;// only looks for matches where key exists in override_property_values// doesn't support operator is_not_set with partial_props@@ -196,7 +224,7 @@ pub fn match_property()));}- let operator = property.operator.unwrap_or(OperatorType::Exact);+ let operator = property.operator;let match_value = matching_property_values.get(key);// first match operators that don't require a value@@ -217,7 +245,7 @@ pub fn match_property(}// For all other operators, we need a value- let value = match &property.value {+ let value = match property.value {Some(v) => v,None => return Ok(false), // No value means no match for value-requiring operators};@@ -363,19 +391,15 @@ pub fn match_property(// - None: prepare_regex() was not called, compile on-the-fly (fallback// for cohort property filters and test code)let compiled;- let regex: &fancy_regex::Regex = match &property.compiled_regex {- Some(CompiledRegex::Compiled(regex)) => regex,- Some(CompiledRegex::InvalidPattern) => return Ok(false),- None => match RegexBuilder::new(&to_string_representation(value))- .backtrack_limit(REGEX_BACKTRACK_LIMIT)- .build()- {- Ok(regex) => {- compiled = regex;- &compiled- }- Err(_) => return Ok(false),- },+ let compiled_regex = match property.compiled_regex {+ Some(compiled_regex) => compiled_regex,+ None => {+ compiled = CompiledRegex::new(&to_string_representation(value));+ &compiled+ }+ };+ let CompiledRegex::Compiled(regex) = compiled_regex else {+ return Ok(false);};let haystack = to_string_representation(match_value.unwrap_or(&Value::Null));@@ -617,8 +641,11 @@ pub fn match_property(// Both the person value and the filter value are interpreted in the// team timezone (naive strings) or by their explicit offset, so the two// sides agree with each other and with HogQL/ClickHouse cohort evaluation.- let parsed_date =- determine_parsed_date_for_property_matching(match_value, team_timezone);+ let parsed_date = determine_parsed_date_for_property_matching(+ match_value,+ team_timezone,+ context.evaluation_time,+ );if parsed_date.is_none() {// When value doesn't exist:@@ -627,7 +654,11 @@ pub fn match_property(}if let Some(override_value) = value.as_str() {- let override_date = match parse_date_string_in_tz(override_value, team_timezone) {+ let override_date = match parse_date_string_in_tz(+ override_value,+ team_timezone,+ context.evaluation_time,+ ) {Some(date) => date,None => {return Ok(false);@@ -698,9 +729,13 @@ const NAIVE_DATETIME_FORMATS: &[&str] = &[/// Values that carry an explicit offset (a trailing `Z` or `±HH:MM`) are honored/// as written, mirroring ClickHouse's `parseDateTime64BestEffort`, which respects/// the embedded offset regardless of the team timezone.-fn parse_date_string_in_tz(date_str: &str, team_timezone: Tz) -> Option<DateTime<Utc>> {+fn parse_date_string_in_tz(+ date_str: &str,+ team_timezone: Tz,+ now: Option<DateTime<Utc>>,+) -> Option<DateTime<Utc>> {// Relative dates ("-7d", "-30d", …) are anchored to "now" in the team timezone.- if let Some(date) = relative_date::parse_relative_date_in_tz(date_str, team_timezone) {+ if let Some(date) = relative_date::parse_relative_date_in_tz(date_str, team_timezone, now) {return Some(date);}@@ -728,6 +763,7 @@ fn parse_date_string_in_tz(date_str: &str, team_timezone: Tz) -> Option<DateTimefn determine_parsed_date_for_property_matching(value: Option<&Value>,team_timezone: Tz,+ now: Option<DateTime<Utc>>,) -> Option<DateTime<Utc>> {let value = value?;@@ -737,7 +773,7 @@ fn determine_parsed_date_for_property_matching(return parse_float_timestamp(num);}// Otherwise interpret the string in the team timezone, like the filter side.- return parse_date_string_in_tz(date_str, team_timezone);+ return parse_date_string_in_tz(date_str, team_timezone, now);}if let Some(num) = value.as_number() {@@ -2676,11 +2712,17 @@ mod test_match_properties {.with_timezone(&Utc);let timestamp_number = 1836277747;let timestamp_string = timestamp_number.to_string();- let date =- determine_parsed_date_for_property_matching(Some(&json!(timestamp_number)), Tz::UTC);+ let date = determine_parsed_date_for_property_matching(+ Some(&json!(timestamp_number)),+ Tz::UTC,+ None,+ );assert_eq!(date, Some(expected_date));- let date =- determine_parsed_date_for_property_matching(Some(&json!(timestamp_string)), Tz::UTC);+ let date = determine_parsed_date_for_property_matching(+ Some(&json!(timestamp_string)),+ Tz::UTC,+ None,+ );assert_eq!(date, Some(expected_date));}@@ -2690,13 +2732,19 @@ mod test_match_properties {.unwrap().with_timezone(&Utc);let timestamp_number = 1836277747.86753;- let date =- determine_parsed_date_for_property_matching(Some(&json!(timestamp_number)), Tz::UTC);+ let date = determine_parsed_date_for_property_matching(+ Some(&json!(timestamp_number)),+ Tz::UTC,+ None,+ );assert_eq!(date, Some(expected_date));let timestamp_string = "1836277747.86753";- let date =- determine_parsed_date_for_property_matching(Some(&json!(timestamp_string)), Tz::UTC);+ let date = determine_parsed_date_for_property_matching(+ Some(&json!(timestamp_string)),+ Tz::UTC,+ None,+ );assert_eq!(date, Some(expected_date));}@@ -2706,7 +2754,7 @@ mod test_match_properties {// value like this is interpreted in the team timezone; this test passes// Tz::UTC, so the result lands at UTC midnight.let date_string = "2025-12-19T00:00:00.000";- let date = parse_date_string_in_tz(date_string, Tz::UTC);+ let date = parse_date_string_in_tz(date_string, Tz::UTC, None);assert!(date.is_some(),"Should be able to parse ISO 8601 with milliseconds"@@ -2724,13 +2772,13 @@ mod test_match_properties {#[test]fn test_parse_iso8601_with_variable_millisecond_precision() {// Test 1 digit milliseconds- assert!(parse_date_string_in_tz("2025-12-19T00:00:00.5", Tz::UTC).is_some());+ assert!(parse_date_string_in_tz("2025-12-19T00:00:00.5", Tz::UTC, None).is_some());// Test 2 digit milliseconds- assert!(parse_date_string_in_tz("2025-12-19T00:00:00.12", Tz::UTC).is_some());+ assert!(parse_date_string_in_tz("2025-12-19T00:00:00.12", Tz::UTC, None).is_some());// Test 3 digit milliseconds (existing case)- assert!(parse_date_string_in_tz("2025-12-19T00:00:00.123", Tz::UTC).is_some());+ assert!(parse_date_string_in_tz("2025-12-19T00:00:00.123", Tz::UTC, None).is_some());}#[test]diff --git a/rust/feature-flags/src/properties/property_models.rs b/rust/feature-flags/src/properties/property_models.rsindex 4d1d0ad40dc7..cc7f25e8ec20 100644--- a/rust/feature-flags/src/properties/property_models.rs+++ b/rust/feature-flags/src/properties/property_models.rs@@ -1,5 +1,7 @@use serde::{Deserialize, Serialize};+pub(crate) const ESTIMATED_COMPILED_REGEX_BYTES: usize = 2048;+// Keep in sync with FEATURE_FLAG_SUPPORTED_OPERATORS, defined in// products/feature_flags/backend/api/filters_schema.py (used there by the filters serializer// and by the write-path serde guard in feature_flag.py — issue #50084). This enum is@@ -66,6 +68,10 @@ pub enum PropertyType {Flag,}+/// Regex backtrack limit to prevent ReDoS attacks.+/// 10k steps completes in ~1ms worst case, which is acceptable for a hot path.+const REGEX_BACKTRACK_LIMIT: usize = 10_000;+/// Pre-compiled regex state for Regex/NotRegex operators./// Populated by `prepare_regex()` at flag-load time./// Clone is cheap: fancy_regex::Regex uses Arc<Prog> internally.@@ -77,6 +83,18 @@ pub enum CompiledRegex {InvalidPattern,}+impl CompiledRegex {+ pub fn new(pattern: &str) -> Self {+ match fancy_regex::RegexBuilder::new(pattern)+ .backtrack_limit(REGEX_BACKTRACK_LIMIT)+ .build()+ {+ Ok(regex) => Self::Compiled(regex),+ Err(_) => Self::InvalidPattern,+ }+ }+}+impl std::fmt::Debug for CompiledRegex {fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {match self {diff --git a/rust/feature-flags/src/properties/relative_date.rs b/rust/feature-flags/src/properties/relative_date.rsindex 6c3acb48321c..6d46ff821ff7 100644--- a/rust/feature-flags/src/properties/relative_date.rs+++ b/rust/feature-flags/src/properties/relative_date.rs@@ -34,7 +34,7 @@ pub fn parse_relative_date(date_str: &str) -> Option<DateTime<Utc>> {parse_relative_date_naive(date_str, Utc::now().naive_utc()).map(|naive| naive.and_utc())}-/// Parse a relative date string anchored to the current wall clock in `tz`,+/// Parse a relative date string anchored to `now` (default: the current wall clock) in `tz`,/// returning the resulting instant in UTC.////// This mirrors HogQL's `relative_date_parse(value, team.timezone_info)`: the@@ -43,13 +43,20 @@ pub fn parse_relative_date(date_str: &str) -> Option<DateTime<Utc>> {/// the subtraction on the naive wall clock (rather than on an absolute UTC/// instant) is what makes "in the last N days" land on the same local day/// boundary in both engines.-pub fn parse_relative_date_in_tz(date_str: &str, tz: Tz) -> Option<DateTime<Utc>> {+pub fn parse_relative_date_in_tz(+ date_str: &str,+ tz: Tz,+ now: Option<DateTime<Utc>>,+) -> Option<DateTime<Utc>> {// Cheap reject for the common case (absolute date strings) before reading the// clock and localizing — that work is wasted whenever the regex won't match.if !RELATIVE_DATE_REGEX.is_match(date_str) {return None;}- let now_local = Utc::now().with_timezone(&tz).naive_local();+ let now_local = now+ .unwrap_or_else(Utc::now)+ .with_timezone(&tz)+ .naive_local();let result = parse_relative_date_naive(date_str, now_local)?;naive_to_utc_in_tz(result, tz)}diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/README.md b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/README.mdnew file mode 100644index 000000000000..abf4e7c565e0--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/README.md@@ -0,0 +1,238 @@+# Feature Flag Rules v2 contract++This package defines Feature Flag Rules v2 configuration, definitions, response, management diagnostic and event contracts, plus the canonical evaluation corpus.+Contract package 2.2.0 contains config schema 1.0.0, registry 2.0.0, corpus 1.1.0, wire schemas/fixtures 1.0.0, and person boolean evaluation corpus 1.0.0.+The contract version is independent of the test harness package version.++The package does not enable config writes or runtime evaluation.+It reserves number and object values for later writer support.++## Terminology and OpenFeature translation++These are PostHog configuration names compatible with OpenFeature's evaluation and provider interfaces.+OpenFeature does not prescribe this configuration schema; person assignment, experiments, rule types, and variant weights are PostHog vocabulary choices.++default_value is the flag default; the caller default is supplied to the SDK accessor.+On a normal no-match result, a configured flag default of false wins over a caller default of true.+A null flag default delegates to the caller default.+On abnormal execution, OpenFeature returns the caller default regardless of the configured flag default.++Each variants[].weight is a percentage of subjects enrolled by the rule, and the weights sum to exactly 100.+The separate rollout_percentage controls enrollment into the rule.++Person flags may explicitly set assign_by to person or omit it.+Group flags declare aggregation_group_type_index (including index 0) and must omit assign_by on every rule; the schema enforces this so assignment uses the flag aggregation key.++Experiment rules require an integer experiment_id linking an Experiment row.+An experiment_id of null is invalid in this contract.+Non-experiment variant splits are reserved for a possible future extension; their evaluation reason and exposure semantics are not defined here.++rollout_miss means a terminal miss under on_rollout_miss: return_default.+A continuing miss moves evaluation to the next rule and contributes neither a reason code nor metadata from the missed rule (including rule_id and condition_index) to the final result. The final result uses the terminating rule's reason and metadata, or no_rule_match if no rule terminates.+no_rule_match means no rule produced a terminal result, including when targeting matched but rollout missed with continue.+dependency_error covers unknown, cyclic, and otherwise unresolvable dependencies.++The OpenFeature mapping also depends on the provider's evaluation-context binding.+missing_group_key maps to INVALID_CONTEXT when required group membership is missing from additional context fields, even if a person targetingKey is present.+Only a provider that binds the group key to OpenFeature targetingKey uses TARGETING_KEY_MISSING when that field is missing.+Percentage rollout inclusion maps to TARGETING_MATCH by contract choice; OpenFeature also describes pseudorandom assignment with SPLIT and permits custom reasons.++## Package contents++- schemas/config.schema.json contains the JSON Schema 2020-12 config contract.+- registries/literals.json owns shared protocol literals, semantic constraints, and the OpenFeature reason mapping.+- fixtures/config/valid contains configs that the schema must accept.+- fixtures/config/invalid contains configs that the schema must reject.+- corpus/hash_sha1_60_v1.json contains exact sha1_60_v1 vectors, white-box threshold and variant boundary vectors, and v1-to-v2 seed parity inputs.+- corpus/v1_evaluation.json contains lock-down fixtures for the frozen version 1 evaluation arm.+- corpus/legacy_projection.json records how a version 1 outcome projects into each response protocol version.+- schemas/hash_sha1_60_v1.schema.json, schemas/v1_evaluation.schema.json, and schemas/legacy_projection.schema.json are the companion schemas for the corpus files.+- corpus/v2_boolean_evaluation.json contains the person boolean evaluation corpus, and schemas/v2_boolean_evaluation.schema.json is its companion schema.+- manifest.json assigns stable fixture and case IDs and declares the compatibility policy.+- SHA256SUMS records the SHA-256 digest for each package file except itself.++In the config and corpus schemas, objects marked with x-posthog-open-object accept arbitrary keys by design; every other object is closed.+The marker documents this choice for the contract tests; additionalProperties defines how those keys are validated.++The config schema enforces all constraints that the standard can express, including the 20-level object-value depth limit.+Depth counts object and array containers, with the returned object at level 1; scalar leaves add no level.+The registry also identifies constraints that need a semantic or parser-level validator, such as unique rule IDs and variant keys, and exact variant weight totals.++Docker releases include contracts/ directly. MANIFEST.in also includes this contract in Python source distributions for source-artifact verification.+It does not install the contract as wheel package data; consumers should pin the repository files or use the source distribution or Docker image.++## Component versions++Each artifact carries its own component version in manifest.json.+The config schema stays at 1.0.0 because contract 2.0.0 does not change its published bytes or accepted configs.+The literal registry is 2.0.0: it removes the four unused management warning codes (`EXPERIMENT_VALUE_COLLISION`, `SDK_REMOTE_FALLBACK_REQUIRED`, `SDK_EXPERIMENT_CONTEXT_MISSING`, `LEGACY_PROJECTION_LIMITED`) from the `warning_codes` published in registry 1.0.0 (contract 1.2.0), which the compatibility policy classifies as a major change; the five remaining codes are unchanged.+The corpus files and their companion schemas are corpus version 1.1.0.+Contract package 2.1.0 adds config fixtures for the targeted-release and percentage-rollout family; it changes no published schema, registry, corpus or fixture bytes.++## Corpus rules++Every corpus case has a stable ID that manifest.json declares under its file.+Adding, removing, or renaming a case requires a manifest change.++Expected values are hand-derived from the algorithm definition and the frozen version 1 evaluator.+Hash expectations were calculated with an independent SHA-1 implementation, never generated from a production evaluator.+The meta-tests recompute every hash vector, so an expectation cannot change silently.++A published corpus version is immutable.+Changing any expected value, including a hash vector, a version 1 outcome, or a projection cell, requires a new corpus version and a review explanation of why the previous expectation was wrong or superseded.+Additive cases may join a new minor corpus version; a changed expectation is a major corpus change.++Hash arithmetic is defined in corpus/hash_sha1_60_v1.json.+The contract value of hash01 converts both the 60-bit integer and the scale to binary64 before one division.+Consumers must parse decimal hash01 literals with correctly rounded binary64 conversion, including 17-digit literals.+Check the accompanying hash01_binary64_hex before consuming the corpus; a best-effort JSON float parser can otherwise move a boundary case.+Thresholds are rollout_percentage / 100 computed in binary64, and variant boundaries accumulate left to right in binary64 in stored order.++## Empty identifiers in the frozen version 1 arm++The Rust `/flags` service is the server-side version 1 reference; there is no remaining Python server-side v1 evaluator.+The frozen arm pins its behavior as verified on 2026-09-10 at [PostHog/posthog f57417de1c412fe55187540f392def4e2aef48b3](https://github.com/PostHog/posthog/blob/f57417de1c412fe55187540f392def4e2aef48b3/rust/feature-flags/src/flags/flag_matching.rs#L2160).+A deliberate change to that behavior requires a new corpus version.++Version 1 accepts an empty `distinct_id`; a missing field is invalid.+Its rollout and variant hash accessor returns 0.0 without calling SHA-1 for the empty identifier.+The inclusive rollout comparison therefore matches even at 0 percent, and a 50/50 variant split selects the first stored variant.+Holdouts do call SHA-1: the empty identifier hashes `holdout-` to 0.9268829483920294, outside a 92 percent holdout and inside a 93 percent holdout.+Version 2 never enters rollout, holdout, or variant assignment with an empty identifier.++`hash_evidence` always records SHA-1 arithmetic.+For the empty-identifier rollout and variant cases it shows the counterfactual arithmetic result; `expected` records the reference's 0.0-path outcome, and each note explains the difference.+For holdouts the recorded arithmetic is the hash the reference actually uses.++`local_evaluation` describes the local evaluator contract: `conclusive` requires the expected value, `inconclusive` requires fallback without a local value, and `remote_only` pins reference behavior that local evaluators do not yet implement; an evaluator implementing it must match.+The empty-identifier cases are `remote_only` because [posthog-python a1002c577e7c69e3f321f8f0832ee037316135a3](https://github.com/PostHog/posthog-python/blob/a1002c577e7c69e3f321f8f0832ee037316135a3/posthog/feature_flags.py#L116) hashes the prefix (plus the variant salt) locally and ignores holdouts.+Its public local-only flag API returns false at 0 and 62 percent, test for the stored control/test 50/50 split, and true for both holdout fixtures.+These are known SDK divergences, not inconclusive results or evidence of automatic fallback; the 92 percent holdout result happens to agree.++## Version and integrity policy++A published contract version is immutable.+Publish a new contract version to correct or extend a published contract.+Do not change a published version in place.++SHA256SUMS uses raw file bytes.+It has one lowercase SHA-256 digest, two spaces, a relative POSIX path, and one line feed per entry.+Entries use bytewise path order.++To pin this contract, record the source revision, the contract version, the corpus version, and the SHA-256 digest of SHA256SUMS.+Verify each file against SHA256SUMS before use.++After editing rules/response_presence.json, regenerate the derived terminal-reason branches of the presence and called-context schemas:++```sh+python3 <repo>/bin/update-feature-flag-rules-v2-presence-schemas.py+```++After editing contract files and updating manifest.json, regenerate the checksum index from any working directory:++```sh+python3 <repo>/bin/update-feature-flag-rules-v2-checksums.py+```++Run `python -m pytest tests/test_feature_flag_rules_v2_contract.py tests/test_feature_flag_rules_v2_corpus.py tests/test_feature_flag_rules_v2_wire.py` from the repository root to verify the manifest, fixtures, corpus, and checksums.+++## Wire artifacts and validation boundaries++- `schemas/definitions_entry.schema.json` selects v1 for absent/1 `filters.version`, or references the frozen config schema for v2. The entry's row `version` is independent. Row `version` and `ensure_experience_continuity` retain their existing nullable types. Existing v1 filters are opaque in this schema; this package does not redefine legacy evaluation semantics.+- `schemas/definitions_v2.schema.json` describes the mixed-version definitions feed, including its required cohort map and optional boolean `minimal_flag_called_events`. Unsupported config versions or v2 semantic fields require per-flag remote fallback in auto mode and an unsupported result in strict local mode.+- `schemas/flags_response_v3.schema.json` is the exact producer schema. Its raw-byte digest is pinned in the manifest and tests. `schemas/flags_response_v3_presence.schema.json` adds the terminal-reason presence matrix from `rules/response_presence.json`. The companion also requires the failure envelope flag whenever a record failed and rejects an `experiment_id` alongside `has_experiment: false` in any record; `has_experiment: true` alone does not imply an unambiguous experiment ID. Validate against both, then check map-key equality and recursive seed absence. A schema-only success does not establish a valid producer response.+- `schemas/management_warning.schema.json` describes a diagnostic with a required warning code from the registry's five `warning_codes` and optional presentation `detail` and field `attr`. `schemas/management_error.schema.json` preserves the management validation-error envelope (`type`, `code`, `detail`, `attr`); error codes remain endpoint-owned. These artifacts do not install a warning response envelope or an acknowledgement protocol.+- `schemas/feature_flag_called_context.schema.json` and `schemas/experiment_exposure_properties.schema.json` describe **closed property projections**, not entire capture envelopes. The generic call supports v1 diagnostics and v2 terminal context. A malformed-split diagnostic may retain config version 2 and the split reason while omitting the whole rule/experiment attribution tuple; a partly populated tuple is rejected. Direct exposure requires the complete v2 experiment-split tuple, SDK origin and `locally_evaluated`, and forbids holdout and forced-variant context. Scan the full event for assignment seeds before extracting the projection; normal capture identity, library, group and optional transport properties remain outside it.+- `fixtures/wire/` contains producer fixtures, separate tolerant-reader expectations, and full-event transport examples. A case deep-copies a named template, removes existing members by JSON Pointer, and then sets members by JSON Pointer (the parent must exist). Invalid cases declare the validation layer, keyword and instance path; reader cases separately declare producer validity; optional message fragments disambiguate required fields. `schema`, `presence`, `semantic` and `seed` are fixture validation layers, not new wire error codes.++Definitions retain canonical rule and holdout assignment seeds because local evaluation needs them. Evaluation responses and events prohibit assignment seeds recursively, including inside arrays, diagnostic conditions and opaque transport objects. The response's `flags` map keys are user-defined flag names, so names such as `seed` are allowed; every record and the rest of the envelope are still scanned. Likewise, the immediate keys of an event's `$groups`, `$set` and `$set_once` maps are customer-chosen group type and person property names; their values are still scanned.++Producer and reader contracts serve different purposes. Missing split context is invalid producer output, but a reader preserves a usable value and emits no experiment exposure. Known fields with wrong JSON types produce a per-record parse error and leave siblings usable. Unknown fields are ignored. A record without `value` uses the old-server `variant ?? enabled` interpretation, config version 1, and no carried-over v2 context. Reader expectations never loosen producer validation. Reader and event fixtures are contract data; they do not run SDK execution or activate capabilities.++The first event release permits only booleans and non-empty strings in the response property. Reserved number/object response-schema cases do not enable writers or event emission. Equal-valued arms remain separate analytical identities through their variant keys. A holdout, pause, rollout miss, default, missing or failed result cannot produce a direct exposure.++Future accepted/rejected wire-contract changes require a new major wire component version and a new major package version; additive fixture cases require a new minor fixture version and a new minor package version. Wire schema `$id`s are stable URLs without embedded versions, matching the exact producer schema; the component version is carried by `manifest.json` and the checksum index, so load one package version per schema registry. A future major wire revision publishes new schema files under new paths and `$id`s rather than reusing these.++The source distribution includes every indexed artifact and the checksum utility. Verify a build against the checkout with:++```sh+uv build --sdist+python3 bin/update-feature-flag-rules-v2-checksums.py --verify-sdist dist/posthog_sdk_test_harness-<harness-version>.tar.gz+```++The verifier reads the archive without extraction, requires its checksum index to match the checkout, and checks exact file coverage and every digest against that index.++## Person boolean evaluation corpus++Contract 2.2.0 adds `corpus/v2_boolean_evaluation.json` and its schema as a separate 1.0.0 component.+The frozen v1 corpus, hash/variant vectors, schemas, registry, and wire fixtures keep their published bytes and versions.++Each case supplies a full config, explicit person identifier and property completeness, team timezone, exact-matching setting, and fixed evaluation time.+The core consumes the resolved person distinct ID without device or experience-continuity overrides.+A complete property map can establish absence; a partial map cannot establish absence for an unknown key.+An unavailable map fails only when evaluation reaches a predicate.+Predicates are ANDed in stored order and short-circuit on a conclusive miss or an error.+Negation applies once to conclusive results; an absent or null `negation` means false.+Malformed regex syntax and backtracking failures are evaluation errors, including under negation; this avoids turning an invalid pattern into a successful negative match.+This is stricter than v1's invalid-pattern non-match behavior and does not change v1 expectations.+A consumer may compile patterns when it loads a config, but an invalid pattern in a predicate that evaluation never reaches is not a parse error; the error surfaces only when evaluation reaches the predicate.+Other operators reuse the existing property language, including null presence, case handling, semver normalization, and team-timezone date comparisons.++### Regex coverage++The shared regex cases use ASCII literals, `^`/`$` anchors, and ordinary capturing groups, with case-sensitive search semantics: an unanchored pattern may match a substring.+`not_regex` complements a successful search result; predicate `negation` then complements that conclusive result once more.+The unmatched `[` is a syntax error for both operators, and neither operator nor predicate negation converts that error to a match.+These cases require no lookaround, backreferences, or engine-specific extensions.+They do not define the complete regex dialect accepted by a consumer.++Actual regex execution failures must remain errors, but this language-neutral corpus does not prescribe an execution budget or require a particular pattern to exhaust it.+Engine-specific lookaround support and backtracking-limit tests belong with the implementation, where the engine and limit are known.+A passing shared corpus alone does not establish support for those extensions.++### Date comparisons++Both the person property and filter value resolve to instants before comparison, using the same `context.now` and IANA `context.timezone`.+`is_date_exact` compares instants for equality, including the time of day; it does not compare calendar dates or truncate to midnight.+`is_date_before` and `is_date_after` use strict `<` and `>` comparisons, so equality matches neither.+The `explicit_exact_matching` setting affects the separate `exact` operator, not these date operators.++- A timestamp with `Z` or an explicit offset denotes that instant regardless of the team timezone.+- A bare `YYYY-MM-DD` denotes midnight in the team timezone. A date and time without an offset denotes that wall-clock time in the team timezone.+- Numeric person properties, including numeric strings, denote Unix epoch seconds.+- Relative strings have the form `-?N[hdwmy]`, with an integer magnitude below 10,000. Both `1d` and `-1d` mean one day ago; the optional minus does not reverse the direction.+- To resolve a relative value, first convert `context.now` to the team timezone and take its local wall clock. Subtract the magnitude there: hours, days, or seven-day weeks use wall-clock arithmetic; months and years subtract one calendar month or year at a time, clamping the day to the last valid day at each step. Preserve the time of day and fractional seconds. For example, two months before March 31, 2024 is January 29, 2024 after the intermediate February clamp.+- Interpret the resulting wall clock in the team timezone, then convert it to an instant. During a fall-back overlap, choose the earlier instant. A spring-forward gap has no instant and produces a non-match. An unparseable property value also produces a non-match. Predicate negation applies afterwards to these conclusive non-matches.++For `relative_dst`, `2024-03-31T12:00:00Z` is 14:00 in Oslo. Subtracting `-1d` gives March 30 at 14:00 local, or `2024-03-30T13:00:00Z`: 23 elapsed hours earlier.+The paired miss case rejects `2024-03-30T12:00:00Z`, even though it is on the same local date and exactly 24 elapsed hours earlier.+The fall-back cases similarly distinguish a 25-hour calendar day and the two occurrences of an overlapping wall-clock time; the gap case rejects a nonexistent time.++These rules follow the reference consumer's [relative-date resolution](https://github.com/PostHog/posthog/blob/157973cc642c31bceb8fe00c566bb8aed0a3a38f/rust/feature-flags/src/properties/relative_date.rs) and [date comparisons](https://github.com/PostHog/posthog/blob/157973cc642c31bceb8fe00c566bb8aed0a3a38f/rust/feature-flags/src/properties/property_matching.rs).+The corpus uses the explicit formats above; it does not require the reference consumer's additional best-effort absolute-date formats.++### Terminal results and consumer scope++`expected` is exhaustive: compare every field and reject unexpected fields.+Success with a null value delegates to the caller default; success with false remains a configured result.+`no_rule_match` carries no rule, while terminal matches and rollout misses carry the original UUID, kind, and zero-based index.+Errors carry no successful value or rule context.+The evaluation error kinds `missing_context`, `invalid_property`, and `invalid_regex` refine the registry's `error` reason code and share its OpenFeature mapping.+Parse errors reject the document before evaluation: `malformed` for a document the config schema rejects, and `unsupported` for an unknown config version, the registry's `unknown_version_result`.+The corpus does not define a new response protocol.++Hash evidence records UTF-8 bytes, the real SHA1 digest, its first 60 bits, and binary64 hash/threshold bits.+The meta-tests independently recompute these values with Python hashlib and binary64 arithmetic.+Identifiers truncate to 200 Unicode scalar values without normalization; predicate values remain intact.+The truncation and normalization cases use thresholds that separate the correct digest from UTF-8 byte, UTF-16 code unit, NFC, and NFD mistakes.+Empty identifiers are rollout misses even at 100%, so `on_rollout_miss` decides whether evaluation continues or returns the default; nonempty 100% bypasses hashing.+At 0%, the inclusive zero-hash edge remains included.+`white_box` rows replay through a consumer's private test-only hook that passes `white_box.hash01_binary64_hex` straight into the rollout threshold comparison, skipping identifier hashing; each row records equal, below, or next-binary64-above threshold evidence.+They supplement real digest cases and must not become a public override API.++Consumers must report the `ordering`, `properties`, `context`, `errors`, `hashing`, `white_box`, `eligibility`, and `parser` families separately.+Eligibility cases run through the existing request boundary and require omission, without calling the core.+Parser cases require whole-document rejection, separately from evaluation support.+The existing published variant/experiment/holdout/group/dependency vectors remain outside this component's evaluator scope.+A passing boolean corpus does not establish those families or production reachability.diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/SHA256SUMS b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/SHA256SUMSnew file mode 100644index 000000000000..c2556a0f00e6--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/SHA256SUMS@@ -0,0 +1,71 @@+de5c6babb9b66abb66f0c245af393de8af2332c4caeecc3dec137b9a9aefcc4d README.md+e9bea9cff58bac0c6c1021e9c8842c53594055b6874a2c58bc4350d0c28a93ca corpus/hash_sha1_60_v1.json+536c8386eefa75721d113bd8718ddeb7fb1aad3b4f2cce1fbcf516a346a16e26 corpus/legacy_projection.json+752ff88dcb943ab1e21f9552b0c4ec606029393fca2b565b01a497da89cd8675 corpus/v1_evaluation.json+2d2a4be5f7185445f6d6593533fe105e436bade1becc3e3b15ff380a8da477bb corpus/v2_boolean_evaluation.json+52d356d2bcdcbf705b0fe2673eb147ac352bda13c9b1bc3d53c4bbb1cb01a5aa fixtures/config/invalid/assign_by_not_person.json+516e72b6bd9f761de62166457528242723694f86e417b1aee6eb37b924acc4b5 fixtures/config/invalid/default_value_type_mismatch.json+f5aa796ba2abf17ab6b2f4706c872f2b15bfa77310cdf0400a3a460db22eda41 fixtures/config/invalid/empty_seed.json+6fac810e014d81b938f66909808e2a2fc1b7cf4db5462fe6522fde1e045cbdda fixtures/config/invalid/empty_string_value.json+cbe5d7e00f3abadd490a72055e6197d511fa59f6b3f7062dbacffea426cc5360 fixtures/config/invalid/group_experiment_with_assign_by.json+82189b24744270ac2e4ad93b97efddbede530e6990d597fe80890cbd2820f70e fixtures/config/invalid/group_percentage_rollout_with_assign_by.json+f3902f40a82f5f80c88a463768b24922bb787b774cb7cd3c4e77fe0e8748e487 fixtures/config/invalid/missing_experiment_paused.json+88541b7eb14532becb477a9d62797960d8cfdc38bc101b79c5294c1e611e26ec fixtures/config/invalid/missing_on_rollout_miss.json+bfc87e05621e30ec19647c8b4dc129b02433c7f2f2e17a9c52f8bf71ad3711ea fixtures/config/invalid/missing_rollout_seed.json+3e35c5e211d8ba159824009be3ed26c4ac6f12c1426109fa1b53b49ff63fc770 fixtures/config/invalid/non_uuid_rule_id.json+de6c7a55d67adce2042d16db287dfcbe49f502d1e5e2f8e71532d0817e28e169 fixtures/config/invalid/null_experiment_id.json+ac6f0c04ffbe348a75be7249a7cce80a2ec0411954c46c142eaa3609d2842bd7 fixtures/config/invalid/null_rule_value.json+8809275942a5fb5ed548d70d819baffa84ee4ccfec7414cc93903cc79f39c550 fixtures/config/invalid/object_value_too_deep.json+b48ead6599cbb40a2a9eea606544b0ee083bb13ce768d57fc225f2da4924633a fixtures/config/invalid/return_value_type_mismatch.json+9aeefb4ab1eb4140afb213554a91a2c1c085e54cdbe47734442e65ba9a17f99c fixtures/config/invalid/rollout_percentage_above_maximum.json+dc4102374a3e075c9501f915ead07e8061d46f07293d7b71c0eaa53d4e06fbcf fixtures/config/invalid/rollout_percentage_below_minimum.json+2ca76285c4f9724603eecb980080bf7ddf0ff8dea4458eb60a2699dfad020941 fixtures/config/invalid/seed_too_long.json+7080ad218d8a04b26884aeca4828ada72a21ea8b85453a4f2ae6fafc567223be fixtures/config/invalid/targeted_release_with_rollout_fields.json+22b5201619d80be17bfb21c9a0bf93472e2231ad4a5f1c6bb8136275e64bb8a4 fixtures/config/invalid/too_few_variants.json+aacabb57255580136b8e6a984c57cea7367e59ddeffed3d4a40137b804cf4c31 fixtures/config/invalid/too_many_variants.json+a2cc3d33443fb50ca284ec0a053c1e29b5b752729808aca7f1a5d5009c3cc5cb fixtures/config/invalid/unknown_assignment_algorithm.json+68c83e9c074a0a70e7753a6e52daa414aeb18977abdd9b702ec4c5c61d82c3a4 fixtures/config/invalid/unknown_config_field.json+f5bba7fa0ea88e43834ac3b5e03ed4f7297ad0bf4ab2f09d962241521dd06787 fixtures/config/invalid/unknown_config_version.json+f13c58cc326561ee558ffd5d2e60ec26c8ba8bc5410c7310f1f820c3ff08eb25 fixtures/config/invalid/unknown_property_field.json+621727ab45d910f6c47d88da7e68ab619c38aaee6aff2abeccf1b5f413b60b75 fixtures/config/invalid/unknown_property_operator.json+06f5c1dafff26761dfe321765072161a1230e591e1e80a353e5093a8eca041bd fixtures/config/invalid/unknown_property_type.json+e1ed66e2d00c56c217af240b2cb5af3cc10d2f7f2d26299ecf998bcb73246c22 fixtures/config/invalid/unknown_rollout_miss_policy.json+8bcc957c38bb2b6a33e244ad1cfe76612cf6f4918c8f0b0cc22f86bd01cd1932 fixtures/config/invalid/unknown_rule_field.json+f5d71ea6a2ad839fb5f540c8a7f894438fe7c99f152d7469b86af83e938288db fixtures/config/invalid/variant_key_invalid_characters.json+aecfc8a8f49f1fa5586082fc4b70284a5212e14998984fc3a7bde1520b933095 fixtures/config/invalid/variant_value_type_mismatch.json+49587173259e8b379c8f473e60af7bce7a52ad8f17088068dec021c2a3f9242d fixtures/config/invalid/version_boolean.json+4835228c5a390aa2497d4df5bd62a41d775c5ff75363d2f7dca0a5eee9e77649 fixtures/config/invalid/version_string.json+bd56e3422fee0adf18ee9a4ad13ea96fe9bb4e4d11b3e9e0499e6be985b628e8 fixtures/config/valid/boolean_all_rule_types.json+ff39ff54ecdc16a52fe963b3d0e7f08b8e417567a147c7730fc932fc366944e8 fixtures/config/valid/boolean_targeted_and_percentage_rollout.json+bd163291f26d8a851d91ed8c76e4979e9af40608fe0c8a80eefa27c3cdd0f2ad fixtures/config/valid/group_all_rule_types.json+fb09e42911934248ff767dbcfe61be60fd39483972f3bb8b1f4b1a4e9e46d944 fixtures/config/valid/object_value_max_depth.json+6a3ce5d6c5522c71969f9141c5da06e0222f797a321de2c5a90c391bcb937947 fixtures/config/valid/reserved_number_value.json+316ca827654b1a5585d25c534a889e963e5c603d293e605b3902357117802d27 fixtures/config/valid/reserved_object_value.json+414987b3d374fc5fc2d912616cadce8241be9b346d66d6cf4945ca69c169354d fixtures/config/valid/string_group_assignment.json+a848ae2e3e0dd2119600bb90ebbcba59040b3bb788586ba127a57eab1848a403 fixtures/config/valid/version_float_literal.json+f18d0bdb0ae65fc6dfa5150731633fd44ca43b752257b18bf81ab876a38ea0e8 fixtures/wire/call_transport.json+e3f09c4d8b076ceae55e742de90a42ce05bc4655140e971c63d407f519efe56b fixtures/wire/calls.json+b6398336370d8807b0874229e8dc94ed1f6e686736764d56666fc48021dabf31 fixtures/wire/definitions.json+0d267173a7d9d9260d94040ff07d14e0e1c90ccad0928c1de174d37ef135bb04 fixtures/wire/definitions_feed.json+6c402eae3da68c26e1fb72c0ed5a6c12ec0fd8aa84935f319a75deeee83bdd3c fixtures/wire/errors.json+06f8b3bb27231abac4cfa65c29078f5a68afe4d4c9443dafc0b338f447838dd3 fixtures/wire/exposure_transport.json+072119b41ccfa922fc9dc96921f022ff06f2c24c2b7540de673142f11da0b084 fixtures/wire/exposures.json+07499c5a7ca7467968156ee16fa95bdeb9018c0b841c4ec8f5bffc61d72de4fa fixtures/wire/readers.json+e34659b62facbc594bdc1ce6c0f127ff25d94672da332670b383d729f45e5960 fixtures/wire/responses.json+caac24e4c78b7086e13eb15768b5fa0eca65992d0cb0b926da5aa5d167d9878b fixtures/wire/warnings.json+43b26f6fea4fa118e60e128156b0d85b1fd81393c9171ae84193f1a9b5830d8a manifest.json+afd25df141b5e05dfa5c8848e1685a4e8b81f3c80fbafc4769c944b815356069 registries/literals.json+c62900e74546b28a29b0883f4863536846d34b19159f3a8ca8bc0914218dfaa3 rules/response_presence.json+74e43ed13dbfd578bcb8eedc5a247917788b320829b888eab84ce1126841d63b schemas/config.schema.json+6d920c77fb7f20c2031dc188d495ed28c3789b3f362334517a2e86021a226e85 schemas/definitions_entry.schema.json+f361158f8a5572feee09fd03ce8d41f31e077f6003b90f776ea2d9ed9e38dcd8 schemas/definitions_v2.schema.json+524a2a0cc43e7907598ca49c98209c116ac65ba8ba5c16a54e1c8a4629fd3a2c schemas/experiment_exposure_properties.schema.json+b26db1aaf9e03764124286e3d9bc0cb263f4521de47e42793560558750c99f3b schemas/feature_flag_called_context.schema.json+1dd97730c746bc4534c4f47eebd82dac0cc67ceb1e4c53e7540960e7f74b00d9 schemas/flags_response_v3.schema.json+3b3fb0be1ac89524f1a65bfcde92ba34b3cdc789ebce716c3ef2ad5938d0ce62 schemas/flags_response_v3_presence.schema.json+9dbf9d76982408badc2409f390311f7150ebee4109ad11528907c55a114a1f9c schemas/hash_sha1_60_v1.schema.json+37f8f88e7ecc2337bee24972a28dbd5ff11893936732bbb34728fce143f128fc schemas/legacy_projection.schema.json+a0ec9be52e5ff9b83751283efd10ff071dc62ac90062d34b71594b37261dba8b schemas/management_error.schema.json+9aafe3c28785298bbc143e170881df43866d1b6f1070f685cbdf3d6e4418f361 schemas/management_warning.schema.json+3e51e0fad046fd9cd829d76d83b26bb6cd0b26be7a26ba223946ec92dcd7c6ce schemas/v1_evaluation.schema.json+26925201a00b4605df0475091dd292fdc8dcc3c8fb05c23fee1c29ec2aec798a schemas/v2_boolean_evaluation.schema.jsondiff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/SOURCE.json b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/SOURCE.jsonnew file mode 100644index 000000000000..37f6f4edcbd0--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/SOURCE.json@@ -0,0 +1,22 @@+{+ "source_repository": "https://github.com/PostHog/posthog-sdk-test-harness",+ "source_revision": "6054eaa7972980ceb3b991f9535b488880978ddc",+ "release_status": "released",+ "contract_version": "2.2.0",+ "v2_boolean_evaluation_version": "1.0.0",+ "v1_corpus_version": "1.1.0",+ "registry_version": "2.0.0",+ "config_schema_version": "1.0.0",+ "source_sha256sums_digest": "6aa00e4879408ce245829ab0fa40d8abb8f520a0456a190a56f193b37c45db09",+ "files": [+ "README.md",+ "manifest.json",+ "registries/literals.json",+ "schemas/config.schema.json",+ "schemas/v2_boolean_evaluation.schema.json",+ "corpus/v2_boolean_evaluation.json"+ ],+ "vendoring_scope": "subset",+ "upstream_metadata": "README.md, manifest.json, and SHA256SUMS describe the full upstream package. Only the paths in files and the source checksum index are vendored here, unchanged.",+ "source_release": "1.8.0"+}diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/corpus/v2_boolean_evaluation.json b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/corpus/v2_boolean_evaluation.jsonnew file mode 100644index 000000000000..54a00bb28704--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/corpus/v2_boolean_evaluation.json@@ -0,0 +1,7184 @@+{+ "corpus_version": "1.0.0",+ "config_version": 2,+ "description": "Person boolean ordered evaluation. Expected terminal fields are exhaustive. Hash evidence uses independent SHA-1 and binary64 arithmetic. White-box rows require a private primitive seam; eligibility and parser rows run at their own boundaries.",+ "cases": [+ {+ "id": "v2_boolean.empty.null",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": null,+ "rules": []+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": null,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.empty.false",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": []+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.empty.true",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": []+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.target.false",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": false+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.target.true",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.order.false_claims",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": false+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.order.reversed",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ },+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": false+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.order.original_index",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "33333333-3333-4333-8333-333333333333",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ },+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": false+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.miss.continue",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": null,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.miss.continue_false_default",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.miss.return_default",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": null,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "return_default",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": null,+ "reason": "rollout_miss",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.miss.return_default_false_default",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "return_default",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "rollout_miss",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.miss.consecutive",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "another-allocation",+ "assign_by": "person"+ },+ {+ "id": "33333333-3333-4333-8333-333333333333",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": false+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "targeting_match",+ "rule": {+ "id": "33333333-3333-4333-8333-333333333333",+ "rule_type": "targeted_release",+ "index": 2+ }+ }+ },+ {+ "id": "v2_boolean.miss.exhausted",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": null,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "another-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": null,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.order.percentage_false",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": false,+ "rollout_percentage": 100,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.order.targeting_miss",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true,+ "rollout_percentage": 100,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.miss.targeting_miss_continues",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "return_default",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.property.exact_case",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": [+ "BLUE"+ ],+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.exact_scalar",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": 7,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "7"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.exact_false",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": false,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 0+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.is_not",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not",+ "value": [+ "blue"+ ],+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "red"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.contains",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "icontains",+ "value": "LU",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.not_contains",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_icontains",+ "value": "RED",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.starts",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "starts_with",+ "value": "BL",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.not_starts",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_starts_with",+ "value": "RE",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.ends",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "ends_with",+ "value": "UE",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.not_ends",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_ends_with",+ "value": "ED",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.contains_multi",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "icontains_multi",+ "value": [+ "RED",+ "LU"+ ],+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.not_contains_multi",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_icontains_multi",+ "value": [+ "RED",+ "GREEN"+ ],+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.greater",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "gt",+ "value": 5,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 6+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.greater_equal",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "gte",+ "value": 5,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 5+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.less",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "lt",+ "value": 5,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 4+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.less_equal",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "lte",+ "value": "5",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 5+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.regex",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "regex",+ "value": "^bl(ue)$",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.not_regex",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_regex",+ "value": "^red$",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.not_regex_negated",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_regex",+ "value": "^red$",+ "negation": true+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "red"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.regex_search",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "regex",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "dark blue sky"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_eq",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_eq",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "v3.8"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_neq",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_neq",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.9"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_gt",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_gt",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.9.0"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_gte",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_gte",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.8"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_lt",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_lt",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.7.0"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_lte",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_lte",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.8"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_tilde",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_tilde",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.8.2"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_caret",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_caret",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.9.2"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_wildcard",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_wildcard",+ "value": "3.8.*",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "3.8.2"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.semver_bad_subject",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "semver_eq",+ "value": "3.8.0",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "broken"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.date_exact",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-03-31T12:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T14:00:00+02:00"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_after",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_after",+ "value": "2024-03-30",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_before",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_before",+ "value": "2024-04-01",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_before_negated",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_before",+ "value": "2024-04-01",+ "negation": true+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-04-02"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_relative",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_after",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T11:59:00Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_unsigned",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-30T12:00:00Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_hours",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-3h",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T09:00:00Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_weeks",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1w",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-24T12:00:00Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_year_leap_clamp",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1y",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2023-02-28T12:00:00Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-02-29T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_month_clamp",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-2m",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-01-29T12:00:00Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_epoch",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-01-01T00:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 1704067200+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_epoch_string",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-01-01T00:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "1704067200"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_bad_subject",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-01-01",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "not-a-date"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.legacy_exact_setting",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": false,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": 0+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": false,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.timezone",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-03-31",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-30T23:00:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.wall_clock_no_offset",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-03-31T12:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T14:00:00"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_dst",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-30T13:00:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.date_exact_same_day_miss",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "2024-03-31T12:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T12:00:01Z"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.date_before_equal",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_before",+ "value": "2024-03-31T12:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T14:00:00+02:00"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.date_after_equal",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_after",+ "value": "2024-03-31T12:00:00Z",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T14:00:00+02:00"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.relative_dst_elapsed_miss",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-30T12:00:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.relative_dst_fall",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-10-26T11:00:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-10-27T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_dst_overlap_earliest",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-10-27T00:30:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-10-28T01:30:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.relative_dst_overlap_later_miss",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-10-27T01:30:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-10-28T01:30:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.relative_dst_gap",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_date_exact",+ "value": "-1d",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "2024-03-31T01:30:00Z"+ },+ "properties_complete": true,+ "timezone": "Europe/Oslo",+ "explicit_exact_matching": true,+ "now": "2024-04-01T00:30:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.null_is_set",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_set",+ "value": null,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": null+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.missing_is_not_set",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not_set",+ "value": null,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.null_is_not_set",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not_set",+ "value": null,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": null+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.missing_exact",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.missing_is_not",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.negated_missing",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": true+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.negation",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": true+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "red"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.double_negative",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not",+ "value": "blue",+ "negation": true+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.negated_match",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": true+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.property.and",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ },+ {+ "key": "count",+ "type": "person",+ "operator": "gte",+ "value": 5,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue",+ "count": 5+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.property.and_miss",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ },+ {+ "key": "count",+ "type": "person",+ "operator": "gte",+ "value": 5,+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue",+ "count": 4+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.context.partial_is_not",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": false,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "missing_context"+ }+ },+ {+ "id": "v2_boolean.context.partial_is_not_set",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "is_not_set",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": false,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "missing_context"+ }+ },+ {+ "id": "v2_boolean.context.partial_exact",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": true+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": false,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "missing_context"+ }+ },+ {+ "id": "v2_boolean.context.unavailable",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": true,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": null,+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "missing_context"+ }+ },+ {+ "id": "v2_boolean.context.unneeded",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": null,+ "rules": []+ },+ "context": {+ "identifier": "person-example",+ "properties": null,+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": null,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.context.partial_present",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": false,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.context.false_before_missing",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ },+ {+ "key": "unknown",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "red"+ },+ "properties_complete": false,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.context.missing_before_false",+ "family": "context",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "unknown",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ },+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "red"+ },+ "properties_complete": false,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "missing_context"+ }+ },+ {+ "id": "v2_boolean.error.invalid_regex_false",+ "family": "errors",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "regex",+ "value": "[",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "invalid_regex"+ }+ },+ {+ "id": "v2_boolean.error.invalid_regex_true",+ "family": "errors",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "regex",+ "value": "[",+ "negation": true+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "invalid_regex"+ }+ },+ {+ "id": "v2_boolean.error.numeric",+ "family": "errors",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "gt",+ "value": 5,+ "negation": true+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": null+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "invalid_property"+ }+ },+ {+ "id": "v2_boolean.error.false_short_circuits",+ "family": "errors",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ },+ {+ "key": "color",+ "type": "person",+ "operator": "regex",+ "value": "[",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "red"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "index": 1+ }+ }+ },+ {+ "id": "v2_boolean.error.terminal_short_circuits",+ "family": "errors",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": false+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "regex",+ "value": "[",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ },+ {+ "id": "v2_boolean.hash.ascii",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.seed_parity",+ "family": "hashing",+ "flag": {+ "key": "beta-search",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 33.33,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "beta-search",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "user-17",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "user-17",+ "input_utf8_hex": "626574612d7365617263682e757365722d3137",+ "sha1_hex": "02547515f0f76d52dc6ef8a6d021cde30b790da7",+ "first_15_hex": "02547515f0f76d5",+ "n": "10492988951066325",+ "hash01_binary64_hex": "3f82a3a8af87bb6a",+ "threshold_binary64_hex": "3fd554c985f06f69"+ }+ },+ {+ "id": "v2_boolean.hash.empty",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e",+ "sha1_hex": "1c513d1bb1a90024cb4619bfc2bd3fea9116e89a",+ "first_15_hex": "1c513d1bb1a9002",+ "n": "127529955958099970",+ "hash01_binary64_hex": "3fbc513d1bb1a900",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.empty_return_default",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "return_default",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "rollout_miss",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e",+ "sha1_hex": "1c513d1bb1a90024cb4619bfc2bd3fea9116e89a",+ "first_15_hex": "1c513d1bb1a9002",+ "n": "127529955958099970",+ "hash01_binary64_hex": "3fbc513d1bb1a900",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.ascii_200",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161",+ "sha1_hex": "d0936125a64e185411a2b8bec7d557b820b04199",+ "first_15_hex": "d0936125a64e185",+ "n": "939341449737331077",+ "hash01_binary64_hex": "3fea126c24b4c9c3",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.ascii_201",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161",+ "sha1_hex": "d0936125a64e185411a2b8bec7d557b820b04199",+ "first_15_hex": "d0936125a64e185",+ "n": "939341449737331077",+ "hash01_binary64_hex": "3fea126c24b4c9c3",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.multibyte_200",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2ec3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9",+ "sha1_hex": "34a4f4fd259cbfee59122385508d025f5f5b517a",+ "first_15_hex": "34a4f4fd259cbfe",+ "n": "237089134640483326",+ "hash01_binary64_hex": "3fca527a7e92ce60",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.multibyte_201",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "ééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééz",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2ec3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9",+ "sha1_hex": "34a4f4fd259cbfee59122385508d025f5f5b517a",+ "first_15_hex": "34a4f4fd259cbfe",+ "n": "237089134640483326",+ "hash01_binary64_hex": "3fca527a7e92ce60",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.supplementary_200",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 30,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2ef09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880",+ "sha1_hex": "1ae92de5c69dc4402237aad0ed6072020789507c",+ "first_15_hex": "1ae92de5c69dc44",+ "n": "121195723716418628",+ "hash01_binary64_hex": "3fbae92de5c69dc4",+ "threshold_binary64_hex": "3fd3333333333333"+ }+ },+ {+ "id": "v2_boolean.hash.supplementary_201",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 30,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀q",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2ef09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880f09f9880",+ "sha1_hex": "1ae92de5c69dc4402237aad0ed6072020789507c",+ "first_15_hex": "1ae92de5c69dc44",+ "n": "121195723716418628",+ "hash01_binary64_hex": "3fbae92de5c69dc4",+ "threshold_binary64_hex": "3fd3333333333333"+ }+ },+ {+ "id": "v2_boolean.hash.composed",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 75,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "café",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "café",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e636166c3a9",+ "sha1_hex": "e9e2e789111daba49bca9b624ed3325ac37d387a",+ "first_15_hex": "e9e2e789111daba",+ "n": "1053330458216094394",+ "hash01_binary64_hex": "3fed3c5cf12223b5",+ "threshold_binary64_hex": "3fe8000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.decomposed",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 75,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "café",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "café",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e63616665cc81",+ "sha1_hex": "98c902c2ada2b89afacbf95befbd90c39237999a",+ "first_15_hex": "98c902c2ada2b89",+ "n": "688083362452745097",+ "hash01_binary64_hex": "3fe319205855b457",+ "threshold_binary64_hex": "3fe8000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.zero",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "0000000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.full",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 100,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "3ff0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.empty_full",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 100,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e",+ "sha1_hex": "1c513d1bb1a90024cb4619bfc2bd3fea9116e89a",+ "first_15_hex": "1c513d1bb1a9002",+ "n": "127529955958099970",+ "hash01_binary64_hex": "3fbc513d1bb1a900",+ "threshold_binary64_hex": "3ff0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.partial",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 25.5,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "3fd051eb851eb852"+ }+ },+ {+ "id": "v2_boolean.hash.fraction",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 33.33,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "3fd554c985f06f69"+ }+ },+ {+ "id": "v2_boolean.hash.seed_changed",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "changed-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6368616e6765642d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "82284fe0aecfdd2b943e2ab8fb9a7d76578afd52",+ "first_15_hex": "82284fe0aecfdd2",+ "n": "586177128151449042",+ "hash01_binary64_hex": "3fe04509fc15d9fc",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.subject_changed",+ "family": "hashing",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "another-person",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "another-person",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e616e6f746865722d706572736f6e",+ "sha1_hex": "8760ae363ad4b1d37b9de5c2e9e07235d9d00731",+ "first_15_hex": "8760ae363ad4b1d",+ "n": "609686771301436189",+ "hash01_binary64_hex": "3fe0ec15c6c75a96",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.renamed",+ "family": "hashing",+ "flag": {+ "key": "changed-display-key",+ "name": "Changed label",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person",+ "metadata": {+ "example": "display only"+ }+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.hash.moved",+ "family": "hashing",+ "flag": {+ "key": "changed-display-key",+ "name": "Changed label",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "33333333-3333-4333-8333-333333333333",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "blue",+ "negation": false+ }+ ]+ },+ "value": true+ },+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person",+ "metadata": {+ "example": "display only"+ }+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "hash_evidence": {+ "identifier": "person-example",+ "input_utf8_hex": "6578616d706c652d616c6c6f636174696f6e2e706572736f6e2d6578616d706c65",+ "sha1_hex": "894ca4ea409cc8d85624ef27dbc824996e55fee1",+ "first_15_hex": "894ca4ea409cc8d",+ "n": "618341487964966029",+ "hash01_binary64_hex": "3fe129949d481399",+ "threshold_binary64_hex": "3fe0000000000000"+ }+ },+ {+ "id": "v2_boolean.property.long_value",+ "family": "properties",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "exact",+ "value": "ééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",+ "negation": false+ }+ ]+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ }+ },+ {+ "id": "v2_boolean.threshold.p0_equal",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "0000000000000000",+ "threshold_binary64_hex": "0000000000000000",+ "relation": "equal"+ }+ },+ {+ "id": "v2_boolean.threshold.p0_above",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 0,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "white_box": {+ "hash01_binary64_hex": "0000000000000001",+ "threshold_binary64_hex": "0000000000000000",+ "relation": "above"+ }+ },+ {+ "id": "v2_boolean.threshold.p33_33_equal",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 33.33,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "3fd554c985f06f69",+ "threshold_binary64_hex": "3fd554c985f06f69",+ "relation": "equal"+ }+ },+ {+ "id": "v2_boolean.threshold.p33_33_below",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 33.33,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "3fd554c985f06f68",+ "threshold_binary64_hex": "3fd554c985f06f69",+ "relation": "below"+ }+ },+ {+ "id": "v2_boolean.threshold.p33_33_above",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 33.33,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "white_box": {+ "hash01_binary64_hex": "3fd554c985f06f6a",+ "threshold_binary64_hex": "3fd554c985f06f69",+ "relation": "above"+ }+ },+ {+ "id": "v2_boolean.threshold.p50_equal",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "3fe0000000000000",+ "threshold_binary64_hex": "3fe0000000000000",+ "relation": "equal"+ }+ },+ {+ "id": "v2_boolean.threshold.p50_below",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "3fdfffffffffffff",+ "threshold_binary64_hex": "3fe0000000000000",+ "relation": "below"+ }+ },+ {+ "id": "v2_boolean.threshold.p50_above",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 50,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": false,+ "reason": "no_rule_match"+ },+ "white_box": {+ "hash01_binary64_hex": "3fe0000000000001",+ "threshold_binary64_hex": "3fe0000000000000",+ "relation": "above"+ }+ },+ {+ "id": "v2_boolean.threshold.p100_equal",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 100,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "3ff0000000000000",+ "threshold_binary64_hex": "3ff0000000000000",+ "relation": "equal"+ }+ },+ {+ "id": "v2_boolean.threshold.p100_below",+ "family": "white_box",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "targeting": {+ "properties": []+ },+ "value": true,+ "rollout_percentage": 100,+ "on_rollout_miss": "continue",+ "assignment_algorithm": "sha1_60_v1",+ "seed": "example-allocation",+ "assign_by": "person"+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "percentage_rollout",+ "index": 0+ }+ },+ "white_box": {+ "hash01_binary64_hex": "3fefffffffffffff",+ "threshold_binary64_hex": "3ff0000000000000",+ "relation": "below"+ }+ },+ {+ "id": "v2_boolean.eligibility.inactive",+ "family": "eligibility",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": false,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "omitted"+ }+ },+ {+ "id": "v2_boolean.eligibility.deleted",+ "family": "eligibility",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": true,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "omitted"+ }+ },+ {+ "id": "v2_boolean.eligibility.request_filtered",+ "family": "eligibility",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": false+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "omitted"+ }+ },+ {+ "id": "v2_boolean.parser.malformed",+ "family": "parser",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ],+ "unknown_semantics": true+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "parse_error",+ "kind": "malformed"+ }+ },+ {+ "id": "v2_boolean.parser.unsupported",+ "family": "parser",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 3,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "parse_error",+ "kind": "unsupported"+ }+ },+ {+ "id": "v2_boolean.error.invalid_not_regex_negated",+ "family": "errors",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": [+ {+ "key": "color",+ "type": "person",+ "operator": "not_regex",+ "value": "[",+ "negation": true+ }+ ]+ },+ "value": true+ },+ {+ "id": "22222222-2222-4222-8222-222222222222",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "person-example",+ "properties": {+ "color": "blue"+ },+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "error",+ "error": "invalid_regex"+ }+ },+ {+ "id": "v2_boolean.target.empty_identifier",+ "family": "ordering",+ "flag": {+ "key": "example-display-key",+ "name": "Example display name",+ "active": true,+ "deleted": false,+ "requested": true+ },+ "config": {+ "version": 2,+ "return_type": "boolean",+ "default_value": false,+ "rules": [+ {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "targeting": {+ "properties": []+ },+ "value": true+ }+ ]+ },+ "context": {+ "identifier": "",+ "properties": {},+ "properties_complete": true,+ "timezone": "UTC",+ "explicit_exact_matching": true,+ "now": "2024-03-31T12:00:00Z"+ },+ "expected": {+ "status": "success",+ "value": true,+ "reason": "targeting_match",+ "rule": {+ "id": "11111111-1111-4111-8111-111111111111",+ "rule_type": "targeted_release",+ "index": 0+ }+ }+ }+ ]+}diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/manifest.json b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/manifest.jsonnew file mode 100644index 000000000000..59789252294d--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/manifest.json@@ -0,0 +1,1195 @@+{+ "manifest_version": 1,+ "contract": {+ "name": "feature_flag_rules_v2",+ "version": "2.2.0",+ "config_version": 2+ },+ "corpus": {+ "version": "1.1.0",+ "config_version_locked": 1,+ "case_id_pattern": "^[a-z][a-z0-9_]*(\\.[a-z0-9_]+)+$",+ "published_versions_are_immutable": true,+ "expectation_change": "Any changed expected value requires a new corpus version and a review explanation."+ },+ "schema_dialect": "https://json-schema.org/draft/2020-12/schema",+ "compatibility": {+ "published_versions_are_immutable": true,+ "patch": "Documentation or integrity-tool changes that do not change accepted configs, wire payloads, frozen literals, or fixture expectations.",+ "minor": "Additive fixtures or artifacts that do not change accepted configs, accepted or rejected wire payloads, frozen literals, or published fixture expectations.",+ "major": "Any change to accepted or rejected configs, accepted or rejected wire payloads (responses, definitions, events, diagnostics), frozen literals, or published fixture expectations."+ },+ "integrity": {+ "algorithm": "sha256",+ "index": "SHA256SUMS",+ "content": "raw_file_bytes",+ "entry_format": "<lowercase_hex_digest><two_spaces><relative_posix_path><line_feed>",+ "entry_order": "bytewise_path",+ "excluded_from_index": [+ "SHA256SUMS"+ ]+ },+ "artifacts": [+ {+ "path": "README.md",+ "kind": "documentation"+ },+ {+ "path": "registries/literals.json",+ "kind": "registry",+ "version": "2.0.0"+ },+ {+ "path": "schemas/config.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "fixtures/config/valid/boolean_all_rule_types.json",+ "kind": "fixture",+ "fixture_id": "config.valid.boolean_all_rule_types",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/valid/string_group_assignment.json",+ "kind": "fixture",+ "fixture_id": "config.valid.string_group_assignment",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/valid/reserved_number_value.json",+ "kind": "fixture",+ "fixture_id": "config.valid.reserved_number_value",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/valid/reserved_object_value.json",+ "kind": "fixture",+ "fixture_id": "config.valid.reserved_object_value",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/valid/version_float_literal.json",+ "kind": "fixture",+ "fixture_id": "config.valid.version_float_literal",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/invalid/unknown_config_version.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_config_version",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "const",+ "instance_path": "/version",+ "message_contains": "2 was expected"+ }+ },+ {+ "path": "fixtures/config/invalid/version_string.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.version_string",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "const",+ "instance_path": "/version"+ }+ },+ {+ "path": "fixtures/config/invalid/version_boolean.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.version_boolean",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "const",+ "instance_path": "/version"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_config_field.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_config_field",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "additionalProperties",+ "instance_path": "",+ "message_contains": "groups"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_rule_field.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_rule_field",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "additionalProperties",+ "instance_path": "/rules/0",+ "message_contains": "implicit_default"+ }+ },+ {+ "path": "fixtures/config/invalid/missing_on_rollout_miss.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.missing_on_rollout_miss",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "required",+ "instance_path": "/rules/0",+ "message_contains": "on_rollout_miss"+ }+ },+ {+ "path": "fixtures/config/invalid/missing_rollout_seed.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.missing_rollout_seed",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "required",+ "instance_path": "/rules/0",+ "message_contains": "seed"+ }+ },+ {+ "path": "fixtures/config/invalid/missing_experiment_paused.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.missing_experiment_paused",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "required",+ "instance_path": "/rules/0",+ "message_contains": "paused"+ }+ },+ {+ "path": "fixtures/config/invalid/non_uuid_rule_id.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.non_uuid_rule_id",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "pattern",+ "instance_path": "/rules/0/id"+ }+ },+ {+ "path": "fixtures/config/invalid/empty_seed.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.empty_seed",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "minLength",+ "instance_path": "/rules/0/seed"+ }+ },+ {+ "path": "fixtures/config/invalid/empty_string_value.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.empty_string_value",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "minLength",+ "instance_path": "/rules/0/value"+ }+ },+ {+ "path": "fixtures/config/invalid/return_value_type_mismatch.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.return_value_type_mismatch",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "type",+ "instance_path": "/rules/0/value"+ }+ },+ {+ "path": "fixtures/config/invalid/variant_value_type_mismatch.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.variant_value_type_mismatch",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "type",+ "instance_path": "/rules/0/variants/0/value"+ }+ },+ {+ "path": "fixtures/config/invalid/null_experiment_id.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.null_experiment_id",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "type",+ "instance_path": "/rules/0/experiment_id",+ "message_contains": "integer"+ }+ },+ {+ "path": "fixtures/config/valid/object_value_max_depth.json",+ "kind": "fixture",+ "fixture_id": "config.valid.object_value_max_depth",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/invalid/object_value_too_deep.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.object_value_too_deep",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "oneOf",+ "instance_path": "/rules/0/value/child/child/child/child/child/child/child/child/child/child/child/child/child/child/child/child/child/child/child/child"+ }+ },+ {+ "path": "fixtures/config/invalid/rollout_percentage_above_maximum.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.rollout_percentage_above_maximum",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "maximum",+ "instance_path": "/rules/0/rollout_percentage"+ }+ },+ {+ "path": "fixtures/config/invalid/variant_key_invalid_characters.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.variant_key_invalid_characters",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "pattern",+ "instance_path": "/rules/0/variants/0/key"+ }+ },+ {+ "path": "fixtures/config/invalid/too_few_variants.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.too_few_variants",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "minItems",+ "instance_path": "/rules/0/variants"+ }+ },+ {+ "path": "fixtures/config/invalid/too_many_variants.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.too_many_variants",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "maxItems",+ "instance_path": "/rules/0/variants"+ }+ },+ {+ "path": "fixtures/config/invalid/seed_too_long.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.seed_too_long",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "maxLength",+ "instance_path": "/rules/0/seed"+ }+ },+ {+ "path": "fixtures/config/invalid/group_percentage_rollout_with_assign_by.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.group_percentage_rollout_with_assign_by",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "not",+ "instance_path": "/rules/0"+ }+ },+ {+ "path": "fixtures/config/invalid/group_experiment_with_assign_by.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.group_experiment_with_assign_by",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "not",+ "instance_path": "/rules/0"+ }+ },+ {+ "path": "fixtures/config/valid/group_all_rule_types.json",+ "kind": "fixture",+ "fixture_id": "config.valid.group_all_rule_types",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/valid/boolean_targeted_and_percentage_rollout.json",+ "kind": "fixture",+ "fixture_id": "config.valid.boolean_targeted_and_percentage_rollout",+ "expected": "valid"+ },+ {+ "path": "fixtures/config/invalid/targeted_release_with_rollout_fields.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.targeted_release_with_rollout_fields",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "additionalProperties",+ "instance_path": "/rules/0",+ "message_contains": "rollout_percentage"+ }+ },+ {+ "path": "fixtures/config/invalid/rollout_percentage_below_minimum.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.rollout_percentage_below_minimum",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "minimum",+ "instance_path": "/rules/0/rollout_percentage"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_rollout_miss_policy.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_rollout_miss_policy",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "enum",+ "instance_path": "/rules/0/on_rollout_miss"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_assignment_algorithm.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_assignment_algorithm",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "const",+ "instance_path": "/rules/0/assignment_algorithm"+ }+ },+ {+ "path": "fixtures/config/invalid/assign_by_not_person.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.assign_by_not_person",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "const",+ "instance_path": "/rules/0/assign_by"+ }+ },+ {+ "path": "fixtures/config/invalid/null_rule_value.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.null_rule_value",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "type",+ "instance_path": "/rules/0/value",+ "message_contains": "boolean"+ }+ },+ {+ "path": "fixtures/config/invalid/default_value_type_mismatch.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.default_value_type_mismatch",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "type",+ "instance_path": "/default_value"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_property_field.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_property_field",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "additionalProperties",+ "instance_path": "/rules/0/targeting/properties/0",+ "message_contains": "implicit_default"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_property_operator.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_property_operator",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "enum",+ "instance_path": "/rules/0/targeting/properties/0/operator"+ }+ },+ {+ "path": "fixtures/config/invalid/unknown_property_type.json",+ "kind": "fixture",+ "fixture_id": "config.invalid.unknown_property_type",+ "expected": "invalid",+ "expected_failure": {+ "keyword": "enum",+ "instance_path": "/rules/0/targeting/properties/0/type"+ }+ },+ {+ "path": "schemas/hash_sha1_60_v1.schema.json",+ "kind": "schema",+ "version": "1.1.0"+ },+ {+ "path": "schemas/v1_evaluation.schema.json",+ "kind": "schema",+ "version": "1.1.0"+ },+ {+ "path": "schemas/legacy_projection.schema.json",+ "kind": "schema",+ "version": "1.1.0"+ },+ {+ "path": "corpus/hash_sha1_60_v1.json",+ "kind": "corpus",+ "version": "1.1.0",+ "schema": "schemas/hash_sha1_60_v1.schema.json",+ "case_ids": [+ "hash.rollout.ascii_division_edge",+ "hash.rollout.ascii_excluded",+ "hash.variant.ascii",+ "hash.holdout.literal_prefix",+ "hash.concatenation.no_separator_escaping",+ "hash.identifier.empty",+ "hash.identifier.unicode_utf8",+ "hash.identifier.truncated_ascii",+ "hash.identifier.truncated_scalar_values",+ "hash.identifier.exactly_200_multibyte",+ "hash.identifier.integer_group_key",+ "threshold.equal_is_included",+ "threshold.next_binary64_above_is_excluded",+ "threshold.zero_percent_zero_hash",+ "threshold.zero_percent_smallest_hash",+ "threshold.hundred_percent_short_circuit",+ "threshold.two_decimal_division_equal",+ "threshold.two_decimal_division_excluded",+ "threshold.two_decimal_division_included_below_quotient",+ "variant.zero_hash_first_variant",+ "variant.boundary_is_exclusive",+ "variant.just_below_boundary",+ "variant.accumulated_boundary_left_to_right",+ "variant.accumulated_boundary_third",+ "variant.two_decimal_weights_boundary",+ "variant.hash_one_off_the_end",+ "variant.sum_below_one_off_the_end",+ "parity.rollout_identical_bytes",+ "parity.variant_identical_bytes",+ "parity.holdout_identical_bytes",+ "parity.empty_identifier_divergent",+ "parity.final_variant_fallback_divergent"+ ]+ },+ {+ "path": "corpus/v1_evaluation.json",+ "kind": "corpus",+ "version": "1.1.0",+ "schema": "schemas/v1_evaluation.schema.json",+ "case_ids": [+ "v1.boolean.targeted_match_with_payload",+ "v1.boolean.targeting_miss",+ "v1.boolean.rollout_included",+ "v1.boolean.rollout_excluded",+ "v1.boolean.rollout_miss_continues_to_lower_condition",+ "v1.boolean.rollout_miss_early_exit",+ "v1.boolean.reason_priority_keeps_earlier_rollout_miss",+ "v1.boolean.reason_priority_prefers_later_rollout_miss",+ "v1.boolean.null_rollout_is_100",+ "v1.boolean.empty_distinct_id_included_at_zero_percent",+ "v1.boolean.empty_distinct_id_included_below_prefix_hash",+ "v1.multivariate.variant_from_hash_with_payload",+ "v1.multivariate.variant_from_hash_control",+ "v1.multivariate.variant_override",+ "v1.multivariate.invalid_variant_override_uses_hash",+ "v1.multivariate.partial_rollout_included",+ "v1.multivariate.partial_rollout_excluded",+ "v1.multivariate.empty_distinct_id_first_variant",+ "v1.group.included_by_group_key",+ "v1.group.excluded_by_group_key",+ "v1.group.integer_group_key_normalized",+ "v1.group.missing_group_key",+ "v1.dependency.satisfied",+ "v1.dependency.unsatisfied",+ "v1.dependency.variant_match",+ "v1.dependency.variant_mismatch",+ "v1.dependency.missing_target",+ "v1.holdout.member",+ "v1.holdout.not_member",+ "v1.holdout.empty_distinct_id_hashes_prefix",+ "v1.omission.inactive_flag"+ ]+ },+ {+ "path": "corpus/legacy_projection.json",+ "kind": "corpus",+ "version": "1.1.0",+ "schema": "schemas/legacy_projection.schema.json",+ "case_ids": [+ "projection.boolean_true",+ "projection.boolean_true_with_payload",+ "projection.boolean_false_targeting_miss",+ "projection.boolean_false_out_of_rollout",+ "projection.variant",+ "projection.variant_with_payload",+ "projection.holdout_variant",+ "projection.no_group_type",+ "projection.missing_dependency",+ "projection.failed_evaluation",+ "projection.inactive_omitted"+ ]+ },+ {+ "path": "schemas/definitions_entry.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/definitions_v2.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/flags_response_v3.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/flags_response_v3_presence.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/management_warning.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/management_error.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/feature_flag_called_context.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "schemas/experiment_exposure_properties.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "rules/response_presence.json",+ "kind": "presence_matrix",+ "version": "1.0.0"+ },+ {+ "path": "fixtures/wire/definitions.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/definitions_entry.schema.json",+ "case_ids": [+ "definitions.v2_canonical",+ "definitions.v1_implicit",+ "definitions.v1_explicit",+ "definitions.v2_numeric_version",+ "definitions.inactive",+ "definitions.unsupported_version_future",+ "definitions.unsupported_version_string",+ "definitions.unsupported_version_boolean",+ "definitions.unsupported_version_null",+ "definitions.unknown_semantic_field",+ "definitions.unknown_rule_field",+ "definitions.unsupported_rule_type",+ "definitions.missing_assignment_seed",+ "definitions.v1_null_version",+ "definitions.v1_wrong_type_version",+ "definitions.v1_null_ensure_experience_continuity",+ "definitions.v1_wrong_type_ensure_experience_continuity",+ "definitions.v1_explicit_null_row_fields",+ "definitions.missing_id",+ "definitions.missing_key",+ "definitions.missing_active",+ "definitions.missing_filters",+ "definitions.unknown_field"+ ]+ },+ {+ "path": "fixtures/wire/definitions_feed.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/definitions_v2.schema.json",+ "case_ids": [+ "definitions_feed.mixed_versions",+ "definitions_feed.missing_cohorts",+ "definitions_feed.minimal_events_false",+ "definitions_feed.minimal_events_true",+ "definitions_feed.minimal_events_wrong_type",+ "definitions_feed.null_legacy_row_fields",+ "definitions_feed.missing_flags",+ "definitions_feed.missing_group_type_mapping",+ "definitions_feed.unknown_field"+ ]+ },+ {+ "path": "fixtures/wire/responses.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/flags_response_v3.schema.json",+ "case_ids": [+ "responses.targeting_match_targeted_release",+ "responses.missing_id",+ "responses.missing_version",+ "responses.missing_config_version",+ "responses.targeting_match_targeted_release_missing_has_experiment",+ "responses.targeting_match_targeted_release_missing_rule_type",+ "responses.targeting_match_targeted_release_missing_rule_id",+ "responses.targeting_match_targeted_release_forbidden_experiment_id",+ "responses.targeting_match_targeted_release_forbidden_variant_key",+ "responses.targeting_match_targeted_release_forbidden_holdout_id",+ "responses.targeting_match_targeted_release_wrong_condition_index",+ "responses.targeting_match_targeted_release_forbidden_failed",+ "responses.targeting_match_targeted_release_flag_with_experiment",+ "responses.targeting_match_percentage_rollout",+ "responses.targeting_match_percentage_rollout_missing_has_experiment",+ "responses.targeting_match_percentage_rollout_missing_rule_type",+ "responses.targeting_match_percentage_rollout_missing_rule_id",+ "responses.targeting_match_percentage_rollout_forbidden_experiment_id",+ "responses.targeting_match_percentage_rollout_forbidden_variant_key",+ "responses.targeting_match_percentage_rollout_forbidden_holdout_id",+ "responses.targeting_match_percentage_rollout_wrong_condition_index",+ "responses.targeting_match_percentage_rollout_forbidden_failed",+ "responses.experiment_split",+ "responses.experiment_split_missing_has_experiment",+ "responses.experiment_split_missing_rule_type",+ "responses.experiment_split_missing_rule_id",+ "responses.experiment_split_missing_experiment_id",+ "responses.experiment_split_missing_variant_key",+ "responses.experiment_split_forbidden_holdout_id",+ "responses.experiment_split_wrong_condition_index",+ "responses.experiment_split_forbidden_failed",+ "responses.experiment_split_contradicted_has_experiment",+ "responses.rollout_miss_percentage_rollout",+ "responses.rollout_miss_percentage_rollout_missing_has_experiment",+ "responses.rollout_miss_percentage_rollout_missing_rule_type",+ "responses.rollout_miss_percentage_rollout_missing_rule_id",+ "responses.rollout_miss_percentage_rollout_forbidden_experiment_id",+ "responses.rollout_miss_percentage_rollout_forbidden_variant_key",+ "responses.rollout_miss_percentage_rollout_forbidden_holdout_id",+ "responses.rollout_miss_percentage_rollout_wrong_condition_index",+ "responses.rollout_miss_percentage_rollout_forbidden_failed",+ "responses.rollout_miss_experiment",+ "responses.rollout_miss_experiment_missing_has_experiment",+ "responses.rollout_miss_experiment_missing_rule_type",+ "responses.rollout_miss_experiment_missing_rule_id",+ "responses.rollout_miss_experiment_missing_experiment_id",+ "responses.rollout_miss_experiment_forbidden_variant_key",+ "responses.rollout_miss_experiment_forbidden_holdout_id",+ "responses.rollout_miss_experiment_wrong_condition_index",+ "responses.rollout_miss_experiment_forbidden_failed",+ "responses.experiment_paused",+ "responses.experiment_paused_missing_has_experiment",+ "responses.experiment_paused_missing_rule_type",+ "responses.experiment_paused_missing_rule_id",+ "responses.experiment_paused_missing_experiment_id",+ "responses.experiment_paused_forbidden_variant_key",+ "responses.experiment_paused_forbidden_holdout_id",+ "responses.experiment_paused_wrong_condition_index",+ "responses.experiment_paused_forbidden_failed",+ "responses.holdout",+ "responses.holdout_missing_has_experiment",+ "responses.holdout_missing_rule_type",+ "responses.holdout_missing_rule_id",+ "responses.holdout_missing_experiment_id",+ "responses.holdout_missing_holdout_id",+ "responses.holdout_forbidden_variant_key",+ "responses.holdout_wrong_condition_index",+ "responses.holdout_forbidden_failed",+ "responses.no_rule_match",+ "responses.no_rule_match_missing_has_experiment",+ "responses.no_rule_match_forbidden_rule_type",+ "responses.no_rule_match_forbidden_rule_id",+ "responses.no_rule_match_forbidden_experiment_id",+ "responses.no_rule_match_forbidden_variant_key",+ "responses.no_rule_match_forbidden_holdout_id",+ "responses.no_rule_match_wrong_condition_index",+ "responses.no_rule_match_forbidden_failed",+ "responses.missing_group_key",+ "responses.missing_group_key_missing_has_experiment",+ "responses.missing_group_key_forbidden_rule_type",+ "responses.missing_group_key_forbidden_rule_id",+ "responses.missing_group_key_forbidden_experiment_id",+ "responses.missing_group_key_forbidden_variant_key",+ "responses.missing_group_key_forbidden_holdout_id",+ "responses.missing_group_key_wrong_condition_index",+ "responses.missing_group_key_forbidden_failed",+ "responses.dependency_error",+ "responses.dependency_error_missing_has_experiment",+ "responses.dependency_error_forbidden_rule_type",+ "responses.dependency_error_forbidden_rule_id",+ "responses.dependency_error_forbidden_experiment_id",+ "responses.dependency_error_forbidden_variant_key",+ "responses.dependency_error_forbidden_holdout_id",+ "responses.dependency_error_wrong_condition_index",+ "responses.dependency_error_missing_failed",+ "responses.dependency_error_nonnull_value",+ "responses.error",+ "responses.error_missing_has_experiment",+ "responses.error_forbidden_rule_type",+ "responses.error_forbidden_rule_id",+ "responses.error_forbidden_experiment_id",+ "responses.error_forbidden_variant_key",+ "responses.error_forbidden_holdout_id",+ "responses.error_wrong_condition_index",+ "responses.error_missing_failed",+ "responses.error_nonnull_value",+ "responses.v1",+ "responses.omitted",+ "responses.split_wrong_type_config_version",+ "responses.split_wrong_type_rule_type",+ "responses.split_wrong_type_rule_id",+ "responses.split_wrong_type_experiment_id",+ "responses.split_wrong_type_variant_key",+ "responses.forbidden_legacy_enabled",+ "responses.forbidden_legacy_variant",+ "responses.split_arm_b_equal_value",+ "responses.split_string_value",+ "responses.null_default",+ "responses.request_failure_omission",+ "responses.missing_group_nonnull_value",+ "responses.v1_failed",+ "responses.v1_quick_win",+ "responses.v2_forced_variant",+ "responses.key_mismatch",+ "responses.failure_envelope",+ "responses.local_only_reason",+ "responses.nested_seed",+ "responses.passthrough_seed",+ "responses.reserved_number_wire_value",+ "responses.reserved_object_wire_value",+ "responses.targeting_match_targeted_release_wrong_rule_type",+ "responses.experiment_split_wrong_rule_type",+ "responses.rollout_miss_percentage_rollout_wrong_rule_type",+ "responses.rollout_miss_experiment_wrong_rule_type",+ "responses.experiment_paused_wrong_rule_type",+ "responses.holdout_wrong_rule_type",+ "responses.targeting_match_targeted_release_null_value",+ "responses.targeting_match_percentage_rollout_null_value",+ "responses.experiment_split_null_value",+ "responses.empty_v2_string",+ "responses.v1_experiment_without_linkage",+ "responses.v1_ambiguous_experiment",+ "responses.flag_key_seed",+ "responses.seed_named_flag_nested_seed",+ "responses.flag_key_assignment_seed",+ "responses.v1_forbidden_rule_id",+ "responses.v1_forbidden_rule_type",+ "responses.v1_forbidden_holdout_id",+ "responses.v1_object_payload",+ "responses.v1_null_value_not_failed"+ ]+ },+ {+ "path": "fixtures/wire/warnings.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/management_warning.schema.json",+ "case_ids": [+ "warnings.rule_order_changes_traffic",+ "warnings.unreachable_lower_rule",+ "warnings.rollout_miss_can_enter_lower_rule",+ "warnings.assignment_reset_changes_traffic",+ "warnings.conclusion_expands_population",+ "warnings.detail_and_attr",+ "warnings.unknown_code",+ "warnings.missing_code",+ "warnings.wrong_detail_type",+ "warnings.unknown_field"+ ]+ },+ {+ "path": "fixtures/wire/errors.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/management_error.schema.json",+ "case_ids": [+ "errors.validation",+ "errors.nonfield",+ "errors.missing_type",+ "errors.missing_code",+ "errors.missing_detail",+ "errors.missing_attr",+ "errors.wrong_detail_type",+ "errors.unknown_field"+ ]+ },+ {+ "path": "fixtures/wire/calls.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/feature_flag_called_context.schema.json",+ "case_ids": [+ "calls.targeting_match_targeted_release",+ "calls.targeting_match_targeted_release_missing_rule_type",+ "calls.targeting_match_targeted_release_missing_rule_id",+ "calls.targeting_match_targeted_release_forbidden_experiment_id",+ "calls.targeting_match_targeted_release_forbidden_variant_key",+ "calls.targeting_match_targeted_release_forbidden_holdout_id",+ "calls.targeting_match_percentage_rollout",+ "calls.targeting_match_percentage_rollout_missing_rule_type",+ "calls.targeting_match_percentage_rollout_missing_rule_id",+ "calls.targeting_match_percentage_rollout_forbidden_experiment_id",+ "calls.targeting_match_percentage_rollout_forbidden_variant_key",+ "calls.targeting_match_percentage_rollout_forbidden_holdout_id",+ "calls.experiment_split",+ "calls.experiment_split_missing_rule_type",+ "calls.experiment_split_missing_rule_id",+ "calls.experiment_split_missing_experiment_id",+ "calls.experiment_split_missing_variant_key",+ "calls.experiment_split_forbidden_holdout_id",+ "calls.rollout_miss_percentage_rollout",+ "calls.rollout_miss_percentage_rollout_missing_rule_type",+ "calls.rollout_miss_percentage_rollout_missing_rule_id",+ "calls.rollout_miss_percentage_rollout_forbidden_experiment_id",+ "calls.rollout_miss_percentage_rollout_forbidden_variant_key",+ "calls.rollout_miss_percentage_rollout_forbidden_holdout_id",+ "calls.rollout_miss_experiment",+ "calls.rollout_miss_experiment_missing_rule_type",+ "calls.rollout_miss_experiment_missing_rule_id",+ "calls.rollout_miss_experiment_missing_experiment_id",+ "calls.rollout_miss_experiment_forbidden_variant_key",+ "calls.rollout_miss_experiment_forbidden_holdout_id",+ "calls.experiment_paused",+ "calls.experiment_paused_missing_rule_type",+ "calls.experiment_paused_missing_rule_id",+ "calls.experiment_paused_missing_experiment_id",+ "calls.experiment_paused_forbidden_variant_key",+ "calls.experiment_paused_forbidden_holdout_id",+ "calls.holdout",+ "calls.holdout_missing_rule_type",+ "calls.holdout_missing_rule_id",+ "calls.holdout_missing_experiment_id",+ "calls.holdout_missing_holdout_id",+ "calls.holdout_forbidden_variant_key",+ "calls.no_rule_match",+ "calls.no_rule_match_forbidden_rule_type",+ "calls.no_rule_match_forbidden_rule_id",+ "calls.no_rule_match_forbidden_experiment_id",+ "calls.no_rule_match_forbidden_variant_key",+ "calls.no_rule_match_forbidden_holdout_id",+ "calls.missing_group_key",+ "calls.missing_group_key_forbidden_rule_type",+ "calls.missing_group_key_forbidden_rule_id",+ "calls.missing_group_key_forbidden_experiment_id",+ "calls.missing_group_key_forbidden_variant_key",+ "calls.missing_group_key_forbidden_holdout_id",+ "calls.dependency_error",+ "calls.dependency_error_forbidden_rule_type",+ "calls.dependency_error_forbidden_rule_id",+ "calls.dependency_error_forbidden_experiment_id",+ "calls.dependency_error_forbidden_variant_key",+ "calls.dependency_error_forbidden_holdout_id",+ "calls.error",+ "calls.error_forbidden_rule_type",+ "calls.error_forbidden_rule_id",+ "calls.error_forbidden_experiment_id",+ "calls.error_forbidden_variant_key",+ "calls.error_forbidden_holdout_id",+ "calls.v1",+ "calls.missing",+ "calls.inactive",+ "calls.v1_quick_win",+ "calls.arm_b_equal_value",+ "calls.string",+ "calls.v2_forced_variant",+ "calls.forbidden_value_number",+ "calls.forbidden_value_object",+ "calls.forbidden_value_array",+ "calls.forbidden_value_null",+ "calls.forbidden_value_empty_string",+ "calls.partial_split_diagnostic",+ "calls.inactive_forbidden_experiment_id",+ "calls.missing_feature_flag",+ "calls.missing_feature_flag_response",+ "calls.unknown_field"+ ]+ },+ {+ "path": "fixtures/wire/exposures.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/experiment_exposure_properties.schema.json",+ "case_ids": [+ "exposures.remote_split",+ "exposures.local_split",+ "exposures.arm_b_equal_value",+ "exposures.successor_experiment",+ "exposures.string",+ "exposures.missing_feature_flag",+ "exposures.wrong_type_feature_flag",+ "exposures.missing_feature_flag_response",+ "exposures.wrong_type_feature_flag_response",+ "exposures.missing_feature_flag_config_version",+ "exposures.wrong_type_feature_flag_config_version",+ "exposures.missing_feature_flag_reason_code",+ "exposures.wrong_type_feature_flag_reason_code",+ "exposures.missing_feature_flag_variant",+ "exposures.wrong_type_feature_flag_variant",+ "exposures.missing_feature_flag_rule_id",+ "exposures.wrong_type_feature_flag_rule_id",+ "exposures.missing_feature_flag_rule_type",+ "exposures.wrong_type_feature_flag_rule_type",+ "exposures.missing_feature_flag_experiment_id",+ "exposures.wrong_type_feature_flag_experiment_id",+ "exposures.missing_experiment_exposure_source",+ "exposures.wrong_type_experiment_exposure_source",+ "exposures.missing_locally_evaluated",+ "exposures.wrong_type_locally_evaluated",+ "exposures.forbidden_outcome_holdout",+ "exposures.forbidden_outcome_pause",+ "exposures.forbidden_outcome_rollout_miss",+ "exposures.forbidden_outcome_no_rule",+ "exposures.forbidden_outcome_failed",+ "exposures.forbidden_value_object",+ "exposures.forbidden_value_array",+ "exposures.forbidden_value_null",+ "exposures.forbidden_value_empty_string",+ "exposures.holdout_context",+ "exposures.ingestion_source",+ "exposures.v1_config",+ "exposures.forced_variant_context",+ "exposures.unknown_field"+ ]+ },+ {+ "path": "fixtures/wire/readers.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/flags_response_v3.schema.json",+ "case_ids": [+ "readers.complete_split",+ "readers.partial_split_missing_config_version",+ "readers.partial_split_missing_rule_type",+ "readers.partial_split_missing_rule_id",+ "readers.partial_split_missing_experiment_id",+ "readers.partial_split_missing_variant_key",+ "readers.split_wrong_type_config_version",+ "readers.split_wrong_type_rule_type",+ "readers.split_wrong_type_rule_id",+ "readers.split_wrong_type_experiment_id",+ "readers.split_wrong_type_variant_key",+ "readers.wrong_rule_type_literal",+ "readers.unknown_fields",+ "readers.old_server_variant",+ "readers.old_server_boolean",+ "readers.old_server_null_variant",+ "readers.old_server_false",+ "readers.v3_value_takes_precedence",+ "readers.missing_flag",+ "readers.targeting_match_targeted_release",+ "readers.targeting_match_percentage_rollout",+ "readers.rollout_miss_percentage_rollout",+ "readers.rollout_miss_experiment",+ "readers.experiment_paused",+ "readers.holdout",+ "readers.holdout_variant_key",+ "readers.no_rule_match",+ "readers.missing_group_key",+ "readers.dependency_error",+ "readers.error",+ "readers.error_with_value",+ "readers.malformed_sibling_isolation",+ "readers.partial_split_string_value",+ "readers.v1_at_v3",+ "readers.v1_failed",+ "readers.integral_json_number_context",+ "readers.flag_key_seed"+ ]+ },+ {+ "path": "fixtures/wire/exposure_transport.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/experiment_exposure_properties.schema.json",+ "case_ids": [+ "exposure_transport.exposure_with_transport",+ "exposure_transport.nested_seed",+ "exposure_transport.nested_holdout_seed",+ "exposure_transport.holdout_context",+ "exposure_transport.forced_variant_context",+ "exposure_transport.group_type_named_seed"+ ]+ },+ {+ "path": "fixtures/wire/call_transport.json",+ "kind": "fixture_set",+ "version": "1.0.0",+ "schema": "schemas/feature_flag_called_context.schema.json",+ "case_ids": [+ "call_transport.call_with_transport",+ "call_transport.nested_assignment_seed",+ "call_transport.prefixed_seed",+ "call_transport.person_property_named_seed"+ ]+ },+ {+ "path": "schemas/v2_boolean_evaluation.schema.json",+ "kind": "schema",+ "version": "1.0.0"+ },+ {+ "path": "corpus/v2_boolean_evaluation.json",+ "kind": "boolean_evaluation_corpus",+ "version": "1.0.0",+ "schema": "schemas/v2_boolean_evaluation.schema.json",+ "component": "v2_boolean_evaluation",+ "case_ids": [+ "v2_boolean.empty.null",+ "v2_boolean.empty.false",+ "v2_boolean.empty.true",+ "v2_boolean.target.false",+ "v2_boolean.target.true",+ "v2_boolean.order.false_claims",+ "v2_boolean.order.reversed",+ "v2_boolean.order.original_index",+ "v2_boolean.miss.continue",+ "v2_boolean.miss.continue_false_default",+ "v2_boolean.miss.return_default",+ "v2_boolean.miss.return_default_false_default",+ "v2_boolean.miss.consecutive",+ "v2_boolean.miss.exhausted",+ "v2_boolean.order.percentage_false",+ "v2_boolean.order.targeting_miss",+ "v2_boolean.miss.targeting_miss_continues",+ "v2_boolean.property.exact_case",+ "v2_boolean.property.exact_scalar",+ "v2_boolean.property.exact_false",+ "v2_boolean.property.is_not",+ "v2_boolean.property.contains",+ "v2_boolean.property.not_contains",+ "v2_boolean.property.starts",+ "v2_boolean.property.not_starts",+ "v2_boolean.property.ends",+ "v2_boolean.property.not_ends",+ "v2_boolean.property.contains_multi",+ "v2_boolean.property.not_contains_multi",+ "v2_boolean.property.greater",+ "v2_boolean.property.greater_equal",+ "v2_boolean.property.less",+ "v2_boolean.property.less_equal",+ "v2_boolean.property.regex",+ "v2_boolean.property.not_regex",+ "v2_boolean.property.not_regex_negated",+ "v2_boolean.property.regex_search",+ "v2_boolean.property.semver_eq",+ "v2_boolean.property.semver_neq",+ "v2_boolean.property.semver_gt",+ "v2_boolean.property.semver_gte",+ "v2_boolean.property.semver_lt",+ "v2_boolean.property.semver_lte",+ "v2_boolean.property.semver_tilde",+ "v2_boolean.property.semver_caret",+ "v2_boolean.property.semver_wildcard",+ "v2_boolean.property.semver_bad_subject",+ "v2_boolean.property.date_exact",+ "v2_boolean.property.date_after",+ "v2_boolean.property.date_before",+ "v2_boolean.property.date_before_negated",+ "v2_boolean.property.date_relative",+ "v2_boolean.property.relative_unsigned",+ "v2_boolean.property.relative_hours",+ "v2_boolean.property.relative_weeks",+ "v2_boolean.property.relative_year_leap_clamp",+ "v2_boolean.property.relative_month_clamp",+ "v2_boolean.property.date_epoch",+ "v2_boolean.property.date_epoch_string",+ "v2_boolean.property.date_bad_subject",+ "v2_boolean.property.legacy_exact_setting",+ "v2_boolean.property.timezone",+ "v2_boolean.property.wall_clock_no_offset",+ "v2_boolean.property.relative_dst",+ "v2_boolean.property.date_exact_same_day_miss",+ "v2_boolean.property.date_before_equal",+ "v2_boolean.property.date_after_equal",+ "v2_boolean.property.relative_dst_elapsed_miss",+ "v2_boolean.property.relative_dst_fall",+ "v2_boolean.property.relative_dst_overlap_earliest",+ "v2_boolean.property.relative_dst_overlap_later_miss",+ "v2_boolean.property.relative_dst_gap",+ "v2_boolean.property.null_is_set",+ "v2_boolean.property.missing_is_not_set",+ "v2_boolean.property.null_is_not_set",+ "v2_boolean.property.missing_exact",+ "v2_boolean.property.missing_is_not",+ "v2_boolean.property.negated_missing",+ "v2_boolean.property.negation",+ "v2_boolean.property.double_negative",+ "v2_boolean.property.negated_match",+ "v2_boolean.property.and",+ "v2_boolean.property.and_miss",+ "v2_boolean.context.partial_is_not",+ "v2_boolean.context.partial_is_not_set",+ "v2_boolean.context.partial_exact",+ "v2_boolean.context.unavailable",+ "v2_boolean.context.unneeded",+ "v2_boolean.context.partial_present",+ "v2_boolean.context.false_before_missing",+ "v2_boolean.context.missing_before_false",+ "v2_boolean.error.invalid_regex_false",+ "v2_boolean.error.invalid_regex_true",+ "v2_boolean.error.numeric",+ "v2_boolean.error.false_short_circuits",+ "v2_boolean.error.terminal_short_circuits",+ "v2_boolean.hash.ascii",+ "v2_boolean.hash.seed_parity",+ "v2_boolean.hash.empty",+ "v2_boolean.hash.empty_return_default",+ "v2_boolean.hash.ascii_200",+ "v2_boolean.hash.ascii_201",+ "v2_boolean.hash.multibyte_200",+ "v2_boolean.hash.multibyte_201",+ "v2_boolean.hash.supplementary_200",+ "v2_boolean.hash.supplementary_201",+ "v2_boolean.hash.composed",+ "v2_boolean.hash.decomposed",+ "v2_boolean.hash.zero",+ "v2_boolean.hash.full",+ "v2_boolean.hash.empty_full",+ "v2_boolean.hash.partial",+ "v2_boolean.hash.fraction",+ "v2_boolean.hash.seed_changed",+ "v2_boolean.hash.subject_changed",+ "v2_boolean.hash.renamed",+ "v2_boolean.hash.moved",+ "v2_boolean.property.long_value",+ "v2_boolean.threshold.p0_equal",+ "v2_boolean.threshold.p0_above",+ "v2_boolean.threshold.p33_33_equal",+ "v2_boolean.threshold.p33_33_below",+ "v2_boolean.threshold.p33_33_above",+ "v2_boolean.threshold.p50_equal",+ "v2_boolean.threshold.p50_below",+ "v2_boolean.threshold.p50_above",+ "v2_boolean.threshold.p100_equal",+ "v2_boolean.threshold.p100_below",+ "v2_boolean.eligibility.inactive",+ "v2_boolean.eligibility.deleted",+ "v2_boolean.eligibility.request_filtered",+ "v2_boolean.parser.malformed",+ "v2_boolean.parser.unsupported",+ "v2_boolean.error.invalid_not_regex_negated",+ "v2_boolean.target.empty_identifier"+ ]+ }+ ],+ "wire_contract": {+ "version": "1.0.0",+ "fixture_version": "1.0.0",+ "published_versions_are_immutable": true,+ "producer_schema_sha256": "1dd97730c746bc4534c4f47eebd82dac0cc67ceb1e4c53e7540960e7f74b00d9",+ "fixture_encoding": "Each case deep-copies its named template, removes the listed existing JSON Pointer members, then sets members by JSON Pointer. Set requires an existing parent. Templates and expectations are JSON, not executable SDK suites.",+ "compatibility": "New artifacts are additive to contract 1.2.0. Published schema bytes and fixture expectations are immutable. Accepted/rejected wire-contract changes require a new major wire component version; additive cases require a new minor fixture version. Reader expectations never relax producer validation."+ },+ "v2_boolean_evaluation": {+ "version": "1.0.0",+ "config_version_locked": 2,+ "published_versions_are_immutable": true+ }+}diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/registries/literals.json b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/registries/literals.jsonnew file mode 100644index 000000000000..ed8065689791--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/registries/literals.json@@ -0,0 +1,297 @@+{+ "registry_version": "2.0.0",+ "config_versions": {+ "v1": 1,+ "v2": 2,+ "absent_version_selects": "v1",+ "unknown_version_result": "unsupported",+ "version_comparison": "A JSON number selects the version it equals mathematically, so 2.0 selects v2. A JSON string or boolean never selects a version."+ },+ "fields": [+ "aggregation_group_type_index",+ "assign_by",+ "assignment_algorithm",+ "cohort_name",+ "default_value",+ "description",+ "exclusion_percentage",+ "experiment_id",+ "group_key_names",+ "group_type_index",+ "holdout",+ "id",+ "key",+ "label",+ "metadata",+ "negation",+ "on_rollout_miss",+ "operator",+ "paused",+ "properties",+ "return_type",+ "rollout_percentage",+ "rule_type",+ "rules",+ "seed",+ "targeting",+ "type",+ "value",+ "variants",+ "version",+ "weight"+ ],+ "rule_types": [+ {+ "value": "targeted_release",+ "writer_status": "enabled"+ },+ {+ "value": "percentage_rollout",+ "writer_status": "enabled"+ },+ {+ "value": "experiment",+ "writer_status": "enabled"+ }+ ],+ "return_types": [+ {+ "value": "boolean",+ "writer_status": "enabled"+ },+ {+ "value": "string",+ "writer_status": "enabled"+ },+ {+ "value": "number",+ "writer_status": "reserved"+ },+ {+ "value": "object",+ "writer_status": "reserved"+ }+ ],+ "rollout_miss_policies": [+ "continue",+ "return_default"+ ],+ "assignment_targets": [+ "person"+ ],+ "assignment_algorithms": [+ "sha1_60_v1"+ ],+ "property_types": [+ "person",+ "cohort",+ "group",+ "flag"+ ],+ "property_operators": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "icontains_multi",+ "not_icontains_multi",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_eq",+ "semver_neq",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_after",+ "is_date_before",+ "in",+ "not_in",+ "flag_evaluates_to"+ ],+ "reason_codes": [+ "targeting_match",+ "experiment_split",+ "rollout_miss",+ "experiment_paused",+ "holdout",+ "no_rule_match",+ "flag_disabled",+ "missing_group_key",+ "dependency_error",+ "error"+ ],+ "openfeature_mapping": {+ "specification": "https://openfeature.dev/specification/",+ "reason_codes": {+ "targeting_match": {+ "reason": "TARGETING_MATCH",+ "error_code": null,+ "note": "Targeted release, or percentage rollout inclusion. TARGETING_MATCH is this contract's choice for rollout inclusion; OpenFeature also describes pseudorandom assignment with SPLIT and permits custom reasons."+ },+ "experiment_split": {+ "reason": "SPLIT",+ "error_code": null,+ "note": "Experiment identity is in flag metadata."+ },+ "rollout_miss": {+ "reason": "DEFAULT",+ "error_code": null,+ "note": "A terminal rollout miss under return_default. Value is default_value, or the caller default when null. A continuing miss moves evaluation to the next rule and contributes neither a reason code nor metadata from the missed rule (including rule_id and condition_index) to the final result. The final result uses the terminating rule's reason and metadata, or no_rule_match if no rule terminates."+ },+ "experiment_paused": {+ "reason": "DEFAULT",+ "error_code": null,+ "note": "Value is default_value, or the caller default when null."+ },+ "holdout": {+ "reason": "DEFAULT",+ "error_code": null,+ "note": "Value is default_value, or the caller default when null."+ },+ "no_rule_match": {+ "reason": "DEFAULT",+ "error_code": null,+ "note": "No rule produced a terminal result, including when targeting matched but rollout missed with continue. Value is default_value, or the caller default when null."+ },+ "flag_disabled": {+ "reason": "DISABLED",+ "error_code": null,+ "note": "Local definitions only. Remote responses omit an inactive flag."+ },+ "missing_group_key": {+ "reason": "ERROR",+ "error_code": "INVALID_CONTEXT",+ "note": "The required group key is missing from additional evaluation-context fields. If a provider binds the group key to OpenFeature targetingKey and that field is missing, use TARGETING_KEY_MISSING instead."+ },+ "dependency_error": {+ "reason": "ERROR",+ "error_code": "GENERAL",+ "note": "A dependency is unknown, cyclic, or otherwise unresolvable. reason.description becomes the error message."+ },+ "error": {+ "reason": "ERROR",+ "error_code": "GENERAL",+ "note": "reason.description becomes the error message."+ }+ },+ "outcomes_without_reason_code": [+ {+ "situation": "Flag absent from the remote response",+ "reason": "ERROR",+ "error_code": "FLAG_NOT_FOUND",+ "note": "Typed accessor returns the caller default."+ },+ {+ "situation": "Unsupported config version or unknown semantic field in definitions, strict local mode",+ "reason": "ERROR",+ "error_code": "PARSE_ERROR",+ "note": "Auto mode falls back remotely before this."+ },+ {+ "situation": "Typed accessor asked for a type the flag does not return",+ "reason": "ERROR",+ "error_code": "TYPE_MISMATCH",+ "note": "No coercion."+ },+ {+ "situation": "Bootstrap value used",+ "reason": "CACHED",+ "error_code": null,+ "note": "STALE when the SDK knows definitions are outdated. No experiment context, no exposure."+ },+ {+ "situation": "Client-side override",+ "reason": "override",+ "error_code": null,+ "note": "Custom reason string. Never TARGETING_MATCH; suppresses $experiment_exposure."+ },+ {+ "situation": "Provider not initialised",+ "reason": "ERROR",+ "error_code": "PROVIDER_NOT_READY",+ "note": "Provider concern."+ }+ ],+ "flag_metadata_keys": [+ "config_version",+ "rule_type",+ "rule_id",+ "experiment_id",+ "variant_key",+ "holdout_id",+ "id",+ "version",+ "reason_code",+ "condition_index"+ ]+ },+ "warning_codes": [+ "RULE_ORDER_CHANGES_TRAFFIC",+ "UNREACHABLE_LOWER_RULE",+ "ROLLOUT_MISS_CAN_ENTER_LOWER_RULE",+ "ASSIGNMENT_RESET_CHANGES_TRAFFIC",+ "CONCLUSION_EXPANDS_POPULATION"+ ],+ "semantic_constraints": [+ {+ "id": "rule_ids_unique",+ "scope": "rules",+ "requirement": "Each rule id is unique in one config. For example, two rules in one config with id aaaaaaaa-aaaa-4aaa-8aaa-aaaaaaaaaaaa are invalid even if their rule_type differs; the same id may appear in separate configs."+ },+ {+ "id": "variant_keys_unique",+ "scope": "rules[].variants",+ "requirement": "Each variant key is unique in one variant list. For example, [control, test] is valid and [control, control] is invalid within one rule. Separate rules may each use control and test."+ },+ {+ "id": "variant_weights_sum_100",+ "scope": "rules[].variants",+ "requirement": "Each variant weight is a percentage of subjects enrolled by the rule. Weights sum to exactly 100 in stored order; rollout_percentage separately controls enrollment into the rule. For example, [33.33, 33.33, 33.34] is valid, while [33.33, 33.33, 33.33] totals 99.99 and is invalid. Validate the stored decimal percentages exactly (for example, as integer hundredths totaling 10000); do not round an invalid sum to 100. This validation is separate from binary64 accumulation during assignment."+ },+ {+ "id": "percentage_two_decimals",+ "scope": "all rollout_percentage, weight, and exclusion_percentage values",+ "requirement": "Percentages have at most two decimal places. JSON Schema multipleOf is not used because binary64 division is inexact for values such as 33.33."+ },+ {+ "id": "number_is_binary64",+ "scope": "all number and object values",+ "requirement": "Numbers are finite IEEE-754 binary64 values. Negative zero normalizes to zero. Nonzero underflow to zero is invalid."+ },+ {+ "id": "json_keys_unique",+ "scope": "all object values",+ "requirement": "JSON object keys are unique at every depth before ordinary deserialization."+ },+ {+ "id": "json_depth_limit",+ "scope": "all object values",+ "requirement": "Object values contain at most 20 object/array levels, counting the root object as level 1. Scalar leaves do not add a level. The config schema enforces this bound with numbered definitions."+ },+ {+ "id": "assignment_target_context",+ "scope": "randomized rules",+ "requirement": "Explicit person assignment is valid only for person flags. Group flags use the flag aggregation key and omit assign_by. The config schema enforces omission of assign_by whenever aggregation_group_type_index is present, including index 0."+ },+ {+ "id": "contextual_size_limits",+ "scope": "config and metadata",+ "requirement": "The deployment config byte limit and the metadata size limit apply outside JSON Schema validation."+ }+ ]+}diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/schemas/config.schema.json b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/schemas/config.schema.jsonnew file mode 100644index 000000000000..f44d12f0c44a--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/schemas/config.schema.json@@ -0,0 +1,1005 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "urn:posthog:feature-flag-rules-v2:config:1.0.0",+ "title": "Feature Flag Rules v2 config",+ "description": "Canonical stored configuration for Feature Flag Rules config version 2.",+ "type": "object",+ "required": [+ "version",+ "return_type",+ "default_value",+ "rules"+ ],+ "properties": {+ "version": {+ "const": 2+ },+ "return_type": {+ "enum": [+ "boolean",+ "string",+ "number",+ "object"+ ]+ },+ "default_value": {+ "description": "Flag default for a normal result with no assigned value. Null delegates to the caller default. OpenFeature uses the caller default on abnormal execution regardless of this setting."+ },+ "rules": {+ "type": "array",+ "maxItems": 100,+ "items": {+ "$ref": "#/$defs/rule"+ }+ },+ "aggregation_group_type_index": {+ "type": "integer"+ }+ },+ "additionalProperties": false,+ "allOf": [+ {+ "if": {+ "properties": {+ "return_type": {+ "const": "boolean"+ }+ },+ "required": [+ "return_type"+ ]+ },+ "then": {+ "properties": {+ "default_value": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "rules": {+ "items": {+ "$ref": "#/$defs/booleanRuleValues"+ }+ }+ }+ }+ },+ {+ "if": {+ "properties": {+ "return_type": {+ "const": "string"+ }+ },+ "required": [+ "return_type"+ ]+ },+ "then": {+ "properties": {+ "default_value": {+ "anyOf": [+ {+ "$ref": "#/$defs/stringValue"+ },+ {+ "type": "null"+ }+ ]+ },+ "rules": {+ "items": {+ "$ref": "#/$defs/stringRuleValues"+ }+ }+ }+ }+ },+ {+ "if": {+ "properties": {+ "return_type": {+ "const": "number"+ }+ },+ "required": [+ "return_type"+ ]+ },+ "then": {+ "properties": {+ "default_value": {+ "anyOf": [+ {+ "$ref": "#/$defs/safeNumber"+ },+ {+ "type": "null"+ }+ ]+ },+ "rules": {+ "items": {+ "$ref": "#/$defs/numberRuleValues"+ }+ }+ }+ }+ },+ {+ "if": {+ "properties": {+ "return_type": {+ "const": "object"+ }+ },+ "required": [+ "return_type"+ ]+ },+ "then": {+ "properties": {+ "default_value": {+ "anyOf": [+ {+ "$ref": "#/$defs/jsonObjectValue"+ },+ {+ "type": "null"+ }+ ]+ },+ "rules": {+ "items": {+ "$ref": "#/$defs/objectRuleValues"+ }+ }+ }+ }+ },+ {+ "if": {+ "required": [+ "aggregation_group_type_index"+ ]+ },+ "then": {+ "properties": {+ "rules": {+ "items": {+ "not": {+ "required": [+ "assign_by"+ ]+ }+ }+ }+ }+ }+ }+ ],+ "$defs": {+ "uuid": {+ "type": "string",+ "format": "uuid",+ "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"+ },+ "percentage": {+ "type": "number",+ "minimum": 0,+ "maximum": 100+ },+ "seed": {+ "type": "string",+ "minLength": 1,+ "maxLength": 400+ },+ "stringValue": {+ "type": "string",+ "minLength": 1+ },+ "safeNumber": {+ "type": "number",+ "minimum": -9007199254740991,+ "maximum": 9007199254740991+ },+ "jsonObjectValue": {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth2"+ },+ "x-posthog-open-object": "application_json_value",+ "description": "At most 20 object/array levels, counting this root object as level 1. Scalar leaves do not add a level. Numbered definitions bound validation recursion."+ },+ "metadata": {+ "type": "object",+ "additionalProperties": true,+ "x-posthog-open-object": "opaque_metadata"+ },+ "groupKeyNames": {+ "anyOf": [+ {+ "type": "null"+ },+ {+ "type": "object",+ "additionalProperties": {+ "type": "string"+ },+ "x-posthog-open-object": "display_group_key_names"+ }+ ]+ },+ "propertyFilter": {+ "type": "object",+ "required": [+ "key",+ "type"+ ],+ "properties": {+ "key": {+ "type": "string",+ "minLength": 1+ },+ "value": {},+ "type": {+ "enum": [+ "person",+ "cohort",+ "group",+ "flag"+ ]+ },+ "operator": {+ "anyOf": [+ {+ "enum": [+ "exact",+ "is_not",+ "icontains",+ "not_icontains",+ "icontains_multi",+ "not_icontains_multi",+ "starts_with",+ "not_starts_with",+ "ends_with",+ "not_ends_with",+ "regex",+ "not_regex",+ "gt",+ "gte",+ "lt",+ "lte",+ "semver_gt",+ "semver_gte",+ "semver_lt",+ "semver_lte",+ "semver_eq",+ "semver_neq",+ "semver_tilde",+ "semver_caret",+ "semver_wildcard",+ "is_set",+ "is_not_set",+ "is_date_exact",+ "is_date_after",+ "is_date_before",+ "in",+ "not_in",+ "flag_evaluates_to"+ ]+ },+ {+ "type": "null"+ }+ ]+ },+ "group_type_index": {+ "type": [+ "integer",+ "null"+ ]+ },+ "negation": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "cohort_name": {+ "type": [+ "string",+ "null"+ ]+ },+ "group_key_names": {+ "$ref": "#/$defs/groupKeyNames"+ },+ "label": {+ "type": [+ "string",+ "null"+ ]+ }+ },+ "additionalProperties": false+ },+ "targeting": {+ "type": "object",+ "required": [+ "properties"+ ],+ "properties": {+ "properties": {+ "type": "array",+ "maxItems": 100,+ "items": {+ "$ref": "#/$defs/propertyFilter"+ }+ }+ },+ "additionalProperties": false+ },+ "variant": {+ "type": "object",+ "required": [+ "key",+ "weight",+ "value"+ ],+ "properties": {+ "key": {+ "type": "string",+ "minLength": 1,+ "pattern": "^[a-zA-Z0-9_-]+$"+ },+ "weight": {+ "description": "Percentage of subjects enrolled by the rule assigned to this variant. Variant weights sum to exactly 100; the rule's rollout_percentage separately controls enrollment.",+ "$ref": "#/$defs/percentage"+ },+ "value": {}+ },+ "additionalProperties": false+ },+ "holdout": {+ "type": "object",+ "required": [+ "id",+ "seed",+ "exclusion_percentage"+ ],+ "properties": {+ "id": {+ "type": "integer"+ },+ "seed": {+ "$ref": "#/$defs/seed"+ },+ "exclusion_percentage": {+ "$ref": "#/$defs/percentage"+ }+ },+ "additionalProperties": false+ },+ "targetedReleaseRule": {+ "type": "object",+ "required": [+ "id",+ "rule_type",+ "targeting",+ "value"+ ],+ "properties": {+ "id": {+ "$ref": "#/$defs/uuid"+ },+ "rule_type": {+ "const": "targeted_release"+ },+ "targeting": {+ "$ref": "#/$defs/targeting"+ },+ "description": {+ "type": "string"+ },+ "metadata": {+ "$ref": "#/$defs/metadata"+ },+ "value": {}+ },+ "additionalProperties": false+ },+ "percentageRolloutRule": {+ "type": "object",+ "required": [+ "id",+ "rule_type",+ "targeting",+ "value",+ "rollout_percentage",+ "on_rollout_miss",+ "assignment_algorithm",+ "seed"+ ],+ "properties": {+ "id": {+ "$ref": "#/$defs/uuid"+ },+ "rule_type": {+ "const": "percentage_rollout"+ },+ "targeting": {+ "$ref": "#/$defs/targeting"+ },+ "description": {+ "type": "string"+ },+ "metadata": {+ "$ref": "#/$defs/metadata"+ },+ "value": {},+ "rollout_percentage": {+ "$ref": "#/$defs/percentage"+ },+ "on_rollout_miss": {+ "enum": [+ "continue",+ "return_default"+ ]+ },+ "assignment_algorithm": {+ "const": "sha1_60_v1"+ },+ "seed": {+ "$ref": "#/$defs/seed"+ },+ "assign_by": {+ "const": "person"+ }+ },+ "additionalProperties": false+ },+ "experimentRule": {+ "type": "object",+ "required": [+ "id",+ "rule_type",+ "targeting",+ "experiment_id",+ "paused",+ "rollout_percentage",+ "on_rollout_miss",+ "assignment_algorithm",+ "seed",+ "variants"+ ],+ "properties": {+ "id": {+ "$ref": "#/$defs/uuid"+ },+ "rule_type": {+ "const": "experiment"+ },+ "targeting": {+ "$ref": "#/$defs/targeting"+ },+ "description": {+ "type": "string"+ },+ "metadata": {+ "$ref": "#/$defs/metadata"+ },+ "experiment_id": {+ "type": "integer"+ },+ "paused": {+ "type": "boolean"+ },+ "rollout_percentage": {+ "$ref": "#/$defs/percentage"+ },+ "on_rollout_miss": {+ "enum": [+ "continue",+ "return_default"+ ]+ },+ "assignment_algorithm": {+ "const": "sha1_60_v1"+ },+ "seed": {+ "$ref": "#/$defs/seed"+ },+ "assign_by": {+ "const": "person"+ },+ "variants": {+ "type": "array",+ "minItems": 2,+ "maxItems": 20,+ "items": {+ "$ref": "#/$defs/variant"+ }+ },+ "holdout": {+ "$ref": "#/$defs/holdout"+ }+ },+ "additionalProperties": false+ },+ "rule": {+ "oneOf": [+ {+ "$ref": "#/$defs/targetedReleaseRule"+ },+ {+ "$ref": "#/$defs/percentageRolloutRule"+ },+ {+ "$ref": "#/$defs/experimentRule"+ }+ ]+ },+ "booleanRuleValues": {+ "properties": {+ "value": {+ "type": "boolean"+ },+ "variants": {+ "items": {+ "properties": {+ "value": {+ "type": "boolean"+ }+ }+ }+ }+ }+ },+ "stringRuleValues": {+ "properties": {+ "value": {+ "$ref": "#/$defs/stringValue"+ },+ "variants": {+ "items": {+ "properties": {+ "value": {+ "$ref": "#/$defs/stringValue"+ }+ }+ }+ }+ }+ },+ "numberRuleValues": {+ "properties": {+ "value": {+ "$ref": "#/$defs/safeNumber"+ },+ "variants": {+ "items": {+ "properties": {+ "value": {+ "$ref": "#/$defs/safeNumber"+ }+ }+ }+ }+ }+ },+ "objectRuleValues": {+ "properties": {+ "value": {+ "$ref": "#/$defs/jsonObjectValue"+ },+ "variants": {+ "items": {+ "properties": {+ "value": {+ "$ref": "#/$defs/jsonObjectValue"+ }+ }+ }+ }+ }+ },+ "jsonScalarValue": {+ "oneOf": [+ {+ "type": "null"+ },+ {+ "type": "boolean"+ },+ {+ "$ref": "#/$defs/safeNumber"+ },+ {+ "type": "string"+ }+ ]+ },+ "jsonValueDepth2": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth3"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth3"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth3": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth4"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth4"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth4": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth5"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth5"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth5": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth6"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth6"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth6": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth7"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth7"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth7": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth8"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth8"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth8": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth9"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth9"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth9": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth10"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth10"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth10": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth11"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth11"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth11": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth12"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth12"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth12": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth13"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth13"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth13": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth14"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth14"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth14": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth15"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth15"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth15": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth16"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth16"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth16": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth17"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth17"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth17": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth18"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth18"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth18": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth19"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth19"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth19": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonValueDepth20"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonValueDepth20"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ },+ "jsonValueDepth20": {+ "oneOf": [+ {+ "$ref": "#/$defs/jsonScalarValue"+ },+ {+ "type": "array",+ "items": {+ "$ref": "#/$defs/jsonScalarValue"+ }+ },+ {+ "type": "object",+ "additionalProperties": {+ "$ref": "#/$defs/jsonScalarValue"+ },+ "x-posthog-open-object": "application_json_value"+ }+ ]+ }+ }+}diff --git a/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/schemas/v2_boolean_evaluation.schema.json b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/schemas/v2_boolean_evaluation.schema.jsonnew file mode 100644index 000000000000..11fb221afb92--- /dev/null+++ b/rust/feature-flags/tests/fixtures/rules_v2_evaluation/2.2.0/schemas/v2_boolean_evaluation.schema.json@@ -0,0 +1,321 @@+{+ "$schema": "https://json-schema.org/draft/2020-12/schema",+ "$id": "urn:posthog:feature-flag-rules-v2:corpus:v2_boolean_evaluation:1.0.0",+ "type": "object",+ "properties": {+ "corpus_version": {+ "const": "1.0.0"+ },+ "config_version": {+ "const": 2+ },+ "description": {+ "type": "string"+ },+ "cases": {+ "type": "array",+ "minItems": 1,+ "items": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "pattern": "^v2_boolean(\\.[a-z0-9_]+)+$"+ },+ "family": {+ "enum": [+ "ordering",+ "properties",+ "context",+ "errors",+ "hashing",+ "white_box",+ "eligibility",+ "parser"+ ]+ },+ "flag": {+ "type": "object",+ "properties": {+ "key": {+ "type": "string"+ },+ "name": {+ "type": "string"+ },+ "active": {+ "type": "boolean"+ },+ "deleted": {+ "type": "boolean"+ },+ "requested": {+ "type": "boolean"+ }+ },+ "required": [+ "key",+ "name",+ "active",+ "deleted",+ "requested"+ ],+ "additionalProperties": false+ },+ "config": {+ "type": "object",+ "additionalProperties": true,+ "x-posthog-open-object": "validated separately against the canonical config schema, including rejected examples"+ },+ "context": {+ "type": "object",+ "properties": {+ "identifier": {+ "type": "string"+ },+ "properties": {+ "type": [+ "object",+ "null"+ ],+ "additionalProperties": true,+ "x-posthog-open-object": "supplied person property values"+ },+ "properties_complete": {+ "type": "boolean"+ },+ "timezone": {+ "type": "string"+ },+ "explicit_exact_matching": {+ "type": "boolean"+ },+ "now": {+ "type": "string",+ "format": "date-time"+ }+ },+ "required": [+ "identifier",+ "properties",+ "properties_complete",+ "timezone",+ "explicit_exact_matching",+ "now"+ ],+ "additionalProperties": false+ },+ "expected": {+ "oneOf": [+ {+ "type": "object",+ "properties": {+ "status": {+ "const": "success"+ },+ "value": {+ "type": [+ "boolean",+ "null"+ ]+ },+ "reason": {+ "enum": [+ "targeting_match",+ "rollout_miss",+ "no_rule_match"+ ]+ },+ "rule": {+ "type": "object",+ "properties": {+ "id": {+ "type": "string",+ "format": "uuid"+ },+ "rule_type": {+ "enum": [+ "targeted_release",+ "percentage_rollout"+ ]+ },+ "index": {+ "type": "integer",+ "minimum": 0+ }+ },+ "required": [+ "id",+ "rule_type",+ "index"+ ],+ "additionalProperties": false+ }+ },+ "required": [+ "status",+ "value",+ "reason"+ ],+ "if": {+ "properties": {+ "reason": {+ "const": "no_rule_match"+ }+ }+ },+ "then": {+ "not": {+ "required": [+ "rule"+ ]+ }+ },+ "else": {+ "required": [+ "rule"+ ]+ },+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "status": {+ "const": "error"+ },+ "error": {+ "enum": [+ "missing_context",+ "invalid_property",+ "invalid_regex"+ ]+ }+ },+ "required": [+ "status",+ "error"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "status": {+ "const": "parse_error"+ },+ "kind": {+ "enum": [+ "malformed",+ "unsupported"+ ]+ }+ },+ "required": [+ "status",+ "kind"+ ],+ "additionalProperties": false+ },+ {+ "type": "object",+ "properties": {+ "status": {+ "const": "omitted"+ }+ },+ "required": [+ "status"+ ],+ "additionalProperties": false+ }+ ]+ },+ "hash_evidence": {+ "type": "object",+ "properties": {+ "identifier": {+ "type": "string"+ },+ "input_utf8_hex": {+ "type": "string"+ },+ "sha1_hex": {+ "type": "string",+ "pattern": "^[0-9a-f]{40}$"+ },+ "first_15_hex": {+ "type": "string",+ "pattern": "^[0-9a-f]{15}$"+ },+ "n": {+ "type": "string",+ "pattern": "^[0-9]+$"+ },+ "hash01_binary64_hex": {+ "type": "string",+ "pattern": "^[0-9a-f]{16}$"+ },+ "threshold_binary64_hex": {+ "type": "string",+ "pattern": "^[0-9a-f]{16}$"+ }+ },+ "required": [+ "identifier",+ "input_utf8_hex",+ "sha1_hex",+ "first_15_hex",+ "n",+ "hash01_binary64_hex",+ "threshold_binary64_hex"+ ],+ "additionalProperties": false+ },+ "white_box": {+ "type": "object",+ "properties": {+ "hash01_binary64_hex": {+ "type": "string",+ "pattern": "^[0-9a-f]{16}$"+ },+ "threshold_binary64_hex": {+ "type": "string",+ "pattern": "^[0-9a-f]{16}$"+ },+ "relation": {+ "enum": [+ "equal",+ "below",+ "above"+ ]+ }+ },+ "required": [+ "hash01_binary64_hex",+ "threshold_binary64_hex",+ "relation"+ ],+ "additionalProperties": false+ }+ },+ "required": [+ "id",+ "family",+ "flag",+ "config",+ "context",+ "expected"+ ],+ "additionalProperties": false+ }+ }+ },+ "required": [+ "corpus_version",+ "config_version",+ "description",+ "cases"+ ],+ "additionalProperties": false+}diff --git a/rust/feature-flags/tests/test_rules_v2_evaluation.rs b/rust/feature-flags/tests/test_rules_v2_evaluation.rsnew file mode 100644index 000000000000..cc5dae34e1b0--- /dev/null+++ b/rust/feature-flags/tests/test_rules_v2_evaluation.rs@@ -0,0 +1,382 @@+use std::collections::{BTreeMap, BTreeSet};+use std::sync::Arc;++use feature_flags::flags::config_v2::{Outcome, ParseError};+use feature_flags::flags::evaluate_v2::{Evaluation, EvaluationError, Evaluator};+use feature_flags::flags::feature_flag_list::PreparedFlags;+use feature_flags::flags::flag_matching_utils::calculate_hash;+use feature_flags::flags::flag_request::MAX_DISTINCT_ID_LEN;+use serde_json::{json, Value};+use sha2::{Digest, Sha256};+use uuid::Uuid;++pub mod common;+#[path = "test_rules_v2_evaluation/corpus.rs"]+mod corpus;++#[test]+fn pinned_evaluation_artifact_subset_is_intact() {+ let source = corpus::load("SOURCE.json");+ let revision = source["source_revision"].as_str().unwrap();+ assert_eq!(revision.len(), 40);+ assert!(revision.bytes().all(|c| c.is_ascii_hexdigit()));+ assert_eq!(source["release_status"], "released");+ assert_eq!(source["source_release"], "1.8.0");+ let index = std::fs::read(corpus::root().join("SHA256SUMS")).unwrap();+ assert_eq!(+ hex::encode(Sha256::digest(&index)),+ source["source_sha256sums_digest"]+ );+ let digests: BTreeMap<_, _> = std::str::from_utf8(&index)+ .unwrap()+ .lines()+ .map(|line| line.split_once(" ").unwrap())+ .map(|(digest, path)| (path, digest))+ .collect();+ let files: BTreeSet<_> = source["files"]+ .as_array()+ .unwrap()+ .iter()+ .map(|path| path.as_str().unwrap())+ .collect();+ assert_eq!(files.len(), source["files"].as_array().unwrap().len());+ for path in files {+ assert_eq!(+ hex::encode(Sha256::digest(+ std::fs::read(corpus::root().join(path)).unwrap()+ )),+ digests[path],+ "{path}"+ );+ }+ let manifest = corpus::load("manifest.json");+ assert_eq!(manifest["contract"]["version"], source["contract_version"]);+ assert_eq!(+ manifest["v2_boolean_evaluation"]["version"],+ source["v2_boolean_evaluation_version"]+ );+ let cases = corpus::cases();+ let ids: Vec<_> = cases.iter().map(|case| case["id"].clone()).collect();+ let artifact = manifest["artifacts"]+ .as_array()+ .unwrap()+ .iter()+ .find(|artifact| artifact["path"] == "corpus/v2_boolean_evaluation.json")+ .unwrap();+ assert_eq!(json!(ids), artifact["case_ids"]);+ assert_eq!(+ ids.iter()+ .map(Value::to_string)+ .collect::<BTreeSet<_>>()+ .len(),+ ids.len()+ );+ let mut counts = BTreeMap::new();+ for case in &cases {+ *counts.entry(case["family"].as_str().unwrap()).or_insert(0) += 1;+ }+ assert_eq!(+ counts,+ BTreeMap::from([+ ("ordering", 18),+ ("properties", 67),+ ("context", 8),+ ("errors", 6),+ ("hashing", 21),+ ("white_box", 10),+ ("eligibility", 3),+ ("parser", 2),+ ])+ );+}++#[test]+fn parsed_configs_match_every_core_case_without_mutating_cached_inputs() {+ let mut executed = 0;+ let mut rejected = 0;+ for case in corpus::cases() {+ let id = case["id"].as_str().unwrap();+ match case["family"].as_str().unwrap() {+ "white_box" | "eligibility" => continue,+ "ordering" | "properties" | "context" | "errors" | "hashing" | "parser" => {}+ other => panic!("unhandled family: {other}"),+ }+ let flag = corpus::read(&case);+ let before = serde_json::to_value(&flag).unwrap();+ let cached = PreparedFlags::seal(vec![flag]);+ let retained = cached[0].filters.non_v1.as_ref().unwrap();+ if case["family"] == "parser" {+ let kind = match retained.parsed_v2.as_ref() {+ Some(Err(ParseError::Malformed(_))) => "malformed",+ Some(Err(ParseError::Unsupported(_))) | None => "unsupported",+ other => panic!("{id}: unexpected parse result {other:?}"),+ };+ assert_eq!(+ json!({"status":"parse_error","kind":kind}),+ case["expected"],+ "{id}"+ );+ rejected += 1;+ continue;+ }+ let config = corpus::config(&cached[0]);+ let evaluator = Evaluator::new(config);+ let properties = corpus::properties(&case);+ let properties_before = properties.clone();+ let context = corpus::context(&case, &properties);+ for _ in 0..2 {+ assert_eq!(+ corpus::result_json(evaluator.evaluate(&context)),+ case["expected"],+ "{id}"+ );+ }+ let cloned = cached[0].clone();+ assert!(Arc::ptr_eq(+ retained,+ cloned.filters.non_v1.as_ref().unwrap()+ ));+ assert_eq!(serde_json::to_value(&cached[0]).unwrap(), before, "{id}");+ assert_eq!(properties, properties_before);+ if let Some(evidence) = case.get("hash_evidence") {+ let (seed, rollout_percentage) = config+ .rules+ .iter()+ .find_map(|rule| match &rule.outcome {+ Outcome::PercentageRollout {+ seed,+ rollout_percentage,+ ..+ } => Some((seed, rollout_percentage)),+ _ => None,+ })+ .unwrap();+ let subject: String = context+ .person_identifier+ .chars()+ .take(MAX_DISTINCT_ID_LEN)+ .collect();+ assert_eq!(subject, evidence["identifier"]);+ let hash = calculate_hash(&format!("{seed}."), &subject, "").unwrap();+ assert_eq!(+ format!("{:016x}", hash.to_bits()),+ evidence["hash01_binary64_hex"],+ "{id}"+ );+ assert_eq!(+ format!("{:016x}", (rollout_percentage / 100.0).to_bits()),+ evidence["threshold_binary64_hex"],+ "{id}"+ );+ }+ executed += 1;+ }+ assert_eq!((executed, rejected), (120, 2));+}++#[tokio::test]+async fn corpus_eligibility_uses_the_request_boundary_and_valid_v2_stays_closed() {+ use feature_flags::config::DEFAULT_TEST_CONFIG;+ use feature_flags::utils::test_utils::{+ insert_flags_for_team_in_redis, insert_new_team_in_redis, setup_redis_client,+ };+ let config = DEFAULT_TEST_CONFIG.clone();+ let redis = setup_redis_client(Some(config.redis_url.clone())).await;+ let team = insert_new_team_in_redis(redis.clone()).await.unwrap();+ let cases: Vec<_> = corpus::cases()+ .into_iter()+ .filter(|case| case["family"] == "eligibility")+ .collect();+ let mut flags = vec![+ json!({"id":1,"team_id":team.id,"key":"healthy","active":true,"filters":{"groups":[{"rollout_percentage":100}]}}),+ ];+ let mut requested = vec!["healthy".to_string(), "eligible-v2".to_string()];+ for (index, case) in cases.iter().enumerate() {+ let mut flag = corpus::read(case);+ flag.id = (index + 2) as i32;+ flag.team_id = team.id;+ flag.key = case["id"].as_str().unwrap().to_string();+ if case["flag"]["requested"] == true {+ requested.push(flag.key.clone());+ }+ flags.push(serde_json::to_value(flag).unwrap());+ }+ let mut eligible = corpus::read(&cases[0]);+ eligible.id = 20;+ eligible.team_id = team.id;+ eligible.key = "eligible-v2".to_string();+ eligible.active = true;+ let evaluator = Evaluator::new(corpus::config(&eligible));+ assert_eq!(+ corpus::result_json(+ evaluator.evaluate(&corpus::context(&cases[0], &corpus::properties(&cases[0])))+ )["value"],+ true+ );+ flags.push(serde_json::to_value(eligible).unwrap());+ insert_flags_for_team_in_redis(redis, team.id, Some(json!(flags).to_string()))+ .await+ .unwrap();+ let server = common::ServerHandle::for_config(config).await;+ let body: Value = reqwest::Client::new()+ .post(format!("http://{}/flags?v=2&config=false", server.addr))+ .json(&json!({"token":team.api_token,"distinct_id":"example-person","flag_keys":requested}))+ .send()+ .await+ .unwrap()+ .error_for_status()+ .unwrap()+ .json()+ .await+ .unwrap();+ assert_eq!(body["flags"]["healthy"]["enabled"], true);+ assert_eq!(body["flags"]["eligible-v2"]["failed"], true);+ assert_eq!(+ body["flags"]["eligible-v2"]["reason"]["code"],+ "flag_data_parsing_error"+ );+ for case in &cases {+ assert!(body["flags"].get(case["id"].as_str().unwrap()).is_none());+ assert_eq!(case["expected"], json!({"status":"omitted"}));+ }+ assert_eq!(cases.len(), 3);+}++#[test]+fn canonical_white_box_cases_exercise_the_production_ordered_evaluator() {+ let mut count = 0;+ for case in corpus::cases()+ .into_iter()+ .filter(|case| case["family"] == "white_box")+ {+ let flag = corpus::read(&case);+ let config = corpus::config(&flag);+ let evaluator = Evaluator::new(config);+ let properties = corpus::properties(&case);+ let context = corpus::context(&case, &properties);+ let hash = f64::from_bits(+ u64::from_str_radix(+ case["white_box"]["hash01_binary64_hex"].as_str().unwrap(),+ 16,+ )+ .unwrap(),+ );+ let result = evaluator.evaluate_with_hash(&context, |_, _| Ok(hash));+ assert_eq!(+ corpus::result_json(result),+ case["expected"],+ "{}",+ case["id"]+ );+ count += 1;+ }+ assert_eq!(count, 10);+}++#[test]+fn hashing_is_lazy_subject_is_resolved_once_and_repeated_seeds_reuse_the_hash() {+ let case = corpus::cases()+ .into_iter()+ .find(|case| case["id"] == "v2_boolean.hash.full")+ .unwrap();+ let mut flag = corpus::read(&case);+ let config = Arc::make_mut(flag.filters.non_v1.as_mut().unwrap())+ .parsed_v2+ .as_mut()+ .unwrap()+ .as_mut()+ .unwrap();+ let properties = corpus::properties(&case);+ let mut context = corpus::context(&case, &properties);+ assert!(Evaluator::new(config)+ .evaluate_with_hash(&context, |_, _| panic!("100% must not hash"))+ .is_ok());+ context.person_identifier = "";+ assert!(matches!(+ Evaluator::new(config)+ .evaluate_with_hash(&context, |_, _| panic!("empty subject must not hash")),+ Ok(Evaluation::NoRuleMatch { .. })+ ));+ if let Outcome::PercentageRollout {+ rollout_percentage, ..+ } = &mut config.rules[0].outcome+ {+ *rollout_percentage = 0.0;+ }+ let mut second = config.rules[0].clone();+ second.id = Uuid::new_v4();+ config.rules.push(second);+ let subject = "😀".repeat(201);+ context.person_identifier = &subject;+ let mut calls = 0;+ assert!(matches!(+ Evaluator::new(config).evaluate_with_hash(&context, |seed, subject| {+ calls += 1;+ assert_eq!(seed, "example-allocation");+ assert_eq!(subject, "😀".repeat(200));+ Ok(0.5)+ }),+ Ok(Evaluation::NoRuleMatch { .. })+ ));+ assert_eq!(calls, 1);+ assert_eq!(+ Evaluator::new(config).evaluate_with_hash(&context, |_, _| Err(EvaluationError::Hash)),+ Err(EvaluationError::Hash)+ );+}++#[test]+fn regex_execution_errors_are_not_inverted_by_negation() {+ let mut case = corpus::cases()+ .into_iter()+ .find(|case| case["id"] == "v2_boolean.property.regex")+ .unwrap();+ case["config"]["rules"][0]["targeting"]["properties"][0]["value"] = json!(r"^(a+)+\1$");+ case["context"]["properties"]["color"] = json!("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!");+ for negation in [false, true] {+ case["config"]["rules"][0]["targeting"]["properties"][0]["negation"] = json!(negation);+ let flag = corpus::read(&case);+ let config = corpus::config(&flag);+ let properties = corpus::properties(&case);+ let context = corpus::context(&case, &properties);+ assert_eq!(+ Evaluator::new(config).evaluate(&context),+ Err(EvaluationError::InvalidRegex),+ "negation={negation}"+ );+ }+}++#[test]+fn evaluation_is_repeatable_and_diagnostics_do_not_retain_inputs() {+ let mut case = corpus::cases()+ .into_iter()+ .find(|case| case["id"] == "v2_boolean.property.regex")+ .unwrap();+ case["config"]["rules"][0]["targeting"]["properties"][0]["value"] = json!("sensitive-pattern");+ let flag = corpus::read(&case);+ let config = corpus::config(&flag);+ let evaluator = Evaluator::new(config);+ let properties = corpus::properties(&case);+ let context = corpus::context(&case, &properties);+ let result = evaluator.evaluate(&context);+ assert_eq!(result, evaluator.evaluate(&context));+ assert!(config.estimated_heap_bytes() >= 2048);+ let debug = format!("{evaluator:?} {context:?} {result:?}");+ for sensitive in ["sensitive-pattern", "person-example", "color"] {+ assert!(!debug.contains(sensitive));+ }++ let mut case = corpus::cases()+ .into_iter()+ .find(|case| case["id"] == "v2_boolean.hash.full")+ .unwrap();+ case["config"]["rules"][0]["seed"] = json!("sensitive-seed");+ let flag = corpus::read(&case);+ let evaluator = Evaluator::new(corpus::config(&flag));+ let properties = corpus::properties(&case);+ let context = corpus::context(&case, &properties);+ let result = evaluator.evaluate(&context);+ assert!(matches!(result, Ok(Evaluation::TargetingMatch { .. })));+ assert!(!format!("{evaluator:?} {result:?}").contains("sensitive-seed"));+}diff --git a/rust/feature-flags/tests/test_rules_v2_evaluation/corpus.rs b/rust/feature-flags/tests/test_rules_v2_evaluation/corpus.rsnew file mode 100644index 000000000000..828beb6a3eaf--- /dev/null+++ b/rust/feature-flags/tests/test_rules_v2_evaluation/corpus.rs@@ -0,0 +1,91 @@+use std::collections::HashMap;+use std::path::PathBuf;++use feature_flags::flags::config_v2::Config;+use feature_flags::flags::evaluate_v2::{+ Evaluation, EvaluationContext, EvaluationError, MatchedRule, PersonProperties, RuleKind,+};+use feature_flags::flags::flag_models::FeatureFlag;+use serde_json::{json, Value};++pub fn root() -> PathBuf {+ PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/fixtures/rules_v2_evaluation/2.2.0")+}++pub fn load(path: &str) -> Value {+ serde_json::from_slice(&std::fs::read(root().join(path)).unwrap()).unwrap()+}++pub fn cases() -> Vec<Value> {+ load("corpus/v2_boolean_evaluation.json")["cases"]+ .as_array()+ .unwrap()+ .clone()+}++pub fn read(case: &Value) -> FeatureFlag {+ serde_json::from_value(json!({+ "id": 1, "team_id": 1, "key": case["flag"]["key"], "name": case["flag"]["name"],+ "active": case["flag"]["active"], "deleted": case["flag"]["deleted"], "filters": case["config"]+ })).unwrap()+}++pub fn config(flag: &FeatureFlag) -> &Config {+ flag.filters+ .non_v1+ .as_ref()+ .unwrap()+ .parsed_v2+ .as_ref()+ .unwrap()+ .as_ref()+ .unwrap()+}++pub fn properties(case: &Value) -> HashMap<String, Value> {+ serde_json::from_value(case["context"]["properties"].clone()).unwrap_or_default()+}++pub fn context<'a>(+ case: &'a Value,+ properties: &'a HashMap<String, Value>,+) -> EvaluationContext<'a> {+ let input = &case["context"];+ EvaluationContext {+ person_identifier: input["identifier"].as_str().unwrap(),+ properties: if input["properties"].is_null() {+ PersonProperties::Unavailable+ } else if input["properties_complete"].as_bool().unwrap() {+ PersonProperties::Complete(properties)+ } else {+ PersonProperties::Partial(properties)+ },+ timezone: input["timezone"].as_str().unwrap().parse().unwrap(),+ use_explicit_exact_matching: input["explicit_exact_matching"].as_bool().unwrap(),+ now: input["now"].as_str().unwrap().parse().unwrap(),+ }+}++fn rule_json(rule: MatchedRule) -> Value {+ json!({"id": rule.id.to_string(), "index": rule.index, "rule_type": match rule.kind {+ RuleKind::TargetedRelease => "targeted_release", RuleKind::PercentageRollout => "percentage_rollout",+ }})+}++pub fn result_json(result: Result<Evaluation, EvaluationError>) -> Value {+ match result {+ Ok(Evaluation::TargetingMatch { value, rule }) => {+ json!({"status":"success","value":value,"reason":"targeting_match","rule":rule_json(rule)})+ }+ Ok(Evaluation::RolloutMiss { value, rule }) => {+ json!({"status":"success","value":value,"reason":"rollout_miss","rule":rule_json(rule)})+ }+ Ok(Evaluation::NoRuleMatch { value }) => {+ json!({"status":"success","value":value,"reason":"no_rule_match"})+ }+ Err(error) => json!({"status":"error","error": match error {+ EvaluationError::MissingContext => "missing_context", EvaluationError::InvalidProperty => "invalid_property",+ EvaluationError::InvalidRegex => "invalid_regex", EvaluationError::Hash => "hash",+ }}),+ }+}diff --git a/rust/feature-flags/tests/test_rules_v2_v1_contract.rs b/rust/feature-flags/tests/test_rules_v2_v1_contract.rsindex 551730c7b5e7..a99ac9b78cab 100644--- a/rust/feature-flags/tests/test_rules_v2_v1_contract.rs+++ b/rust/feature-flags/tests/test_rules_v2_v1_contract.rs@@ -224,12 +224,11 @@ async fn run_hash_corpus(db: &TestContext, team_id: i32) -> HashSet<String> {for vector in corpus["threshold_vectors"].as_array().unwrap() {let id = str_field(vector, "id");assert_eq!(- json!(- is_in_rollout(vector["rollout_percentage"].as_f64().unwrap(), || Ok(- prescribed_hash(vector)- ),)- .unwrap()- ),+ json!(is_in_rollout::<std::convert::Infallible>(+ vector["rollout_percentage"].as_f64().unwrap(),+ || Ok(prescribed_hash(vector)),+ )+ .unwrap()),vector["included"],"{id}: rollout inclusion");