The interview problem

Practice prompt

Design a verification gate for an enterprise product-support assistant serving 100,000 answers daily. Answers contain eight externally checkable claims on average. Questions involve product versions, limits, prerequisites and configuration steps. Check generated answers against authorized documentation before release, repair recoverable errors, and explain when the system should abstain.

Original ML-design practice, not a reported company interview. Examples and workloads are hypothetical. Primary FActScore and ALCE research abstracts retrieved September 27, 2026.

1. Separate the promises being evaluated

A source can support a sentence that is wrong for the user's product version. A valid citation URL can point to an irrelevant passage. An answer can contain only supported sentences while omitting the prerequisite needed to complete the task. Define each target before selecting a verifier.

DimensionQuestion
Evidence supportDoes the identified evidence entail this specific claim?
Applicability and correctnessIs the evidence trustworthy and relevant to the entity, version, tier and time in the question?
Citation qualityDoes the displayed reference support the associated statement, and are material claims covered?
CompletenessDoes the answer address required subquestions, exceptions and prerequisites?
UsefulnessCan the user accomplish the intended task without misleading gaps?

The gate estimates these properties; it does not certify universal truth. Agree on the consequence of a material error and which unresolved cases require escalation. Treat unsupported, contradicted and inaccessible evidence as distinct states. Absence of retrieved evidence is not proof that a claim is false.

2. Verify the exact output that will be released

question + product context → authorized evidence retrieval
                                        ↓
                                 candidate answer
                                        ↓
                       claim extraction with qualifiers
                                        ↓
                evidence matching + applicability checks
                                        ↓
                entailment / contradiction / uncertainty
                                        ↓
               required-element coverage → release policy
                                        ↓
                 bounded repair → reverify → final release

Store the answer hash, original text spans, extracted claims, source IDs and versions, evidence spans, verifier version and release decision. The final text must match the verified version. A formatting or summarization step that changes meaning requires rechecking; citations cannot be attached later without checking their correspondence.

For a pre-release guarantee, buffer the answer until checking finishes. Streaming unverified text and retracting it afterward is a different product contract: users may already have acted on the text. If latency demands incremental release, define independently verified segments and prevent later context from changing their meaning.

Enforce tenant permissions during retrieval and at release as required by the access model. Keep source text as untrusted data, not instructions to the verifier. The checker must not follow a passage saying to mark itself correct, reveal secrets or invoke an external tool.

3. Preserve qualifiers when splitting claims

Consider: “Version 4 supports 100 projects and exports without an administrator.” Split this into a project-limit claim and an export-permission claim, retaining Version 4 in both. Suppose the documentation says 100 projects only on the Enterprise tier and exports require an administrator. The first claim lacks an essential condition; the second is contradicted.

Removing tier, version, negation or temporal qualifiers can turn an incorrect statement into a superficially supported fragment. Preserve units, entity identities, conditions and references to earlier sentences. A claim about a total may require several passages and an explicit calculation, not one matching phrase.

Audit extraction separately. If the extractor silently omits the invented export permission, a perfect checker on the remaining claims still misses the error. Maintain span coverage and a category for nonfactual text, then manually inspect unassigned material. Do not force preferences or recommendations into factual entailment labels without identifying their factual premises.

4. Match passages and determine applicability

Start with cited passages, then retrieve additional authorized evidence when support is insufficient. Record the exact document version and passage used. A working link establishes resolvability, not entailment. An old manual may faithfully support an obsolete limit; applicability checks must compare its version and scope with the question.

Use deterministic checks for structured facts such as units, dates, version ranges and arithmetic where possible. Use an entailment model for semantic relationships, with labels for supported, contradicted, insufficient evidence and conflicting sources. Preserve disagreement instead of compressing every case into a confidence average.

For multi-source claims, show the intermediate inference and verify all premises. Two mirrored documents are not independent corroboration. When sources disagree, apply a documented authority and recency policy or escalate. Missing permission to read a document must not be interpreted as evidence that the document or capability does not exist.

5. Calculate answer reliability, not just claim precision

Suppose an audited set has 100 answers with ten claims each. Of 1,000 claims, 950 are supported. Micro-averaged claim support is 95%, but the arrangement of the 50 unsupported claims matters.

Distribution of unsupported claimsFully supported answers
One unsupported claim in each of 50 answers50 of 100 = 50%
Ten unsupported claims in each of five answers95 of 100 = 95%

Both cases have the same claim-support score. Neither calculation proves the supported answers are complete or useful. Report material-error rates at answer level in addition to claim metrics. Avoid assuming claims are independent and raising a per-claim probability to the number of claims without evidence for that assumption.

Completeness needs a question-specific set of required elements, such as the requested limit, prerequisite role and exception. Validate this rubric independently; another generated checklist can miss the same prerequisite as the answer. Report answer coverage and useful completion alongside precision so that deleting difficult claims or always abstaining cannot masquerade as improvement.

6. Evaluate the verifier as a fallible classifier

On a gold set of 1,000 extracted claims, assume 100 are unsupported and 900 supported. The checker flags 80 unsupported claims and incorrectly flags 45 supported claims. For this binary example, unsupported means not established by the applicable gold evidence, including contradictions and insufficient support; it does not mean every such claim is false in the world.

