Skip to content
Forward Deployed

Forward Deployed

Document Review Copilot

Turn versioned rules and evidence into a verified draft for a named human reviewer.

Kind
Case study
Level
Core
Sections
5
By
Sourav Banerjee
Last updated
20 Nov 2026

Report an issue

Case brief

Understand the scenario, task, and constraints.

From a document packet to a reviewable draft

A document review copilot helps a person compare documents with a set of requirements. It finds the relevant facts, links them to the source passages, identifies missing or conflicting evidence, and prepares a draft for review. The output should make it easier to check a decision, with a clear account of what the documents do and do not support.

This case follows a healthcare coordinator preparing a prior-authorisation request: a request for an insurer to approve a procedure. The insurer, also called the payer, publishes a policy describing the required evidence. The coordinator assembles the request packet, which contains the draft request and supporting patient records. A named clinician checks the clinical content and approves, edits or rejects the draft. External submission is a separately authorised action.

The same approach supports other review tasks. A compliance analyst compares a communication with applicable obligations. A lawyer compares contract clauses with an approved playbook. Claims processing can reuse evidence extraction and triage. Each workflow has different rules, data permissions and decision owners; the healthcare example does not validate those other uses.

One request, from records to outstanding questions

Consider an illustrative case where the payer’s policy requires evidence of a previous therapy. The coordinator selects the patient’s case and asks for an internal draft. The copilot needs the records the coordinator may access and the policy version applicable to the procedure and date of service.

The copilot extracts the relevant facts and retains their page or passage references. It compares those facts with the policy’s requirements. If the records contain no evidence of the previous therapy, it marks that requirement as a gap. It must not turn missing evidence into a claim that treatment occurred.

The coordinator receives a draft with supporting citations, a missing-evidence list and unresolved conflicts. The clinician can follow each citation, request additional records, edit the draft or reject it. The diagram includes a check that must happen before this review: confirm that the software could read the required pages and tables at all.

Extract evidence, compare against rules, draft supported text and obtain human approval, source figure 1.Dark source variant: Extract evidence, compare against rules, draft supported text and obtain human approval, source figure 1.
Extract evidence, compare against rules, draft supported text and obtain human approval, source figure 1. Open the figure for full size.

The design task and first release

Design the path from permitted documents and the applicable rule to a supported draft and a recorded human decision. Explain document extraction, rule-version selection, evidence fields, comparisons, citation checks and escalation. The system must keep uncertainty visible throughout that path.

Suppose page 7 holds a required policy table, but the parser, the software that extracts text and tables, cannot read it. Stop the affected review, reprocess the document and validate the corrected extraction before relying on it. More search results cannot restore evidence that never reached the index.

The first release produces internal drafts. Qualified human owners retain clinical, legal, compliance and claims decisions. Changing case records, sending communications and submitting externally require a separately approved action flow. Access controls and data minimisation apply to protected health information (PHI) and other sensitive records. Reviewer edits do not become training data by default.

This case is for engineers designing review workflows or preparing for forward-deployed, solutions or applied-AI interviews. Familiarity with APIs, parsing, retrieval and model calls helps. Use the walkthrough to develop the design, the deep dives to examine its mechanisms, and Practice to test it. Evaluate extraction accuracy, claim support, citation correctness and escalation separately: a good result on one does not establish the others.

Next: build the answer in interview order.

Start the walkthrough

Design walkthrough

Follow the reasoning from discovery to delivery.

1. Find the decision and its owner

Identify the exact review and the person who owns its outcome. A coordinator assembling records needs a draft and missing-evidence list. A clinician needs to verify clinical claims before signing. An operations manager needs preparation time, rework and failure rates. The privacy or compliance officer needs evidence of access and audit controls, plus authority to stop a release that violates them.

Ask for the five highest-volume cases and the five with the greatest consequences if wrong. These may call for different treatment: routine extraction for one group and careful exception review for the other. Agree which operations read, draft or change data. Then identify the governing rules, effective dates, critical fields and tables, patient or matter permissions, allowed provider handling and escalation route.

Discovery questions that determine the workflow.

Question to ask What the answer decides
Which exact review workflow is slow, risky or inconsistent today, and what decision does the user make at the end of it? The scope of the first slice and the definition of done
Who is the primary user, who reviews the output, and who owns the risk if the assistant is wrong? The approval routing and the audit trail’s audience
Which tasks are read-only, which are draft-only, and which need explicit human approval before write-back? The tool allowlist and the risk tiers
Which systems hold the trusted source of truth, and how do their permissions, freshness and ownership differ? The connector list, the ACL mapping, the freshness SLO per source
What are the top 5 recurring cases by volume and the top 5 highest-risk cases by impact? Where the cheap path and the expensive path each go
What answer must the assistant refuse or escalate instead of generating? The output policy engine’s refuse and escalate modes
What audit evidence must be stored so security, legal or management can reconstruct why the system answered? The audit record’s fields
Are payer rules structured policies, PDFs, web portals or internal documents? The ingestion pipeline and the table-extraction gate
Are we allowed to generate text that goes directly to the payer, or only internal drafts? Whether external submission exists at all in version one
How should the system behave when clinical notes conflict with payer rules? The conflict policy: surface, prefer the approved current source, escalate
Which PHI fields are necessary, and what is excluded from prompts and logs? Data minimisation and the log redaction rules

Users, noticed failures and approval roles.

