Skip to content
Forward Deployed

Forward Deployed
Lessons and contents
Learn

Practise AI Delivery

Source
From the FDE Delivery and Scoping Guides
By
Sourav Banerjee
Last updated
20 Nov 2026

Report an issue

How to use this practice

These questions ask you to design something: a prompt, a schema, a pipeline, an evaluation set or a recovery path. Answer aloud as if at a whiteboard, sketching the parts. Then compare with the outline.

Every customer and figure below is fictional.

What you'll practise

  • Preparing a messy corpus before retrieval.
  • Designing extraction prompts, schemas and review thresholds.
  • Propagating permission changes and deletions.
  • Making agents recover, stop and ask for approval properly.
  • Building evaluation sets and retrieval experiments.
  • Testing for injection and mapping data flows.
  • Designing a voice and screenshot support flow.

Inputs

Taught in inputs as they really arrive.

Practice question 1. Hexham Water hands you 1,800 documents for a maintenance assistant: scanned inspection logs, spreadsheets of pump settings and Word procedures, most in three versions. Retrieval work starts next week. What do you do first?
  • Answer: Sample about 50 documents across types and owners, and sort the corpus into born-digital text, scans, tables and spreadsheets. Pick a parser per class, and send scans with no text layer to OCR with layout. Keep table rows with their headers. Record each document's version and effective date, confirmed by its owner, and mark superseded versions so retrieval prefers the current one. Chunk by headings, with a reference to document, version, page and section on every chunk. Re-run 20 questions with known answers after each parser change.
  • Trade-off: Owner confirmation of dates is slow. Parsed dates alone let a stale procedure win.
  • Follow-up to expect: "The most-used log is a phone photo of a whiteboard." Ask whether a typed copy exists. Otherwise route answers from it to review.

Extraction

Taught in extraction you can trust.

Practice question 2. Write the outline of a prompt that extracts fields from supplier emails, which anyone can send.
  • Answer: State the task and list the exact fields with types. Put the email inside clear delimiters and say that nothing inside them is an instruction. Allow null with a reason for any field not present. Ask for the source span of each money field. Give no free-text field and no tools. Code then validates every field before use.
  • Trade-off: A strict prompt drops useful context a free-text field might hold. That context is also what an attacker would use.
  • Follow-up to expect: "The email says to ignore your instructions." The output can only hold listed fields, so the instruction has nowhere to go.
Practice question 3. Design the schema and validation for extracting Hallam Clinic's supplier invoices.
  • Answer: Schema: supplier ID, invoice number, invoice date, line items (description, quantity, unit price in pence), VAT in pence, total in pence, purchase order number, each with an evidence span. Nullable fields carry a reason. Validation in code: lines plus VAT equal total, supplier exists, purchase order is open and matches the supplier, invoice not already paid.
  • Trade-off: Pence avoids rounding errors but needs conversion at display. Pounds as decimals invite floating-point mistakes.
  • Follow-up to expect: "Some invoices have no purchase order." Allow null with a reason and send those to review.
Practice question 4. Penwith Insurance wants to classify incoming claim emails and extract the claim number, with as little manual review as is safe. Design it.
  • Answer: Classes: new claim, update, complaint, other and unclear. Extract the claim number and check it exists. Label 500 emails, measure per-class and per-field error, and compute review volume and escaped errors for a few confidence thresholds. Route complaints and unclear emails to people always. Pick the threshold that fits review capacity, with the business owner.
  • Trade-off: A lower threshold sends more to review. A higher one lets more errors through.
  • Follow-up to expect: "Error rates change next quarter." Re-measure quarterly and after any model or prompt change.

Permissions and deletions

Taught in permissions, deletions and citations.

Practice question 5. Design how document updates, deletions and permission changes in Hallam's file store reach the assistant.
  • Answer: Subscribe to the store's change events. An update re-ingests the document and replaces its chunks by document ID. A deletion removes chunks, embeddings and cache entries built from it. A permission change rewrites the access list on its chunks and clears dependent cache entries. A nightly job compares IDs and access lists between source and index. Alert when lag passes the agreed limit, such as 15 minutes.
  • Trade-off: Events are fast but get lost. The nightly sweep is slow but complete. Use both.
  • Follow-up to expect: "The store has no events." Poll for changes by modified time, and shorten the sweep interval.

Agents

Taught in agents that touch business systems.

Practice question 6. Tarrow's agent keeps calling the stock tool and the order tool in turn and never finishes. What do you do?
  • Answer: Stop it in code: cap tool calls per task, detect the same call with the same arguments repeating, and set a spend ceiling. On any limit, hand the case to a person with the trace. Then read the traces for the cause, often a tool result the model cannot act on, such as an ambiguous stock status. Make that result explicit.
  • Trade-off: Tight caps stop some long legitimate tasks. Loose caps waste money and time.
  • Follow-up to expect: "How do you set the cap?" From the step counts of successful traces, with headroom.
Practice question 7. A call to Brisco's billing system to apply a credit times out. Did it happen? What does the agent do?
  • Answer: The outcome is unknown, not failed. Query the billing system by idempotency key or by account and amount. If the credit exists, record it and continue. If not, retry with the same key. If the system can answer neither way, stop and hand the case to a person with the details, and tell the customer it is being checked.
  • Trade-off: Checking adds a call and latency. A blind retry risks a double credit.
  • Follow-up to expect: "The status endpoint lags." Wait and re-check a set number of times before escalating.