Gold labelFlaggedAcceptedTotal
Unsupported8020100
Supported45855900
Total1258751,000
unsupported detection recall = 80 / 100 = 80%
flag precision = 80 / 125 = 64%
supported false-positive rate = 45 / 900 = 5%
unsupported fraction among accepted claims = 20 / 875 ≈ 2.29%

The false-negative rate is 20/100 = 20%, not 2.29%; those quantities use different denominators. These figures describe extracted claims, so extraction omissions require separate accounting. They also do not give the material-error rate among released answers: release depends on how flags are distributed across answers and what repair does.

Build human-adjudicated labels with source versions and question context. Use held-out customers, products and time periods. Include real failures plus controlled corruptions of numbers, negation, units and versions. Synthetic changes supplement real examples rather than serving as the only gold data. Double-annotate ambiguous cases and retain unresolved disagreements.

Use separate held-out calibration and threshold-selection data, then report final performance on an untouched test set. Select thresholds using risk-versus-coverage curves. Predictive values change with the prevalence of unsupported claims. Estimate uncertainty at answer level, or customer level when appropriate, instead of treating correlated claims as independent samples. A different checker model can reduce shared failure modes but does not establish independence from the generator.

7. Bound repair and preserve unresolved questions

Block material contradictions. For insufficient evidence, retrieve a better source or ask for missing version context. Attempt at most one or two repair rounds under an explicit latency and cost budget. Re-extract and recheck the entire changed answer; a new sentence can introduce a new error or change the meaning of an old one.

When support remains unavailable, omit the unsupported assertion and explicitly identify the unresolved subquestion. Do not claim the answer is complete after removing its essential step. Adding “please verify” after a contradicted instruction does not repair that instruction.

Send source conflicts or consequential unresolved cases to a qualified reviewer with evidence spans and the reason for disagreement. Audit a random sample of accepted answers as well as flagged ones; reviewing only flagged answers cannot measure silent errors. Keep the original and repaired decisions distinguishable for evaluation.

8. Size the verification and repair load

100,000 answers/day × 8 claims = 800,000 claim checks/day
average = 800,000 / 86,400 ≈ 9.26 checks/second
illustrative peak at 10× average ≈ 92.59 checks/second

Suppose a worker completes five checks per second for this measured context length. At a 70% utilization target, budget 3.5 checks per second per worker. The base estimate is ceil(92.59/3.5) = 27 workers before redundancy and operational margin.

If 10% of answers need one full recheck with the same average eight claims, the total becomes 880,000 checks daily. With the same peak multiplier, that is about 101.85 checks per second and ceil(101.85/3.5) = 30 workers. Different claim counts, selective checks or correlated repair bursts change this estimate.

Batching several claims into a call can reduce call overhead but does not proportionally eliminate evidence tokens or computation. Measure extraction, retrieval, verification and repair latency separately. Parallel checks still wait for their slowest required result. Cache only compatible claim, evidence, verifier and context versions; stale applicability and changed access permissions can invalidate reuse.

9. Roll out against explicit failure categories

Begin in shadow mode on representative authorized traffic, without changing answers. Compare proposed decisions with adjudicated outcomes, then pilot the gate on a narrow product scope. Track useful-answer coverage, accepted-answer material errors, citation support, missing prerequisites, abstention, repair success, latency and cost. Break down results by version, source type and customer context.

  • Extractor omission: an invented clause is never checked; audit full-answer span coverage.
  • Correct citation, wrong scope: the source supports another tier or version; verify applicability.
  • Checker agreement bias: generator and verifier share the same unsupported assumption; use independent evidence and human audits.
  • Precision gaming: repairs delete required content; measure completeness and useful coverage.
  • Stale cached judgment: evidence changes but a previous pass is reused; version cache inputs.
  • Unverified final rewrite: a presentation step adds a claim; bind release to the checked output.
  • Source instruction attack: retrieved text directs the checker; keep data separate from control instructions.

Reassess thresholds when product documentation, model versions or traffic mix change. A favorable benchmark result from a research paper is motivation to test, not a production acceptance certificate.

10. Follow-ups and self-review

Follow-ups: How would you verify a calculation spanning three documents? What if the authoritative source is wrong? Can an answer cite a source the user cannot open? How should conflicting versions be displayed? What changes for partial streaming? How would you quantify a prerequisite omitted by both the generator and the checklist?

  • Separate factual support, applicability, citation quality and completeness.
  • Preserve qualifiers and measure extraction omissions.
  • Ground decisions in specific authorized evidence versions.
  • Use correct claim-level and answer-level denominators.
  • Measure silent errors in accepted outputs, not only flagged cases.
  • Reverify final repairs and bound retry cost.
  • Evaluate usefulness and coverage alongside precision.
  • State the checker's uncertainty and correlated failure modes.

Sources and attribution

Retrieved September 27, 2026. No interview date applies. The architecture, examples, confusion matrix and capacity calculations are original practice material; no research benchmark scores are claimed for this proposed system.

Continue your preparation

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