User Workflow Failure they notice first What the copilot gives them Approval role
Coordinator, analyst or contract reviewer Selects the case, gathers the packet, checks required evidence, identifies what is missing A packet that comes back incomplete or wrong Draft with citations, a missing-evidence list, a denial-risk or deviation explanation Prepares; does not approve
Clinician, compliance manager or counsel Reviews the draft, confirms necessity or risk, overrides wrong suggestions, approves Language that reads as a decision they did not make An editable draft where every claim links to its source, with confidence and escalation reason Approves, rejects, edits, or asks for more documentation
Revenue-cycle, surveillance or legal-ops manager Tracks denial patterns, false-positive burden, turnaround A tool that adds review time without improving first-pass rate Dashboards separating operational from safety metrics Approves rollout stages
Compliance or privacy officer Reviews audit logs, access controls, PHI handling A record accessed without a reason, or PHI in a log Immutable audit of evidence IDs, policy versions, edits and approvals; least-privilege access Any violation blocks release

For a prior-authorisation case, “rule out” in a note is not a confirmed diagnosis. A governing rule and clinical notes can disagree or leave evidence missing. The system should expose the conflict with source versions and route it to the professional who owns the decision. It should not manufacture a resolution from general model knowledge.

2. Specify what must be observable

Make every required outcome independently checkable. The system must select the governing rule for the case, extract facts or clauses into named fields with defined types, attach their supporting passages, and compare them with the requirements. A draft may use only supported claims. Missing, stale or conflicting evidence must remain visible and route to the named reviewer. The audit must preserve the evidence and rule versions, generated draft, edits and final state.

Give the reviewer explicit edit, approve, reject and override actions, with a reason where the workflow requires one. Show confidence alongside the field or gap it describes; do not treat it as an approval. Govern how corrections enter evaluation and whether any later training is allowed. Operators need source freshness, policy configuration, blocked actions and an audit export.

Testable constraints and illustrative latency expectations.

Constraint Stated so it can be tested
Latency Interactive questions 3 to 8 s; packet generation under 10 to 20 s per the vendor case; bulk surveillance runs overnight as batch with an interactive p95 under 10 s for analyst drill-down. Longer workflows go asynchronous with progress state
Availability Business-critical hours with graceful degradation when the LLM, the vector store or a source system is down: partial packet with gaps labelled, or refusal, never a silent guess
Cost Token budgets, caching for stable policy documents, retrieval pruning, small models for classification and extraction, the strong model routed only to flagged risk. Reported as cost per document and cost per true issue found
Security and privacy SSO; RBAC and ABAC; source-level ACLs and patient-level access restrictions; encryption in transit and at rest; secrets management; no training on customer data unless the contract allows; PHI minimised in prompts and redacted from logs
Audit and compliance Immutable log of queries, retrieved evidence IDs, policy versions, model and prompt version, policy decisions, reviewer edits, approvals and final output, with full evidence traceability for every generated statement
Reliability Fail closed on permission uncertainty, stale rules, missing citations and any high-risk write action. Degrade on retrieval quality. Low hallucination tolerance for clinical, payer or policy claims

Requirements and the components that implement them.

Requirement Primary component(s)
Governing rule by version Policy ingestion pipeline, rule versioning store, rule retriever
Evidence and clause extraction Parser with table extraction, extraction service with schema, evidence mapper
Draft with span-level citations Drafting service, citation builder, citation verifier
Missing evidence and gap detection Completeness and risk checker
Route material cases to a human Risk tiering, review queue, approval workflow
Complete audit trail Audit and compliance layer, trace store
No cross-user or cross-patient disclosure Identity mapping, permission-aware retrieval, output policy engine
Fail closed on missing citation Citation verifier, output policy engine

The source uses interactive answers in three to eight seconds, packet generation around ten to twenty seconds, overnight batch screening and a p95 drill-down target below ten seconds. The packet range is a source-reported expectation, not a demonstrated benchmark for this prototype. Longer jobs need status and an asynchronous result. Missing permissions, governing rules, material citations or required approval must stop the corresponding transition even when the service is busy.

3. Draw one processing spine

Separate preparing evidence from reviewing one case. In the background, ingest approved documents and versioned rules, parse their pages and tables, and measure extraction coverage. At request time, authenticate the user and bind the tenant and patient or matter. A tenant is the organisation boundary used to isolate records. Classify the operation as reading, drafting or acting before accessing the case.

Retrieve the permitted evidence and applicable rule version. Use a smaller model to extract typed fields, meaning values with a defined structure, with links to their supporting spans. Deterministic comparison code applies the stated requirements to those fields and flags gaps or conflicts. Route unknown or high-risk cases to the appropriate reviewer. A stronger model drafts difficult cases from the selected evidence. Verify each material citation before presenting an editable draft for human review.

The main document-review pipeline, source figure 1.Dark source variant: The main document-review pipeline, source figure 1.
The main document-review pipeline, source figure 1. Open the figure for full size.

The control plane versions extraction schemas, rules, thresholds, approval routes, identity mappings, connector credentials, parsers, prompts, models, budgets and evaluation gates. The serving path records those versions. Otherwise, a changed threshold or parser could silently alter a review while the audit still refers to the old behaviour.

The complete architecture and its ingestion and review-path zooms, source figure 1.Dark source variant: The complete architecture and its ingestion and review-path zooms, source figure 1.
The complete architecture and its ingestion and review-path zooms, source figure 1. Open the figure for full size.
The complete architecture and its ingestion and review-path zooms, source figure 2.Dark source variant: The complete architecture and its ingestion and review-path zooms, source figure 2.
The complete architecture and its ingestion and review-path zooms, source figure 2. Open the figure for full size.
The complete architecture and its ingestion and review-path zooms, source figure 3.Dark source variant: The complete architecture and its ingestion and review-path zooms, source figure 3.
The complete architecture and its ingestion and review-path zooms, source figure 3. Open the figure for full size.

