From b5052ebd42c41acdcc41242e9b4e8e802fe14e26 Mon Sep 17 00:00:00 2001 From: Anders Asheim Hennum Date: Fri, 13 Nov 2026 15:33:07 +0100 Subject: [PATCH 1/3] chore(flags): add an evaluator for config version 2 flags, not yet called A flag whose `filters.version` is 2 holds an ordered list of rules: targeted releases, percentage rollouts and experiments. The SDK cannot evaluate one locally. This adds the evaluator as a private module that nothing imports, so no behavior changes. - `posthog/_feature_flags_v2.py` has a closed parser and the evaluator. An unknown config version, rule type, property type, operator or field rejects the whole document. The result is a value with its reason code and rule, or inconclusive, unsupported or an error. It is never a guess. - The tests replay the boolean, typed value and experiment evaluation corpora and the `sha1_60_v1` hash vectors of posthog-sdk-test-harness 1.31.1 (contract 10.0.0): 254 cases run, and 3 rows that describe the remote request boundary are skipped. - The vendored contract files move from harness release 1.30.0 to 1.31.1. The files that were already vendored are identical in both releases. --- posthog/_feature_flags_v2.py | 1389 ++++ .../feature_flag_rules_v2/SOURCE.json | 16 +- .../hash_sha1_60_v1.json | 660 ++ .../v2_boolean_evaluation.json | 7184 +++++++++++++++++ .../v2_experiment_evaluation.json | 4267 ++++++++++ posthog/test/test_feature_flags_v2.py | 945 +++ posthog/test/test_flags_v4_response.py | 4 +- 7 files changed, 14461 insertions(+), 4 deletions(-) create mode 100644 posthog/_feature_flags_v2.py create mode 100644 posthog/test/fixtures/feature_flag_rules_v2/hash_sha1_60_v1.json create mode 100644 posthog/test/fixtures/feature_flag_rules_v2/v2_boolean_evaluation.json create mode 100644 posthog/test/fixtures/feature_flag_rules_v2/v2_experiment_evaluation.json create mode 100644 posthog/test/test_feature_flags_v2.py diff --git a/posthog/_feature_flags_v2.py b/posthog/_feature_flags_v2.py new file mode 100644 index 000000000..16307fb8b --- /dev/null +++ b/posthog/_feature_flags_v2.py @@ -0,0 +1,1389 @@ +"""Local evaluation of feature flags whose ``filters.version`` is 2. + +Nothing in the SDK calls this module yet, and no name in it is public. + +A config version 2 flag holds an ordered list of rules. The first rule whose targeting +matches decides the result, unless its rollout misses and the rule says to continue. +The flags service is the reference for every result this module returns. + +:func:`_parse_config` reads a ``filters`` document. The parser is closed: an unknown +config version, rule type, property type, operator or field rejects the whole document, +so a document is never partly evaluated. :func:`_evaluate` returns exactly one of: + +- :class:`_Evaluated`: the value, its reason code and the rule that produced it. +- :class:`_Inconclusive`: a rule's targeting needs something the evaluator does not + have, such as a person property the caller did not pass. Evaluation stops there. It + does not skip the rule to try a later one, because an earlier rule that matches is + terminal. +- :class:`_Unsupported`: the parser rejected the document. +- :class:`_EvaluationError`: a property value or a regular expression is invalid. + +None of them is a guess. A caller that cannot use the result must fall back to the +flags service, not to ``False`` or to the flag default. + +The ``exact`` and text operators and regular expressions use the helpers of the version +1 evaluator, which already follow the flags service. Numbers, semantic versions and +dates are matched here, because version 1 reads them differently. Where Python cannot +reproduce the flags service, such as a date in a form only the service reads, the +result is inconclusive. +""" + +from __future__ import annotations + +import datetime +import hashlib +import math +import operator +import re +from dataclasses import dataclass +from typing import ( + Any, + Callable, + ClassVar, + FrozenSet, + List, + Mapping, + NamedTuple, + Optional, + Tuple, + Union, +) + +from .feature_flags import ( + InconclusiveMatchError, + _ascii_lower, + _compile_regex, + _match_exact_property, + _match_regex, + _match_text_property, + _subtract_months, + _subtract_years, + _value_to_string, +) +from .types import UnresolvedFlagReason + +_CONFIG_VERSION = 2 +_ASSIGNMENT_ALGORITHM = "sha1_60_v1" +_HASH_SCALE = float(0xFFFFFFFFFFFFFFF) +# An identifier is cut to this many Unicode scalar values before it is hashed. +_MAX_IDENTIFIER_LENGTH = 200 + +_MAX_RULES = 100 +_MAX_PREDICATES = 100 +_MIN_VARIANTS = 2 +_MAX_VARIANTS = 20 +_MAX_SEED_LENGTH = 400 +_MAX_SAFE_INTEGER = 9_007_199_254_740_991 +_MAX_OBJECT_DEPTH = 20 +# The reference's JSON reader gives up on deeper nesting. +_MAX_JSON_DEPTH = 127 +_MAX_U64 = 2**64 - 1 + +_CONFIG_FIELDS = frozenset( + { + "version", + "return_type", + "default_value", + "rules", + "aggregation_group_type_index", + } +) +_RULE_FIELDS = frozenset({"id", "rule_type", "targeting", "description", "metadata"}) +_ROLLOUT_FIELDS = frozenset( + { + "rollout_percentage", + "on_rollout_miss", + "assignment_algorithm", + "seed", + "assign_by", + } +) +_FIELDS_BY_RULE_TYPE = { + "targeted_release": _RULE_FIELDS | {"value"}, + "percentage_rollout": _RULE_FIELDS | _ROLLOUT_FIELDS | {"value"}, + "experiment": _RULE_FIELDS | _ROLLOUT_FIELDS | {"paused", "variants", "holdout"}, +} +_VARIANT_FIELDS = frozenset({"key", "weight", "value"}) +_HOLDOUT_FIELDS = frozenset({"seed", "exclusion_percentage"}) +_TARGETING_FIELDS = frozenset({"properties"}) +_PROPERTY_FIELDS = frozenset( + { + "key", + "type", + "value", + "operator", + "negation", + "group_type_index", + "cohort_name", + "group_key_names", + "label", + } +) +# Property types the configuration format defines but this evaluator does not read. +_UNSUPPORTED_PROPERTY_TYPES = frozenset({"cohort", "group", "flag"}) + +_EXACT_OPERATORS = frozenset({"exact", "is_not"}) +_PRESENCE_OPERATORS = frozenset({"is_set", "is_not_set"}) +_TEXT_OPERATORS = frozenset( + { + "icontains", + "not_icontains", + "starts_with", + "not_starts_with", + "ends_with", + "not_ends_with", + } +) +_MULTI_TEXT_OPERATORS = frozenset({"icontains_multi", "not_icontains_multi"}) +_REGEX_OPERATORS = frozenset({"regex", "not_regex"}) +_NUMBER_COMPARISONS: Mapping[str, Callable[[Any, Any], bool]] = { + "gt": operator.gt, + "gte": operator.ge, + "lt": operator.lt, + "lte": operator.le, +} +_SEMVER_COMPARISONS: Mapping[str, Callable[[Any, Any], bool]] = { + "semver_eq": operator.eq, + "semver_neq": operator.ne, + "semver_gt": operator.gt, + "semver_gte": operator.ge, + "semver_lt": operator.lt, + "semver_lte": operator.le, +} +_SEMVER_RANGE_OPERATORS = frozenset({"semver_tilde", "semver_caret", "semver_wildcard"}) +_DATE_COMPARISONS: Mapping[str, Callable[[Any, Any], bool]] = { + "is_date_exact": operator.eq, + "is_date_after": operator.gt, + "is_date_before": operator.lt, +} +_OPERATORS = ( + _EXACT_OPERATORS + | _PRESENCE_OPERATORS + | _TEXT_OPERATORS + | _MULTI_TEXT_OPERATORS + | _REGEX_OPERATORS + | _SEMVER_RANGE_OPERATORS + | frozenset(_NUMBER_COMPARISONS) + | frozenset(_SEMVER_COMPARISONS) + | frozenset(_DATE_COMPARISONS) +) +# The operators that match a person who does not have the property. +_OPERATORS_MATCHING_ABSENCE = frozenset( + { + "is_not", + "not_icontains", + "not_starts_with", + "not_ends_with", + "not_icontains_multi", + "not_regex", + } +) + + +# --- Results ------------------------------------------------------------------------- + + +@dataclass(frozen=True) +class _Evaluated: + """The flag has a result. + + ``value`` is the typed flag value: a boolean, string, number or object, or ``None`` + when the flag has no value and the caller's default applies. An object value is the + configuration's own object, so it must not be changed. The rule fields name the rule + that ended the evaluation, and are ``None`` when no rule did. + """ + + value: Any + reason: str + rule_id: Optional[str] = None + rule_type: Optional[str] = None + rule_index: Optional[int] = None + variant_key: Optional[str] = None + + +@dataclass(frozen=True) +class _Inconclusive: + """A rule that evaluation reached could not be decided.""" + + reason: UnresolvedFlagReason + detail: str + + +@dataclass(frozen=True) +class _Unsupported: + """The parser rejected the document. + + ``kind`` is ``"malformed"`` for a document that breaks the configuration format, + and ``"unsupported"`` for a format this evaluator does not read. ``field`` names + what was rejected. + """ + + kind: str + field: str + + +@dataclass(frozen=True) +class _EvaluationError: + """Evaluation reached an invalid value. + + ``kind`` is ``"invalid_property"`` or ``"invalid_regex"``. + """ + + kind: str + detail: str + + +_Outcome = Union[_Evaluated, _Inconclusive, _Unsupported, _EvaluationError] + + +class _Halt(Exception): + """Ends an evaluation with an outcome that is not a value.""" + + def __init__(self, outcome: Union[_Inconclusive, _EvaluationError]) -> None: + super().__init__(outcome.detail) + self.outcome = outcome + + +def _inconclusive(reason: UnresolvedFlagReason, detail: str) -> _Halt: + return _Halt(_Inconclusive(reason, detail)) + + +def _unusable_context(detail: str) -> _Halt: + return _inconclusive(UnresolvedFlagReason.MISSING_CONTEXT, detail) + + +def _invalid_property(detail: str) -> _Halt: + return _Halt(_EvaluationError("invalid_property", detail)) + + +# --- Configuration ------------------------------------------------------------------- + + +@dataclass(frozen=True) +class _Predicate: + """One property filter of a rule. + + ``value`` is the filter value as stored. ``operand`` is what a number, semver or + date operator compares with, read from ``value`` once by the parser. + """ + + key: str + operator: str + value: Any + negation: bool + operand: Any = None + + +@dataclass(frozen=True) +class _Rollout: + percentage: float + return_default_on_miss: bool + seed: str + + +@dataclass(frozen=True) +class _Variant: + key: str + weight: float + value: Any + + +@dataclass(frozen=True) +class _Holdout: + seed: str + exclusion_percentage: float + + +@dataclass(frozen=True) +class _TargetedRelease: + rule_type: ClassVar[str] = "targeted_release" + + id: str + targeting: Tuple[_Predicate, ...] + value: Any + + +@dataclass(frozen=True) +class _PercentageRollout: + rule_type: ClassVar[str] = "percentage_rollout" + + id: str + targeting: Tuple[_Predicate, ...] + value: Any + rollout: _Rollout + + +@dataclass(frozen=True) +class _Experiment: + rule_type: ClassVar[str] = "experiment" + + id: str + targeting: Tuple[_Predicate, ...] + paused: bool + rollout: _Rollout + variants: Tuple[_Variant, ...] + holdout: Optional[_Holdout] + + +_Rule = Union[_TargetedRelease, _PercentageRollout, _Experiment] + + +@dataclass(frozen=True) +class _Config: + """A parsed ``filters`` document. ``default_value`` is ``None`` for a null default.""" + + default_value: Any + rules: Tuple[_Rule, ...] + + +@dataclass(frozen=True) +class _Context: + """What a flag is evaluated for. + + Attributes: + identifier: The person's resolved targeting key, as a string. + properties: The person properties, or ``None`` when there are none to read. + properties_complete: Whether ``properties`` holds every property of the person. + A complete map shows that a property is absent. A partial map does not, so + a filter on a key it lacks is inconclusive. + explicit_exact_matching: The project's setting for the ``exact`` and ``is_not`` + operators. When false, a filter value that looks like a boolean matches by + truthiness. + timezone: The project's timezone, as a ``zoneinfo.ZoneInfo`` or another + ``tzinfo`` that honours ``fold``. Dates without a UTC offset and relative + dates are read in it. ``None`` makes a filter that needs it inconclusive. + now: The time relative dates count back from, as an aware datetime. ``None`` + means the current time. + """ + + identifier: str + properties: Optional[Mapping[str, Any]] + properties_complete: bool + explicit_exact_matching: bool + timezone: Optional[datetime.tzinfo] = None + now: Optional[datetime.datetime] = None + + +# --- Parser -------------------------------------------------------------------------- + + +class _Rejected(Exception): + def __init__(self, kind: str, field: str) -> None: + super().__init__(field) + self.kind = kind + self.field = field + + +def _malformed(field: str) -> _Rejected: + return _Rejected("malformed", field) + + +def _unsupported(field: str) -> _Rejected: + return _Rejected("unsupported", field) + + +def _parse_config(filters: Any) -> Union[_Config, _Unsupported]: + """Read the ``filters`` document of a flag as config version 2. + + The document is the decoded JSON. Three things the reference rejects in the JSON + text cannot be seen here: a repeated object key, a nonzero number that rounds to + zero, and a percentage written with more than two decimals that rounds to a + two-decimal value. + """ + try: + return _read_config(filters) + except _Rejected as rejected: + return _Unsupported(rejected.kind, rejected.field) + + +def _read_config(filters: Any) -> _Config: + document = _object(filters, "filters") + version = document.get("version") + if not _is_number(version) or version != _CONFIG_VERSION: + raise _unsupported("version") + _check_json(document) + _check_closed(document, _CONFIG_FIELDS, "filters") + return_type = _string(document, "return_type") + if return_type not in _VALUE_CHECKS: + raise _malformed("return_type") + if "aggregation_group_type_index" in document: + group = document["aggregation_group_type_index"] + if not _is_number(group) or not float(group).is_integer(): + raise _malformed("aggregation_group_type_index") + raise _unsupported("aggregation_group_type_index") + default_value = _required(document, "default_value") + if default_value is not None and not _VALUE_CHECKS[return_type](default_value): + raise _malformed("default_value") + rules = _array(document, "rules", _MAX_RULES) + parsed = tuple(_read_rule(rule, return_type) for rule in rules) + if len({rule.id for rule in parsed}) != len(parsed): + raise _malformed("rule.id") + return _Config(default_value, parsed) + + +def _check_json(document: Any) -> None: + """Reject values that the reference's JSON reader does not produce.""" + pending = [(document, 1)] + while pending: + value, depth = pending.pop() + if isinstance(value, (dict, list)): + if depth > _MAX_JSON_DEPTH: + raise _malformed("filters") + if isinstance(value, dict): + if not all(isinstance(key, str) and _is_text(key) for key in value): + raise _malformed("filters") + value = value.values() + pending.extend((item, depth + 1) for item in value) + elif not _is_json_scalar(value): + raise _malformed("filters") + + +def _is_json_scalar(value: Any) -> bool: + if value is None or isinstance(value, bool): + return True + if isinstance(value, str): + return _is_text(value) + if not isinstance(value, (int, float)): + return False + try: + return math.isfinite(float(value)) + except OverflowError: + return False + + +def _is_text(value: str) -> bool: + """Whether a string holds only Unicode scalar values, so no lone surrogate.""" + try: + value.encode("utf-8") + except UnicodeEncodeError: + return False + return True + + +def _is_number(value: Any) -> bool: + return isinstance(value, (int, float)) and not isinstance(value, bool) + + +def _object(value: Any, field: str) -> Mapping[str, Any]: + if not isinstance(value, dict): + raise _malformed(field) + return value + + +def _required(mapping: Mapping[str, Any], field: str) -> Any: + if field not in mapping: + raise _malformed(field) + return mapping[field] + + +def _string(mapping: Mapping[str, Any], field: str) -> str: + value = _required(mapping, field) + if not isinstance(value, str): + raise _malformed(field) + return value + + +def _array(mapping: Mapping[str, Any], field: str, limit: int) -> List[Any]: + value = _required(mapping, field) + if not isinstance(value, list) or len(value) > limit: + raise _malformed(field) + return value + + +def _check_closed( + mapping: Mapping[str, Any], fields: FrozenSet[str], field: str +) -> None: + if not fields.issuperset(mapping): + raise _malformed(field) + + +def _is_safe_number(value: Any) -> bool: + return _is_number(value) and -_MAX_SAFE_INTEGER <= value <= _MAX_SAFE_INTEGER + + +def _is_object_value(value: Any) -> bool: + return isinstance(value, dict) and _is_nested_value(value, 1) + + +def _is_nested_value(value: Any, depth: int) -> bool: + """Depth counts objects and arrays, with the returned object at level 1.""" + if isinstance(value, dict): + value = list(value.values()) + if isinstance(value, list): + return depth <= _MAX_OBJECT_DEPTH and all( + _is_nested_value(item, depth + 1) for item in value + ) + return not _is_number(value) or _is_safe_number(value) + + +# Whether a value is a non-null value of the flag's return type. +_VALUE_CHECKS: Mapping[str, Callable[[Any], bool]] = { + "boolean": lambda value: isinstance(value, bool), + "string": lambda value: isinstance(value, str) and value != "", + "number": _is_safe_number, + "object": _is_object_value, +} + +_RULE_ID_PATTERN = re.compile( + "[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}" +) +_VARIANT_KEY_PATTERN = re.compile("[A-Za-z0-9_-]+") + + +def _read_rule(value: Any, return_type: str) -> _Rule: + rule = _object(value, "rule") + rule_type = _string(rule, "rule_type") + if rule_type not in _FIELDS_BY_RULE_TYPE: + raise _malformed("rule_type") + _check_closed(rule, _FIELDS_BY_RULE_TYPE[rule_type], "rule") + rule_id = _string(rule, "id") + if not _RULE_ID_PATTERN.fullmatch(rule_id): + raise _malformed("rule.id") + rule_id = rule_id.lower() + if "description" in rule and not isinstance(rule["description"], str): + raise _malformed("description") + if "metadata" in rule and not isinstance(rule["metadata"], dict): + raise _malformed("metadata") + targeting = _read_targeting(_required(rule, "targeting")) + if rule_type == "targeted_release": + return _TargetedRelease(rule_id, targeting, _typed_value(rule, return_type)) + if rule_type == "percentage_rollout": + rollout = _read_rollout(rule) + return _PercentageRollout( + rule_id, targeting, _typed_value(rule, return_type), rollout + ) + paused = _required(rule, "paused") + if not isinstance(paused, bool): + raise _malformed("paused") + return _Experiment( + rule_id, + targeting, + paused, + _read_rollout(rule), + _read_variants(rule, return_type), + _read_holdout(rule["holdout"]) if "holdout" in rule else None, + ) + + +def _typed_value(mapping: Mapping[str, Any], return_type: str) -> Any: + value = _required(mapping, "value") + if not _VALUE_CHECKS[return_type](value): + raise _malformed("value") + return value + + +def _read_rollout(rule: Mapping[str, Any]) -> _Rollout: + if _string(rule, "assignment_algorithm") != _ASSIGNMENT_ALGORITHM: + raise _malformed("assignment_algorithm") + if "assign_by" in rule and rule["assign_by"] != "person": + raise _malformed("assign_by") + on_rollout_miss = _string(rule, "on_rollout_miss") + if on_rollout_miss not in ("continue", "return_default"): + raise _malformed("on_rollout_miss") + return _Rollout( + _percentage(rule, "rollout_percentage"), + on_rollout_miss == "return_default", + _seed(rule), + ) + + +def _percentage(mapping: Mapping[str, Any], field: str) -> float: + value = _required(mapping, field) + # A percentage has at most two decimals. + if not _is_number(value) or not 0 <= value <= 100 or round(value, 2) != value: + raise _malformed(field) + return value + + +def _seed(mapping: Mapping[str, Any]) -> str: + seed = _string(mapping, "seed") + if not 1 <= len(seed) <= _MAX_SEED_LENGTH: + raise _malformed("seed") + return seed + + +def _read_variants(rule: Mapping[str, Any], return_type: str) -> Tuple[_Variant, ...]: + items = _array(rule, "variants", _MAX_VARIANTS) + if len(items) < _MIN_VARIANTS: + raise _malformed("variants") + variants = tuple(_read_variant(item, return_type) for item in items) + if len({variant.key for variant in variants}) != len(variants): + raise _malformed("variant.key") + # Weights have two decimals, so whole hundredths add up exactly. + if sum(math.floor(variant.weight * 100 + 0.5) for variant in variants) != 10_000: + raise _malformed("variants") + return variants + + +def _read_variant(value: Any, return_type: str) -> _Variant: + variant = _object(value, "variant") + _check_closed(variant, _VARIANT_FIELDS, "variant") + key = _string(variant, "key") + if not _VARIANT_KEY_PATTERN.fullmatch(key): + raise _malformed("variant.key") + return _Variant( + key, _percentage(variant, "weight"), _typed_value(variant, return_type) + ) + + +def _read_holdout(value: Any) -> _Holdout: + holdout = _object(value, "holdout") + _check_closed(holdout, _HOLDOUT_FIELDS, "holdout") + return _Holdout(_seed(holdout), _percentage(holdout, "exclusion_percentage")) + + +def _read_targeting(value: Any) -> Tuple[_Predicate, ...]: + targeting = _object(value, "targeting") + _check_closed(targeting, _TARGETING_FIELDS, "targeting") + properties = _array(targeting, "properties", _MAX_PREDICATES) + return tuple(_read_predicate(item) for item in properties) + + +def _read_predicate(value: Any) -> _Predicate: + prop = _object(value, "property") + _check_closed(prop, _PROPERTY_FIELDS, "property") + property_type = _string(prop, "type") + if property_type in _UNSUPPORTED_PROPERTY_TYPES: + raise _unsupported("property.type") + if property_type != "person": + raise _malformed("property.type") + key = _string(prop, "key") + if key == "": + raise _malformed("property.key") + name = prop.get("operator") + if name is None: + name = "exact" + elif not isinstance(name, str) or name not in _OPERATORS: + raise _malformed("property.operator") + negation = prop.get("negation") + if negation is not None and not isinstance(negation, bool): + raise _malformed("property.negation") + _check_unread_fields(prop) + filter_value = prop.get("value") + return _Predicate( + key, name, filter_value, bool(negation), _read_operand(name, filter_value) + ) + + +def _check_unread_fields(prop: Mapping[str, Any]) -> None: + """Check the fields a person filter may carry but evaluation does not read.""" + if prop.get("group_type_index") is not None: + raise _malformed("property.group_type_index") + for field in ("cohort_name", "label"): + if not isinstance(prop.get(field), (str, type(None))): + raise _malformed("property.presentation") + names = prop.get("group_key_names") + if names is not None and not ( + isinstance(names, dict) + and all(isinstance(name, str) for name in names.values()) + ): + raise _malformed("property.group_key_names") + + +def _read_operand(name: str, value: Any) -> Any: + """Check a filter value against its operator, and read what the operator compares with.""" + if name in _NUMBER_COMPARISONS: + if isinstance(value, str) or _is_number(value): + # A string that is not a number is an evaluation error, not a parse error. + return _to_number(value) + elif name in _SEMVER_COMPARISONS or name in _SEMVER_RANGE_OPERATORS: + if isinstance(value, str): + return _read_semver_filter(name, value) + elif name in _DATE_COMPARISONS: + if isinstance(value, str): + return _read_date_filter(value) + elif name in _MULTI_TEXT_OPERATORS: + if isinstance(value, list): + return None + elif name in _REGEX_OPERATORS or name in _TEXT_OPERATORS: + if isinstance(value, str): + return None + else: + return None + raise _malformed("property.value") + + +# --- Evaluation ---------------------------------------------------------------------- + + +def _evaluate( + config: Union[_Config, _Unsupported], context: _Context, *, active: bool = True +) -> _Outcome: + """Evaluate a parsed flag for one person. + + ``active`` is the flag's own ``active`` field. An inactive flag has no value, with + the reason ``flag_disabled``. + """ + return _evaluate_with_hash(config, context, _draw, active=active) + + +def _evaluate_with_hash( + config: Union[_Config, _Unsupported], + context: _Context, + draw: Callable[[str, str, str], float], + *, + active: bool = True, +) -> _Outcome: + """Test seam: ``draw(use, seed, subject)`` replaces every hash an evaluation draws.""" + if not active: + return _Evaluated(None, "flag_disabled") + if isinstance(config, _Unsupported): + return config + draws = _Draws(context.identifier[:_MAX_IDENTIFIER_LENGTH], draw) + try: + for index, rule in enumerate(config.rules): + if not all(_matches(predicate, context) for predicate in rule.targeting): + continue + result = _apply_rule(rule, index, config.default_value, draws) + if result is not None: + return result + # The rollout missed and the rule says to continue. + except _Halt as halt: + return halt.outcome + except InconclusiveMatchError as error: + return _Inconclusive(error.reason, str(error)) + except UnicodeEncodeError: + return _Inconclusive( + UnresolvedFlagReason.MISSING_CONTEXT, + "The identifier is not valid Unicode, so it cannot be hashed", + ) + return _Evaluated(config.default_value, "no_rule_match") + + +def _apply_rule( + rule: _Rule, index: int, default_value: Any, draws: _Draws +) -> Optional[_Evaluated]: + """The result of a rule whose targeting matched, or ``None`` to try the next rule.""" + + def result( + reason: str, value: Any, variant_key: Optional[str] = None + ) -> _Evaluated: + return _Evaluated(value, reason, rule.id, rule.rule_type, index, variant_key) + + if isinstance(rule, _TargetedRelease): + return result("targeting_match", rule.value) + if isinstance(rule, _Experiment): + # A paused rule and a holdout are terminal whatever the rule says about a miss. + if rule.paused: + return result("experiment_paused", default_value) + holdout = rule.holdout + if holdout is not None and draws.includes( + "holdout", holdout.seed, holdout.exclusion_percentage + ): + return result("holdout", default_value) + rollout = rule.rollout + if draws.includes("rollout", rollout.seed, rollout.percentage): + if isinstance(rule, _PercentageRollout): + return result("targeting_match", rule.value) + variant = _select_variant(draws.draw("variant", rollout.seed), rule.variants) + return result("experiment_split", variant.value, variant.key) + if rollout.return_default_on_miss: + return result("rollout_miss", default_value) + return None + + +# --- Hashing ------------------------------------------------------------------------- + + +def _hash01(prefix: str, identifier: str, salt: str) -> float: + """The ``sha1_60_v1`` hash: the first 60 bits of a SHA-1 digest, scaled to 0..1.""" + digest = hashlib.sha1((prefix + identifier + salt).encode("utf-8")).hexdigest() + # Both operands are binary64 before the one division. + return float(int(digest[:15], 16)) / _HASH_SCALE + + +def _draw(use: str, seed: str, subject: str) -> float: + if use == "holdout": + # No ".": the seed is the whole prefix. + return _hash01(seed, subject, "") + return _hash01(seed + ".", subject, "variant" if use == "variant" else "") + + +def _in_rollout(percentage: float, draw: Callable[[], float]) -> bool: + """100 percent includes without hashing. Below it, the comparison is inclusive.""" + return percentage == 100 or draw() <= percentage / 100 + + +def _select_variant(hash01: float, variants: Tuple[_Variant, ...]) -> _Variant: + """Boundaries add left to right. Past the last one, the last variant wins.""" + boundary = 0.0 + for variant in variants: + boundary += variant.weight / 100 + if hash01 < boundary: + return variant + return variants[-1] + + +class _Draws: + """The hashes one evaluation draws for its subject.""" + + def __init__(self, subject: str, draw: Callable[[str, str, str], float]) -> None: + self._subject = subject + self._draw = draw + + def draw(self, use: str, seed: str) -> float: + return self._draw(use, seed, self._subject) + + def includes(self, use: str, seed: str, percentage: float) -> bool: + # An empty subject never enters a rollout or a holdout, so it is never hashed. + return self._subject != "" and _in_rollout( + percentage, lambda: self.draw(use, seed) + ) + + +# --- Property matching --------------------------------------------------------------- + + +def _matches(predicate: _Predicate, context: _Context) -> bool: + """Whether a predicate holds for the person, after its negation.""" + properties = context.properties + if properties is None: + raise _unusable_context("No person properties were passed") + present = predicate.key in properties + if not present and not context.properties_complete: + raise _unusable_context(f"The person property '{predicate.key}' was not passed") + # An invalid pattern is an error even when the person lacks the property, and + # negation does not turn it into a match. + if ( + predicate.operator in _REGEX_OPERATORS + and _compile_regex(predicate.value) is None + ): + raise _Halt( + _EvaluationError( + "invalid_regex", f"The pattern for '{predicate.key}' is not valid" + ) + ) + matched = _match_operator( + predicate, present, properties.get(predicate.key), context + ) + return matched != predicate.negation + + +def _match_operator( + predicate: _Predicate, present: bool, value: Any, context: _Context +) -> bool: + name = predicate.operator + if name in _PRESENCE_OPERATORS: + return present if name == "is_set" else not present + if predicate.value is None: + return False + if not present: + return name in _OPERATORS_MATCHING_ABSENCE + if name in _EXACT_OPERATORS: + matching_version = 2 if context.explicit_exact_matching else 1 + matched = _match_exact_property(predicate.value, value, matching_version) + return matched if name == "exact" else not matched + if name in _TEXT_OPERATORS: + return _match_text_property(name, predicate.value, value) + if name in _MULTI_TEXT_OPERATORS: + return _match_any_substring(predicate, value) + if name in _REGEX_OPERATORS: + text = _value_to_string(value, UnresolvedFlagReason.MISSING_CONTEXT) + found = bool(_match_regex(predicate.value, text)) + return found if name == "regex" else not found + if name in _NUMBER_COMPARISONS: + return _match_number(predicate, value) + if name in _DATE_COMPARISONS: + return _match_date(predicate, value, context) + return _match_semver(predicate, value) + + +def _match_any_substring(predicate: _Predicate, value: Any) -> bool: + text = _ascii_lower(value, UnresolvedFlagReason.MISSING_CONTEXT) + found = any( + _ascii_lower(item, UnresolvedFlagReason.UNSUPPORTED_DEFINITION) in text + for item in predicate.value + ) + return found if predicate.operator == "icontains_multi" else not found + + +def _match_number(predicate: _Predicate, value: Any) -> bool: + number = _to_number(value) + if number is None: + raise _invalid_property( + f"The person property '{predicate.key}' is not a number" + ) + if predicate.operand is None: + raise _invalid_property( + f"The filter value for '{predicate.key}' is not a number" + ) + return _NUMBER_COMPARISONS[predicate.operator](number, predicate.operand) + + +# The decimal numbers the reference reads from a string. Python's ``float`` also takes +# surrounding whitespace and underscores. +_NUMBER_PATTERN = re.compile( + r"[+-]?(?:inf|infinity|nan|(?:[0-9]+\.?[0-9]*|\.[0-9]+)(?:e[+-]?[0-9]+)?)", + re.IGNORECASE, +) + + +def _to_number(value: Any) -> Optional[float]: + """Read a JSON number or a numeric string as binary64, or ``None`` for anything else.""" + if isinstance(value, str): + return float(value) if _NUMBER_PATTERN.fullmatch(value) else None + if not _is_number(value): + if value is None or isinstance(value, (bool, list, dict)): + return None + raise _unusable_context( + f"A property value of type {type(value).__name__} is not a JSON value" + ) + if isinstance(value, float) and not math.isfinite(value): + raise _unusable_context("A property value is not a finite number") + try: + return float(value) + except OverflowError: + raise _unusable_context("A property value is too large to compare") from None + + +# --- Semantic versions --------------------------------------------------------------- +# +# The reference compares versions with full semantic version ordering, so a pre-release +# sorts below its release, and a range matches a pre-release only when the range names +# one for the same version. + +# What the reference trims from a version string: the Unicode White_Space characters. +# Python's str.strip() also trims U+001C to U+001F. +_WHITESPACE = "".join( + map( + chr, + [*range(0x09, 0x0E), 0x20, 0x85, 0xA0, 0x1680, *range(0x2000, 0x200B)] + + [0x2028, 0x2029, 0x202F, 0x205F, 0x3000], + ) +) +_INTEGER = "(?:0|[1-9][0-9]*)" +_PRE_RELEASE_PART = f"(?:{_INTEGER}|[0-9]*[A-Za-z-][0-9A-Za-z-]*)" +_PRE_RELEASE = rf"{_PRE_RELEASE_PART}(?:\.{_PRE_RELEASE_PART})*" +_BUILD = r"[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*" +_VERSION_PATTERN = re.compile( + rf"({_INTEGER})\.({_INTEGER})\.({_INTEGER})(?:-({_PRE_RELEASE}))?(?:\+({_BUILD}))?" +) +# A version requirement: a version that may end early, or in wildcard components. +_REQUIREMENT_PATTERN = re.compile( + rf"(?P{_INTEGER})" + rf"(?:(?P\.[xX*](?:\.[xX*])?)" + rf"|\.(?P{_INTEGER})" + rf"(?:(?P\.[xX*])" + rf"|\.(?P{_INTEGER})(?:-(?P
{_PRE_RELEASE}))?(?:\+{_BUILD})?)?)?"
+)
+_UNSIGNED_INTEGER_PATTERN = re.compile(r"\+?([0-9]+)")
+
+
+class _Version(NamedTuple):
+    major: int
+    minor: int
+    patch: int
+    pre: str
+    build: str
+
+
+class _Requirement(NamedTuple):
+    """A version range. ``minor`` and ``patch`` are ``None`` where any number matches."""
+
+    kind: str  # "tilde", "caret" or "wildcard"
+    major: int
+    minor: Optional[int]
+    patch: Optional[int]
+    pre: str
+
+
+def _is_u64(digits: str) -> bool:
+    digits = digits.lstrip("0")
+    return len(digits) <= 20 and int(digits or "0") <= _MAX_U64
+
+
+def _parse_version(text: str) -> Optional[_Version]:
+    """Read a version the way the reference does, or ``None`` when it is not one.
+
+    One leading ``v`` is dropped, a missing minor or patch number is zero, and leading
+    zeros of the three numbers are ignored.
+    """
+    match = _VERSION_PATTERN.fullmatch(_canonical_version(_trim_version(text)))
+    if match is None or not all(_is_u64(number) for number in match.group(1, 2, 3)):
+        return None
+    major, minor, patch = (int(number) for number in match.group(1, 2, 3))
+    return _Version(major, minor, patch, match.group(4) or "", match.group(5) or "")
+
+
+def _trim_version(text: str) -> str:
+    return (text[1:] if text.startswith("v") else text).strip(_WHITESPACE)
+
+
+def _canonical_version(version: str) -> str:
+    suffix = re.search("[-+]", version)
+    core = version[: suffix.start()] if suffix else version
+    parts = [_strip_leading_zeros(part) for part in core.split(".")]
+    parts += ["0"] * (3 - len(parts))
+    return ".".join(parts) + version[len(core) :]
+
+
+def _strip_leading_zeros(part: str) -> str:
+    if not re.fullmatch("[0-9]+", part):
+        return part
+    return part.lstrip("0") or "0"
+
+
+def _pre_release_key(pre: str) -> Tuple[Any, ...]:
+    """Order pre-releases: a release is above each of its pre-releases."""
+    if pre == "":
+        return (1,)
+    # A numeric part is below a text part, and numeric parts compare as numbers.
+    return (
+        0,
+        [
+            (0, len(part), part) if part.isdigit() else (1, part)
+            for part in pre.split(".")
+        ],
+    )
+
+
+def _build_key(build: str) -> List[Tuple[Any, ...]]:
+    parts: List[Tuple[Any, ...]] = []
+    for part in build.split("."):
+        if part == "" or part.isdigit():
+            digits = part.lstrip("0")
+            parts.append((0, len(digits), digits, len(part)))
+        else:
+            parts.append((1, part))
+    return parts
+
+
+def _version_key(version: _Version) -> Tuple[Any, ...]:
+    return (
+        version.major,
+        version.minor,
+        version.patch,
+        _pre_release_key(version.pre),
+        _build_key(version.build),
+    )
+
+
+def _read_semver_filter(name: str, text: str) -> Any:
+    """Read a semver filter value, or reject the document.
+
+    The result is the sort key of the version to compare with, or the range to match.
+    It is ``None`` for a wildcard that the configuration format admits but that is not
+    a range, such as ``1.2.3.*``. Evaluation reports that as an invalid property.
+
+    The format requires plain numbers before any pre-release suffix, so it does not
+    admit everything :func:`_parse_version` reads, such as a leading ``v``.
+    """
+    admitted = text.rstrip(".*") if name == "semver_wildcard" else text
+    parsed = _parse_version(admitted)
+    numbers = admitted.split("-")[0].split(".")[:3]
+    if parsed is None or not all(_is_plain_number(number) for number in numbers):
+        raise _malformed("property.value")
+    if name in _SEMVER_COMPARISONS:
+        return _version_key(parsed)
+    version = _trim_version(text)
+    if name == "semver_wildcard":
+        parts = (_strip_leading_zeros(part) for part in version.split("."))
+        # The reference writes "*" as "x", which is a letter inside a pre-release.
+        return _parse_requirement(".".join(parts).replace("*", "x"), None)
+    return _parse_requirement(_canonical_version(version), name[len("semver_") :])
+
+
+def _is_plain_number(text: str) -> bool:
+    number = _UNSIGNED_INTEGER_PATTERN.fullmatch(text.strip(_WHITESPACE))
+    return number is not None and _is_u64(number.group(1))
+
+
+def _parse_requirement(text: str, kind: Optional[str]) -> Optional[_Requirement]:
+    match = _REQUIREMENT_PATTERN.fullmatch(text)
+    if match is None:
+        return None
+    major, minor, patch = match.group("major", "minor", "patch")
+    if not all(_is_u64(number) for number in (major, minor, patch) if number):
+        return None
+    if kind is None:
+        # Without a wildcard the reference reads a bare version as a caret range.
+        wildcard = match.group("any_minor") or match.group("any_patch")
+        kind = "wildcard" if wildcard else "caret"
+    return _Requirement(
+        kind,
+        int(major),
+        int(minor) if minor else None,
+        int(patch) if patch else None,
+        match.group("pre") or "",
+    )
+
+
+def _match_semver(predicate: _Predicate, value: Any) -> bool:
+    text = _value_to_string(value, UnresolvedFlagReason.MISSING_CONTEXT)
+    version = _parse_version(text)
+    if version is None:
+        return False
+    if predicate.operator in _SEMVER_COMPARISONS:
+        compare = _SEMVER_COMPARISONS[predicate.operator]
+        return compare(_version_key(version), predicate.operand)
+    if predicate.operand is None:
+        raise _invalid_property(
+            f"The filter value for '{predicate.key}' is not a version range"
+        )
+    return _satisfies(version, predicate.operand)
+
+
+def _satisfies(version: _Version, requirement: _Requirement) -> bool:
+    if not _in_range(version, requirement):
+        return False
+    # A pre-release matches only a range that names a pre-release of the same version.
+    return version.pre == "" or (
+        requirement.pre != "" and version[:3] == requirement[1:4]
+    )
+
+
+def _in_range(version: _Version, requirement: _Requirement) -> bool:
+    kind, major, minor, patch, pre = requirement
+    if version.major != major:
+        return False
+    if kind == "wildcard":
+        return (
+            minor in (None, version.minor)
+            and patch in (None, version.patch)
+            and version.pre == pre
+        )
+    reached = _pre_release_key(version.pre) >= _pre_release_key(pre)
+    if kind == "tilde":
+        if minor is not None and version.minor != minor:
+            return False
+        if patch is not None and version.patch != patch:
+            return version.patch > patch
+        return reached
+    # A caret range keeps the leftmost number that is not zero.
+    if minor is None:
+        return True
+    if patch is None:
+        return version.minor >= minor if major > 0 else version.minor == minor
+    if major > 0:
+        if version.minor != minor:
+            return version.minor > minor
+        if version.patch != patch:
+            return version.patch > patch
+    elif minor > 0:
+        if version.minor != minor:
+            return False
+        if version.patch != patch:
+            return version.patch > patch
+    elif (version.minor, version.patch) != (minor, patch):
+        return False
+    return reached
+
+
+# --- Dates ---------------------------------------------------------------------------
+#
+# An instant is (seconds since the Unix epoch, nanoseconds). The reference compares
+# with nanosecond precision, which ``datetime`` does not have.
+
+_Instant = Tuple[int, int]
+
+_EPOCH_ORDINAL = datetime.date(1970, 1, 1).toordinal()
+# Epoch seconds that fall in the years 1 to 9999.
+_MIN_EPOCH_SECONDS = -62_135_596_800
+_MAX_EPOCH_SECONDS = 253_402_300_799
+_RELATIVE_DATE_PATTERN = re.compile("-?([0-9]+)([hdwmy])")
+_DATE_PATTERN = re.compile(
+    r"([0-9]{4})-([0-9]{2})-([0-9]{2})"
+    r"(?:(?P[T ])([0-9]{2}):([0-9]{2})"
+    r"(?::(?P[0-9]{2})(?:\.(?P[0-9]{1,9}))?)?"
+    r"(?PZ|[+-][0-9]{2}:[0-9]{2})?)?"
+)
+
+
+class _RelativeDate(NamedTuple):
+    """A date such as ``-7d``: seven days before now. The sign changes nothing."""
+
+    number: int
+    interval: str
+
+
+class _AbsoluteDate(NamedTuple):
+    wall_clock: datetime.datetime  # whole seconds, no timezone
+    nanoseconds: int
+    offset: Optional[int]  # seconds east of UTC; None means the project's timezone
+
+
+_Date = Union[_RelativeDate, _AbsoluteDate]
+
+
+def _parse_date(text: str) -> Optional[_Date]:
+    """Read a date in one of the forms this evaluator resolves exactly.
+
+    These are a relative date, an RFC 3339 timestamp, a bare ``YYYY-MM-DD`` date, and
+    a date and time without an offset. The reference reads more forms on a best-effort
+    basis, so ``None`` does not mean the reference cannot read the text.
+    """
+    relative = _RELATIVE_DATE_PATTERN.fullmatch(text)
+    if relative is not None:
+        digits = relative.group(1).lstrip("0")
+        if len(digits) > 4:
+            # 10,000 and above is not a relative date.
+            return None
+        return _RelativeDate(int(digits or "0"), relative.group(2))
+    match = _DATE_PATTERN.fullmatch(text)
+    if match is None:
+        return None
+    offset = _parse_offset(match.group("offset"))
+    if match.group("offset") is not None and (
+        offset is None
+        or match.group("separator") != "T"
+        or match.group("second") is None
+    ):
+        # A timestamp with an offset is RFC 3339 or nothing.
+        return None
+    year, month, day, hour, minute = (
+        int(part or 0) for part in match.group(1, 2, 3, 5, 6)
+    )
+    try:
+        wall_clock = datetime.datetime(
+            year, month, day, hour, minute, int(match.group("second") or 0)
+        )
+    except ValueError:
+        return None
+    fraction = match.group("fraction") or ""
+    return _AbsoluteDate(wall_clock, int(fraction.ljust(9, "0")), offset)
+
+
+def _parse_offset(text: Optional[str]) -> Optional[int]:
+    if text is None:
+        return None
+    if text == "Z":
+        return 0
+    hours, minutes = int(text[1:3]), int(text[4:6])
+    if hours > 23 or minutes > 59:
+        return None
+    seconds = hours * 3600 + minutes * 60
+    return -seconds if text[0] == "-" else seconds
+
+
+def _read_date_filter(text: str) -> _Date:
+    """Read a date filter value, or reject the document.
+
+    The configuration format does not admit a date and time joined by ``T`` without an
+    offset, although the reference would evaluate one.
+    """
+    date = _parse_date(text)
+    if date is None or (
+        isinstance(date, _AbsoluteDate) and date.offset is None and "T" in text
+    ):
+        raise _unsupported("property.value")
+    return date
+
+
+def _match_date(predicate: _Predicate, value: Any, context: _Context) -> bool:
+    subject = _property_instant(value, context)
+    if subject is None:
+        return False
+    target = _resolve_date(predicate.operand, context)
+    if target is None:
+        return False
+    return _DATE_COMPARISONS[predicate.operator](subject, target)
+
+
+def _property_instant(value: Any, context: _Context) -> Optional[_Instant]:
+    """The instant a person property holds, or ``None`` when it holds no date."""
+    if value is None or isinstance(value, (bool, list, dict)):
+        return None
+    if _is_number(value):
+        return _epoch_instant(value)
+    if not isinstance(value, str):
+        raise _unusable_context(
+            f"A property value of type {type(value).__name__} is not a JSON value"
+        )
+    # A number, also as a string, is Unix epoch seconds.
+    if _NUMBER_PATTERN.fullmatch(value):
+        return _epoch_instant(float(value))
+    date = _parse_date(value)
+    if date is not None:
+        return _resolve_date(date, context)
+    if not re.search("[0-9]", value):
+        return None
+    raise _unusable_context(
+        "The date property is in a form that needs the flags service to read"
+    )
+
+
+def _epoch_instant(value: Union[int, float]) -> _Instant:
+    if isinstance(value, float):
+        if not math.isfinite(value):
+            raise _unusable_context("A date property is not a finite number")
+        seconds = math.floor(value)
+        # The reference drops the fraction of a negative number.
+        nanoseconds = max(0, _round_half_up(math.fmod(value, 1.0) * 1e9))
+    else:
+        seconds, nanoseconds = value, 0
+    if (
+        not _MIN_EPOCH_SECONDS <= seconds <= _MAX_EPOCH_SECONDS
+        or nanoseconds >= 1_000_000_000
+    ):
+        raise _unusable_context("A date property is outside the supported range")
+    return (seconds, nanoseconds)
+
+
+def _round_half_up(value: float) -> int:
+    whole = math.floor(value)
+    return whole + 1 if value - whole >= 0.5 else whole
+
+
+def _resolve_date(date: _Date, context: _Context) -> Optional[_Instant]:
+    """The instant of a date, or ``None`` when its wall clock does not exist.
+
+    A wall clock that a spring-forward transition skips has no instant. One that a
+    fall-back transition repeats means its earlier instant.
+    """
+    if isinstance(date, _RelativeDate):
+        wall_clock = _relative_wall_clock(date, context)
+        nanoseconds = wall_clock.microsecond * 1000
+        return _local_instant(wall_clock.replace(microsecond=0), nanoseconds, context)
+    if date.offset is None:
+        return _local_instant(date.wall_clock, date.nanoseconds, context)
+    return _instant(date.wall_clock, date.nanoseconds, date.offset)
+
+
+def _timezone(context: _Context) -> datetime.tzinfo:
+    if context.timezone is None:
+        raise _unusable_context("The project's timezone is not known")
+    return context.timezone
+
+
+def _relative_wall_clock(date: _RelativeDate, context: _Context) -> datetime.datetime:
+    """Count back from now on the wall clock of the project's timezone.
+
+    A day is a calendar day there, not 24 hours. Months and years go back one at a
+    time, and each step clamps the day to the end of its month.
+    """
+    now = context.now or datetime.datetime.now(datetime.timezone.utc)
+    local = now.astimezone(_timezone(context)).replace(tzinfo=None)
+    moved: Optional[datetime.datetime]
+    try:
+        if date.interval == "m":
+            moved = _subtract_months(local, date.number)
+        elif date.interval == "y":
+            moved = _subtract_years(local, date.number)
+        else:
+            hours = date.number * {"h": 1, "d": 24, "w": 168}[date.interval]
+            moved = local - datetime.timedelta(hours=hours)
+    except OverflowError:
+        moved = None
+    if moved is None:
+        raise _unusable_context("A relative date is outside the supported range")
+    return moved
+
+
+def _local_instant(
+    wall_clock: datetime.datetime, nanoseconds: int, context: _Context
+) -> Optional[_Instant]:
+    timezone = _timezone(context)
+    first = wall_clock.replace(tzinfo=timezone, fold=0).utcoffset()
+    second = wall_clock.replace(tzinfo=timezone, fold=1).utcoffset()
+    if first is None or second is None:
+        raise _unusable_context("The project's timezone has no UTC offset")
+    if first < second:
+        # The offset grows across a spring-forward gap, so this wall clock is in one.
+        return None
+    return _instant(wall_clock, nanoseconds, int(first.total_seconds()))
+
+
+def _instant(wall_clock: datetime.datetime, nanoseconds: int, offset: int) -> _Instant:
+    days = wall_clock.toordinal() - _EPOCH_ORDINAL
+    seconds = wall_clock.hour * 3600 + wall_clock.minute * 60 + wall_clock.second
+    return (days * 86_400 + seconds - offset, nanoseconds)
diff --git a/posthog/test/fixtures/feature_flag_rules_v2/SOURCE.json b/posthog/test/fixtures/feature_flag_rules_v2/SOURCE.json
index 8274761b1..7817188cd 100644
--- a/posthog/test/fixtures/feature_flag_rules_v2/SOURCE.json
+++ b/posthog/test/fixtures/feature_flag_rules_v2/SOURCE.json
@@ -1,8 +1,8 @@
 {
   "description": "Copied unchanged from the released feature flag rules v2 contract in PostHog/posthog-sdk-test-harness. Do not edit these files; copy a newer release instead.",
   "repository": "https://github.com/PostHog/posthog-sdk-test-harness",
-  "release": "1.30.0",
-  "revision": "6414114501396d96aadf2412fdd8054a03076782",
+  "release": "1.31.1",
+  "revision": "003d4162421193b458bbaa93fbb7bb0d0104bc3b",
   "contract_directory": "contracts/feature_flag_rules_v2",
   "contract_version": "10.0.0",
   "files": {
@@ -22,6 +22,18 @@
       "source_path": "corpus/v2_value_evaluation.json",
       "sha256": "aaddd05e47fc5a4ae07ea42ada5a659798f4b5fc8d0c0827f6a68e4daf68c128"
     },
+    "v2_boolean_evaluation.json": {
+      "source_path": "corpus/v2_boolean_evaluation.json",
+      "sha256": "2d2a4be5f7185445f6d6593533fe105e436bade1becc3e3b15ff380a8da477bb"
+    },
+    "v2_experiment_evaluation.json": {
+      "source_path": "corpus/v2_experiment_evaluation.json",
+      "sha256": "5d6049002aefa7b41b456dba6f2298ae61907e3ee49f0306e120bf075e0058f6"
+    },
+    "hash_sha1_60_v1.json": {
+      "source_path": "corpus/hash_sha1_60_v1.json",
+      "sha256": "e9bea9cff58bac0c6c1021e9c8842c53594055b6874a2c58bc4350d0c28a93ca"
+    },
     "feature_flag_called_context.schema.json": {
       "source_path": "schemas/feature_flag_called_context.schema.json",
       "sha256": "8a475f5ab56ba4dba76501c4a4e23f26b62c2c2f8037f23d21d0ea7650bd2cf8"
diff --git a/posthog/test/fixtures/feature_flag_rules_v2/hash_sha1_60_v1.json b/posthog/test/fixtures/feature_flag_rules_v2/hash_sha1_60_v1.json
new file mode 100644
index 000000000..21ddff653
--- /dev/null
+++ b/posthog/test/fixtures/feature_flag_rules_v2/hash_sha1_60_v1.json
@@ -0,0 +1,660 @@
+{
+  "corpus_version": "1.1.0",
+  "algorithm": "sha1_60_v1",
+  "definition": {
+    "input": "UTF-8 bytes of prefix + identifier + salt concatenated with no separator and no escaping.",
+    "identifier_truncation": "Resolved identifiers are truncated to the first 200 Unicode scalar values before hashing. Bytes and UTF-16 code units are not the unit.",
+    "group_key_normalization": "Group keys that are JSON safe integers normalize to ordinary decimal strings. No Unicode normalization is applied to any identifier.",
+    "digest": "SHA-1 of the input bytes.",
+    "n": "The unsigned integer represented by the first 15 hexadecimal digest characters, equal to the first 60 digest bits. It is recorded as a decimal string because it exceeds the safe integer range of JSON consumers.",
+    "scale": "0xFFFFFFFFFFFFFFF, which is 2^60 - 1.",
+    "hash01": "binary64(n) / binary64(scale) using one IEEE-754 round-to-nearest-even division. binary64(scale) is exactly 2^60. Rounding the exact rational quotient once can differ in the last bit; vectors that differ record that alternative under hash01_if_quotient_rounded_once and it is not the contract value.",
+    "rollout": "rollout_percentage of 100 includes every identifier without hashing. Otherwise the identifier is included when hash01 <= rollout_percentage / 100, with the division performed in binary64.",
+    "holdout": "Legacy-era holdout membership uses prefix holdout-, an empty salt, and the same comparison as rollout against exclusion_percentage.",
+    "variant": "Each variant boundary is the previous boundary plus rollout_percentage / 100, accumulated left to right in binary64 in stored order. The first variant whose boundary satisfies hash01 < boundary is selected.",
+    "final_variant_fallback": "When no boundary satisfies the comparison, version 1 returns no variant and version 2 selects the final variant.",
+    "empty_identifier": "The hash arithmetic applied to an empty identifier hashes the prefix alone when the salt is empty, or the prefix plus salt otherwise. The version 1 Rust reference evaluator short-circuits rollout and variant hashing to 0.0 for an empty identifier and hashes the prefix alone only for holdouts. Version 2 never enters rollout, holdout, or variant assignment with an empty identifier, including at 100 percent.",
+    "salts": {
+      "rollout": "",
+      "variant": "variant",
+      "holdout": ""
+    },
+    "prefixes": {
+      "v1_rollout_and_variant": "flag key followed by a dot",
+      "v2_rollout_and_variant": "seed followed by a dot",
+      "legacy_era_holdout": "holdout-"
+    }
+  },
+  "vectors": [
+    {
+      "id": "hash.rollout.ascii_division_edge",
+      "purpose": "Ordinary rollout input whose quotient rounds differently when both operands convert to binary64 first.",
+      "prefix": "beta-search.",
+      "identifier": "user-17",
+      "salt": "",
+      "input": "beta-search.user-17",
+      "input_utf8_hex": "626574612d7365617263682e757365722d3137",
+      "sha1_hex": "02547515f0f76d52dc6ef8a6d021cde30b790da7",
+      "first_15_hex": "02547515f0f76d5",
+      "n": "10492988951066325",
+      "hash01": 0.009101217133290002,
+      "hash01_binary64_hex": "3f82a3a8af87bb6a",
+      "hash01_if_quotient_rounded_once": 0.009101217133290004,
+      "hash01_if_quotient_rounded_once_binary64_hex": "3f82a3a8af87bb6b",
+      "rollout_checks": [
+        {
+          "rollout_percentage": 0,
+          "threshold": 0.0,
+          "included": false
+        },
+        {
+          "rollout_percentage": 1,
+          "threshold": 0.01,
+          "included": true
+        },
+        {
+          "rollout_percentage": 25.5,
+          "threshold": 0.255,
+          "included": true
+        },
+        {
+          "rollout_percentage": 100,
+          "threshold": 1.0,
+          "included": true,
+          "short_circuit": true
+        }
+      ]
+    },
+    {
+      "id": "hash.rollout.ascii_excluded",
+      "purpose": "Rollout input just above a 28 percent threshold and just below a 29 percent threshold.",
+      "prefix": "beta-search-rollout.",
+      "identifier": "user-105",
+      "salt": "",
+      "input": "beta-search-rollout.user-105",
+      "input_utf8_hex": "626574612d7365617263682d726f6c6c6f75742e757365722d313035",
+      "sha1_hex": "48fe3fe11eaff7b8ffd4c3925d7ba32a2c34f1ce",
+      "first_15_hex": "48fe3fe11eaff7b",
+      "n": "328731978183147387",
+      "hash01": 0.2851295399293007,
+      "hash01_binary64_hex": "3fd23f8ff847abfe",
+      "rollout_checks": [
+        {
+          "rollout_percentage": 25.5,
+          "threshold": 0.255,
+          "included": false
+        },
+        {
+          "rollout_percentage": 28,
+          "threshold": 0.28,
+          "included": false
+        },
+        {
+          "rollout_percentage": 29,
+          "threshold": 0.29,
+          "included": true
+        }
+      ]
+    },
+    {
+      "id": "hash.variant.ascii",
+      "purpose": "Variant input with the literal salt appended after the identifier.",
+      "prefix": "checkout-layout.",
+      "identifier": "user-61",
+      "salt": "variant",
+      "input": "checkout-layout.user-61variant",
+      "input_utf8_hex": "636865636b6f75742d6c61796f75742e757365722d363176617269616e74",
+      "sha1_hex": "91e010d6e11120222c2b2541f8056a8b965d5efd",
+      "first_15_hex": "91e010d6e111202",
+      "n": "656963752835486210",
+      "hash01": 0.5698252224547713,
+      "hash01_binary64_hex": "3fe23c021adc2224",
+      "variant_check": {
+        "variants": [
+          {
+            "key": "control",
+            "rollout_percentage": 50
+          },
+          {
+            "key": "compact",
+            "rollout_percentage": 25
+          },
+          {
+            "key": "spacious",
+            "rollout_percentage": 25
+          }
+        ],
+        "cumulative_boundaries": [
+          0.5,
+          0.75,
+          1.0
+        ],
+        "selected": "compact"
+      }
+    },
+    {
+      "id": "hash.holdout.literal_prefix",
+      "purpose": "Legacy-era holdout input uses the literal prefix holdout- with no dot separator and no salt.",
+      "prefix": "holdout-",
+      "identifier": "user-31",
+      "salt": "",
+      "input": "holdout-user-31",
+      "input_utf8_hex": "686f6c646f75742d757365722d3331",
+      "sha1_hex": "04fc4895fdca19f473ef6ac6cd7b3534c3e897d5",
+      "first_15_hex": "04fc4895fdca19f",
+      "n": "22452617458000287",
+      "hash01": 0.0194745413007599,
+      "hash01_binary64_hex": "3f93f12257f72868",
+      "holdout_checks": [
+        {
+          "exclusion_percentage": 10,
+          "threshold": 0.1,
+          "member": true
+        },
+        {
+          "exclusion_percentage": 1,
+          "threshold": 0.01,
+          "member": false
+        },
+        {
+          "exclusion_percentage": 100,
+          "threshold": 1.0,
+          "member": true,
+          "short_circuit": true
+        }
+      ]
+    },
+    {
+      "id": "hash.concatenation.no_separator_escaping",
+      "purpose": "Prefix, identifier, and salt concatenate as plain UTF-8 with no escaping, even when they contain dots.",
+      "prefix": "release.v2.",
+      "identifier": "a.b",
+      "salt": "variant",
+      "input": "release.v2.a.bvariant",
+      "input_utf8_hex": "72656c656173652e76322e612e6276617269616e74",
+      "sha1_hex": "c3605430acad3c22ec778899eb9e577d59032dea",
+      "first_15_hex": "c3605430acad3c2",
+      "n": "879896562699523010",
+      "hash01": 0.7631886118730806,
+      "hash01_binary64_hex": "3fe86c0a861595a8"
+    },
+    {
+      "id": "hash.identifier.empty",
+      "purpose": "The hash arithmetic applied to an empty identifier hashes the prefix alone when the salt is empty, or the prefix plus salt otherwise. The version 1 Rust reference evaluator short-circuits rollout and variant hashing to 0.0 for an empty identifier and hashes the prefix alone only for holdouts. Version 2 never enters rollout, holdout, or variant assignment with an empty identifier, including at 100 percent.",
+      "prefix": "beta-search.",
+      "identifier": "",
+      "salt": "",
+      "input": "beta-search.",
+      "input_utf8_hex": "626574612d7365617263682e",
+      "sha1_hex": "9f06c3435db4fc81881a8f50a9f1b58a465ba5f6",
+      "first_15_hex": "9f06c3435db4fc8",
+      "n": "716191312249573320",
+      "hash01": 0.6211969413249854,
+      "hash01_binary64_hex": "3fe3e0d8686bb6a0",
+      "identifier_empty": true,
+      "v2_rule": "empty_identifier_never_enters_rollout"
+    },
+    {
+      "id": "hash.identifier.unicode_utf8",
+      "purpose": "Non-ASCII identifiers hash their UTF-8 bytes with no Unicode normalization.",
+      "prefix": "beta-search.",
+      "identifier": "ünïcødé-😀",
+      "salt": "",
+      "input": "beta-search.ünïcødé-😀",
+      "input_utf8_hex": "626574612d7365617263682ec3bc6ec3af63c3b864c3a92df09f9880",
+      "sha1_hex": "bdd4564f8af8aaeea949f8f15e2b34613dabda56",
+      "first_15_hex": "bdd4564f8af8aae",
+      "n": "854915804241562286",
+      "hash01": 0.7415212578007152,
+      "hash01_binary64_hex": "3fe7ba8ac9f15f15",
+      "rollout_checks": [
+        {
+          "rollout_percentage": 50,
+          "threshold": 0.5,
+          "included": false
+        }
+      ]
+    },
+    {
+      "id": "hash.identifier.truncated_ascii",
+      "purpose": "Identifiers longer than 200 Unicode scalar values are truncated to the first 200 before hashing.",
+      "prefix": "beta-search.",
+      "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+      "salt": "",
+      "input": "beta-search.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+      "input_utf8_hex": "626574612d7365617263682e6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161",
+      "sha1_hex": "1b8416aab94af161be4c63449a6f4075192bc570",
+      "first_15_hex": "1b8416aab94af16",
+      "n": "123920916153675542",
+      "hash01": 0.10748426120816724,
+      "hash01_binary64_hex": "3fbb8416aab94af1",
+      "identifier_before_truncation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+      "identifier_before_truncation_scalar_values": 205,
+      "identifier_scalar_values": 200,
+      "identifier_utf8_bytes": 200,
+      "identifier_utf16_code_units": 200
+    },
+    {
+      "id": "hash.identifier.truncated_scalar_values",
+      "purpose": "Truncation counts Unicode scalar values: the 200th value is a non-BMP character, which a UTF-16 code unit slice or a byte slice would split.",
+      "prefix": "beta-search.",
+      "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀",
+      "salt": "",
+      "input": "beta-search.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀",
+      "input_utf8_hex": "626574612d7365617263682e61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161f09f9880",
+      "sha1_hex": "a0ea6b953860b06b72512954d56751650e87aae3",
+      "first_15_hex": "a0ea6b953860b06",
+      "n": "724699904953682694",
+      "hash01": 0.6285769690806571,
+      "hash01_binary64_hex": "3fe41d4d72a70c16",
+      "identifier_before_truncation": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa😀bbbbbbbbbb",
+      "identifier_before_truncation_scalar_values": 210,
+      "identifier_scalar_values": 200,
+      "identifier_utf8_bytes": 203,
+      "identifier_utf16_code_units": 201
+    },
+    {
+      "id": "hash.identifier.exactly_200_multibyte",
+      "purpose": "An identifier of exactly 200 scalar values is not truncated even though it is 400 UTF-8 bytes.",
+      "prefix": "beta-search.",
+      "identifier": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",
+      "salt": "",
+      "input": "beta-search.éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",
+      "input_utf8_hex": "626574612d7365617263682ec3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9c3a9",
+      "sha1_hex": "6963dfbb1a9856a6c8997cd4a98b1847fb4f30a4",
+      "first_15_hex": "6963dfbb1a9856a",
+      "n": "474634961960928618",
+      "hash01": 0.41168020551649087,
+      "hash01_binary64_hex": "3fda58f7eec6a616",
+      "identifier_before_truncation": "éééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééééé",
+      "identifier_before_truncation_scalar_values": 200,
+      "identifier_scalar_values": 200,
+      "identifier_utf8_bytes": 400,
+      "identifier_utf16_code_units": 200
+    },
+    {
+      "id": "hash.identifier.integer_group_key",
+      "purpose": "A JSON number group key 42 normalizes to the decimal string 42 before hashing.",
+      "prefix": "org-dashboard.",
+      "identifier": "42",
+      "salt": "",
+      "input": "org-dashboard.42",
+      "input_utf8_hex": "6f72672d64617368626f6172642e3432",
+      "sha1_hex": "9988fe571337916302049584762d1ecf2e589d1a",
+      "first_15_hex": "9988fe571337916",
+      "n": "691460758410852630",
+      "hash01": 0.5997466051660167,
+      "hash01_binary64_hex": "3fe3311fcae266f2",
+      "rollout_checks": [
+        {
+          "rollout_percentage": 60,
+          "threshold": 0.6,
+          "included": true
+        },
+        {
+          "rollout_percentage": 59,
+          "threshold": 0.59,
+          "included": false
+        }
+      ],
+      "identifier_source": {
+        "json_group_key": 42
+      }
+    }
+  ],
+  "threshold_vectors": [
+    {
+      "id": "threshold.equal_is_included",
+      "hash01": 0.5,
+      "rollout_percentage": 50,
+      "threshold": 0.5,
+      "included": true,
+      "note": "hash01 equal to the threshold is included because the comparison is less than or equal."
+    },
+    {
+      "id": "threshold.next_binary64_above_is_excluded",
+      "hash01": 0.5000000000000001,
+      "rollout_percentage": 50,
+      "threshold": 0.5,
+      "included": false,
+      "note": "The next binary64 value above the threshold is excluded."
+    },
+    {
+      "id": "threshold.zero_percent_zero_hash",
+      "hash01": 0.0,
+      "rollout_percentage": 0,
+      "threshold": 0.0,
+      "included": true,
+      "note": "Zero percent has no special case; only a hash01 of exactly zero satisfies the comparison."
+    },
+    {
+      "id": "threshold.zero_percent_smallest_hash",
+      "hash01": 8.673617379884035e-19,
+      "rollout_percentage": 0,
+      "threshold": 0.0,
+      "included": false,
+      "note": "The smallest nonzero hash01 is excluded at zero percent."
+    },
+    {
+      "id": "threshold.hundred_percent_short_circuit",
+      "hash01": 1.0,
+      "rollout_percentage": 100,
+      "threshold": 1.0,
+      "included": true,
+      "short_circuit": true,
+      "note": "One hundred percent includes every identifier without computing a hash."
+    },
+    {
+      "id": "threshold.two_decimal_division_equal",
+      "hash01": 0.33340000000000003,
+      "rollout_percentage": 33.34,
+      "threshold": 0.33340000000000003,
+      "included": true,
+      "note": "The threshold is the binary64 quotient rollout_percentage / 100, which differs from the parsed decimal literal 0.3334.",
+      "parsed_decimal_literal": 0.3334
+    },
+    {
+      "id": "threshold.two_decimal_division_excluded",
+      "hash01": 0.6667000000000002,
+      "rollout_percentage": 66.67,
+      "threshold": 0.6667000000000001,
+      "included": false,
+      "note": "The next binary64 value above the 66.67 quotient is excluded."
+    },
+    {
+      "id": "threshold.two_decimal_division_included_below_quotient",
+      "hash01": 0.999,
+      "rollout_percentage": 99.9,
+      "threshold": 0.9990000000000001,
+      "included": true,
+      "note": "The parsed literal 0.999 is below the 99.9 quotient and is included.",
+      "parsed_decimal_literal": 0.999
+    }
+  ],
+  "variant_vectors": [
+    {
+      "id": "variant.zero_hash_first_variant",
+      "hash01": 0.0,
+      "note": "A hash01 of zero selects the first variant.",
+      "variants": [
+        {
+          "key": "control",
+          "rollout_percentage": 50
+        },
+        {
+          "key": "test",
+          "rollout_percentage": 50
+        }
+      ],
+      "cumulative_boundaries": [
+        0.5,
+        1.0
+      ],
+      "selected": "control"
+    },
+    {
+      "id": "variant.boundary_is_exclusive",
+      "hash01": 0.5,
+      "note": "A hash01 equal to a cumulative boundary belongs to the next variant because the comparison is strictly less than.",
+      "variants": [
+        {
+          "key": "control",
+          "rollout_percentage": 50
+        },
+        {
+          "key": "test",
+          "rollout_percentage": 50
+        }
+      ],
+      "cumulative_boundaries": [
+        0.5,
+        1.0
+      ],
+      "selected": "test"
+    },
+    {
+      "id": "variant.just_below_boundary",
+      "hash01": 0.49999999999999994,
+      "note": "The largest binary64 value below the first boundary selects the first variant.",
+      "variants": [
+        {
+          "key": "control",
+          "rollout_percentage": 50
+        },
+        {
+          "key": "test",
+          "rollout_percentage": 50
+        }
+      ],
+      "cumulative_boundaries": [
+        0.5,
+        1.0
+      ],
+      "selected": "control"
+    },
+    {
+      "id": "variant.accumulated_boundary_left_to_right",
+      "hash01": 0.3,
+      "note": "Boundaries accumulate left to right in binary64, so the second boundary is 0.30000000000000004 and a hash01 of 0.3 still selects the second variant.",
+      "variants": [
+        {
+          "key": "ten",
+          "rollout_percentage": 10
+        },
+        {
+          "key": "twenty",
+          "rollout_percentage": 20
+        },
+        {
+          "key": "thirty",
+          "rollout_percentage": 30
+        },
+        {
+          "key": "forty",
+          "rollout_percentage": 40
+        }
+      ],
+      "cumulative_boundaries": [
+        0.1,
+        0.30000000000000004,
+        0.6000000000000001,
+        1.0
+      ],
+      "selected": "twenty",
+      "parsed_decimal_literal_boundary": 0.3
+    },
+    {
+      "id": "variant.accumulated_boundary_third",
+      "hash01": 0.6,
+      "note": "The third accumulated boundary is 0.6000000000000001, so a hash01 of 0.6 selects the third variant.",
+      "variants": [
+        {
+          "key": "ten",
+          "rollout_percentage": 10
+        },
+        {
+          "key": "twenty",
+          "rollout_percentage": 20
+        },
+        {
+          "key": "thirty",
+          "rollout_percentage": 30
+        },
+        {
+          "key": "forty",
+          "rollout_percentage": 40
+        }
+      ],
+      "cumulative_boundaries": [
+        0.1,
+        0.30000000000000004,
+        0.6000000000000001,
+        1.0
+      ],
+      "selected": "thirty",
+      "parsed_decimal_literal_boundary": 0.6
+    },
+    {
+      "id": "variant.two_decimal_weights_boundary",
+      "hash01": 0.6666,
+      "note": "Two-decimal weights accumulate to 0.3333, 0.6666, and exactly 1.0; a hash01 equal to the second boundary selects the third variant.",
+      "variants": [
+        {
+          "key": "a",
+          "rollout_percentage": 33.33
+        },
+        {
+          "key": "b",
+          "rollout_percentage": 33.33
+        },
+        {
+          "key": "c",
+          "rollout_percentage": 33.34
+        }
+      ],
+      "cumulative_boundaries": [
+        0.3333,
+        0.6666,
+        1.0
+      ],
+      "selected": "c"
+    },
+    {
+      "id": "variant.hash_one_off_the_end",
+      "hash01": 1.0,
+      "note": "A hash01 of exactly 1.0 is beyond the final boundary. Version 1 returns no variant, which projects as boolean true. Version 2 selects the final variant.",
+      "variants": [
+        {
+          "key": "control",
+          "rollout_percentage": 50
+        },
+        {
+          "key": "test",
+          "rollout_percentage": 50
+        }
+      ],
+      "cumulative_boundaries": [
+        0.5,
+        1.0
+      ],
+      "selected": null,
+      "v1_result": "no_variant_boolean_true",
+      "v2_rule": "final_variant_fallback",
+      "v2_selected": "test"
+    },
+    {
+      "id": "variant.sum_below_one_off_the_end",
+      "hash01": 0.9999999999999999,
+      "note": "Weights that sum to exactly 100 can accumulate to 0.9999999999999999 in binary64, so a hash01 of 0.9999999999999999 is beyond the final boundary.",
+      "variants": [
+        {
+          "key": "a",
+          "rollout_percentage": 1.01
+        },
+        {
+          "key": "b",
+          "rollout_percentage": 10.02
+        },
+        {
+          "key": "c",
+          "rollout_percentage": 88.97
+        }
+      ],
+      "cumulative_boundaries": [
+        0.0101,
+        0.1103,
+        0.9999999999999999
+      ],
+      "selected": null,
+      "v1_result": "no_variant_boolean_true",
+      "v2_rule": "final_variant_fallback",
+      "v2_selected": "c"
+    }
+  ],
+  "seed_parity": [
+    {
+      "id": "parity.rollout_identical_bytes",
+      "flag_key": "beta-search",
+      "identifier": "user-17",
+      "salt": "",
+      "v1_input": "beta-search.user-17",
+      "v2": {
+        "seed": "beta-search",
+        "prefix": "beta-search.",
+        "identifier": "user-17",
+        "salt": "",
+        "input": "beta-search.user-17"
+      },
+      "identical_bytes": true,
+      "identical_outcome": true,
+      "hash01": 0.009101217133290002,
+      "note": "Conversion sets seed = flag key, so the v2 rollout input is byte-identical to the v1 input."
+    },
+    {
+      "id": "parity.variant_identical_bytes",
+      "flag_key": "checkout-layout",
+      "identifier": "user-61",
+      "salt": "variant",
+      "v1_input": "checkout-layout.user-61variant",
+      "v2": {
+        "seed": "checkout-layout",
+        "prefix": "checkout-layout.",
+        "identifier": "user-61",
+        "salt": "variant",
+        "input": "checkout-layout.user-61variant"
+      },
+      "identical_bytes": true,
+      "identical_outcome": true,
+      "hash01": 0.5698252224547713,
+      "note": "The variant salt is unchanged by conversion."
+    },
+    {
+      "id": "parity.holdout_identical_bytes",
+      "flag_key": "checkout-experiment",
+      "identifier": "user-31",
+      "salt": "",
+      "v1_input": "holdout-user-31",
+      "v2": {
+        "seed": "holdout-",
+        "prefix": "holdout-",
+        "identifier": "user-31",
+        "salt": "",
+        "input": "holdout-user-31"
+      },
+      "identical_bytes": true,
+      "identical_outcome": true,
+      "hash01": 0.0194745413007599,
+      "note": "The legacy-era holdout seed is the literal holdout- prefix in both versions."
+    },
+    {
+      "id": "parity.empty_identifier_divergent",
+      "flag_key": "beta-search",
+      "identifier": "",
+      "salt": "",
+      "v1_input": "beta-search.",
+      "v2": {
+        "seed": "beta-search",
+        "prefix": "beta-search.",
+        "identifier": "",
+        "salt": "",
+        "input": "beta-search."
+      },
+      "identical_bytes": true,
+      "identical_outcome": false,
+      "hash01": 0.6211969413249854,
+      "divergence": "empty_identifier",
+      "note": "The recorded arithmetic inputs have identical bytes; hash01 describes prefix-alone hashing, not the version 1 rollout outcome. The hash arithmetic applied to an empty identifier hashes the prefix alone when the salt is empty, or the prefix plus salt otherwise. The version 1 Rust reference evaluator short-circuits rollout and variant hashing to 0.0 for an empty identifier and hashes the prefix alone only for holdouts. Version 2 never enters rollout, holdout, or variant assignment with an empty identifier, including at 100 percent."
+    },
+    {
+      "id": "parity.final_variant_fallback_divergent",
+      "flag_key": "checkout-layout",
+      "identifier": null,
+      "salt": "variant",
+      "hash01": 1.0,
+      "identical_bytes": true,
+      "identical_outcome": false,
+      "divergence": "final_variant_fallback",
+      "note": "White-box hash01 of 1.0. Version 1 returns no variant and projects boolean true; version 2 selects the final variant. See variant.hash_one_off_the_end."
+    }
+  ]
+}
diff --git a/posthog/test/fixtures/feature_flag_rules_v2/v2_boolean_evaluation.json b/posthog/test/fixtures/feature_flag_rules_v2/v2_boolean_evaluation.json
new file mode 100644
index 000000000..54a00bb28
--- /dev/null
+++ b/posthog/test/fixtures/feature_flag_rules_v2/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/posthog/test/fixtures/feature_flag_rules_v2/v2_experiment_evaluation.json b/posthog/test/fixtures/feature_flag_rules_v2/v2_experiment_evaluation.json
new file mode 100644
index 000000000..653499904
--- /dev/null
+++ b/posthog/test/fixtures/feature_flag_rules_v2/v2_experiment_evaluation.json
@@ -0,0 +1,4267 @@
+{
+  "corpus_version": "1.0.0",
+  "config_version": 2,
+  "description": "Ordered evaluation of experiment rules: pause, holdout, rollout and weighted variant assignment. Each case takes the flag and context from defaults, with the context fields it sets replacing the defaults. Expected terminal fields are exhaustive. Hash evidence lists every hash an evaluation draws. White-box rows replace every drawn hash through a private seam; parser rows run at the parser boundary.",
+  "defaults": {
+    "flag": {
+      "key": "example-display-key",
+      "name": "Example display name",
+      "active": true,
+      "deleted": false,
+      "requested": true
+    },
+    "context": {
+      "identifier": "person-example",
+      "properties": {
+        "plan": "pro"
+      },
+      "properties_complete": true,
+      "timezone": "UTC",
+      "explicit_exact_matching": true,
+      "now": "2024-03-31T12:00:00Z"
+    }
+  },
+  "cases": [
+    {
+      "id": "v2_experiment.ordering.split",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.paused",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": true,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "experiment_paused",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.paused_before_holdout",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": true,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 100
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "experiment_paused",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.paused_targeting_miss",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": [
+                {
+                  "key": "plan",
+                  "type": "person",
+                  "operator": "exact",
+                  "value": [
+                    "free"
+                  ]
+                }
+              ]
+            },
+            "paused": true,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": []
+            },
+            "value": "targeted"
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "targeted",
+        "reason": "targeting_match",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "targeted_release",
+          "index": 1
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.paused_before_rollout_miss",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": true,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": []
+            },
+            "value": "targeted"
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "experiment_paused",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.holdout",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 100
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.holdout_terminal_with_continue",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 100
+            }
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": []
+            },
+            "value": "targeted"
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.holdout_before_rollout_miss",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 100
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.holdout_zero",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 0
+            }
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "holdout",
+          "prefix": "example-holdout",
+          "identifier": "person-1",
+          "salt": "",
+          "hash01_binary64_hex": "3fe24fd81440038d"
+        },
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.miss_return_default",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "rollout_miss",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-example",
+          "salt": "",
+          "hash01_binary64_hex": "3fe764346e739613"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.miss_continue",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": []
+            },
+            "value": "targeted"
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "targeted",
+        "reason": "targeting_match",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "targeted_release",
+          "index": 1
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-example",
+          "salt": "",
+          "hash01_binary64_hex": "3fe764346e739613"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.miss_continue_exhausted",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "no_rule_match"
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-example",
+          "salt": "",
+          "hash01_binary64_hex": "3fe764346e739613"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.targeted_above",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": [
+                {
+                  "key": "plan",
+                  "type": "person",
+                  "operator": "exact",
+                  "value": [
+                    "pro"
+                  ]
+                }
+              ]
+            },
+            "value": "targeted"
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "targeted",
+        "reason": "targeting_match",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "targeted_release",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.targeted_miss_above",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": [
+                {
+                  "key": "plan",
+                  "type": "person",
+                  "operator": "exact",
+                  "value": [
+                    "free"
+                  ]
+                }
+              ]
+            },
+            "value": "targeted"
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "experiment",
+          "index": 1
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.percentage_miss_above",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "percentage_rollout",
+            "targeting": {
+              "properties": []
+            },
+            "value": "percentage",
+            "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": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "experiment",
+          "index": 1
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-allocation.",
+          "identifier": "person-3",
+          "salt": "",
+          "hash01_binary64_hex": "3fea7299131c6108"
+        },
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.second_experiment_rule",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": [
+                {
+                  "key": "plan",
+                  "type": "person",
+                  "operator": "exact",
+                  "value": [
+                    "free"
+                  ]
+                }
+              ]
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-second-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "arm_a",
+                "weight": 50,
+                "value": "red"
+              },
+              {
+                "key": "arm_b",
+                "weight": 50,
+                "value": "yellow"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "yellow",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "experiment",
+          "index": 1
+        },
+        "variant": "arm_b"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-second-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fe311a94b4c6a51"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.second_experiment_after_miss",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-second-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "arm_a",
+                "weight": 50,
+                "value": "red"
+              },
+              {
+                "key": "arm_b",
+                "weight": 50,
+                "value": "yellow"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-4"
+      },
+      "expected": {
+        "status": "success",
+        "value": "red",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "experiment",
+          "index": 1
+        },
+        "variant": "arm_a"
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-4",
+          "salt": "",
+          "hash01_binary64_hex": "3fe930e7a13868be"
+        },
+        {
+          "use": "variant",
+          "prefix": "example-second-split.",
+          "identifier": "person-4",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fd7427a2ac82199"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.ordering.empty_identifier_return_default",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": ""
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "rollout_miss",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.empty_identifier_skips_holdout",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 100
+            }
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": []
+            },
+            "value": "targeted"
+          }
+        ]
+      },
+      "context": {
+        "identifier": ""
+      },
+      "expected": {
+        "status": "success",
+        "value": "targeted",
+        "reason": "targeting_match",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "targeted_release",
+          "index": 1
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.ordering.empty_identifier_paused",
+      "family": "ordering",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": true,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": ""
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "experiment_paused",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.assignment.fifty_fifty_control",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.ten_ninety_first",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 10,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 90,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-5"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-5",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fb3979f7741bec1"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.ten_ninety_second",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 10,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 90,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.two_decimal_control",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.34,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-5"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-5",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fb3979f7741bec1"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.two_decimal_test",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.34,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.two_decimal_other",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.34,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": "red",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "other"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.equal_values_control",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "same"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "same"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "same",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.equal_values_test",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "same"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "same"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": "same",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.zero_weight_first",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "never",
+                "weight": 0,
+                "value": "blue"
+              },
+              {
+                "key": "always",
+                "weight": 100,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "always"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-example",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fe185f95c52458b"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.twenty_variants",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "arm_00",
+                "weight": 5,
+                "value": "value-00"
+              },
+              {
+                "key": "arm_01",
+                "weight": 5,
+                "value": "value-01"
+              },
+              {
+                "key": "arm_02",
+                "weight": 5,
+                "value": "value-02"
+              },
+              {
+                "key": "arm_03",
+                "weight": 5,
+                "value": "value-03"
+              },
+              {
+                "key": "arm_04",
+                "weight": 5,
+                "value": "value-04"
+              },
+              {
+                "key": "arm_05",
+                "weight": 5,
+                "value": "value-05"
+              },
+              {
+                "key": "arm_06",
+                "weight": 5,
+                "value": "value-06"
+              },
+              {
+                "key": "arm_07",
+                "weight": 5,
+                "value": "value-07"
+              },
+              {
+                "key": "arm_08",
+                "weight": 5,
+                "value": "value-08"
+              },
+              {
+                "key": "arm_09",
+                "weight": 5,
+                "value": "value-09"
+              },
+              {
+                "key": "arm_10",
+                "weight": 5,
+                "value": "value-10"
+              },
+              {
+                "key": "arm_11",
+                "weight": 5,
+                "value": "value-11"
+              },
+              {
+                "key": "arm_12",
+                "weight": 5,
+                "value": "value-12"
+              },
+              {
+                "key": "arm_13",
+                "weight": 5,
+                "value": "value-13"
+              },
+              {
+                "key": "arm_14",
+                "weight": 5,
+                "value": "value-14"
+              },
+              {
+                "key": "arm_15",
+                "weight": 5,
+                "value": "value-15"
+              },
+              {
+                "key": "arm_16",
+                "weight": 5,
+                "value": "value-16"
+              },
+              {
+                "key": "arm_17",
+                "weight": 5,
+                "value": "value-17"
+              },
+              {
+                "key": "arm_18",
+                "weight": 5,
+                "value": "value-18"
+              },
+              {
+                "key": "arm_19",
+                "weight": 5,
+                "value": "value-19"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "value-10",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "arm_10"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-example",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fe185f95c52458b"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.stored_order",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              },
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.flag_key_seed",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-display-key",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-9"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-display-key.",
+          "identifier": "person-9",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fc04801051a4285"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.rollout_hit",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 50,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-6"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-6",
+          "salt": "",
+          "hash01_binary64_hex": "3fa10810b4a58644"
+        },
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-6",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fe130176dd8cec8"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.rollout_miss_return_default",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 50,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "rollout_miss",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "",
+          "hash01_binary64_hex": "3fede14a87f0dd79"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.rollout_miss_continue",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 50,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "targeted_release",
+            "targeting": {
+              "properties": []
+            },
+            "value": "targeted"
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "targeted",
+        "reason": "targeting_match",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "targeted_release",
+          "index": 1
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "",
+          "hash01_binary64_hex": "3fede14a87f0dd79"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.holdout_in",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 20
+            }
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-12"
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "holdout",
+          "prefix": "example-holdout",
+          "identifier": "person-12",
+          "salt": "",
+          "hash01_binary64_hex": "3faa272185109fc7"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.holdout_out",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 20
+            }
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "holdout",
+          "prefix": "example-holdout",
+          "identifier": "person-3",
+          "salt": "",
+          "hash01_binary64_hex": "3fec7b1b96d262c6"
+        },
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.legacy_holdout_seed",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "holdout-",
+              "exclusion_percentage": 50
+            }
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "holdout",
+          "prefix": "holdout-",
+          "identifier": "person-1",
+          "salt": "",
+          "hash01_binary64_hex": "3fd8840664da949d"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.shared_rollout_seed",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "percentage_rollout",
+            "targeting": {
+              "properties": []
+            },
+            "value": "percentage",
+            "rollout_percentage": 30,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-shared",
+            "assign_by": "person"
+          },
+          {
+            "id": "22222222-2222-4222-8222-222222222222",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 60,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-shared",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-2"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "22222222-2222-4222-8222-222222222222",
+          "rule_type": "experiment",
+          "index": 1
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-shared.",
+          "identifier": "person-2",
+          "salt": "",
+          "hash01_binary64_hex": "3fd478b3d1fcbb46"
+        },
+        {
+          "use": "rollout",
+          "prefix": "example-shared.",
+          "identifier": "person-2",
+          "salt": "",
+          "hash01_binary64_hex": "3fd478b3d1fcbb46"
+        },
+        {
+          "use": "variant",
+          "prefix": "example-shared.",
+          "identifier": "person-2",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc4fab85571c75"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.identifier_200",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fd5dc69eeb6f215"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.assignment.identifier_201",
+      "family": "assignment",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaab"
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fd5dc69eeb6f215"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.boolean_false_variant",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "boolean",
+        "default_value": false,
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": false
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": true
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": false,
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.boolean_true_variant",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "boolean",
+        "default_value": false,
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": false
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": true
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": true,
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.number_zero",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "number",
+        "default_value": -1,
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": 0
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": 12.5
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": 0,
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.number_decimal",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "number",
+        "default_value": -1,
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": 0
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": 12.5
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": 12.5,
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.object_empty",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "object",
+        "default_value": {
+          "layout": "default"
+        },
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": {}
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": {
+                  "layout": {
+                    "columns": 2
+                  }
+                }
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-1"
+      },
+      "expected": {
+        "status": "success",
+        "value": {},
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-1",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fdc25ca46c1eb38"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.object_nested",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "object",
+        "default_value": {
+          "layout": "default"
+        },
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": {}
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": {
+                  "layout": {
+                    "columns": 2
+                  }
+                }
+              }
+            ]
+          }
+        ]
+      },
+      "context": {
+        "identifier": "person-3"
+      },
+      "expected": {
+        "status": "success",
+        "value": {
+          "layout": {
+            "columns": 2
+          }
+        },
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "hash_evidence": [
+        {
+          "use": "variant",
+          "prefix": "example-split.",
+          "identifier": "person-3",
+          "salt": "variant",
+          "hash01_binary64_hex": "3fee63ea7906bc76"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.values.null_default_paused",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": null,
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": true,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": null,
+        "reason": "experiment_paused",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.values.null_default_holdout",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "boolean",
+        "default_value": null,
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": false
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": true
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 100
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": null,
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      }
+    },
+    {
+      "id": "v2_experiment.values.object_default_rollout_miss",
+      "family": "values",
+      "config": {
+        "version": 2,
+        "return_type": "object",
+        "default_value": {
+          "layout": "default"
+        },
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 0,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": {}
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": {
+                  "a": 1
+                }
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": {
+          "layout": "default"
+        },
+        "reason": "rollout_miss",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "hash_evidence": [
+        {
+          "use": "rollout",
+          "prefix": "example-split.",
+          "identifier": "person-example",
+          "salt": "",
+          "hash01_binary64_hex": "3fe764346e739613"
+        }
+      ]
+    },
+    {
+      "id": "v2_experiment.white_box.variant_equal",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fe0000000000000",
+        "against": "variant_boundary",
+        "boundary_binary64_hex": "3fe0000000000000",
+        "relation": "equal"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.variant_below",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fdfffffffffffff",
+        "against": "variant_boundary",
+        "boundary_binary64_hex": "3fe0000000000000",
+        "relation": "below"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.accumulated_equal",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.34,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "red",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "other"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fe554c985f06f69",
+        "against": "variant_boundary",
+        "boundary_binary64_hex": "3fe554c985f06f69",
+        "relation": "equal"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.accumulated_below",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.34,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "green",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "test"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fe554c985f06f68",
+        "against": "variant_boundary",
+        "boundary_binary64_hex": "3fe554c985f06f69",
+        "relation": "below"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.off_the_end",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.34,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "red",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "other"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3ff0000000000000",
+        "against": "variant_boundary",
+        "boundary_binary64_hex": "3ff0000000000000",
+        "relation": "equal"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.off_the_end_zero_weight",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "always",
+                "weight": 100,
+                "value": "green"
+              },
+              {
+                "key": "never",
+                "weight": 0,
+                "value": "blue"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "never"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3ff0000000000000",
+        "against": "variant_boundary",
+        "boundary_binary64_hex": "3ff0000000000000",
+        "relation": "equal"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.holdout_equal",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 20
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "holdout",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fc999999999999a",
+        "against": "holdout_threshold",
+        "boundary_binary64_hex": "3fc999999999999a",
+        "relation": "equal"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.holdout_above",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 20
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fc999999999999b",
+        "against": "holdout_threshold",
+        "boundary_binary64_hex": "3fc999999999999a",
+        "relation": "above"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.rollout_equal",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 30,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "blue",
+        "reason": "experiment_split",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        },
+        "variant": "control"
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fd3333333333333",
+        "against": "rollout_threshold",
+        "boundary_binary64_hex": "3fd3333333333333",
+        "relation": "equal"
+      }
+    },
+    {
+      "id": "v2_experiment.white_box.rollout_above",
+      "family": "white_box",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 30,
+            "on_rollout_miss": "return_default",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "success",
+        "value": "default",
+        "reason": "rollout_miss",
+        "rule": {
+          "id": "11111111-1111-4111-8111-111111111111",
+          "rule_type": "experiment",
+          "index": 0
+        }
+      },
+      "white_box": {
+        "hash01_binary64_hex": "3fd3333333333334",
+        "against": "rollout_threshold",
+        "boundary_binary64_hex": "3fd3333333333333",
+        "relation": "above"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.empty_variant_key",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.null_variant_value",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": null
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.empty_variant_value",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": ""
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.unknown_variant_field",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green",
+                "description": "Unknown variant field"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.weight_above_100",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 100.5,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": -0.5,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.holdout_missing_seed",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "exclusion_percentage": 5
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.unknown_holdout_field",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 5,
+              "name": "x"
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.unknown_rule_field",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "variant_split": true
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.weights_below_100",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.33,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 33.33,
+                "value": "green"
+              },
+              {
+                "key": "other",
+                "weight": 33.33,
+                "value": "red"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.weights_above_100",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50.01,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.weight_three_decimals",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 33.333,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 66.667,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.exclusion_three_decimals",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "test",
+                "weight": 50,
+                "value": "green"
+              }
+            ],
+            "holdout": {
+              "seed": "example-holdout",
+              "exclusion_percentage": 5.555
+            }
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    },
+    {
+      "id": "v2_experiment.parser.duplicate_variant_keys",
+      "family": "parser",
+      "config": {
+        "version": 2,
+        "return_type": "string",
+        "default_value": "default",
+        "rules": [
+          {
+            "id": "11111111-1111-4111-8111-111111111111",
+            "rule_type": "experiment",
+            "targeting": {
+              "properties": []
+            },
+            "paused": false,
+            "rollout_percentage": 100,
+            "on_rollout_miss": "continue",
+            "assignment_algorithm": "sha1_60_v1",
+            "seed": "example-split",
+            "assign_by": "person",
+            "variants": [
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "blue"
+              },
+              {
+                "key": "control",
+                "weight": 50,
+                "value": "green"
+              }
+            ]
+          }
+        ]
+      },
+      "expected": {
+        "status": "parse_error",
+        "kind": "malformed"
+      }
+    }
+  ]
+}
diff --git a/posthog/test/test_feature_flags_v2.py b/posthog/test/test_feature_flags_v2.py
new file mode 100644
index 000000000..9c28aaad1
--- /dev/null
+++ b/posthog/test/test_feature_flags_v2.py
@@ -0,0 +1,945 @@
+"""The evaluator for config version 2 flags, replayed against the evaluation corpora.
+
+The corpora and hash vectors in ``fixtures/feature_flag_rules_v2`` are copied unchanged
+from a ``PostHog/posthog-sdk-test-harness`` contract; ``SOURCE.json`` records which.
+Each corpus case gives a configuration, a person and the exact expected result.
+"""
+
+from __future__ import annotations
+
+import collections
+import copy
+import datetime
+import struct
+from typing import Any, Dict, Iterator, List, Optional, Tuple
+from zoneinfo import ZoneInfo
+
+import pytest
+
+from posthog import _feature_flags_v2 as v2
+from posthog.test.test_flags_v4_response import _load
+from posthog.types import UnresolvedFlagReason
+
+BOOLEAN_CORPUS = "v2_boolean_evaluation.json"
+VALUE_CORPUS = "v2_value_evaluation.json"
+EXPERIMENT_CORPUS = "v2_experiment_evaluation.json"
+HASH_VECTORS = _load("hash_sha1_60_v1.json")
+
+# An ``omitted`` row describes the remote request boundary: the flags service leaves an
+# inactive, deleted or unrequested flag out of its response before it evaluates
+# anything. The evaluator has no such boundary, so these rows are skipped.
+OMITTED = "omitted"
+SKIP_OMITTED = "the row describes the remote request boundary, not the evaluator"
+
+# The kind of local outcome each corpus expectation stands for. The corpus states what
+# the reference evaluator returns; a later contract release states the local outcome of
+# each case itself, and then replaces this table.
+LOCAL_OUTCOMES: Dict[Tuple[str, Optional[str]], type] = {
+    ("success", None): v2._Evaluated,
+    ("error", "missing_context"): v2._Inconclusive,
+    ("error", "invalid_property"): v2._EvaluationError,
+    ("error", "invalid_regex"): v2._EvaluationError,
+    ("parse_error", "malformed"): v2._Unsupported,
+    ("parse_error", "unsupported"): v2._Unsupported,
+}
+
+
+def _corpus_cases(name: str) -> Iterator[Dict[str, Any]]:
+    """Each case of a corpus, with the corpus defaults for its flag and context applied."""
+    corpus = _load(name)
+    defaults = corpus.get("defaults", {})
+    for case in corpus["cases"]:
+        yield {
+            **case,
+            "corpus": name,
+            "flag": case.get("flag", defaults.get("flag")),
+            "context": {**defaults.get("context", {}), **case.get("context", {})},
+        }
+
+
+CASES = [
+    case
+    for name in (BOOLEAN_CORPUS, VALUE_CORPUS, EXPERIMENT_CORPUS)
+    for case in _corpus_cases(name)
+]
+REPLAYED = [case for case in CASES if case["expected"]["status"] != OMITTED]
+SKIPPED = [case for case in CASES if case["expected"]["status"] == OMITTED]
+
+
+def _binary64(hexadecimal: str) -> float:
+    return struct.unpack(">d", bytes.fromhex(hexadecimal))[0]
+
+
+def _binary64_hex(value: float) -> str:
+    return struct.pack(">d", value).hex()
+
+
+def _context(raw: Dict[str, Any]) -> v2._Context:
+    return v2._Context(
+        identifier=raw["identifier"],
+        properties=raw["properties"],
+        properties_complete=raw["properties_complete"],
+        explicit_exact_matching=raw["explicit_exact_matching"],
+        timezone=ZoneInfo(raw["timezone"]),
+        now=datetime.datetime.fromisoformat(raw["now"].replace("Z", "+00:00")),
+    )
+
+
+def _same_json(left: Any, right: Any) -> bool:
+    """Equality of JSON values by type as well as value: ``1`` is not ``True``."""
+    if isinstance(left, bool) or isinstance(right, bool):
+        return left is right
+    if isinstance(left, dict) and isinstance(right, dict):
+        return left.keys() == right.keys() and all(
+            _same_json(left[key], right[key]) for key in left
+        )
+    if isinstance(left, list) and isinstance(right, list):
+        return len(left) == len(right) and all(map(_same_json, left, right))
+    numbers = (int, float)
+    same_kind = type(left) is type(right) or (
+        isinstance(left, numbers) and isinstance(right, numbers)
+    )
+    return same_kind and left == right
+
+
+def _as_expectation(outcome: v2._Outcome) -> Dict[str, Any]:
+    """An outcome in the shape of a corpus ``expected`` member, which is exhaustive."""
+    if isinstance(outcome, v2._Evaluated):
+        expectation: Dict[str, Any] = {
+            "status": "success",
+            "value": outcome.value,
+            "reason": outcome.reason,
+        }
+        if outcome.rule_id is not None:
+            expectation["rule"] = {
+                "id": outcome.rule_id,
+                "rule_type": outcome.rule_type,
+                "index": outcome.rule_index,
+            }
+        if outcome.variant_key is not None:
+            expectation["variant"] = outcome.variant_key
+        return expectation
+    if isinstance(outcome, v2._Unsupported):
+        return {"status": "parse_error", "kind": outcome.kind}
+    if isinstance(outcome, v2._Inconclusive):
+        return {"status": "error", "error": outcome.reason.value}
+    return {"status": "error", "error": outcome.kind}
+
+
+def _replay(case: Dict[str, Any]) -> Tuple[v2._Outcome, List[Tuple[str, str, str]]]:
+    """Evaluate a case. Returns the outcome and each hash drawn as (use, input, hash)."""
+    drawn: List[Tuple[str, str, str]] = []
+    replaced = case.get("white_box", {}).get("hash01_binary64_hex")
+
+    def draw(use: str, seed: str, subject: str) -> float:
+        if replaced is not None:
+            return _binary64(replaced)
+        hash01 = v2._draw(use, seed, subject)
+        prefix = seed if use == "holdout" else seed + "."
+        salt = "variant" if use == "variant" else ""
+        drawn.append((use, prefix + subject + salt, _binary64_hex(hash01)))
+        return hash01
+
+    # The parser must not change the document it reads.
+    document = copy.deepcopy(case["config"])
+    config = v2._parse_config(document)
+    assert document == case["config"]
+    outcome = v2._evaluate_with_hash(
+        config, _context(case["context"]), draw, active=case["flag"]["active"]
+    )
+    if replaced is None:
+        # The hash seam and the evaluator's own hash agree.
+        assert outcome == v2._evaluate(
+            config, _context(case["context"]), active=case["flag"]["active"]
+        )
+    return outcome, drawn
+
+
+@pytest.mark.parametrize(
+    "case",
+    REPLAYED
+    + [
+        pytest.param(case, marks=pytest.mark.skip(reason=SKIP_OMITTED))
+        for case in SKIPPED
+    ],
+    ids=lambda case: case["id"],
+)
+def test_a_corpus_case_evaluates_to_its_exact_expected_result(case):
+    expected = case["expected"]
+    outcome, drawn = _replay(case)
+
+    kind = expected.get("error") or expected.get("kind")
+    assert type(outcome) is LOCAL_OUTCOMES[expected["status"], kind]
+    assert _same_json(_as_expectation(outcome), expected), outcome
+
+    evidence = case.get("hash_evidence")
+    if isinstance(evidence, list):
+        # The experiment corpus lists every hash an evaluation draws, in draw order.
+        assert drawn == [
+            (
+                entry["use"],
+                entry["prefix"] + entry["identifier"] + entry["salt"],
+                entry["hash01_binary64_hex"],
+            )
+            for entry in evidence
+        ]
+    elif evidence is not None and drawn:
+        # The boolean corpus records one rollout hash, also for a case that draws none.
+        assert drawn == [
+            (
+                "rollout",
+                bytes.fromhex(evidence["input_utf8_hex"]).decode("utf-8"),
+                evidence["hash01_binary64_hex"],
+            )
+        ]
+
+
+def test_the_replay_covers_every_corpus_case():
+    statuses = collections.Counter(
+        (case["corpus"], case["expected"]["status"]) for case in CASES
+    )
+    assert statuses == {
+        (BOOLEAN_CORPUS, "success"): 121,
+        (BOOLEAN_CORPUS, "error"): 9,
+        (BOOLEAN_CORPUS, "parse_error"): 2,
+        (BOOLEAN_CORPUS, OMITTED): 3,
+        (VALUE_CORPUS, "success"): 38,
+        (VALUE_CORPUS, "parse_error"): 11,
+        (EXPERIMENT_CORPUS, "success"): 60,
+        (EXPERIMENT_CORPUS, "parse_error"): 13,
+    }
+    assert sorted(case["id"] for case in SKIPPED) == [
+        "v2_boolean.eligibility.deleted",
+        "v2_boolean.eligibility.inactive",
+        "v2_boolean.eligibility.request_filtered",
+    ]
+    families = collections.Counter(
+        (case["corpus"], case["family"]) for case in REPLAYED
+    )
+    assert families == {
+        (BOOLEAN_CORPUS, "ordering"): 18,
+        (BOOLEAN_CORPUS, "properties"): 67,
+        (BOOLEAN_CORPUS, "context"): 8,
+        (BOOLEAN_CORPUS, "errors"): 6,
+        (BOOLEAN_CORPUS, "hashing"): 21,
+        (BOOLEAN_CORPUS, "white_box"): 10,
+        (BOOLEAN_CORPUS, "parser"): 2,
+        (VALUE_CORPUS, "ordering"): 27,
+        (VALUE_CORPUS, "values"): 11,
+        (VALUE_CORPUS, "parser"): 11,
+        (EXPERIMENT_CORPUS, "ordering"): 20,
+        (EXPERIMENT_CORPUS, "assignment"): 21,
+        (EXPERIMENT_CORPUS, "values"): 9,
+        (EXPERIMENT_CORPUS, "white_box"): 10,
+        (EXPERIMENT_CORPUS, "parser"): 13,
+    }
+
+
+# --- Hash vectors --------------------------------------------------------------------
+
+
+@pytest.mark.parametrize("vector", HASH_VECTORS["vectors"], ids=lambda v: v["id"])
+def test_a_hash_vector_gives_its_exact_binary64_hash(vector):
+    # The JSON reader must round the decimal literal correctly, or a boundary case moves.
+    assert _binary64_hex(vector["hash01"]) == vector["hash01_binary64_hex"]
+
+    hash01 = v2._hash01(vector["prefix"], vector["identifier"], vector["salt"])
+
+    assert _binary64_hex(hash01) == vector["hash01_binary64_hex"]
+    if "identifier_before_truncation" in vector:
+        truncated = vector["identifier_before_truncation"][: v2._MAX_IDENTIFIER_LENGTH]
+        assert truncated == vector["identifier"]
+    for check in vector.get("rollout_checks", []):
+        included = v2._in_rollout(check["rollout_percentage"], lambda: hash01)
+        assert included is check["included"]
+    for check in vector.get("holdout_checks", []):
+        member = v2._in_rollout(check["exclusion_percentage"], lambda: hash01)
+        assert member is check["member"]
+    if "variant_check" in vector:
+        variants = _variants(vector["variant_check"]["variants"])
+        selected = v2._select_variant(hash01, variants)
+        assert selected.key == vector["variant_check"]["selected"]
+
+
+def _variants(raw: List[Dict[str, Any]]) -> Tuple[v2._Variant, ...]:
+    # The vectors name a variant's weight ``rollout_percentage``, as version 1 does.
+    return tuple(
+        v2._Variant(variant["key"], variant["rollout_percentage"], True)
+        for variant in raw
+    )
+
+
+@pytest.mark.parametrize(
+    "vector", HASH_VECTORS["threshold_vectors"], ids=lambda v: v["id"]
+)
+def test_a_threshold_vector_is_included_as_stated(vector):
+    def draw() -> float:
+        assert not vector.get("short_circuit"), "100 percent must not hash"
+        return vector["hash01"]
+
+    included = v2._in_rollout(vector["rollout_percentage"], draw)
+
+    assert included is vector["included"]
+
+
+@pytest.mark.parametrize(
+    "vector", HASH_VECTORS["variant_vectors"], ids=lambda v: v["id"]
+)
+def test_a_variant_vector_selects_the_stated_variant(vector):
+    selected = v2._select_variant(vector["hash01"], _variants(vector["variants"]))
+
+    # Past the last boundary version 1 selects nothing, and version 2 the last variant.
+    assert selected.key == vector.get("v2_selected", vector["selected"])
+
+
+@pytest.mark.parametrize(
+    "parity",
+    [parity for parity in HASH_VECTORS["seed_parity"] if "v2" in parity],
+    ids=lambda parity: parity["id"],
+)
+def test_a_seed_equal_to_the_flag_key_hashes_the_version_1_input(parity):
+    seeded = parity["v2"]
+    use = {"": "rollout", "variant": "variant"}[seeded["salt"]]
+    if seeded["prefix"] == seeded["seed"]:
+        use = "holdout"
+
+    hash01 = v2._draw(use, seeded["seed"], seeded["identifier"])
+
+    assert seeded["prefix"] + seeded["identifier"] + seeded["salt"] == seeded["input"]
+    assert hash01 == v2._hash01(seeded["prefix"], seeded["identifier"], seeded["salt"])
+    assert hash01 == parity["hash01"]
+    assert (seeded["input"] == parity["v1_input"]) is parity["identical_bytes"]
+
+
+# --- What the corpora do not cover ---------------------------------------------------
+
+RULE_ID = "7f3c2a10-8d4e-4b6a-9c21-5e0f1a2b3c4d"
+OTHER_RULE_ID = "2b9d4e61-0c7a-4f35-8e12-6a4b3c2d1e0f"
+NOW = datetime.datetime(2025, 6, 15, 12, 0, tzinfo=datetime.timezone.utc)
+OSLO = ZoneInfo("Europe/Oslo")
+
+
+def _targeted(*properties: Dict[str, Any], **fields: Any) -> Dict[str, Any]:
+    return {
+        "id": RULE_ID,
+        "rule_type": "targeted_release",
+        "targeting": {"properties": list(properties)},
+        "value": True,
+        **fields,
+    }
+
+
+def _experiment(**fields: Any) -> Dict[str, Any]:
+    return {
+        "id": RULE_ID,
+        "rule_type": "experiment",
+        "targeting": {"properties": []},
+        "paused": False,
+        "rollout_percentage": 100,
+        "on_rollout_miss": "continue",
+        "assignment_algorithm": "sha1_60_v1",
+        "seed": "layout-test",
+        "variants": [
+            {"key": "control", "weight": 50, "value": False},
+            {"key": "test", "weight": 50, "value": True},
+        ],
+        **fields,
+    }
+
+
+def _filters(*rules: Dict[str, Any], **fields: Any) -> Dict[str, Any]:
+    return {
+        "version": 2,
+        "return_type": "boolean",
+        "default_value": False,
+        "rules": list(rules),
+        **fields,
+    }
+
+
+def _person(key: str, operator: str, value: Any) -> Dict[str, Any]:
+    return {"key": key, "type": "person", "operator": operator, "value": value}
+
+
+def _nested(depth: int) -> Any:
+    value: Any = 0
+    for _ in range(depth):
+        value = [value]
+    return value
+
+
+def _evaluate(
+    filters: Any,
+    properties: Optional[Dict[str, Any]] = None,
+    *,
+    identifier: str = "visitor-42",
+    complete: bool = True,
+    timezone: Optional[datetime.tzinfo] = OSLO,
+    active: bool = True,
+) -> v2._Outcome:
+    context = v2._Context(
+        identifier=identifier,
+        properties={} if properties is None else properties,
+        properties_complete=complete,
+        explicit_exact_matching=True,
+        timezone=timezone,
+        now=NOW,
+    )
+    return v2._evaluate(v2._parse_config(filters), context, active=active)
+
+
+def _match(
+    operator: str, filter_value: Any, property_value: Any, **options: Any
+) -> Any:
+    """Whether a person whose ``plan`` is ``property_value`` matches the filter.
+
+    ``True`` or ``False`` for a decided filter. Otherwise the name of what ended the
+    evaluation: the reason of an inconclusive result, or the kind of an error or of a
+    rejected document.
+    """
+    filters = _filters(_targeted(_person("plan", operator, filter_value)))
+    outcome = _evaluate(filters, {"plan": property_value}, **options)
+    if isinstance(outcome, v2._Evaluated):
+        return outcome.reason == "targeting_match"
+    if isinstance(outcome, v2._Inconclusive):
+        return outcome.reason.value
+    return outcome.kind
+
+
+def _document_with(path: List[Any], value: Any) -> Dict[str, Any]:
+    """A valid document that uses every part of the format, with one member set."""
+    document = _filters(
+        _experiment(
+            targeting={"properties": [_person("plan", "exact", "pro")]},
+            holdout={"seed": "layout-holdout", "exclusion_percentage": 5},
+        )
+    )
+    target: Any = document
+    for step in path[:-1]:
+        target = target[step]
+    target[path[-1]] = value
+    return document
+
+
+RULE = ["rules", 0]
+PROPERTY = RULE + ["targeting", "properties", 0]
+VARIANT = RULE + ["variants", 0]
+HOLDOUT = RULE + ["holdout"]
+
+
+def test_the_document_the_parser_cases_change_is_valid():
+    assert isinstance(
+        v2._parse_config(_document_with(["default_value"], True)), v2._Config
+    )
+
+
+@pytest.mark.parametrize(
+    "path, value, kind",
+    [
+        # An unknown field at any level.
+        (["unknown"], 1, "malformed"),
+        (RULE + ["unknown"], 1, "malformed"),
+        (RULE + ["targeting", "unknown"], 1, "malformed"),
+        (PROPERTY + ["unknown"], 1, "malformed"),
+        (VARIANT + ["unknown"], 1, "malformed"),
+        (HOLDOUT + ["unknown"], 1, "malformed"),
+        # A field of config version 1, or of another rule type.
+        (["groups"], [], "malformed"),
+        (RULE + ["value"], True, "malformed"),
+        # An unknown literal.
+        (["return_type"], "integer", "malformed"),
+        (RULE + ["rule_type"], "variant_rollout", "malformed"),
+        (RULE + ["assignment_algorithm"], "murmur3", "malformed"),
+        (RULE + ["on_rollout_miss"], "stop", "malformed"),
+        (RULE + ["assign_by"], "group", "malformed"),
+        (PROPERTY + ["operator"], "is_like", "malformed"),
+        (PROPERTY + ["operator"], "in", "malformed"),
+        (PROPERTY + ["operator"], "min", "malformed"),
+        (PROPERTY + ["type"], "event", "malformed"),
+        # A part of the format this evaluator does not read.
+        (PROPERTY + ["type"], "cohort", "unsupported"),
+        (PROPERTY + ["type"], "group", "unsupported"),
+        (PROPERTY + ["type"], "flag", "unsupported"),
+        (["aggregation_group_type_index"], 0, "unsupported"),
+        (["aggregation_group_type_index"], 0.5, "malformed"),
+        # A config version that is not the number 2.
+        (["version"], 3, "unsupported"),
+        (["version"], 1, "unsupported"),
+        (["version"], "2", "unsupported"),
+        (["version"], True, "unsupported"),
+        (["version"], None, "unsupported"),
+        # A wrong type, or a value out of range.
+        (["rules"], {}, "malformed"),
+        (RULE + ["id"], RULE_ID.replace("-", ""), "malformed"),
+        (RULE + ["paused"], 0, "malformed"),
+        (RULE + ["rollout_percentage"], True, "malformed"),
+        (RULE + ["rollout_percentage"], 100.5, "malformed"),
+        (RULE + ["rollout_percentage"], 12.345, "malformed"),
+        (RULE + ["rollout_percentage"], float("nan"), "malformed"),
+        (RULE + ["seed"], "", "malformed"),
+        (RULE + ["seed"], "s" * 401, "malformed"),
+        (RULE + ["seed"], "\ud800", "malformed"),
+        (RULE + ["description"], None, "malformed"),
+        (RULE + ["metadata"], [], "malformed"),
+        (RULE + ["metadata"], {"ratio": float("inf")}, "malformed"),
+        (RULE + ["metadata"], {"count": 10**400}, "malformed"),
+        (RULE + ["metadata"], {"when": NOW}, "malformed"),
+        (RULE + ["metadata"], {"nested": _nested(200)}, "malformed"),
+        (RULE + ["holdout"], None, "malformed"),
+        (RULE + ["variants"], [], "malformed"),
+        (VARIANT + ["key"], "con trol", "malformed"),
+        (VARIANT + ["value"], 1, "malformed"),
+        (PROPERTY + ["key"], "", "malformed"),
+        (PROPERTY + ["negation"], "yes", "malformed"),
+        (PROPERTY + ["group_type_index"], 0, "malformed"),
+        (PROPERTY + ["label"], 7, "malformed"),
+        (PROPERTY + ["group_key_names"], {"0": 1}, "malformed"),
+    ],
+)
+def test_the_parser_rejects_the_whole_document(path, value, kind):
+    outcome = _evaluate(_document_with(path, value), {"plan": "pro"})
+
+    assert isinstance(outcome, v2._Unsupported)
+    assert outcome.kind == kind
+
+
+@pytest.mark.parametrize(
+    "path, value",
+    [
+        (["version"], 2.0),
+        (RULE + ["description"], "Layout test"),
+        (RULE + ["metadata"], {"owner": {"team": ["growth"]}, "nested": _nested(50)}),
+        (RULE + ["assign_by"], "person"),
+        (RULE + ["rollout_percentage"], 33.33),
+        (PROPERTY + ["negation"], None),
+        (PROPERTY + ["group_type_index"], None),
+        (PROPERTY + ["label"], "Plan"),
+        (PROPERTY + ["cohort_name"], None),
+        (PROPERTY + ["group_key_names"], {"0": "Acme"}),
+    ],
+)
+def test_the_parser_reads_every_optional_member(path, value):
+    assert isinstance(v2._parse_config(_document_with(path, value)), v2._Config)
+
+
+@pytest.mark.parametrize("filters", [None, [], "{}", 2])
+def test_a_document_that_is_not_an_object_is_malformed(filters):
+    assert v2._parse_config(filters) == v2._Unsupported("malformed", "filters")
+
+
+def test_rule_ids_are_unique_whatever_their_letter_case():
+    upper = _targeted(id=RULE_ID.upper())
+
+    duplicate = v2._parse_config(_filters(_targeted(), upper))
+    outcome = _evaluate(_filters(upper))
+
+    assert duplicate == v2._Unsupported("malformed", "rule.id")
+    assert isinstance(outcome, v2._Evaluated) and outcome.rule_id == RULE_ID
+
+
+@pytest.mark.parametrize(
+    "field, document",
+    [
+        ("rules", _filters(*[_targeted()] * 101)),
+        ("properties", _filters(_targeted(*[_person("plan", "is_set", None)] * 101))),
+        ("variants", _filters(_experiment(variants=[{}] * 21))),
+    ],
+)
+def test_a_document_over_a_count_limit_is_malformed(field, document):
+    assert v2._parse_config(document) == v2._Unsupported("malformed", field)
+
+
+@pytest.mark.parametrize(
+    "operator, value",
+    [
+        ("regex", 5),
+        ("icontains", ["a"]),
+        ("icontains_multi", "a"),
+        ("gt", True),
+        ("gt", None),
+        ("semver_eq", 3),
+        ("semver_eq", "v1.2.3"),
+        ("semver_eq", "1.2.3+build"),
+        ("semver_eq", "1.0.0-rc.01"),
+        ("semver_eq", "1.x"),
+        ("semver_eq", "18446744073709551616.0.0"),
+        ("semver_wildcard", "*"),
+        ("semver_wildcard", "1.*.3"),
+        ("is_date_after", 1704067200),
+    ],
+)
+def test_a_filter_value_its_operator_cannot_use_is_malformed(operator, value):
+    assert _match(operator, value, "pro") == "malformed"
+
+
+@pytest.mark.parametrize(
+    "value",
+    [
+        "2025-06-15T12:00:00",
+        "2025-06-15 12:00:00 UTC",
+        "2025-06-15T12:00:00+25:00",
+        "2025-02-30",
+        "June 15, 2025",
+        "1704067200",
+        "10000d",
+        "3x",
+    ],
+)
+def test_a_date_filter_the_evaluator_cannot_resolve_is_unsupported(value):
+    assert _match("is_date_after", value, "2025-06-15") == "unsupported"
+
+
+def test_an_absent_or_null_operator_is_exact():
+    absent = {"key": "plan", "type": "person", "value": "pro"}
+
+    for prop in (absent, {**absent, "operator": None}):
+        outcome = _evaluate(_filters(_targeted(prop)), {"plan": "PRO"})
+
+        assert isinstance(outcome, v2._Evaluated)
+        assert outcome.reason == "targeting_match"
+
+
+def test_an_inactive_flag_has_no_value_whatever_its_document_holds():
+    disabled = v2._Evaluated(None, "flag_disabled")
+
+    assert _evaluate(_filters(_targeted()), active=False) == disabled
+    assert _evaluate(_filters(version=3), active=False) == disabled
+
+
+def test_an_inconclusive_rule_stops_the_evaluation_before_a_later_rule():
+    first = _targeted(_person("plan", "exact", "pro"))
+    filters = _filters(first, _targeted(id=OTHER_RULE_ID))
+
+    outcome = _evaluate(filters, {"country": "NO"}, complete=False)
+
+    assert isinstance(outcome, v2._Inconclusive)
+    assert outcome.reason is UnresolvedFlagReason.MISSING_CONTEXT
+
+
+def test_an_earlier_terminal_rule_hides_a_later_rule_that_cannot_be_decided():
+    later = _targeted(_person("plan", "exact", "pro"), id=OTHER_RULE_ID)
+
+    outcome = _evaluate(_filters(_targeted(), later), complete=False)
+
+    assert outcome == v2._Evaluated(
+        True, "targeting_match", RULE_ID, "targeted_release", 0
+    )
+
+
+def test_an_identifier_that_is_not_unicode_text_is_inconclusive_when_hashed():
+    hashed = _evaluate(
+        _filters(_experiment(rollout_percentage=50)), identifier="\ud800"
+    )
+    not_hashed = _evaluate(_filters(_targeted()), identifier="\ud800")
+
+    assert isinstance(hashed, v2._Inconclusive)
+    assert hashed.reason is UnresolvedFlagReason.MISSING_CONTEXT
+    assert isinstance(not_hashed, v2._Evaluated)
+
+
+def test_an_object_value_is_returned_as_configured():
+    layout = {"columns": 2, "panels": [{"id": "a", "ratio": 0.5}], "title": None}
+    filters = _filters(
+        _targeted(value=layout), return_type="object", default_value=None
+    )
+
+    outcome = _evaluate(filters)
+
+    assert isinstance(outcome, v2._Evaluated) and outcome.value == layout
+
+
+@pytest.mark.parametrize(
+    "operator, filter_value, property_value, expected",
+    [
+        # A property value is compared as the JSON text the flags service sees.
+        ("exact", "null", None, True),
+        ("exact", ["1.5", "2"], 1.5, True),
+        ("is_not", "true", True, False),
+        ("icontains", "ul", None, True),
+        ("icontains_multi", ["x", "RO"], "pro", True),
+        ("not_icontains_multi", ["x", "RO"], "pro", False),
+        ("icontains_multi", [], "pro", False),
+        ("icontains_multi", [1, True], "plan-1", True),
+        ("regex", "^nu", None, True),
+        ("regex", "", "anything", True),
+        # Without a filter value nothing matches, also for is_not.
+        ("exact", None, "pro", False),
+        ("is_not", None, "pro", False),
+    ],
+)
+def test_a_text_operator_compares_json_text(
+    operator, filter_value, property_value, expected
+):
+    assert _match(operator, filter_value, property_value) == expected
+
+
+FILTER_VALUES = {
+    "icontains_multi": ["pro"],
+    "not_icontains_multi": ["pro"],
+    "is_date_exact": "2025-06-15",
+    "is_date_after": "2025-06-15",
+    "is_date_before": "2025-06-15",
+}
+
+
+@pytest.mark.parametrize("operator", sorted(v2._OPERATORS))
+def test_only_a_negative_operator_matches_a_person_without_the_property(operator):
+    filter_value = FILTER_VALUES.get(operator, "1.2.3")
+    filters = _filters(_targeted(_person("plan", operator, filter_value)))
+
+    outcome = _evaluate(filters, {})
+
+    negative = operator in v2._OPERATORS_MATCHING_ABSENCE or operator == "is_not_set"
+    assert isinstance(outcome, v2._Evaluated)
+    assert (outcome.reason == "targeting_match") is negative
+
+
+def test_an_invalid_pattern_is_an_error_for_a_person_without_the_property():
+    filters = _filters(_targeted(_person("plan", "not_regex", "[")))
+
+    assert _evaluate(filters, {}) == v2._EvaluationError(
+        "invalid_regex", "The pattern for 'plan' is not valid"
+    )
+
+
+def test_a_pattern_python_cannot_run_like_the_flags_service_is_inconclusive():
+    assert _match("regex", r"(?<=pre)mium", "premium") == "unsupported_definition"
+
+
+@pytest.mark.parametrize(
+    "operator, filter_value, property_value, expected",
+    [
+        ("gt", "5", "6", True),
+        ("gt", 5, "6.0e0", True),
+        ("lte", 0.1, ".1", True),
+        ("lt", 5, "-inf", True),
+        ("gt", 5, "Infinity", True),
+        ("gte", 5, "nan", False),
+        ("lte", 5, "NaN", False),
+        ("gt", 5, True, "invalid_property"),
+        ("gt", 5, "six", "invalid_property"),
+        ("gt", 5, " 6", "invalid_property"),
+        ("gt", 5, "6_0", "invalid_property"),
+        ("gt", 5, "0x10", "invalid_property"),
+        ("gt", 5, [6], "invalid_property"),
+        ("gt", "five", 6, "invalid_property"),
+    ],
+)
+def test_a_number_operator_reads_numbers_like_the_flags_service(
+    operator, filter_value, property_value, expected
+):
+    assert _match(operator, filter_value, property_value) == expected
+
+
+@pytest.mark.parametrize(
+    "operator, filter_value, property_value",
+    [
+        ("gt", 5, float("nan")),
+        ("gt", 5, float("inf")),
+        ("gt", 5, 10**400),
+        ("gt", 5, NOW),
+        ("is_date_after", "2025-06-15", float("nan")),
+        ("is_date_after", "2025-06-15", NOW),
+        ("semver_gt", "1.2.3", float("inf")),
+        ("exact", "pro", NOW),
+        ("icontains", "pro", float("nan")),
+        ("icontains_multi", ["pro"], NOW),
+        ("regex", "pro", NOW),
+    ],
+)
+def test_a_property_value_json_cannot_carry_is_inconclusive(
+    operator, filter_value, property_value
+):
+    assert _match(operator, filter_value, property_value) == "missing_context"
+
+
+@pytest.mark.parametrize(
+    "operator, filter_value, property_value, expected",
+    [
+        # Leading zeros, a missing patch number and one leading "v" are read.
+        ("semver_eq", "3.8.0", "v03.08", True),
+        ("semver_eq", "3.8.0", 3.8, True),
+        ("semver_eq", "3.8.0", " 3.8.0\n", True),
+        ("semver_eq", "3.8.0", "V3.8.0", False),
+        ("semver_eq", "3.8.0", "3.8.0.1", False),
+        ("semver_neq", "3.8.0", "not a version", False),
+        # A pre-release sorts below its release, and its parts sort one by one.
+        ("semver_lt", "1.0.0", "1.0.0-rc.1", True),
+        ("semver_gt", "1.0.0-alpha", "1.0.0-alpha.1", True),
+        ("semver_gt", "1.0.0-alpha.9", "1.0.0-alpha.10", True),
+        ("semver_gt", "1.0.0-1", "1.0.0-alpha", True),
+        ("semver_eq", "1.0.0-rc.1", "1.0.0-rc.1", True),
+        # Build metadata takes part in the comparison.
+        ("semver_eq", "1.0.0", "1.0.0+build.5", False),
+        ("semver_gt", "1.0.0", "1.0.0+build.5", True),
+        ("semver_gt", "1.0.0-rc+7", "1.0.0-rc+10", True),
+        # A tilde range keeps the minor number.
+        ("semver_tilde", "1.2.3", "1.2.9", True),
+        ("semver_tilde", "1.2.3", "1.2.2", False),
+        ("semver_tilde", "1.2.3", "1.3.0", False),
+        ("semver_tilde", "1.2", "1.2.0", True),
+        # A caret range keeps the leftmost number that is not zero.
+        ("semver_caret", "1.2.3", "1.9.0", True),
+        ("semver_caret", "1.2.3", "1.2.2", False),
+        ("semver_caret", "1.2.3", "2.0.0", False),
+        ("semver_caret", "0.2.3", "0.2.9", True),
+        ("semver_caret", "0.2.3", "0.3.0", False),
+        ("semver_caret", "0.0.3", "0.0.3", True),
+        ("semver_caret", "0.0.3", "0.0.4", False),
+        # A range matches a pre-release only of the version it names one for.
+        ("semver_caret", "1.2.3", "1.3.0-rc.1", False),
+        ("semver_caret", "1.2.3-rc.1", "1.2.3-rc.2", True),
+        ("semver_caret", "1.2.3-rc.2", "1.2.3-rc.1", False),
+        ("semver_caret", "1.2.3-rc.1", "1.2.4-rc.1", False),
+        ("semver_tilde", "1.2.3-rc.1", "1.2.3", True),
+        # A wildcard fixes the numbers before the first "*".
+        ("semver_wildcard", "1.*", "1.9.9", True),
+        ("semver_wildcard", "1.*", "2.0.0", False),
+        ("semver_wildcard", "1.*.*", "1.0.0", True),
+        ("semver_wildcard", "01.02.*", "1.2.7", True),
+        ("semver_wildcard", "1.2.*", "1.3.0", False),
+        ("semver_wildcard", "1.2.*", "1.2.3-rc.1", False),
+        # Without a "*" the value reads as a caret range.
+        ("semver_wildcard", "1.2.3", "1.4.0", True),
+        ("semver_wildcard", "1.2", "1.1.0", False),
+        ("semver_wildcard", "0.2", "0.3.0", False),
+        ("semver_wildcard", "1", "1.0.0", True),
+        # The format admits these values, but they are not ranges.
+        ("semver_wildcard", "1.2.3.*", "1.2.3", "invalid_property"),
+        ("semver_wildcard", "1.2-rc.*", "1.2.0", "invalid_property"),
+        # After a pre-release the "*" is not a wildcard but the letter "x".
+        ("semver_wildcard", "1.2.3-rc.*", "1.2.3-rc.x", True),
+        ("semver_wildcard", "1.2.3-rc.*", "1.2.3-rc.w", False),
+        ("semver_wildcard", "1.2.3-rc.*", "1.4.0", True),
+        ("semver_wildcard", "1.2.3.*", "not a version", False),
+    ],
+)
+def test_a_semver_operator_orders_versions_like_the_flags_service(
+    operator, filter_value, property_value, expected
+):
+    assert _match(operator, filter_value, property_value) == expected
+
+
+@pytest.mark.parametrize(
+    "operator, filter_value, property_value, expected",
+    [
+        # Nanoseconds are compared.
+        (
+            "is_date_after",
+            "2025-06-15T12:00:00Z",
+            "2025-06-15T12:00:00.000000001Z",
+            True,
+        ),
+        ("is_date_exact", "2025-06-15T12:00:00.5Z", "2025-06-15T12:00:00.500Z", True),
+        # A date and time without an offset is a wall clock in the project's timezone.
+        ("is_date_exact", "2025-06-15 14:00", "2025-06-15T12:00:00Z", True),
+        ("is_date_exact", "2025-06-15 14:00:00.25", "2025-06-15T14:00:00.250", True),
+        ("is_date_exact", "2025-06-15", "2025-06-14T22:00:00+00:00", True),
+        ("is_date_exact", "2025-06-15T12:00:00-03:30", "2025-06-15T15:30:00Z", True),
+        # A number is Unix epoch seconds. The fraction of a negative number is dropped.
+        ("is_date_exact", "2025-06-15T12:00:00.5Z", 1749988800.5, True),
+        ("is_date_exact", "1969-12-31T23:59:58Z", -1.5, True),
+        ("is_date_exact", "1970-01-01T00:00:00Z", "0", True),
+        ("is_date_before", "2025-06-15", "1e9", True),
+        # A property can hold a relative date too.
+        ("is_date_exact", "-1d", "1d", True),
+        ("is_date_exact", "-2m", "2025-04-15T12:00:00Z", True),
+        # A wall clock in a spring-forward gap is no instant.
+        ("is_date_exact", "2025-03-30 02:30:00", "2025-03-30T02:30:00", False),
+        ("is_date_before", "2026-01-01", "2025-03-30T02:30:00", False),
+        # A wall clock that repeats means its first instant.
+        ("is_date_exact", "2025-10-26 02:30:00", "2025-10-26T00:30:00Z", True),
+        # Not a date at all.
+        ("is_date_before", "2026-01-01", "soon", False),
+        ("is_date_before", "2026-01-01", True, False),
+        ("is_date_before", "2026-01-01", None, False),
+        ("is_date_before", "2026-01-01", ["2025-06-15"], False),
+        # A form or a range that only the flags service resolves.
+        ("is_date_before", "2026-01-01", "15/06/2025", "missing_context"),
+        ("is_date_before", "2026-01-01", "2025-06-15T12:00:00+0200", "missing_context"),
+        ("is_date_before", "2026-01-01", "2025-06-15t12:00:00z", "missing_context"),
+        ("is_date_before", "2026-01-01", "2025-06-31", "missing_context"),
+        ("is_date_before", "2026-01-01", "2025-06-15T23:59:60Z", "missing_context"),
+        ("is_date_before", "2026-01-01", "99999d", "missing_context"),
+        ("is_date_before", "2026-01-01", 1e12, "missing_context"),
+        ("is_date_before", "2026-01-01", 0.9999999999, "missing_context"),
+        ("is_date_after", "-2025y", "2025-06-15", "missing_context"),
+    ],
+)
+def test_a_date_operator_compares_instants_like_the_flags_service(
+    operator, filter_value, property_value, expected
+):
+    assert _match(operator, filter_value, property_value) == expected
+
+
+@pytest.mark.parametrize(
+    "filter_value, property_value, expected",
+    [
+        ("2025-06-15T12:00:00Z", "2025-06-15T14:00:00+02:00", True),
+        ("2025-06-15T12:00:00Z", 1749988800, True),
+        ("2025-06-15", "2025-06-15T00:00:00Z", "missing_context"),
+        ("2025-06-15T12:00:00Z", "2025-06-15 12:00:00", "missing_context"),
+        ("-1d", "2025-06-14T12:00:00Z", "missing_context"),
+    ],
+)
+def test_a_date_that_needs_the_project_timezone_is_inconclusive_without_it(
+    filter_value, property_value, expected
+):
+    result = _match("is_date_exact", filter_value, property_value, timezone=None)
+
+    assert result == expected
+
+
+def test_a_relative_date_counts_back_from_the_current_time_by_default():
+    config = v2._parse_config(
+        _filters(_targeted(_person("seen", "is_date_after", "-1h")))
+    )
+    now = datetime.datetime.now(datetime.timezone.utc).timestamp()
+
+    def evaluate(seen: float) -> v2._Outcome:
+        return v2._evaluate(
+            config, v2._Context("visitor-42", {"seen": seen}, True, True, OSLO)
+        )
+
+    assert evaluate(now) == v2._Evaluated(
+        True, "targeting_match", RULE_ID, "targeted_release", 0
+    )
+    assert evaluate(now - 7200) == v2._Evaluated(False, "no_rule_match")
+
+
+def _hashes_drawn(
+    filters: Dict[str, Any], identifier: str
+) -> List[Tuple[str, str, str]]:
+    """The hashes an evaluation draws, when every hash is 0.25."""
+    drawn: List[Tuple[str, str, str]] = []
+
+    def draw(use: str, seed: str, subject: str) -> float:
+        drawn.append((use, seed, subject))
+        return 0.25
+
+    context = v2._Context(identifier, {}, True, True)
+    v2._evaluate_with_hash(v2._parse_config(filters), context, draw)
+    return drawn
+
+
+def test_an_experiment_draws_its_holdout_rollout_and_variant_hashes_in_order():
+    holdout = {"seed": "layout-holdout", "exclusion_percentage": 10}
+    filters = _filters(_experiment(rollout_percentage=50, holdout=holdout))
+
+    drawn = _hashes_drawn(filters, "v" * 250)
+
+    assert drawn == [
+        ("holdout", "layout-holdout", "v" * 200),
+        ("rollout", "layout-test", "v" * 200),
+        ("variant", "layout-test", "v" * 200),
+    ]
+
+
+def test_a_full_percentage_and_an_empty_identifier_are_decided_without_a_hash():
+    holdout = {"seed": "layout-holdout", "exclusion_percentage": 100}
+
+    assert _hashes_drawn(_filters(_experiment(holdout=holdout)), "visitor-42") == []
+    assert _hashes_drawn(_filters(_experiment(rollout_percentage=50)), "") == []
+    assert _hashes_drawn(_filters(_experiment()), "visitor-42") == [
+        ("variant", "layout-test", "visitor-42")
+    ]
diff --git a/posthog/test/test_flags_v4_response.py b/posthog/test/test_flags_v4_response.py
index 352c793aa..59f3643f4 100644
--- a/posthog/test/test_flags_v4_response.py
+++ b/posthog/test/test_flags_v4_response.py
@@ -83,8 +83,8 @@ def _evaluate(client: Client, response: Dict[str, Any]) -> FeatureFlagEvaluation
 
 def test_vendored_fixtures_match_the_recorded_release_digests():
     source = _load("SOURCE.json")