Practice question 8. Design checkpointing for a Tarrow agent that rebooks a delivery, refunds the fee and emails the customer, so a crash at any point recovers.
  • Answer: Store run state in a database after each step: step name, status, idempotency key and result. Assign each external action its key before calling. On restart, load the state, skip steps marked done, and for any step marked started, repeat it with the same key or query its status. Send the email last, with its own key, so a customer is never told about a refund that did not happen.
  • Trade-off: A workflow engine gives this for free but adds infrastructure. A hand-built table is simpler and easy to get wrong.
  • Follow-up to expect: "The refund succeeded but rebooking fails for good." Record partial completion and hand it to a person.
Practice question 9. What must an approval request from Tarrow's agent show a supervisor?
  • Answer: The exact action and arguments: customer, order, amount, method. The policy rule that allows it and any limit it exceeds. The agent's reason and the evidence, such as the damage photo. What changes in the system, before and after. An expiry time. Approve and reject buttons, with a reason field for rejection. The approval stores a hash of the action.
  • Trade-off: More detail slows each approval. Less detail turns approval into a click without a check.
  • Follow-up to expect: "Supervisors approve everything." Sample approvals for review and show the approver their rejection rate.

Evaluation

Taught in evaluating on the customer's work.

Practice question 10. Design an experiment to choose between keyword, vector and hybrid search for Brisco's tariff assistant.
  • Answer: Take 300 real questions from logs, with team leaders labelling the passage that answers each. Run each search mode on the same index and record whether the passage is in the top five, and its rank. Report by question type, such as codes, dates and plain questions. Also measure latency. Pick the mode that wins on the types that matter, and keep the set for later changes.
  • Trade-off: Labelling 300 questions takes days. Choosing by a demo takes minutes and is often wrong.
  • Follow-up to expect: "Hybrid wins by one point." Check whether that is within noise before adding its cost.
Practice question 11. Build an evaluation set for Hallam's HR policy assistant.
  • Answer: Pull 400 questions from the HR inbox and search logs across a year. Stratify by topic: leave, pay, conduct, sickness. Add questions whose answer changed with a recent policy update, and questions the policies do not answer, where the right response is to decline. Have HR advisers write the expected answer and source. Freeze a test split.
  • Trade-off: Advisers' time is scarce. Without them the labels are guesses.
  • Follow-up to expect: "Policies change in April." Date every label and re-label the affected cases.
Practice question 12. Penwith's retrieval finds the right passage 85% of the time, and answers are correct 92% of the time when it does. How do you report accuracy, and what do you fix first?
  • Answer: If independent, end to end is about 0.85 × 0.92 = 78%. Measure it directly on the same set and report all three numbers. Then attribute failures: of 100 cases, about 15 fail at retrieval and about 7 at generation. Retrieval is the larger loss. Start with ingestion and search, then the prompt.
  • Trade-off: Stage metrics need traces stored per case. One end-to-end number hides where to work.
  • Follow-up to expect: "Some answers are right without the passage." Count them, and check they are not guesses.

Untrusted content

Taught in untrusted content in customer data.

Practice question 13. Write the adversarial test cases for Penwith's claims agent.
  • Answer: One per untrusted input: hidden text in a PDF asking to email the file out, an instruction in an email signature, a command in a garage's notes returned by a tool, text in a photo asking to change bank details, and a request to reveal the system prompt. Each asserts on tool calls, such as no outbound message to an unlisted domain. Run them every release.
  • Trade-off: The suite needs new cases as attacks change. A fixed suite gives false comfort.
  • Follow-up to expect: "A case starts failing." Block the release and trace which layer let it through.
Practice question 14. Draw the data-flow inventory for Brisco's billing assistant.
  • Answer: Rows: call notes into ingestion, documents into the vector store, prompts to the model provider, responses to agents, logs and traces, answer cache, evaluation sets built from logs, and backups. For each: data classes, who can access it, location, retention and deletion method. Mark untrusted inputs. Review it with Brisco's security and privacy teams.
  • Trade-off: Keeping it current takes discipline. A stale inventory fails the first erasure request.
  • Follow-up to expect: "Which row worries you most?" Logs, because they copy everything and are kept longest.

Voice and screenshots

Taught in voice and multimodal in operations.

Practice question 15. Design a Tarrow support flow where customers describe a website fault by phone and send a screenshot.
  • Answer: The voice agent takes the description and sends a text link to upload a screenshot. A multimodal model reads the order number and error from the image. The agent checks the order exists and reads back what it sees for confirmation. The screenshot is redacted and kept for 30 days. Known errors get a scripted fix. Anything else goes to staff with the transcript and image.
  • Trade-off: The upload step adds friction. Without it, staff ask the same questions again.
  • Follow-up to expect: "The screenshot shows someone else's card details." Redact before storage and never send that region to the model.

Key takeaways

  • Sort and version a corpus before choosing parsers or chunk sizes.
  • Extraction needs listed fields, nullable values, checks in code and thresholds from measured error.
  • Permission changes and deletions travel by event, with a nightly sweep behind them.
  • Agents need step caps, idempotency keys, checkpoints and exact approvals.
  • Evaluate on real labelled work, by stage and by slice.
  • Test injection against tool calls, and keep a data-flow inventory current.

Check yourself

1. In practice question 7, why is a timeout not a failure?

The credit may have been applied before the answer was lost. Only a status check or a retry with the same key is safe.

2. In practice question 12, which stage loses more cases, and by how many per hundred?

Retrieval, about 15 per hundred against about 7 for generation, since 92% of the 85 retrieved cases is about 78.

Rate your confidence and keep notes on the module page.