Components, responsibilities and failure behaviour.

Component Responsibility Fails how
Gateway and identity Authenticate via SSO, load role and tenant, scope to the patient or matter, classify the request as read, draft or action Closed: no scope, no case
Rule ingestion and version store Ingest payer policies, regulations, playbooks; version by effective and expiry date Degrades: an unversioned rule is excluded, not guessed
Parser, table extractor, layout QA Convert PDFs to text and tables; emit coverage and confidence; gate high-risk documents Closed: low table coverage on a high-risk document fails ingestion
Extraction service Map document content into the schema for its type with a cheap model Degrades: low-confidence fields flagged as missing, never filled
Rule retriever Fetch the governing rule at the right version, under the user’s permissions Closed: no permitted rule, no draft
Comparison and gap detector Evidence against criteria; missing, stale, conflicting flagged Degrades: gaps listed, draft marked incomplete
Risk classifier and router Assign a tier; decide reviewer-accept versus named-approver Closed: unknown tier routes up, never down
Drafting service Strong model only on flagged tiers; never writes decision language Refuses when evidence is missing or conflicting
Citation builder and verifier Cite the exact supporting span; reject any citation that is not the span used or not permitted Closed on span mismatch
Approval workflow Named approver edits, approves, rejects; nothing external leaves without it Closed: no approver, no submission
Audit, trace, eval, dashboards Rule IDs and versions, evidence IDs, draft, edits, approval; golden and red-team evals; operational and safety metrics apart Degrades: preparation continues, gap logged; approval waits for a durable audit record

There are three separate boundaries to defend. Extraction turns source documents into uncertain typed evidence. Verification tests whether a draft and citation are supported. Human approval authorises the material decision. Buying a stronger model does not collapse those boundaries into one reliable step.

4. Make the schema carry evidence

A field must explain both its value and where that value came from. Store the source document, page or offsets, version, and confidence or missing-state reason alongside the extracted value. The comparison can then join a case fact to the applicable rule and show the reviewer the evidence for its conclusion. A value without provenance cannot support that explanation.

For prior authorisation, preserve payer, plan, procedure, diagnosis codes, date of service, prior therapies, labs and imaging. A low-confidence diagnosis remains uncertain. For compliance, carry document type, jurisdiction, product, business unit, obligation and evidence span. For a contract, carry clause type, normalised text, counterparty, jurisdiction and confidentiality, then compare to the approved playbook.

A typed representation gives deterministic code something concrete to validate. Give each field separate states for present, absent from the supplied records, not extracted and conflicting. If OCR cannot read the therapy table, the system has not established that therapy is undocumented. It has an extraction failure. Preserve the page reference and block the affected conclusion until reprocessing or review resolves it. A model returning a long summary of the file does not prove that the required field was found or that the source supports it.

5. Keep sensitive data inside its scope

Use single sign-on (SSO) to establish identity, then apply role and attribute policies to the requested tenant and patient, customer or matter. Carry that scope through retrieval, index access, model input, provider routing, logs and the review interface. Checking a patient ID at the gateway is insufficient if a later search can return another patient’s record.

Use least-privilege credentials, encryption and secret management. Minimise prompts, redact logs, agree retention/deletion and residency, and review provider contracts and training restrictions. Store source IDs and rule versions when raw content is unnecessary. An approved break-glass workflow requires a reason and audit trail. Retrieved instructions in a PDF or email cannot widen these permissions or trigger submission.

6. Evaluate each stage against a human reference

Test the output of each stage against a reviewed reference. Did extraction recover the required field? Does each draft claim follow from the evidence? Does its citation point to the actual supporting span? Did the case reach the right reviewer? Historical decisions reviewed by subject-matter experts can help establish these labels. Model-generated scores alone cannot supply the reference. Audit high-risk extraction fields on a sample every release.

Illustrative evaluation bars, failure thresholds and owners.

Metric Good threshold Bad threshold Test dataset Owner
Extraction accuracy on a sampled audit Agreed bar per field; high-risk fields audited every release Any drop on a high-risk field Sampled documents with SME-labelled fields SME / eval
Answer groundedness >= 90% supported claims < 80% Golden Q&A + SME review FDE / SME
Citation accuracy at span level >= 95% correct citations < 85% Source-span audit with clause-level labels SME
Permission and PHI violations 0 > 0 ACL and PHI red-team suite Security
Escalation quality >= 95% correct escalation on high-risk cases Missed high-risk case Risk-labelled scenarios Product / compliance
Task completion >= 80% workflows completed with less manual effort < 65% Workflow replay tests Product
Unsupported claim rate Blocked or flagged, trending to zero Any unsupported claim in an approved packet Evidence-faithfulness review SME
Reviewer override rate and edits Falling over the pilot; spikes investigated Rising Production telemetry Product
p95 latency and cost per document Within budget; cost per true issue found tracked Breach Load test + telemetry Platform

The source’s example targets include groundedness at least 90% with below 80% treated as bad; citation correctness at least 95% with below 85% bad; high-risk escalation at least 95%; and task completion at least 80% with below 65% bad. PHI or permission violations must be zero in the defined suite. These are design examples, not clinical validation standards or a claim of regulatory compliance. The subject-matter expert (SME), Product, Security and Platform owners must agree the actual gates.