-    assert source["release"] == "1.30.0"
-    assert source["revision"] == "6414114501396d96aadf2412fdd8054a03076782"
+    assert source["release"] == "1.31.1"
+    assert source["revision"] == "003d4162421193b458bbaa93fbb7bb0d0104bc3b"
     assert source["contract_version"] == "10.0.0"
     for name, entry in source["files"].items():
         digest = hashlib.sha256((FIXTURES / name).read_bytes()).hexdigest()

From 59399a0402e8bc3ddedc64c122c8d8c694726f89 Mon Sep 17 00:00:00 2001
From: Anders Asheim Hennum 
Date: Fri, 13 Nov 2026 15:39:45 +0100
Subject: [PATCH 2/3] docs(flags): note the regex size limit the config version
 2 evaluator does not detect

The regex engine of the flags service refuses a pattern above its size limits, such as `\w{210}`, and the service then reports an invalid pattern. Python evaluates such a pattern. The module docstring now says so.
---
 posthog/_feature_flags_v2.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/posthog/_feature_flags_v2.py b/posthog/_feature_flags_v2.py
index 16307fb8b..83901024b 100644
--- a/posthog/_feature_flags_v2.py
+++ b/posthog/_feature_flags_v2.py
@@ -26,6 +26,11 @@
 dates are matched here, because version 1 reads them differently. Where Python cannot
 reproduce the flags service, such as a date in a form only the service reads, the
 result is inconclusive.
