The interview problem

Practice prompt

Design moderation and appeals for a service receiving ten million posts daily. Automated decisions can allow, limit distribution or remove a post. Authors can appeal. Build a reliable restoration workflow and explain how to estimate error rates and train from appeals without treating self-selected appellants as a representative sample.

Original ML-design practice, not a reported Meta or other company interview. Workload, policy and calculations are hypothetical. A historical Meta primary source from May 2019 was retrieved September 27, 2026; it provides measurement context, not this architecture. Interview date: not applicable.

1. Separate policy, prediction and action

Define policy categories, severity, context exceptions and the available actions with policy owners. A classifier score is evidence for a decision, not the policy itself. Store policy version, model version, original content version, relevant context and decision reason. A revised policy may allow content that was correctly removed under an earlier policy; distinguish that change from an original classification mistake.

Specify who may appeal, the appeal window, expected review time and how edited content is handled. This design appeals the original decision on its original content version. A new edit is evaluated separately. Deduplicate submissions for the same decision while allowing new evidence through an auditable update. Give users a case ID and current status rather than claiming an appeal has succeeded when it was merely received.

2. Use an auditable decision and review pipeline

post + context → policy-specific models → decision service
                                              ↓
                         decision journal + enforcement outbox
                                              ↓
                                    serving/index actions
                                              ↓
author appeal → durable review queue → qualified reviewer
                                              ↓
                         appeal decision + restoration outbox
                                              ↓
                          applied-state reconciliation

random audits + adjudicated cases → versioned training/evaluation

Use separate records for predictions, policy decisions, appeals and applied effects. A review case references an immutable decision ID. Reviewers see the necessary context and policy rubric; independent adjudication handles disagreements and critical cases. Access to sensitive content is scoped and audited. A language or policy specialist may be required, so one global queue capacity is not enough.

Prioritize imminent harm and time-sensitive wrongful restrictions under explicit rules, while preserving capacity for older and lower-priority cases. Track age by queue and language. Never let a popularity-only priority score starve users with little reach. Maintain a random audit stream independent of appeals and operational urgency.

3. Make an overturned decision take effect

Appeal states include RECEIVED, IN_REVIEW, DECIDED and EFFECTS_APPLIED. A final decision can uphold or overturn; requesting more evidence keeps the case pending rather than counting it as resolved. Commit the outcome and a durable effect event together. A worker applies idempotent changes to the post, search index, distribution restrictions and any account strike caused by that specific decision. A reconciliation job discovers effects that remain pending after retries or crashes.

Do not blindly set a post to visible when one appeal succeeds. Model restrictions as individually identified reasons. If decision A is overturned but independent decision B still blocks the post, remove A's restriction and recompute effective visibility; retain B. Notify the user accurately that A was reversed while another restriction remains. If the author deleted the post, do not resurrect it. If a newer content version exists, do not overwrite it with the appealed snapshot.

Delayed duplicate enforcement events for A must not reapply an overturned restriction. Enforce a monotonic decision revision or terminal-state check at the effect consumer, not only in the producer. A successful reviewer action is not yet evidence that every serving surface has converged. Measure decision-to-effect latency and report unresolved partial restoration.

4. Calculate removal and appeal workload

Assume 1% of ten million daily posts violate a particular policy: 100,000 violating and 9,900,000 nonviolating posts. A hypothetical removal model with 90% recall and a 0.2% false-positive rate removes 90,000 violating and 19,800 nonviolating posts. Total removals are 109,800; removal precision is 90,000/109,800 = 81.97%. Even a small false-positive rate matters at this base rate.

Suppose 40% of wrongly removed posts are appealed, while 5% of correctly removed posts are appealed. This produces 7,920 + 4,500 = 12,420 appeals daily. If every appeal were adjudicated perfectly, 7,920/12,420 = 63.77% would be overturned. But the fraction of all removals that were wrong is 19,800/109,800 = 18.03%. The appeal overturn rate is not the removal error rate.

These numbers assume completed, perfect adjudication solely to demonstrate selection bias. Real reviewers disagree and pending cases are not known outcomes. Report appeal cohorts by original decision date, their resolved fraction and outcome maturity. Do not divide today's reversals of older cases by today's newly received appeals and call the result a cohort overturn rate.

At three minutes per appeal, 12,420 daily appeals require 621 productive review-hours. At five productive review-hours per reviewer-day, that is 124.2 reviewer-days, rounded up to at least 125 daily staffing equivalents before specialist mismatches, audits and headroom. With capacity of 10,000 appeals/day, backlog grows by 2,420/day or 16,940 over seven days. A deadline promise requires a queueing and staffing plan beyond average volume.

5. Measure the missing population

Randomly audit removals to estimate wrongful-removal fraction, and separately audit allowed content or sampled exposures to estimate missed violations or user exposure. These have different denominators. An item-level violation rate is not an impression-weighted prevalence measure: one widely distributed post may dominate user exposure.

Stratify by language, policy category, model version and action when useful, recording sampling probabilities. For example, audit 100 cases from a 90,000-case stratum and 100 from a 10,000-case stratum. If wrongful-removal estimates are 10% and 40%, respectively, the population-weighted estimate is 0.9 × 10% + 0.1 × 40% = 13%, not the unweighted 25%. Report uncertainty, label quality and strata with too little evidence.

Appeals are valuable for discovering failure modes and estimating the experience of appellants. They cannot identify the full population error rate without additional assumptions or independent sampling. A low appeal rate could reflect accurate enforcement, inaccessible appeals or users giving up; the rate alone cannot choose among those explanations.

6. Turn review outcomes into usable labels

Store the reviewer conclusion, reason, policy version, evidence and confidence separately from the restoration action. “Restored because the rule changed,” “insufficient evidence,” and “original decision incorrect” are different labels. A successful appeal need not mean the content is universally safe under every policy.

Train on adjudicated examples with explicit sampling weights or a documented mixture of random audits and targeted hard cases. Known audit inclusion probabilities support weighting that audit sample. Appeal propensities are generally unknown; assigning guessed inverse weights to appeals does not automatically remove their selection bias. Do not label every unappealed removal correct. Split by content family and time so duplicates of the same viral post do not leak across training and evaluation. Keep a frozen evaluation set plus fresh audits, and compare performance by language and policy severity before rollout.

For uncertain cases, consider human review or a reversible intermediate action where the policy permits it. Calibrate thresholds against asymmetric error costs and review capacity. Raising removal precision by sending everything to reviewers is not a deployable improvement if the resulting queue cannot meet its service target.

7. Failure analysis and follow-ups

Test duplicate appeals, reviewer disagreement, policy changes during review, an edited or deleted post, stale enforcement after restoration and one appeal affecting multiple linked restrictions. Monitor queue age, adjudication agreement, audit-estimated errors, time to restored effects and repeated reversals by model version.

Follow-ups: Can all identical posts be restored after one appeal? Only if policy context and restriction reasons are equivalent; shared bytes do not prove shared context. Can pending appeals be labeled upheld? No. Does a high overturn rate prove the model became worse? Changes in who appeals or which cases finish can also change it. Can a model train directly on all restoration events? Only after mapping reasons to the intended label semantics.

Score 0–2 each for policy/version semantics, durable restoration, selection-bias arithmetic, staffing feasibility and feedback-label quality. A strong answer distinguishes a review decision from the actual user-visible outcome.

Sources and next steps

The proposed design and calculations are original. Continue with selection bias for why an observed subset can misrepresent a population.

Continue your preparation

Choose a connected learning path or browse more ML system design questions. Read our editorial method and attribution policy.