Track unsupported approved claims, false-positive burden, reviewer overrides, extraction accuracy, p95 and cost. An edit-rate spike can indicate drift. A low edit rate alone does not prove quality if reviewers have stopped checking. For prior authorisation, measure preparation time, first-pass approval, coordinator rework, clinician review time and denial categories by payer. For compliance, track high-risk recall, escalation precision, audit completeness, injection resilience and drift.

7. Roll out through shadow work

In weeks 0-1, agree the workflow, risk boundary, success measures, source owners, approvals and exclusions. In weeks 1-2, ingest a limited approved corpus and validate it offline, with no external submission or write-back. In weeks 2-3, compare historical cases with expert decisions and run adversarial tests. During weeks 3-4, generate drafts in shadow mode: measure them while preventing users from acting on them. Calibrate risk thresholds before the reviewer pilot.

Rollout stages and gates.

Stage Gate
Week 0-1 Define the workflow, the risk boundary, success metrics, source owners, approval rules and non-goals
Week 1-2 Ingest a limited approved corpus; offline prototype with no write-back and no external communication
Week 2-3 Golden dataset from historical cases and SME-approved answers; red-team and permission tests
Week 3-4 Shadow mode: drafts generated, compared with human decisions, never shown to end users; thresholds calibrated by risk category
Week 5 Read-only pilot with citations, confidence, feedback capture and an escalation path; coordinators use drafts, every request needs the approver
Week 6-8 Draft-only workflow actions behind human approval; one high-volume low-risk category first, such as imaging authorisation or one business unit
After Outcome measurement: approval rate, denial reasons, preparation time, override rate. Expand payers, categories or document types only while eval metrics, incident rate, latency and cost hold; keep the rollback plan

Around week 5, offer a read-only reviewer pilot with citations, uncertainty, feedback and escalation. In weeks 6-8, start one high-volume, low-risk category, payer or business unit with approved draft actions. Expand only after observed outcomes justify it. Autonomous adjudication would require additional governance beyond this design.

A parser, chunker, model, prompt, rule or threshold change is a versioned release. Keep the previous configuration and compatible evidence/index state for rollback. Publishing a new parser without coverage regression tests can make a previously correct answer impossible.

Try the case yourself

Technical deep dives

Examine mechanisms, alternatives, and operational consequences.

One spine, distinct schemas and source contracts

For prior authorisation, extract facts from encounter notes, codes, labs, imaging and therapy records. Select the payer/plan/procedure rule for the service date, then map each required fact to its evidence. Patient, Encounter, PayerPolicy, AuthRequest, EvidenceLink and AuditLog records preserve those relationships. The reviewer receives a cited packet, missing-evidence flags and any denial-risk explanation that the evidence supports. The clinician retains the clinical decision.

Compliance ingests adviser email, chat, marketing drafts, client and regulatory documents. Rules depend on jurisdiction, product and business unit. Document, Rule, Finding, ReviewerDecision and AuditLog records link obligations to exact evidence, severity and remediation. An analyst reviews routine findings; a supervisor or counsel reviews higher-risk cases. A banned-phrase detector can miss subtle promissory language and does not establish supervision quality.

Contract review starts with uploaded contracts and extracted clauses, not clinical fields. Contract, Clause, PlaybookRule, RiskFinding and ReviewAction records preserve the clause type and jurisdiction. Compare to preferred terms and approved fallback language. A model must not invent legal language or accept a material fallback without counsel. Matter confidentiality, privilege and counterparty scope affect retrieval and display.

How three workflows map onto the shared processing spine.

Prior authorisation Financial compliance Legal contract
Document in Patient encounter, clinical notes, labs, imaging, prior therapies Advisor email, chat, marketing draft, client or regulatory document Uploaded contract
Governing rule Payer policy, versioned by payer, plan, procedure, diagnosis, date of service Regulatory rule library and internal policy, by jurisdiction and product Negotiation playbook and clause library, by clause type
Extraction Medical-necessity evidence mapped to payer requirements Policy gaps, promissory language, disclosure gaps Clauses by type, normalised text
Comparison Evidence versus criteria; missing documents; conflicting notes Text versus obligation; severity Clause versus preferred position; deviation
Output Draft packet with citations, denial-risk explanation Findings with rule citations, risk class, remediation notes Flagged deviations, risk rationale, proposed fallback language
Human Clinician approves before submission Analyst then supervisor or legal on high risk Counsel on material changes
Records Patient, Encounter, PayerPolicy, AuthRequest, EvidenceLink, AuditLog Document, Rule, Finding, ReviewerDecision, AuditLog Contract, Clause, PlaybookRule, RiskFinding, ReviewAction
Sources EHR via FHIR, payer portals, document store, claims system, IdP, audit logs DMS, policy repository, regulatory rule library, GRC platform, case management, IdP CLM, contract repository, clause library, playbook, DMS, e-signature, IdP
Persona-specific red-team PHI leakage, invented necessity, stale payer rule, wrong patient, "just submit it anyway" Missed violation, outdated regulation, hallucinated rule, over-automation of legal judgement Unauthorised legal advice, privilege leakage, wrong jurisdiction, hallucinated clause, risky fallback accepted without a lawyer

Source formats, owners, freshness, permissions and failure risks.

