This report audits all feature flags in infrastructure/flagsmith/configs/flags.json and segments in infrastructure/flagsmith/configs/segments.json. Source version: flags.json 2.1.0. Generated: 2026-01.
Policy: We use Flagsmith even locally. Flag values come only from Flagsmith; there are no env-var overrides (e.g. no USE_ICEBERG_CATALOG, USE_P21_CUSTOM_SOURCE). Connection to Flagsmith uses FLAGSMITH_API_URL and FLAGSMITH_ENVIRONMENT_KEY (or FLAGSMITH_SERVER_KEY).
Full Prophet21 V2 (custom source, version detection, DB access, tiered order creation). Off = legacy P21 OData-only orchestrator. Turn on experimentally first.
If any flag is missing in Flagsmith or in any environment, the script exits with status 1 and lists the gaps.
To fix: run scripts/import-flags.py (e.g. via the flagsmith-seed workflow or manually with --update), then re-run validate-flags-sync.py.
Typesense flags retired: We use Typesense exclusively. typesense_search_enabled and typesense_search_fallback are deprecated; search always uses Typesense first and falls back to PostgreSQL on no results or error.