+
+One difference is known and not detected. The regular expression engine of the flags
+service refuses a pattern above its size limits, for example ``\\w{210}``, and the
+service then reports an invalid pattern. Python has no such limits and evaluates the
+pattern.
 """
 
 from __future__ import annotations

From dbd0eab14d34a560d5edbe930fec17409529b8c2 Mon Sep 17 00:00:00 2001
From: Anders Asheim Hennum 
Date: Fri, 13 Nov 2026 15:44:22 +0100
Subject: [PATCH 3/3] test(flags): keep the relative date test clear of a
 skipped hour

The test counted one hour back from the real clock in Europe/Oslo. In the hour after a spring-forward transition that wall clock does not exist, and the filter then matches nothing. The test now uses UTC and whole seconds.
---
 posthog/test/test_feature_flags_v2.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/posthog/test/test_feature_flags_v2.py b/posthog/test/test_feature_flags_v2.py
index 9c28aaad1..8efdd55b3 100644
--- a/posthog/test/test_feature_flags_v2.py
+++ b/posthog/test/test_feature_flags_v2.py
@@ -894,12 +894,13 @@ def test_a_relative_date_counts_back_from_the_current_time_by_default():
     config = v2._parse_config(
         _filters(_targeted(_person("seen", "is_date_after", "-1h")))
     )
-    now = datetime.datetime.now(datetime.timezone.utc).timestamp()
+    # UTC has no skipped hour, so the hour before now always exists.
+    utc = datetime.timezone.utc
+    now = int(datetime.datetime.now(utc).timestamp())
 
-    def evaluate(seen: float) -> v2._Outcome:
-        return v2._evaluate(
-            config, v2._Context("visitor-42", {"seen": seen}, True, True, OSLO)
-        )
+    def evaluate(seen: int) -> v2._Outcome:
+        context = v2._Context("visitor-42", {"seen": seen}, True, True, utc)
+        return v2._evaluate(config, context)
 
     assert evaluate(now) == v2._Evaluated(
         True, "targeting_match", RULE_ID, "targeted_release", 0