Preparing your design workspace

Loading the problem and your latest saved attempt…

Design Weapon-Sale Ad Detection and Review

Detect sale intent for prohibited weapon advertisements with reliable labels, bounded review, and safe enforcement.

Problem statement

For this exercise, assume a sponsor submits a public ad post with text and up to two images. The ad remains ineligible for paid distribution until a versioned policy decision allows it.

The policy asks whether the ad offers a prohibited controlled item for sale; an image showing a weapon without a sale offer is not sufficient. A policy owner defines item categories and enforcement thresholds. The system may allow, block, or send an uncertain case to authorized review.

A reviewed correction changes current enforcement while retaining the earlier automated decision. Design data collection and annotation, features and model choices, online scoring, evaluation, release, and review. Include how the system would respond when a newly prohibited item has few verified examples.

The ad surface, text/image scope, policy workflow, load and targets here are practice assumptions. Defining the underlying policy, legal determinations, private messages, and video analysis are outside scope.

What to build

  1. A sponsor submits one immutable ad version and sees pending, allowed, blocked, or review-pending status; only a current allow makes the ad eligible for paid distribution.
  2. The detection system distinguishes prohibited-item sale offers from benign depictions or discussions and records the versioned evidence behind each action.
  3. Operators obtain policy-versioned adjudicated labels from sampled ad traffic, train candidate models, and evaluate end-to-end and slice-level quality without treating selective review as representative ground truth.
  4. Authorized reviewers can correct a decision; operators can add a new prohibited category, evaluate a model or policy release, promote it safely, and roll it back.

At scalePractice assumption

  • 500,000 ad submissions arrive per day, with a burst of 200 per second; each ad contains text and up to two images.
  • At least 99 percent of normal-mix submissions receive a final automated allow or block within three seconds, measured from submission; pending and review-pending are not final automated successes.
  • The human-review team can adjudicate at most 8,000 cases per day, including deliberate audit samples and uncertain submissions.
  • Required analysis failure never makes an ad eligible for paid distribution; authorized corrections supersede older automated results without erasing audit history.