44. Stage 7: AI pilot under pressure
Week twelve. The board wants the claims assistant live in four weeks. Nobody gives you the steps this time: find what makes the pilot unsafe, fix the foundations that matter first, and show that no critical failure is left.
The clip starts from the board's four weeks. The pilot, as the vendor set it up, answers three questions wrong: a customer is quoted the excess from a wording withdrawn in 2023, an analyst is shown a driver's injury from a claim note nobody classified, and finance is told the CRM's record count as the number of customers. The scorecard shows three critical lines unmet. Then the foundations switch on one by one, freshness, classification by content and the defined measure from gold, each turning one answer right, and the access filter moves before ranking so no role loses an answer. Last, every critical line is met.
The situation
Week twelve. The board saw a demonstration of the claims assistant and wants it live in 4 weeks. The pilot is chapter 34's: it answers from its own index, set up by the board's vendor with every document indexed as it is, the access filter after the top result and one result per answer. As it stands, 3 of the scorecard's critical lines are unmet, and 9 of 32 role and question pairs lose an answer the role may see.
| Criterion | Critical | As set up | With the foundations |
|---|---|---|---|
| Every document is classified by its content | yes | Not met | Met |
| No replaced document is still in the index | yes | Not met | Met |
| Measures the assistant answers come from governed gold | yes | Not met | Met |
| Every information domain has one accountable owner | no | Met | Met |
| Access is filtered before ranking, so no chunk reaches a role that may not read it | no | Met | Met |
| Every answer cites the chunks it comes from | no | Met | Met |
| A deleted document leaves no chunk behind | no | Met | Met |
The rules from outside the company that apply to an assistant and the data behind it are set out in chapter 32, chapter 33 and chapter 34. This stage adds nothing to them: it is about the foundations.
In the database, classification-aware filtering is a row policy: every chunk of the index carries its classification and its readers, and each role reads only its own. The index below holds the pilot's chunks with the foundations in; the lab runs it as every role on PostgreSQL in its checks, and each role gets exactly the chunks the workbench lets it read.
CREATE TABLE pilot_chunks (chunk_id text PRIMARY KEY, document_id text NOT NULL, classification text NOT NULL, readers text[] NOT NULL);
INSERT INTO pilot_chunks (chunk_id, document_id, classification, readers) VALUES
('doc-home-wording#1', 'doc-home-wording', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-home-wording#2', 'doc-home-wording', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-home-wording#3', 'doc-home-wording', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-home-wording#4', 'doc-home-wording', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-claims-guideline#1', 'doc-claims-guideline', 'Internal', ARRAY['claims_handler', 'analyst', 'finance_reporting']),
('doc-claims-guideline#2', 'doc-claims-guideline', 'Internal', ARRAY['claims_handler', 'analyst', 'finance_reporting']),
('doc-claims-guideline#3', 'doc-claims-guideline', 'Internal', ARRAY['claims_handler', 'analyst', 'finance_reporting']),
('doc-claims-guideline#4', 'doc-claims-guideline', 'Internal', ARRAY['claims_handler', 'analyst', 'finance_reporting']),
('doc-note-00042#1', 'doc-note-00042', 'Confidential', ARRAY['claims_handler', 'analyst']),
('doc-note-00107#1', 'doc-note-00107', 'SpecialCategory', ARRAY['claims_handler']),
('doc-medical-00107#1', 'doc-medical-00107', 'SpecialCategory', ARRAY['claims_handler']),
('doc-medical-00107#2', 'doc-medical-00107', 'SpecialCategory', ARRAY['claims_handler']),
('doc-board-q3#1', 'doc-board-q3', 'Confidential', ARRAY['analyst', 'finance_reporting']),
('doc-board-q3#2', 'doc-board-q3', 'Confidential', ARRAY['analyst', 'finance_reporting']),
('doc-faq#1', 'doc-faq', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-faq#2', 'doc-faq', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-faq#3', 'doc-faq', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-home-excess-2025#1', 'doc-home-excess-2025', 'Public', ARRAY['claims_handler', 'analyst', 'finance_reporting', 'customer_bot']),
('doc-note-00213#1', 'doc-note-00213', 'SpecialCategory', ARRAY['claims_handler']),
('doc-gold-customers#1', 'doc-gold-customers', 'Internal', ARRAY['claims_handler', 'analyst', 'finance_reporting']);
CREATE ROLE claims_handler NOLOGIN;
CREATE ROLE analyst NOLOGIN;
CREATE ROLE finance_reporting NOLOGIN;
CREATE ROLE customer_bot NOLOGIN;
GRANT SELECT ON pilot_chunks TO claims_handler;
GRANT SELECT ON pilot_chunks TO analyst;
GRANT SELECT ON pilot_chunks TO finance_reporting;
GRANT SELECT ON pilot_chunks TO customer_bot;
ALTER TABLE pilot_chunks ENABLE ROW LEVEL SECURITY;
CREATE POLICY readers_only ON pilot_chunks FOR SELECT USING (CURRENT_USER = ANY (readers));Why it matters for Alex
A deadline from the board is the moment architecture is tested. Saying no protects nobody; saying "these three things, in this order, and here is the evidence" gets the assistant live without the failures the board would read about. The scorecard turns the pressure into a list.
Everything the pilot needed was built in earlier stages: the classification from stage 5, the measure defined once from stage 4, the owners from stage 5. The four weeks go into switching them on for the assistant, not into a new project.
Where it goes wrong
- Launch now, fix later. The first wrong answer a customer screenshots costs more than the four weeks.
- A bigger model. The model says what it is given. Change what it is given.
- Speed over access. Filtering after ranking is faster and leaves handlers without answers they may see.
- Everything at once. Fix the critical lines first; the rest can follow the launch.
The stakeholders
- Agnieszka Lis Chief Financial Officer, Harbour Mutual
The board has seen a demonstration and wants the claims assistant live in 4 weeks: for the customers on the website, for the claims handlers and for finance. Tell me what stands in the way.
- Agnieszka Lis Chief Financial Officer, Harbour MutualPushback
Launch the pilot in four weeks as it stands, and fix the data after the launch.
- Tomasz Zielinski Head of IT Operations, Harbour MutualPushback
The answers are wrong because the model is too small. A larger model will fix them.
- Marta Kowalczyk Data Protection Officer, Harbour MutualPushback
Nothing goes into the assistant's index until it has been classified by what it contains.
On your own
This stage gives you the situation only: decide the steps yourself.
The stage's outcome
0 of 3 checks passed. The stage is done when all of them have.
Exercises
The lab checks each one against facts written down in advance, so any answer the brief allows passes. A pass is kept in this browser.
A pilot with no critical failure
The claims assistant pilot answers from its own index: the workbench's documents and four more (the withdrawn 2023 wording, its 2025 replacement, a claim note and the CRM's summary). The board's vendor indexed every document as it is, filters after the top result, and gives each answer one result. Make it safe for the customers, the claims handlers, the analysts and finance.
The lab checks that:
- The checks run on the pilot's index.
- No line the AI-readiness scorecard marks critical is unmet.
- The pilot's three questions get the right answer: the current excess, nothing about the driver's injury for the analyst, and the governed customer count.
- No chunk reaches a role that may not read it, for any role and any question.
- No role loses an answer it may see.
- Each answer may draw on at least three chunks.
What goes into the four weeks?
Each line is something proposed for the four weeks before the launch. Choose whether it belongs in them.
Answer the stakeholders
Each line is something a stakeholder says as the stage goes on (the thread above). Agree, or push back where the facts say otherwise.
On Azure
On Azure, the four weeks go into the index and what feeds it:
- Azure AI Search holds the pilot's index, each chunk with fields for its classification and its readers, and a security filter on every query; or it enforces sensitivity labels with the user's Entra token where the source supports it (in preview).
- Microsoft Purview classifies the documents by their content before the indexer reads them, and applies the sensitivity labels.
- Indexers on a schedule pick up changed and deleted documents, so a replaced wording leaves the index; a superseded document is deleted at the source.
- Gold in OneLake or Azure SQL Database serves the governed measures, indexed as tables with their definitions, not the documents that quote them.
Track each critical line of the scorecard as a work item with an owner, and test every role's questions in the release pipeline before the assistant goes live.
Take it to work
AI pilot under pressure
Decide what goes into the weeks before an assistant's launch.
The deadline
- Who asked for it, and what they will see first
Critical lines
- Each critical line of the scorecard, met or not
- The foundation each one needs
The weeks
- What goes in, in order
- What waits until after the launch, and why
Evidence
- Every role's test questions, and what each must not see
Tools in this chapter
- Retrieval workbench · Chunk and index Harbour Mutual's documents with their access rights, and ask questions as different roles.