Data source Format Owner Freshness Permission model Risk
EHR via FHIR Structured codes, notes, labs, imaging reports Clinical informatics Minutes if the EHR supports FHIR Subscriptions; otherwise polled Patient-level and role-based; break-the-glass audited Wrong patient; PHI over-exposure; "rule out" read as confirmed
Payer policy portals and PDFs Semi-structured PDFs, portal pages Payer relations Days to weeks; versioned by effective date Public or contract-restricted Outdated rule version; tables dropped by the parser; injection in an uploaded PDF
Regulatory rule library and GRC Structured obligations, policy documents Compliance Weeks; versioned Business-unit and jurisdiction Superseded obligation; wrong jurisdiction
Advisor communications Email, chat, drafts Surveillance Real time; immutable ingestion Supervisory and legal hold Injection inside reviewed messages; PII and financial data
CLM and contract repository Contracts, clause library, playbook Legal ops Days Matter-level and confidentiality level; privilege Privilege leakage; wrong jurisdiction; stale playbook
Case, claims and e-signature systems Structured records Operations Minutes Queue and role membership Write-back without approval

An electronic health record (EHR) integration may use FHIR, the health-data exchange standard. Minute-level updates depend on actual subscription support; otherwise polling governs lag. Subscription support alone does not establish an update-latency guarantee. In FHIR R5, event numbering and heartbeats help a client detect missed notifications, while delivery behaviour depends on the channel and server (FHIR R5 subscriptions). Persist the last processed event, reconcile gaps against the source, and make repeated notifications idempotent before publishing a new evidence version. Payer PDFs and portals can change over days or weeks while carrying future effective dates. Regulatory libraries and internal policies need jurisdiction and version tracking. Adviser communications may arrive continuously and require retention controls. Contract lifecycle management (CLM), document management (DMS), governance/risk/compliance (GRC), claims and e-sign systems each retain their own ownership and permission contracts.

Claims processing can reuse classification, optical character recognition (OCR), extraction, summarisation and missing-information triage. Fraud or anomaly signals need explainability, thresholds, human decision evaluation and rollout by claim type. Treat autonomous adjudication as a separate scope with additional approval and evidence requirements. An example from one workflow does not validate the others.

Parser coverage and rule-version selection

Measure what the parser recovered before publishing the document for retrieval. OCR converts scanned page images into text, but text extraction can still miss rotated tables, reading order or page anchors. Check page-level coverage, layout confidence, detected and extracted table counts, and the specific regions needed for the review. A non-empty file or successful HTTP response does not establish that those regions survived.

Extract tables separately from prose. Preserve each row or row group with its header and schema metadata; a zero-overlap row record can work when the header travels with it. Do not split the condition from its threshold or the approver from the applicable amount. Keep page anchors and the original document so an operator and reviewer can inspect the evidence.

Define an agreed coverage gate for policy documents with tables. Below that gate, fail ingestion and reprocess using OCR/table fallback. A warning is insufficient when the omitted content governs the decision. Block affected questions until the corrected index passes checks. Re-evaluate every parser/chunker change against rotated pages, merged cells, layout changes and known critical tables.

Rule selection is a join over case attributes and time. Choose the policy effective at the date of service or applicable transaction, including expiry and jurisdiction. “Latest” can select a future rule for an older case. Store and show the selected version and any mismatch. If clinical notes conflict with policy requirements, preserve both evidence sets and escalate the gap. Do not use a model to invent the missing clinical fact.

Drafting, citation verification and approval states

Use the extraction schema to limit what later stages may assume. A smaller model fills routine fields from permitted evidence. Comparison code checks the extracted fields against the rule. Unknown and conflicting values stay explicit rather than becoming plausible facts. Send selected evidence to a stronger model when a flagged or difficult case needs drafting, and record why that route was chosen. Model size cannot compensate for an omitted source table.

A citation builder must attach the exact supporting span, page or clause to each material claim. The verifier checks semantic support, source version and whether the reviewer may open the evidence. It must not attach the nearest chunk or shortest plausible clause merely because the answer sounds right. A contract fallback from an approved playbook still needs counsel where the approval policy requires it.

Move a case through explicit states: ingested, extraction validated, gaps/risk assessed, draft verified, pending review, approved or rejected. An edit creates a new draft version and returns it to verification and review. Bind approval to the exact draft, case identity, evidence set and governing-rule version that the reviewer inspected. If any of those changes materially, require a fresh approval. A request saying “just submit” does not skip the permitted human transition. If approval workflow or required citation verification is unavailable, keep the case pending.

Final decisions require an immutable audit. When audit storage is unavailable, internal preparation may continue with a visible audit-pending state, but final approval or any external transition waits until its audit record is durable.

Sensitive data, injection and degraded service

Classify the records before choosing where each stage may run. Patient information, personal data, financial records and privileged contracts need scoped access throughout the pipeline. Agree encryption, tenancy, retention/deletion, audit, residency, human oversight, explainability, model/prompt versions, incident response, vendor risk and governance with their owners. Production requirements depend on the workflow and its professional and legal review; this case does not determine compliance.

A document can instruct the model to ignore the reviewer, expose another patient, or invoke a tool. Keep document text as data. The gateway binds identity and scope. Output policy and tool approval checks run outside the model. A disclaimer has no effect on a credential or submission endpoint.

Failure responses by stage.

Fails Behaviour
Parser drops tables or pages on a high-risk document Ingestion fails; document reprocessed with OCR and table fallback; affected questions blocked until the corrected index is live
Rule version missing or stale for the date of service Draft refused; policy-version mismatch counted; reviewer told which version was expected
Evidence missing, conflicting, or a note says "rule out" Gap flagged, no language invented, case escalated to the clinician or analyst
Citation span does not match the claim Response rejected; low citation-accuracy answers routed to human review
Wrong patient or matter in scope Closed: patient-level restriction in retrieval, never in the prompt
Retrieved document carries embedded instructions Treated as untrusted data (this lowers but does not stop injection), so it can never trigger an action or widen access; suspicious chunks flagged; red-team test in the gate
LLM, vector store or a source system down Partial packet with gaps labelled, or refusal; overnight batch queued; never a silent guess
User asks to "just submit it anyway" Refused; autonomous submission is disabled by design
Approval workflow unavailable Fail closed. Nothing leaves.

A missing or stale rule should return the expected version and a clear refusal or escalation. Missing step therapy becomes a gap. A wrong patient fails closed. A mismatched span rejects the draft. A provider, index or source outage may produce a labelled partial packet or a queued batch, but never a complete-looking decision with hidden gaps. Material approval remains blocked when required evidence or approval is missing.

Retain audit references to input documents, rule versions, parser/schema/model/prompt versions, extracted fields, comparisons, evidence links, generated drafts, reviewer edits and final state. Restrict trace access and avoid unnecessary raw PHI. This permits investigation without turning every prompt into a permanent copy of the patient record.

Incident: correct answer, wrong clause

In the source’s legal-review incident of 8 July 2026, the answer described the correct 30-day termination-for-convenience right but linked the wrong clause. Clause 8.2 supported the claim; the response cited Clause 12.4, a data-processing clause. Groundedness was 0.91 while citation accuracy was 0.38. Those scores diagnose two different components: generating a supported statement and attaching the evidence the reviewer will open.

The trace trc_cite_2088, request req_legal_33102, document doc_contoso_msa_2026, tenant acme and pipeline cite_v5 provide the source’s example replay keys. The wrong clause scored 0.74 and the true clause 0.68, with the correct span ranked seventh. Reranking used semantic_similarity and heading_match but lacked clause-type features. The verifier recorded span_match=false and still allowed the draft because groundedness exceeded 0.85.

Contain by rolling back to cite_v4 and routing low-citation-confidence drafts to human review. Repair the exact-span gate and clause-type features, then replay the termination example and other clause families. Measure answer correctness, citation correctness and quote/span match separately. Highlight the actual source clause in the UI. A correct general answer with a misleading legal link still fails the product’s evidence promise.

Incident: the policy table never reached the index

In the source’s second 8 July 2026 incident, a compliance answer missed the requirement for Head of Compliance plus Legal approval on a trade exception above €5 million. The PDF had 48 pages and 17 detected tables. Extraction recovered only nine tables, or 52.9% (9 ÷ 17 × 100, rounded to one decimal place). The count exposes a loss, but even 17 recovered tables would not prove that the €5 million threshold, currency and joint-approval cells were extracted correctly. Check those critical cells against the original page as well. Layout confidence was 0.61 and ocr_fallback=false, yet ingestion reported success. The defect had already entered the index before the user asked the question.

Trace trc_parse_8827 and request req_fin_55019 showed missing text on pages 31, 32 and 33. The missing restricted_list_threshold_matrix was expected on page 32. Retrieval returned pages 12, 13, 14 and 21. Its context had table_required=true, chunk_has_table=false, and completeness 0.46. The 184-chunk index used heading_aware_v2 and text_embed_v5.

A parser upgrade from pdf_extract_v2.9 to pdf_extract_v3.2 had regressed on rotated landscape tables. The document was misclassified as a plain policy, making coverage a warning rather than a hard gate. Reprocess with OCR/table fallback, manually inspect the missing pages, rebuild and validate the affected index, and block those questions meanwhile. Add policy-with-tables classification, critical-page coverage gates, rotation regression fixtures and stored page warnings. Raising top-k cannot retrieve absent content.

Cost, bulk screening and delivery pressure

Begin cost analysis with the amount of document text processed and the model used for it. In the source design, long input contexts and routing every page through the strongest model dominate cost. Deduplicate repeated templates by content hash, select relevant sections, use smaller models for routine typed extraction, and compare requirements in deterministic code. Reserve stronger drafting for flagged cases. Audit the cheaper path’s extraction and support quality as well.

Cost drivers, routing and measurement.

Dominant driver Input tokens on long documents, and every page going through the strongest model
Cheapest lever first Extract only the relevant sections first; dedupe templated documents by hash; cheap model for extraction, strong model only on flagged risk; batch the non-urgent queue off-peak
Metric that proves it Cost per document; tokens per document; escalation rate; extraction accuracy on a sampled audit
Do not Send the whole document to the premium model every time

For bulk surveillance, inexpensive rules or classifiers screen all items and route borderline or high-risk cases to the model and reviewer. Sample low-risk cases to detect missed issues. Monitor the flagged fraction: if it grows, expensive work can approach the full workload. Prioritise high-risk queues, precompute rule matches and embeddings, and use off-peak batch processing where the workflow permits it.

If a drill-down takes eighteen seconds against a below-ten-second target, profile stages first. Parallelise independent lookups, cache permission/version-sensitive work, reduce irrelevant context and tune candidate counts. Streaming can improve perceived progress. Keep material citation verification synchronous before serving an actionable draft. Only non-material explanatory work may move later under the agreed risk policy.

Measure cost per document and cost per true issue found, along with tokens, extraction accuracy, escalation and reviewer effort. A global switch to a cheaper model can reduce the bill while increasing missed high-risk findings. Business value, failure cost and return-on-investment assumptions need observed workflow data before expansion.

References and source context

The November review adds the FHIR R5 notification-delivery qualification linked above, distinguishes unread fields from absent evidence, and binds approval to a verified draft version. The incident counts and scores remain source-reported examples. Table counts and confidence scores are diagnostic signals, not clinical validation results.

