Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 9 min read Case study mediumAdept

Federation Platform and Privacy Waves: How Meta distributes compliance-related tasks at scale

Meta's Federation Platform turns large compliance initiatives into code-defined workstreams that scrape privacy flags, resolve asset ownership via a central catalog, group related flags, and either file tasks or send automated diffs, with resolution logic that auto-closes or reopens tasks. Privacy Waves batches these tasks monthly with shared deadlines, lint-based filtering of low-value work, a matching algorithm that weighs teams' competing priorities, wizard-style structured tasks, and tracked health metrics such as completion and deferral rates. The system handles over 100,000 tasks a year, cuts effort on some tasks by around 50%, and is estimated to have saved hundreds of thousands of engineering hours. It is now being extended to security, accessibility and engineering-excellence work such as API migrations.

Related posts

  • How Meta enforces purpose limitation via Privacy Aware Infrastructure at scale

    Meta Engineering mediumAdept

    Meta enforces purpose limitation (data used only for allowed purposes) with Policy Zones, an information flow control system built into HHVM, Presto, Spark and other infrastructure. It replaces fragile point checks and ACL-based physical data separation with runtime checks on annotated data flows. Developers label data assets and requests or functions with annotations. Zones then propagate context through function call stacks or SQL batch jobs and flag violations in logging mode before switching to blocking enforcement. Policy Zone Manager tooling, backed by data lineage and an ML classifier, guides large rollouts through four steps: identify assets, discover downstream flows, remediate each flow (annotate the sink, block it, or reclassify it), and enforce and monitor.

  • Privacy-Aware Infrastructure in the AI-Native Era: An Asset Classification Case Study

    Meta Engineering mediumAdept

    Meta classifies data assets for privacy enforcement with a hybrid pipeline: it builds structured evidence briefs from code resolution, lineage, ownership and annotations, uses LLMs only for novel or ambiguous assets, and distills stable patterns into versioned, human-reviewed deterministic rules. About 85% of requests resolve on the deterministic path in single-digit milliseconds. The ~15% LLM fallback takes seconds and costs roughly 400x the compute. Key lessons are that context matters more than prompt tuning, that circular label fields must be masked from both the LLM and rule distillation, and that evaluation must stay independent of optimization, using frozen human-reviewed reference sets and calibrated confidence scores.

  • Automating cherry-picks between OSS and private forks — PlanetScale

    PlanetScale mediumAdept

    PlanetScale replaced its weekly cron-based cherry-picking and its conflict-replaying git-replay tool with a stateful Vitess cherry-pick bot that continuously syncs OSS Vitess into a private fork. The bot runs hourly in GitHub Actions and stores state in a PlanetScale database. It fetches merged PRs with go-github and cherry-picks them from OSS main into private upstream, opening draft PRs labeled as conflicts when they don't apply cleanly. Backports to private latest-x.0 branches are triggered by labels. Weekly reconciliation checks flag missed cherry-picks, open PRs and non-backport merges, giving the team confidence to rely on the bot for over a year and a half.

  • F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale

    Meta Engineering mediumAdept

    F3 Lightning decouples feature releases from shared execution in Meta's ads ML feature framework, so each of 20,000+ features is compiled, validated, deployed and rolled back independently instead of shipping as one all-or-nothing merged DAG. To recover the CPU efficiency lost when features stopped sharing computation, it uses content-derived stable node identifiers, a single startup-built execution plan flattened into an ordered list, one shared per-request memory buffer with a separate readiness vector, and dense integer slot indexing in place of hash lookups. Features reach production about 3.6x faster with no added compute cost. The broader lessons are to separate release boundaries from execution boundaries, to move request-invariant work to startup, and to treat memory layout and duplicate copies as costing as much CPU as redundant computation.

  • Policy Zones: How Meta enforces purpose limitation at scale in batch processing systems

    Meta Engineering mediumAdept

    Meta's Policy Zones, part of its Privacy Aware Infrastructure, applies information flow control to enforce purpose limitation across an exabyte-scale data warehouse. Datasets and loggers carry Governable Data Annotations such as MESSAGING_DATA, and downstream data must be at least as restrictive as its sources. A SQL parser (UPM) turns queries from processors like Presto into semantic trees. A Policy Evaluation Service checks each flow and issues a cryptographically signed token that the Warehouse Permission Service validates at access time. Policy Zone Manager tooling handles label creep through reclassification, letting the system run across millions of datasets, tens of millions of daily flows and trillions of consent checks per hour.

The quest for software engineering knowledge.

Look:
Layout: