Design Cost-Aware Content Integrity Decisions
Detect violating public posts and enforce one auditable decision while balancing a cheaper model, an LLM, and bounded human review.
Problem statement
For this exercise, assume users submit public text posts that remain pending until an automated integrity decision makes them visible, blocks them, or sends them to authorized human review. A versioned policy defines violation categories and action thresholds.
A cheaper classifier and a more costly LLM detector are available; choose how to use them under the latency, cost, review-capacity, and quality limits below. One content version under one policy version must have one authoritative automated routing outcome: allow, block, or review-pending.
Only allow and block are final automated verdicts; review-pending remains nonfinal for the latency target. Retries or late model outputs cannot create conflicting public actions, and a missing required signal cannot silently make a post visible.
Reviewers may correct a decision later, changing current visibility while retaining the original decision history. Enforcement must apply an event only while its expected current-decision revision is still current, so a delayed automated event cannot reverse a review correction.
Design submission, detector selection, decision aggregation, enforcement, review, evaluation, and safe policy/model rollout. The text-only scope and numeric targets are practice assumptions.
Defining the policy itself, image/video/audio moderation, appeals, account penalties, and recommendation ranking are outside scope.
What to build
- A user can submit one public text-post version, observe a pending state, and later see the current allowed, blocked, or review-pending outcome.
- The system can select cheaper-model and LLM analysis under a rolling cost budget, then produce a versioned allow, block, or review-pending policy outcome without hiding missing or failed evidence; review-pending is nonfinal for the automated-verdict latency target.
- An authoritative decision drives one idempotent, current-revision-fenced visibility action and retains restricted evidence of content, policy, detector versions, signals, and action basis.
- Authorized reviewers can correct uncertain or disputed decisions, and operators can evaluate slice-level quality with randomized audits before a guarded model or policy rollout.
At scalePractice assumption
- Peak input is 100 text posts per second; under the normal traffic mix, at least 99.9 percent of all submitted posts reach a final automated allow-or-block verdict within two seconds of submission. Review-pending is nonfinal and does not count toward this target.
- LLM detector calls may cover at most 5 percent of submitted posts over any rolling hour; the cheaper detector remains available at peak input.
- Authorized human review capacity is 10,000 cases per day. Pending and review queues must be measured, and overload may not silently turn a missing signal into an allow.
- On a versioned adjudicated evaluation set with randomized audits of allowed posts, critical-violation recall must be at least 95 percent and false blocks of legitimate content at most 0.5 percent; measure by important slices before promotion.