The tables and diagrams retain source case data. Numerical targets are illustrative unless explicitly identified otherwise. This adaptation reorganises the source’s repeated interview, deep-dive, cheat-sheet and full-pack explanations. The incident numbers above are source-reported examples, not incidents observed in this prototype. The source lists a 27 September 2026 reference check. Its retention, supervision and vendor examples need current workflow-specific review before a production claim.

Apply the decisions

Practice

Attempt the case before revealing the worked reasoning.

Design before opening the answers

Draw the prior-authorisation workflow without looking at the guide. Identify the coordinator and clinician, select a rule by case attributes and date, define one evidence field, and show how extraction and citation checks gate the draft. Then handle a missing therapy record, an unread table on page 7 and a coordinator asking to submit before review. State which outcome each case should reach and who owns the next action.

Use the notes to record assumptions and tradeoffs. The prototype stores these locally. It does not connect to records, make clinical decisions or submit a packet. Try the nine source checks before revealing the worked answers.

Work through your answer

This local worksheet is a prototype addition. Notes save in this browser. Nothing is submitted or scored.

No notes yet.

Check your reasoning

Reveal the self-assessment rubric

This checklist is an authored addition. Assess what you can explain without reopening the walkthrough.

0 of 5 reasoning checks covered.

Nine checks with worked answers

Why is a wrong citation severe when the answer is correct?

The reviewer relies on the linked evidence to verify and approve the claim. A link to an unrelated clause misrepresents that support and can hide a missing or inapplicable rule. Reject or repair the draft before material review.

How can groundedness be 0.91 while citation accuracy is 0.38?

The answer can follow evidence found somewhere in the context while the citation builder attaches a different span. In the source incident, Clause 8.2 supported termination but Clause 12.4 was linked. Use separate answer and exact-span gates.

Why cannot a higher top-k repair the parser incident?

The critical table was never extracted or indexed. Retrieving more existing chunks cannot create the absent row. Reprocess the document, validate page/table coverage, rebuild the index and replay the affected question.

Should 52.9% table coverage pass for a high-risk policy?

It must fail the agreed policy-with-tables coverage gate when required content is absent. The source had nine of seventeen tables and missing critical pages. Block affected answers and inspect corrected extraction rather than publish a warning-only index.

Why use the stronger model only for flagged cases?

Routine extraction and deterministic comparisons can structure most work at lower cost. Reserve expensive drafting for uncertain, complex or high-risk cases, while auditing extraction and sampling low-risk cases for misses. Monitor the flagged fraction and risk recall.

What happens when step therapy is required but undocumented?

Record a missing-evidence gap with the governing requirement and record versions. Ask for the missing evidence or escalate to the clinician. Do not infer that therapy occurred or generate a history to meet the rule.

How do you choose the governing rule version?

Join payer, plan, procedure, jurisdiction and other relevant case attributes to the rule effective at the applicable service or transaction date. Preserve the selected version and conflicts. The latest publication can be wrong for an earlier case.

Why is a disclaimer insufficient?

A disclaimer does not restrict data access, verify a span or block an external action. Enforce identity scope, extraction/citation gates and approval transitions in services outside the model. Test that a request to submit cannot bypass the reviewer.

Give a 60-second cost plan.

Measure long input tokens, model routing and reviewer burden. Deduplicate templates, extract relevant sections, use small models and rules for routine work, and draft flagged cases with the stronger model. Batch when permitted, cache with permission/rule versions, and track cost per true issue alongside high-risk recall. Keep evidence and approval gates intact.

Rehearse pressure, incidents and the closing answer

Spend 0-8 minutes clarifying workflow and decision ownership, 8-15 on the shared spine and source map, 15-35 on schema/parser/citations/sensitive data, 35-45 on failures/scale/evaluation, 45-55 on rollout/red-team/cost, and 55-60 on the close and week-one plan. Allocate more time to whichever boundary the interviewer challenges.

Pressure objections and bounded responses.

Objection Answer
They want a prototype fast, no discovery A 3 to 5 day discovery-and-prototype sprint: one workflow, only approved sources, a small eval set, a demo on real examples. Speed without pretending a broad assistant is production-ready
The first version should cover everything Split scope into read-only, draft, and action layers; ship read-only or draft-only first; action needs approval until evaluation and telemetry earn it
Just add a disclaimer A disclaimer does not stop permission leakage, stale data, wrong citations, unsafe tool calls or over-trust. Constrain what the model sees and does before generation, do not apologise after
18 seconds per answer Set the budget: batch overnight for bulk, p95 under 10 s for drill-down; decompose by stage; parallelise, cache embeddings, cut top-k before rerank, stream, small model for low risk. Keep material citation verification before the draft is actionable. Only non-material explanatory work may be asynchronous under the agreed risk policy
Too expensive at scale Cost per true issue found, not per request. Tiered screening: rules and small classifiers for bulk, the LLM only for borderline cases. Never downgrade the model globally; route by risk

Follow-up questions and the production evidence they require.

