Product Benefits Pricing Guides Docs About Contact us Try it out
Analytics tools

PostHog Local Evaluation Inconclusive Flag Tracking

PostHog local evaluation tracking: use unresolvedFlags and the local_evaluation_inconclusive reason to find flags that never resolve locally.

· 3 min read

Server-side feature flags are quick when they are evaluated locally. The server holds the flag rules in memory and answers without a network call. The trouble starts when some flags cannot be resolved that way. Without a signal, you pay for extra requests or serve a default, and your exposure data records the wrong reason.

PostHog server SDK 2.24.0 adds clearer signals. A flag snapshot from evaluateFlags() now includes unresolvedFlags, a list of requested flags that local evaluation could not resolve, each with a reason code. A filtered condition that local evaluation cannot check, and that does not match, now resolves locally as no match instead of falling back to the /flags endpoint. The $feature_flag_called event for an unresolved flag now reports local_evaluation_inconclusive instead of flag_missing. The SDK also logs a startup warning that names flags local evaluation can never resolve.

That last change matters for analysis. flag_missing suggests a typo or a deleted flag. local_evaluation_inconclusive says the flag exists but the rules were too complex for local checks.

Data Points to Track

  • $feature_flag_called with the $feature_flag_error or reason value
  • unresolved_flag_count per request or per hour
  • unresolved_flag_key and reason_code
  • local_evaluation_inconclusive_rate as a share of all flag checks
  • flag_missing_rate (should drop after the upgrade)
  • flags_endpoint_fallback_count (should fall as no-match results stay local)
  • evaluation_latency_ms for local and remote paths
  • sdk_version and service_name

Setup Steps

  1. Upgrade the PostHog server SDK to 2.24.0 or later in a staging service first.
  2. Read the startup log and write down every flag the SDK says local evaluation can never resolve.
  3. Capture a baseline of flag_missing events and /flags calls for the 7 days before release.
  4. Update dashboards so local_evaluation_inconclusive appears as its own category, not lumped in with missing flags.
  5. Log unresolvedFlags from the snapshot in your service metrics, with the reason code.
  6. Review the flagged rules with the owners and decide whether to simplify each one or accept the remote call.
  7. Release to production and compare request counts and latency with the baseline.

Actionable Insights

A falling flag_missing rate paired with a new local_evaluation_inconclusive rate is not a regression. It is the same events, now labelled correctly. Show this to anyone who monitors the old number so they do not raise a false alarm.

The startup warning gives you a ready-made to-do list. Flags that can never resolve locally cost a network call every time, so they are the best candidates for simplifying. If a rule needs data the server does not hold, such as a cohort, consider whether the rule truly needs it.

Check the change in fallback behaviour too. A condition that cannot be checked, and does not match, now returns no match locally. For most flags that is the safe result, but a user who once received a flag through the remote path might now be excluded. Compare exposure counts for your largest flags before and after, and look at users near a rollout boundary.

Finally, watch latency. Fewer /flags calls should lower the median and the tail. If they do not, the unresolved flags are probably still being requested elsewhere in your code.