Follow-up Answer
How would you prove the system is safe enough for production? (OpenAI-style claims practice prompt) Evaluation against human decisions on historical cases; the separate extraction, support, citation and escalation gates with a red-team suite that blocks on any violation; shadow mode before any user sees a draft; rollout by claim type starting with extraction and triage
The business wants to skip the governance review for the MVP. What do you do? (OpenAI-style regulated-industry practice prompt) Narrow the scope, use synthetic or masked data, start read-only or assistive, define explicit approval gates, and get security and legal review before production exposure. Speed comes from a smaller slice, not a skipped gate
What if the retrieved document contains malicious instructions? Treat it as untrusted data: the system prompt keeps task apart from content, which lowers the risk but does not stop it, so retrieved text can never trigger an action or widen access; suspicious chunks are flagged; the red-team suite plants instructions in documents, emails and logs
What if the answer is correct but cites the wrong source? The wrong-clause incident: span-level verification fails closed, citation accuracy is its own evaluation, and the cited span must support the claim
What if one customer sees another customer’s data? Tenant predicate on every retrieval and cache key, the Secure Multi-Tenant AI Platform case’s design; patient-level and matter-level scope in retrieval, never in the prompt
What should be human-approved versus automated? Extraction, triage, summarisation and gap detection automated; any draft that leaves the system, any decision language and any external submission approved by the named human
How should the system behave when clinical notes conflict with payer rules? Surface the conflict, prefer the approved current source, flag the case and escalate; never resolve it in the draft
What if the payer rule changed after the request was started? Rule versioning by effective date; the request is judged against the version in force at the date of service, and a mismatch is counted and shown

A fast prototype can be a three-to-five-day discovery-and-prototype sprint with one approved workflow, a small evaluation set and real approved examples. If asked to cover every review type, separate read, draft and action tiers and prove one first. If governance is incomplete, narrow to synthetic or masked read-only data and get the required source/approval owners involved before production. State the demo’s limits and rollback plan.

Run ten source adversarial cases: missing diagnosis code; outdated payer rule; conflicting clinical notes; wrong-patient data; required step therapy without evidence; an injected PDF; “rule out” misread as confirmation; undocumented medical necessity; a user saying “just submit”; and a coordinator requesting a restricted record. Give each an expected gate or escalation outcome, not only a model-generated answer score.

What should the ten adversarial cases prove?

Missing codes, absent therapy and undocumented necessity become explicit evidence gaps. Outdated rules fail version selection. Conflicting notes and uncertain diagnoses remain unresolved evidence for the clinician. Wrong-patient and restricted-record requests fail scope checks. Uploaded instructions cannot change permissions or invoke tools. Submission requires the named approval transition. Test each boundary with an independently labelled expected result, then include representative valid cases to ensure the system remains useful.

Give a concise example interview answer.

I would build an internal drafting workflow around the reviewer’s decision. It would choose a versioned rule for the case, validate document and table coverage, extract typed facts with evidence spans, compare requirements deterministically, and route gaps or risk to a named professional. A stronger model would draft the difficult cases from permitted evidence, with an exact citation verifier before review. I would release through historical-case evaluation, shadow work and one category, tracking extraction, citation, escalation, privacy and reviewer outcomes separately.

This is an example design answer. It is not a claim that you built or clinically validated the system.

Senior, Staff and Principal scope.

Level Sounds like Missing
Senior Keeps the copilot a drafter: a small model extracts typed fields on every page, deterministic compare flags gaps, and the strong LLM drafts only flagged cases. Pulls the payer rule in force on the date of service, fails closed on any span mismatch, and routes material cases to a named clinician. The gates that prove it: a coverage gate that fails a table-heavy PDF instead of warning, and a citation gate kept apart from groundedness, since 0.91 groundedness hid 0.38 citation accuracy.
Staff Adds the parser coverage gate on high-risk policies and separate datasets for extraction, citation span accuracy, escalation and PHI leaks, with Security owning the zero-violation red-team suite. Rolls out shadow, then read-only pilot, then one low-risk category, with regression tests on parser releases and a rollback for citation-generator releases. What happens as personas and sources multiply: who owns rule versions across payers, regulations and playbooks, and whether cost per true issue holds if the flagged fraction grows.
Principal Makes the spine a platform: one control plane of rule versions, extraction schemas, risk tiers and eval gates that prior authorisation, compliance and contracts plug into by swapping schema, rule and approver. Treats every parser, chunker or citation change as a release gated on offline eval, and keeps adjudication out until evaluation and governance earn it. The false-positive budget, per-field extraction bars and which PHI may reach the model provider depend on each customer’s reviewers and contracts, so they wait for discovery.

Senior work defends the bounded pipeline, effective rule and supporting span. Staff work owns parser regressions, separate evaluation dimensions, Security gates and staged rollback. Principal work standardises schemas, rule/approval contracts, versioned releases and cost routing across workflows. Per-field accuracy, false-positive burden and provider handling remain discovery questions with the responsible owners.

Return to the decisions you could not explain.

Review the essentials

Quick review

Recall the decisions, failure responses, and closing answer.

Recall the processing and approval path

Scope the user and case, then retrieve permitted evidence and the effective rule version. Validate document coverage, extract fields with supporting spans, compare requirements and keep gaps visible. Draft only from that evidence, verify material citations and obtain the required professional approval. Record source and configuration versions, reviewer edits and the final state.

Six rules govern the path: the copilot drafts; rules match case attributes and effective dates; unread critical content blocks ingestion; missing facts stay missing; citations must point to supporting spans; material actions wait for approval. Sensitive data remains scoped at every boundary.

Recall the incident tests

A groundedness score of 0.91 can coexist with citation accuracy of 0.38. Gate them separately. A parser extracting nine of seventeen tables has 52.9% table coverage. Higher top-k cannot recover its omitted table. A wrong-patient record fails access checks even if the answer would otherwise be correct.

Use smaller models for routine extraction and stronger drafting for flagged cases. Monitor the flagged fraction, cost per document, cost per true issue and high-risk recall. Start offline, then shadow, then one reviewer category. A disclaimer cannot authorise a submission or repair missing evidence.

Close with the owned decision

Build a versioned evidence-to-draft pipeline whose parser, citations and approval transitions can be tested independently, and keep the final professional decision with the named reviewer.

Test your recall

Where next

Revise the concepts