Skip to content
Forward Deployed

Forward Deployed

Sales Copilot

Prepare cited account briefs, respect current CRM permissions and approve every consequential change.

Kind
Case study
Level
Foundation
View
Interview prep
Sections
4
By
Sourav Banerjee
Last updated
20 Nov 2026

Practise this as a worksheet: Sales Copilot for Account Executives

Report an issue

Interview view. The case brief, design walkthrough, technical deep dives and quick review, condensed into bullets, tables and lines to say out loud, with interactive diagrams to step through.

Want to go deep? The full casebook has the complete reasoning in prose, the original diagrams, practice questions with worked answers and the sources.

Case brief

The case in one line: prepare an account executive for a meeting from records they may see, and never let an invented promise, a forbidden record or an unapproved CRM write leave the system.

30-Second Cheat Sheet

  • The slice: one part of the sales loop. Prepare an account executive (AE) for a meeting, then perhaps a follow-up email and a CRM update.
  • Five outputs: account summary, opportunity risks, discovery questions, email draft, suggested CRM updates.
  • Different consequences: reading a brief is assistance; sending a draft or changing an opportunity can create a commitment.
  • The failure that matters: an invented security certification, an unapproved discount, or a record from a peer's territory. A ten-minute saving doesn't pay for any of them.
  • Two gates: identity and territory are checked before evidence is fetched; claim approved? is checked after generation.
  • The dangerous constraint (twofold): the rep never sees a record they may not access, and no unapproved claim or unapproved CRM write leaves the system.
  • Timings and thresholds in the source are example design targets, not results measured by this prototype.

1. Prepare for an account meeting without inventing a promise

The sales loop and where this case sits

  • A sales process runs from "we might sell" to "the deal is won or lost".
    • Find a company → book a meeting → learn their pain → send a proposal → negotiate → update the CRM → close.
  • In scope: preparing the AE for a meeting, then perhaps a follow-up email and a CRM update.
  • Out of scope: prospecting, legal review and billing.

The terms that carry the case

Term Meaning
CRM Customer relationship management: the sales system of record, such as Salesforce or HubSpot
Account A customer company held in the CRM
Opportunity A deal in progress
Contacts, activities The people at the account and the logged calls, emails and meetings
AE (account executive) The salesperson who owns the deal

What the AE wants before the meeting

  1. An account summary
  2. The opportunity risks
  3. Discovery questions to ask
  4. An email draft
  5. Suggested CRM updates

Why the outputs aren't equal

  • Reading a brief is assistance. Nothing leaves the system.
  • Sending a draft or changing an opportunity can create a commitment.
  • A ten-minute saving is worthless if the draft:
    • invents a security certification,
    • promises an unapproved discount, or
    • shows the rep a record from a peer's territory.

2. Follow Sara through one meeting

The setup: Sara's calendar says she meets Acme tomorrow. The source traces her end to end.

  1. Overnight: a scheduled job packs her Acme brief, built with only the records Sara is allowed to see.
  2. Morning: she opens the copilot and asks for the summary, the risks, discovery questions, a draft email and suggested CRM fields.
  3. Route and fetch: the system checks who she is and picks a path:
    • the cached brief,
    • a structured lookup for a number,
    • a search over call notes, or
    • a short bounded agent. It fetches only evidence she may see.
  4. Recheck, then write: it checks her permissions again on current attributes. Only then does the model write, citing that evidence.
  5. Claims: if she wants an email mentioning a discount or a certification, anything not on the approved claims sheet is blocked.
  6. CRM change: she previews the exact fields, clicks approve, and the change is written once.

The loop in one line: prepare, ask, prove it from her data, don't invent claims, don't write to the CRM until she says yes.

The core idea as one path (the source figure)

rep asks → check identity and territory → fetch allowed evidence → cited answer or draft → claim approved?

  • Yes → show the result to the rep.

  • No → block the claim.

  • "Check identity and territory" sits before any evidence is fetched, so the model never sees a record Sara can't.

  • "Claim approved?" sits after generation, so a fluent draft still can't carry an unapproved claim.

  • A customer usage pilot can inform an internal discussion without becoming a marketing promise.

    • A polished sentence doesn't change its approval status.

Soundbite: "The two decision points are the whole safety story in miniature: identity before evidence, claim approval after generation."


3. What you need to design

The task in one sentence

Design a permission-aware sales copilot that:

  • builds the account brief before the meeting, as the rep,
  • answers from evidence the rep may currently see, and
  • previews every proposed write.

The dangerous constraint (twofold)

  1. The rep must never see a record they may not access.
  2. No unapproved claim and no unapproved CRM write may leave the system.

By the end you should be able to

  • Explain the system end to end.
  • Answer follow-ups on:
    • Source authority
    • Permission fidelity
    • Routing
    • Claims
    • Write-back
    • Failure modes
    • Latency
    • Evaluation and rollout

Who owns which boundary

Person Owns
Representative (AE) Outgoing drafts; approves their own CRM changes
Sales manager Approves high-risk drafts and writes above the threshold
Sales operations CRM data and sharing rules
Security Signs off each source and each write tool
Executive sponsor Measures preparation time and seller adoption

Day one excludes

  • Sending email autonomously
  • CRM writes without a previewed approval
  • Prices or discounts outside policy
  • Lead scoring or ranking
  • Access outside the representative's territory
  • Long-term customer memory beyond the CRM record

What it assumes you know

  • Retrieval: keyword, embedding and hybrid search
  • CRM permission models
  • LLM (large language model) agents
  • Basic cloud architecture

Caveat: the source's timings and thresholds are example design targets, not results measured by this prototype.

How the sections divide the work

  • Design walkthrough: the interview answer, in order.
  • Technical deep dives: permissions, records, failure, the regression incident and the latency pivot.
  • Practice (in the full casebook): self-checks, follow-ups, trade-offs, level calibration and the two pivots.
  • Quick review: the card for the night before.

Quick Recall: Lines to Say in the Interview

  • "Reading is assistance; sending a draft or changing an opportunity can create a commitment."
  • "Identity and territory are checked before any evidence is fetched."
  • "A fluent draft still can't carry an unapproved claim."
  • "Prepare, ask, prove it from her data, don't invent claims, don't write until she says yes."
  • "The rep never sees a record they can't access, and no unapproved claim or write leaves the system."
  • "A ten-minute saving is worthless if the draft invents a certification."
  • "The numbers here are example design targets, not measured results."

Design walkthrough

The one-line goal: a fast, rep-scoped brief that cites every fact, blocks every unapproved claim and writes to the CRM only after a previewed approval.

30-Second Cheat Sheet

  • Start from the workflow, not the model: the pre-meeting hour, with five outputs on three sides of the risk boundary (read, draft, write).
  • Testable constraints: interactive asks in 3 to 8 seconds, zero permission violations, 90% supported claims.
  • Source authority: seven sources, each with its own owner, freshness and permission model. No usable ACL means not indexed.
  • Three lanes: precompute (slow, scheduled), interactive ask (reads the snapshot) and gated write-back.
  • Snapshot rule: build it as the rep, cache on account + permission signature, recheck access when serving. A snapshot never grants access.
  • Routing: counts and IDs go to fixed, reviewed CRM operations; prose goes to hybrid search; cross-deal questions use both.
  • Claims: every outbound claim traces to Playbook.approved_claims. The verifier blocks, never warns.
  • Writes: propose → preview exact fields → policy check → human approval → idempotent gateway → CRM receipt → audit.
  • Evaluation: critical slices gate on their own; 96.7% on 120 cases once hid 83.3% on six regulated-claim cases.

Opening line to say out loud: "I'll start from the pre-meeting workflow and separate reading, drafting and writing. I'll make the brief fast by precomputing it as the rep, then recheck their permissions at serve time. Any customer-facing claim must be approved and cited; any CRM write must be previewed and approved."


1. Name the workflow and who can approve its consequences

Start with the workflow

  • Which sales task is slow, risky or inconsistent today?
  • Who decides at the end of it?
  • Which risk can't be automated?
  • A copilot that saves ten minutes and sends one unapproved claim has lost more than it saved.
    • So name the risk boundary before drawing the first box.

Five outputs, three risk tiers

Output Risk tier What the rep may do with it
Account summary, opportunity risks Read-only assistance Read it; nothing leaves the system
Discovery questions, email drafts Draft-only Edit and send it themselves; the copilot never sends
CRM update suggestions Approved write-back Preview the exact fields and approve before anything is written

Three answers to the same prompt

Tier What it does Why it falls short / wins
Weak Connect documents to a vector database, LLM answers questions, add a chat interface Ignores workflow, permission boundaries, source freshness, evaluation, human approval and monitoring
Average RAG over company data, add citations, test with sample questions Never separates low-risk assistance from high-risk actions; no data model, no permission checks, no rollout gates. Citations still leave a territory change or an unapproved security claim unsafe
Strong Map workflow and risk boundary first, then a permission-aware system Ingest approved sources with metadata, freshness and ACLs; filter by permission before generation; hybrid retrieval; cited answers; show uncertainty and missing evidence; route risky actions to human approval. Prove it with golden cases, permission red-team tests, groundedness and citation metrics, latency and cost budgets, and a staged rollout from offline prototype to approved write-back

RAG = retrieval-augmented generation: retrieve documents and pass them to the model as context. ACL = access control list: the per-record list of who may read it.

  • The difference between the tiers is entirely in what gets framed before the architecture.

Questions that set the boundary

Question to ask What it is really asking What the answer decides
What exact sales workflow is slow, risky or inconsistent, and what decision ends it? Is this "prep me for the Acme call in 20 minutes", and does the brief change what they say? The first workflow, the five outputs, each output's risk side, the success metric
Who is the primary user, who reviews, who owns the risk if it's wrong? If the email claims a certification we don't have, who's blamed: rep, sales ops or legal? Approver for drafts and CRM writes, who audits, escalation, the trace store's audience
Which tasks are read-only, draft-only, or need approval before write-back? Can it show CRM facts, only draft an email, or update the opportunity after a click? Tool allowlist, approval gate, what v1 may write
Which systems hold the trusted source of truth; how do permissions, freshness and ownership differ? Can a rep see a peer's deal in another territory? Is last quarter's usage still "current"? Connector map, permission model per source, structured vs semantic route, snapshot freshness
Top five recurring cases by volume, top five highest-risk by impact? Only the full design asks this; it separates frequent asks from consequential ones Which requests get a deterministic route and which need the agent
Which claims, prices, discounts or customer references are approved for external use? Can the draft promise 20% off, or only prices from the approved sheet? The claim verifier and which pricing policy version is live
What must the assistant refuse or escalate instead of generating? No contract: invent a renewal date, or say we don't know? Abstain, mark stale or fall back; refuse pricing promises, unapproved claims, unsourced competitor facts
What does a successful 30-day pilot prove: handling time, accuracy, compliance, escalations or satisfaction? After a month, did prep get faster without fake claims going out? Success metrics agreed at intake: accuracy, prep time, adoption, claim safety, outcomes
What audit evidence must exist so security, legal or management can reconstruct an answer? If legal asks why the email mentioned HIPAA, can we show source, permission check and approver? Audit log schema: evidence IDs, versions, permission checks, draft approval, write receipt
  • Answers missing? Choose the safe default:
    • Keep the first release read-only.
    • Restrict sources to approved accounts.
    • Treat external drafts and CRM writes as gated.
  • These choices determine the system more than any model preference.

Map the people before the boxes

User Workflow Failure they notice first What the copilot gives them Approval needed
Account executive Prepares for the meeting; asks for summary, risks, questions, drafts, CRM updates A wrong or invented account fact Cited brief, risk list grounded in CRM fields, drafts from approved messaging None for read-only; every draft theirs to send; every CRM write previewed
Sales manager / reviewer Reviews pipeline hygiene and outbound claims A polished draft with an unsupported claim Claim-level flags, escalation reasons, pipeline updates as proposals Approves high-risk drafts and writes above the threshold
Admin / security Owns CRM permissions, connector credentials, audit export A rep seeing an account outside their territory Permission-aware retrieval, connector registry, immutable audit Signs off each source and each write tool
Executive sponsor Tracks adoption and time saved A tool nobody opens before meetings Prep-time reduction, adoption, conversion and meeting-quality metrics Approves rollout stages

The practice-set version of the prompt

  • Described by the source as a likely OpenAI-style case, not an official question. It asks for account briefs.
  • What to explore, and where each lands:
Explore item Lands in
CRM, email, product-usage, support and public-data integrations; entity resolution Step 3 (sources)
Permission boundaries Step 5 and the permissions deep dive
Citation and personalisation Step 7 (claims)
Seller adoption and time saved Step 8 (evaluation)
Freshness and source prioritisation; provenance; human review Also on the list; the source doesn't assign them a single step

Neighbouring cases that reuse this design

All keep the same three-lane design and shift the weight.

Related case What changes from this case
Account-research assistant question Broader CRM, email, usage, support and public-source integration; entity resolution; seller adoption and time saved
Slow agentic CRM assistant Serial tool calls and agent steps likely dominate (confirm in traces); precompute, cache, parallelise reads, bound the graph. See the latency pivot in the deep dives
Sales email model-regression incident Claim-level release gates, online unsupported-claim monitoring and block-mode enforcement dominate. See the regression incident in the deep dives

2. Set constraints the customer can test

Preference vs constraint

  • Preference: "Make the brief accurate."
  • Constraint: "90 percent of claims supported by cited evidence, zero permission violations."
  • Only the second changes the architecture.

MoSCoW split (must, should, could, won't)

Must-haves (the launch gate):

  1. Support the core workflow: summary, risks, discovery questions, email drafts, CRM update suggestions, in that order of risk.
  2. Return grounded answers with citations to approved source systems; never state an unsupported claim confidently.
  3. Apply user, role, tenant, region and sensitivity permissions before retrieval and again before final generation.
  4. Keep every write tool behind a preview and a human approval.

Should-haves (first usable version):

  • Show confidence, missing evidence and the escalation reason when uncertain or policy risk is high.
  • Collect user feedback and reviewer corrections for evaluation, never for training without governance.
  • Give admins control over source inclusion, freshness, policy rules, blocked actions and audit export.
  • Precompute the account snapshot before the meeting so the interactive path stays fast.

Can wait: personalisation by segment and playbook, public-data enrichment, conversion attribution.

Non-goals (stop the CRM-replacement sprawl)

The copilot will not:

  • send email on the rep's behalf;
  • write to the CRM without a previewed and approved draft;
  • quote prices or discounts outside the approved policy;
  • score or rank leads (biased lead scoring is a named red-team risk);
  • read accounts outside the rep's territory or role;
  • keep long-term memory of a customer beyond the CRM record.

Operating constraints, stated so a test can fail them

Constraint Stated so it can be tested
Latency Interactive answers in 3 to 8 seconds for normal questions (this design). Longer workflows go asynchronous with progress state. The brief is precomputed, so the ask reads a snapshot instead of fanning out to the CRM
Availability Business-critical selling hours. Degrade gracefully if the LLM, vector store or CRM is down: serve the last snapshot with a staleness label, or refuse
Cost Token budgets, caching of stable documents, retrieval pruning, small models for classification, expensive reasoning only where risk justifies it. Reported as cost per workflow
Security and privacy SSO, RBAC and ABAC, source-level ACLs, encryption in transit and at rest, secrets management, no training on customer data unless the contract allows it
Audit and compliance Immutable logs of queries, retrieved evidence, model version, policy decisions, approvals and final output
Reliability Fail closed on permission uncertainty, stale data, missing citations and high-risk write actions

SSO = single sign-on, where the user's identity comes from. RBAC = permissions by role. ABAC = permissions by attributes (region, department, sensitivity), finer-grained than RBAC.

Every requirement needs an owner

Requirement Primary component(s)
Five outputs by risk order Intent router, snapshot service, draft generator, CRM write proposer
Grounded answers with citations Approved-claims retriever, evidence selector, citation builder, claim verifier
Permissions before retrieval and before generation Identity gateway, CRM permission mirror, ABAC pre-filter, policy post-check
Write tools behind preview and approval Tool gateway, allowlist, draft store with approval status, idempotency keys
Confidence and escalation shown Grader, output policy engine
Feedback for evaluation only Feedback store separated from ground truth, SME approval step
Admin controls and audit export Control plane, audit log
Precomputed snapshot Scheduled snapshot job, snapshot cache keyed on account and rep permission signature
  • A requirement with no component won't survive the first busy sprint.

Read the latency row closely

  • 3 to 8 seconds is reachable only because the brief is precomputed and the ask reads a snapshot.
  • Long work returns progress asynchronously.
  • During selling hours an outage may fall back to a previously authorised snapshot with a staleness label, never to an answer built on uncertain access.
  • Security also covers tenant and region constraints and scoped secrets.
  • The audit record reaches all the way to the write receipt.

Spoken answer: "Functionally, I prep a permission-scoped brief, cite facts, block unapproved claims and preview CRM writes. Non-functionally, 3 to 8 second asks, recheck access at serve time, and never let a snapshot outlive a territory change."


3. Map each source's authority and permission model

What the source gives you

  • The answer key names seven sources. It doesn't say how each is permissioned, and that's exactly what an interviewer probes.
  • The permission column is added by the source's full design.
  • The freshness column is its working assumption for a typical setup, not a vendor figure.

Who owns which truth

  • CRM: account and opportunity truth.
  • Calls: what participants said.
  • Mailbox: belongs to the mailbox owner unless delegation is explicit.
  • Product marketing: approved feature descriptions.
  • Deal desk: versioned pricing.
  • Support: account-scoped escalations.
  • Analytics: usage, ROI pilots and renewals.

The source map

Data source Format Owner Freshness Permission model (added) Risk
CRM (Salesforce / HubSpot) Accounts, opportunities, contacts, activities, notes Sales operations Minutes; change events + nightly reconciliation Org-wide defaults, owner, role hierarchy, territory, sharing rules; field-level security on amount and other restricted fields Rep sees a peer's territory; forecast fields leak; stale stage after a close
Call transcripts (Gong / Zoom) Transcript text, participants, timestamps Sales enablement Hours after the call Participant and manager access; recording consent by region PII and customer confidences; prompt injection in what a customer said
Email and calendar Threads, invites, attendees Individual mailbox owner Real time Mailbox owner only; delegated access explicit Reading another rep's mailbox; injection in inbound mail
Product docs Pages, PDFs Product marketing Days Internal, some partner-tier Superseded features; internal roadmap leaking into drafts
Pricing and discount policy Policy docs, approval matrices Deal desk Weeks; versioned Internal; regional variants Disallowed pricing promises; stale discount thresholds
Support history Tickets, escalations Support Minutes Account-scoped; tenant-scoped in multi-tenant support Cross-account leakage; severity fields mis-summarised
Data warehouse Usage metrics, ROI pilots, renewals Analytics Daily Row-level by account and role; internal-only pilot results Internal-only ROI numbers used as external claims (the incident)

PII = personally identifiable information. ROI = return on investment.

  • The incident starts in the risk column: an internal-only ROI number from the warehouse ends up in an external draft.
    • Internal data isn't wrong. It just isn't approved to leave the building.

Integration assumptions (say them aloud)

  • Every source record has a stable ID, owner metadata, last-updated timestamp and access-control metadata.
  • A source without ACL metadata is excluded from production retrieval until it's mapped.
  • Embeddings never decide permissions. Metadata filters do, backed by source-system authorisation checks for sensitive records.
  • Freshness varies, so an answer shows a stale-source warning when a record is older than the approved threshold.

Entity resolution and feedback

  • Map entities across CRM, calls, support and warehouse so one account has one stable reference.
  • Preserve source IDs and timestamps in the evidence.
  • An ambiguous match is a gap to resolve, never a reason to merge two customer histories.
    • Entity resolution is a practice-prompt explore item; this handling is an editorial addition.
  • User feedback is stored apart from ground truth. A correction becomes evaluation data only after an SME approves it, and never becomes training data automatically.

SME = subject-matter expert: the person who can tell you whether an answer is right.

The two records that carry the safety story

  • Playbook.approved_claims: the only place an outbound claim may come from.
  • Draft.approval_status: the gate every write passes through.
  • The full record list is in the records deep dive.

4. Separate precompute, interactive questions and write-back

The organising split

  • Control plane: versioned configuration and policy.
  • Data plane: moves records and answers, in three lanes:
    1. Precompute: slow and scheduled.
    2. Interactive ask: reads what precompute produced.
    3. Write-back: a third, gated lane.
  • Precompute and ask must never share a hot path.

The compact diagram (draw this first)

Read it top to bottom as three bands.

  • Precompute: sources → connectors + ACL mirror (no usable ACL → exclude the source) → structured data + hybrid index → calendar trigger builds the snapshot as the rep → account + permission-signature cache.
  • Ask: rep → SSO, role, territory and stage → route → fetch authorised evidence → fresh permission post-check + redaction → LLM copilot → claims approved and cited? → answer or refuse.
  • Write-back: proposed CRM update → preview exact fields → rep approves → allowlisted idempotent tool gateway → CRM, or discard and log.
  • CRM sharing and the approved-claims policy feed the checks.

Trace one request in seven steps

  1. Prepare authorised data. Connect the CRM and other sources, mirror their ACLs, exclude any source whose permissions can't be represented (the "No usable ACL" branch).
  2. Precompute a rep-scoped snapshot. Keep structured facts and searchable prose. A calendar trigger builds the meeting snapshot as the rep and caches it with a permission signature.
  3. Resolve the current rep context. At question time, check SSO identity, role, territory and deal stage.
  4. Route and fetch. Deterministic snapshot, structured lookup or prose routes for common asks; a bounded agent only for ambiguous multi-step asks.
  5. Recheck access. Fresh permission checks and field redaction before using cached or live evidence. A snapshot never grants access.
  6. Ground and verify. The LLM copilot builds the brief, risks, questions or draft from authorised evidence. Citations and claims are verified; on failure the system refuses and escalates.
  7. Control CRM write-back. Preview the exact fields, require the rep's approval, send approved updates through the allowlisted, idempotent tool gateway. Rejected changes are discarded and logged.

Permission signature = a compact fingerprint of the rep's current role, territory and sharing grants.

The model's role is deliberately narrow

  • The LLM copilot summarises and drafts from permission-checked evidence.
  • A bounded agent can coordinate ambiguous next steps.
  • Common CRM counts and lookups stay on reviewed deterministic routes.
  • The model can't approve an external claim or write to the CRM.

Each lane at full detail

Precompute lane

  • CRM, transcripts, email, calendar, docs, pricing, support and warehouse → change events and nightly reconciliation → connectors and normalisation → ACL and territory mirror.
    • No usable ACL → refuse.
  • Records split: prose → chunk and embed → keyword and vector indexes; CRM fields → structured CRM store.
  • Calendar trigger → snapshot as the rep (summary, risks, last interactions, approved claims) → cached by account + rep permission signature.
  • Two details that matter later:
    • Prose and CRM fields land in different stores, which makes routing possible.
    • The mirror refuses a source outright when it can't represent its permissions, instead of indexing it and hoping a later filter catches it.

Ask lane

  • Rep → SSO → resolve role, territory and deal stage → route (summary, risk, draft or update) → fetch snapshot, structured facts or hybrid evidence → ABAC post-check and redaction → reason from CRM facts and playbook → generate cited brief, questions or draft → verify claim, citation and output policy.
    • Unsupported or unapproved claim → refuse and escalate. Otherwise, a supported answer.
  • Note the order: fetch → post-check → reason. A cached snapshot is fetched like any other evidence and checked again before use.

Write lane

  • Proposed CRM update or email draft → policy check → rep previews and approves → allowlisted tool gateway + idempotency key → CRM or mail → audit.
  • Short on purpose. Nothing in it is decided by the model:
    • the policy check is code,
    • the approval is a human click,
    • the idempotency key means a retried approval can't write twice.

End-to-end view (what the lanes leave out)

  • Control plane versions: ABAC policy, CRM sharing rules, connector schedules, vault references, approved claims, pricing policy, prompts, models, routes, tool allowlists, approval thresholds, claim-level evaluations and budgets.
  • Observability band: traces the golden set, the permission red team and shadow cases; monitors unsupported claims, permission violations, agent steps, snapshot hit rate, cost per workflow and adoption.
  • Router's three branches:
    • "summary / risks" → snapshot cache;
    • "question needs a count or a record" → structured store;
    • "question needs prose" → keyword and vector index.

Three boundaries to point at

  • Precompute vs ask keeps slow CRM fan-out off the interactive path.
  • The trust boundary sits at ENFORCE. Everything to its left may hold records the rep can't see; nothing to its right may.
  • The write boundary sits at approval. Nothing reaches the CRM or a mailbox without a previewed, approved draft carrying an idempotency key.

Idempotency key = an ID sent with a write so a retry of the same operation runs it only once.

Soundbite: "Precomputation speeds access but never grants access."

Components in dependency order (and how each fails)

The order they come into existence is also the order they fail.

Component Responsibility Fails how
Identity gateway Validate SSO token; load role, territory, tenant, deal stage; classify request as read-only, draft-only or action-taking Closed: no identity, no answer
Connector registry One schedule and one credential reference per source; change tokens where supported; health as its own signal Degrades: one source's outage quarantined to that source
ACL and territory mirror Translate CRM sharing rules, FLS and transcript participant access into one attribute model Closed: no usable ACL, not indexed
Snapshot job and cache Build the brief before the meeting as the rep; cache on account + permission signature Degrades: last snapshot with a staleness label
Intent router Summary, risk, draft or update; structured vs semantic vs both Degrades: fall through to the agent path
Structured store and indexes CRM fields for counts, lookups, stage; documents and transcripts for prose Degrades: keyword when vector is down, labelled
Policy post-check Re-run ABAC on fresh attributes; redact PII from transcripts as an obligation Closed: policy engine down, refuse
Reasoning layer Risks from CRM fields and playbook objections; never from model memory Refuses when evidence is missing
Claim verifier and output policy Every outbound claim traced to an approved-claims entry; block, never warn on external claims Closed on an unapproved claim
Tool gateway Allowlist, idempotency keys, preview, approval, audit Closed: no approval, no write
Trace store, eval, dashboards Replayable runs, claim-level slices, permission red team, online unsupported-claim monitor Degrades: answer served, gap logged

5. Precompute as the user and reauthorise when serving

Why precompute

  • The ask can't fan out to the CRM, transcript store and warehouse on every question.
  • A meeting is on the calendar hours in advance, so build the brief then.
  • That one decision makes the 3-to-8-second target (and the latency drill) achievable.

What the snapshot job builds

  • Runs on a calendar trigger, or on demand with a visible progress state.
  • Contents:
    • account summary;
    • open opportunities with stage and next step;
    • last interactions across calls and email;
    • open support escalations;
    • approved claims and objections for the account's segment.
  • Runs as the rep, so the permission check happens at build time.
  • Cached under account + the rep's permission signature.
    • A manager and a rep on the same account get different snapshots: they may see different fields.

Precompute is an optimisation, never a permission model

Materialised view = stored output derived from source records at one moment. It can outlive a permission change.

  • The noon test: a territory change at noon removes the rep's effective access. They must not read the 9 a.m. snapshot at 2 p.m.
  • Evaluate all current grants: ownership, sharing or another permitted relationship may independently retain access.
  • So the ask lane rechecks policy on fresh attributes before serving.
  • A territory or role change invalidates every snapshot keyed on that rep.
  • Same two-layer rule as permission-aware retrieval: filter when building, check again when serving.
  • Precompute improves p95, but on its own it can't honour a revocation.

Versions and outages

  • Stamp source, index and policy versions.
  • CRM outage: serve only a previously authorised snapshot within approved staleness, after a valid current access decision.
  • If that decision or freshness can't be established → refuse.
  • Don't turn precomputation into a second independent permission system.

Scale lives in this lane

  • At ten times the accounts: shard snapshot jobs by territory.
  • Give each connector its own schedule, so one rate-limited source doesn't block the others.
  • Interactive load then scales with the snapshot hit rate, not live CRM fan-out.

Soundbite: "Filter when building, check again when serving. A snapshot can't honour a revocation on its own."


6. Match the question to structured or semantic evidence

The trap

  • "What are the risks on this opportunity?" is a structured question wearing a conversational coat.
  • Embed it and search, and you get similar-sounding notes, not:
    • the stage that hasn't moved in 40 days,
    • the competitor named in the last call,
    • the close date that slipped twice.
  • Semantic search answers "which things are like this". It never answers "how many", "which is most recent" or "did this field change".

The router decides the evidence route

Question shape Right tool Why plain search fails
"Summarise the last three calls with this account" Authorised account lookup, timestamp sort, limit to three, then transcript summarisation Similarity alone doesn't select the three most recent calls
"How many open opportunities does this account have past their close date?" Structured query on CRM fields Search returns similar records, not a count
"What is the status of opportunity 0065g00000?" Direct lookup by ID An ID isn't ordinary text
"Which objections came up across all late-stage deals this quarter?" Both: filter first, then summarise the filtered transcripts A filter can't summarise prose; search can't scope to "this quarter's late-stage deals"

Fixed operations over generated queries

  • Prefer a fixed set of reviewed CRM operations:
    • get account by ID, get opportunities by stage, get interactions since a date.
  • Why: a model writing its own query can invent fields or touch every row. "The copilot queried the whole pipeline" is a real incident.
  • The fixed operations are a tool registry pointed at a record system, and the same allowlist the tool gateway enforces.
    • Fields, rows and permission scope are bounded in one place.
  • Revisit only when the question set is genuinely open-ended and a validated query layer exists.

Risks come from fetched evidence

  • Stage age, slipped close dates, competitor mentions in transcripts, unanswered emails, open escalations, the playbook's known objections for the segment.
  • Each risk carries its citation.
  • A stage unchanged for 40 days is a traceable signal; a model's sense of what a deal "probably" looks like is not.
  • Missing fields or stale transcripts → the copilot lists what it couldn't check instead of filling the gap.

Soundbite: "Counts and IDs go to reviewed CRM operations; prose goes to hybrid search; cross-deal questions filter first, then summarise."


7. Block unapproved claims and preview exact writes

Claims in an email draft

  • The draft is the most visible output and the most dangerous: it leaves the building.
  • Every outbound product, certification, pricing or ROI claim must trace to an entry in Playbook.approved_claims.
  • Account-specific facts also need current authorised evidence and an explicit policy permitting external use.
    • An internal CRM note is not automatically an approved customer-facing statement.
  • Pricing and discount language comes only from the current versioned deal-desk policy, regional variants included. The copilot refuses to quote outside it.

Personalisation and discovery questions

  • Personalisation comes from the account's own record and interactions: the rep's last thread, the customer's stated priorities from the transcript, the open escalation.
    • Never from what "a company like this probably cares about".
  • Discovery questions come from the playbook's objection list and the gaps in the CRM record.

Block, don't warn

  • The claim verifier blocks an external draft when a claim has no approved entry or no correct citation.
  • A warning beside a pending certification, an internal-only ROI figure or an unapproved customer reference isn't enough.
    • The rep under time pressure sends the draft anyway. The regression incident shows exactly that.
  • It checks approval status and citation, not just whether the claim sounds similar to a source.
  • Human review is a second line, after this gate, not a replacement for it.

CRM updates are proposals, not writes

  1. The copilot proposes a stage change, next step or note.
  2. It becomes a Draft with an approval_status.
  3. Fixed path: exact fields previewed → policy check → human approval → idempotent gateway call → CRM receipt → audit.

What approval is bound to, and what the gateway checks:

  • Bind approval to the account, field values, prior record version, actor and policy version.
  • At execution, check current access and the record version again.
  • Another seller changed the opportunity? Return a conflict for review; never overwrite the newer state.
  • Before dispatch the gateway persists a logical-operation ID, approved argument hash and expected record version.
  • On retries, reuse that operation; after an uncertain response, check the authoritative CRM result.
  • Caveat: a CRM doesn't get Stripe-style idempotency just because a client adds a header.
    • The adapter must implement the documented contract.
    • A conditional update can reject intervening edits but doesn't by itself make every side effect replay-safe.

Read tools vs write tools

Tool class Rule
Read tools Run automatically
Write tools Policy check, idempotency key, preview mode, human approval above the risk threshold
Above the threshold on day one Sending mail, closing an opportunity, changing an amount or stage, emailing externally
  • A later clean pilot may justify a narrow automatic route for a low-risk field such as last_contacted.
    • The first release doesn't assume it.
    • That exception is a separately approved policy change, not implicit permission for all CRM writes.

Soundbite: "The verifier blocks, it doesn't warn, and human review is the second line, not the first."


8. Prove both trusted output and seller value

Why the gate needs slices

  • A suite measuring grammar, tone and general groundedness will pass a model that writes beautifully and invents a security certification.
  • In the incident, a 96.7 percent pass rate on 120 cases hid an 83.3 percent pass rate on the six regulated-claim cases that mattered.
  • So critical slices pass independently or the release doesn't ship. An aggregate can't hide them.

Where the test data comes from

  • SME-approved historical account briefs and deliberately sparse-record accounts.
  • Permission red-team questions asked by reps and managers across territories.
  • Exact citation audits, claim-level labels and workflow replay.
  • Ask the same question as different roles, territories and tenants, including counts that could leak hidden rows.

Quality, safety and operational gates

Metric Good threshold Bad threshold Test dataset Owner
Answer groundedness ≥ 90% supported claims < 80% Golden Q&A plus SME review FDE / SME
Permission violations 0 > 0 Red-team set: same question from different roles, territories, tenants Security
Citation accuracy ≥ 95% correct citations < 85% Source-span audit of sampled drafts SME
Task completion ≥ 80% of target workflows with less manual effort < 65% Workflow replay tests Product
Escalation quality ≥ 95% correct escalation on high-risk cases Missed high-risk case Risk-labelled scenarios Product / support
Unsupported-claim rate (added, from the incident) Zero critical failures on regulated-claim slices; online rate at baseline Any pending-approval or internal-only claim in an external draft Claim-level suite: security certifications, ROI numbers, customer references, with negative examples the model must refuse Legal / enablement
Latency and cost p95 within target; cost per workflow below budget Breach at peak Load test plus production telemetry Platform

FDE = forward deployed engineer.

  • Source example targets: ≥ 90% supported claims, 95% correct citations, 80% task completion, 95% correct high-risk escalation, zero permission violations, zero critical failures on regulated-claim slices.
  • The unsupported-claim row was added after the incident.
  • Agree the actual thresholds and budgets with their owners before release. Each critical slice is a separate gate.

Business metrics (prove adoption)

  • From the practice-set prompt: preparation-time reduction, brief accuracy, citation coverage, seller adoption, conversion improvement where attributable, meeting-quality improvement.
  • Report them beside the safety metrics: a copilot that's safe and unused has also failed.
  • Online: monitor the unsupported-claim rate by model route, source and claim category.
  • User corrections enter evaluation after review; they're not direct training data.

Red-team the boundary directly

  • Invented customer facts and disallowed pricing promises
  • Confidential account leakage across territories and tenants
  • Biased lead scoring (why scoring is a non-goal)
  • Indirect prompt injection in transcripts, email threads, tickets or uploaded files
  • Data exfiltration: "summarise every account in the region", exposing hidden metadata, revealing the tool schema
  • Unsafe automation: close, approve, refund, email externally or change priority without approval
  • Staleness and conflict: an old discount policy contradicting the current one; surface the conflict and prefer the approved current source

Rollout, one gate at a time

Week Gate
0-1 Define the workflow, risk boundary, success metrics, source owners, approval rules and non-goals
1-2 Ingest a limited approved corpus; offline prototype, no write-back, no external communication
2-3 Golden dataset from historical cases and SME-approved answers; red-team and permission tests; claim-level slices
3-4 Shadow mode against historical and live cases; compare with the rep's own briefs without showing output
5 Read-only pilot with citations, confidence, feedback capture and an escalation path
6-8 Draft-only workflow actions behind human approval; every high-risk action stays gated
After Expand sources and users only while eval metrics, incident rate, latency and cost hold; keep the rollback plan

Week one is a slice of the diagram

  • One CRM connector.
  • The territory mirror provably right for three reps in three distinct territories.
  • A golden set from historical account briefs, built with the enablement team.
  • The permission red team standing.
  • Shadow mode: the copilot runs on real cases and is compared with the rep's own briefs, output shown to no one.
  • Throughout: pin model versions, canary each route change, keep a rollback plan, require source-owner sign-off.

Quick Recall: Lines to Say in the Interview

  • "I separate reading, drafting and writing before I draw a box."
  • "A requirement the customer can't test is a preference."
  • "No usable ACL, not indexed. Embeddings never decide permissions."
  • "Precomputation speeds access but never grants access."
  • "The trust boundary sits at ENFORCE; the write boundary sits at approval."
  • "Counts and IDs go to reviewed CRM operations, not vector similarity."
  • "The claim verifier blocks, it doesn't warn."
  • "96.7% on 120 cases hid 83.3% on six, so critical slices gate on their own."
  • "A copilot that's safe and unused has also failed."

Technical deep dives

The goal: the mechanisms behind the follow-ups: permission fidelity, provenance records, failure policy, the unsupported-claim regression and the latency pivot.

30-Second Cheat Sheet

  • Identity first: validate the customer's IdP token, map their groups by configuration, alert on group drift, provision new users just in time with minimal rights.
  • Mirror CRM sharing into record attributes (owner_id, territory_ids, role_visible_from, field mask). Post-check before generation, not after.
  • A leaky count is a leak: counts over a peer's territory face the same zero-violation gate.
  • Secrets by vault reference, per connection; per-tenant keys limit a leak to one tenant.
  • Six records; Playbook.approved_claims and Draft.approval_status carry the safety story.
  • Failure rule: authorisation and approval fail closed; everything else degrades visibly with a label.
  • The incident: 96.7% on 120 cases hid 83.3% on six regulated-claim cases; online unsupported claims hit 8.6% vs 1.2%; the verifier warned instead of blocking.
  • Latency pivot (30 to 45 s): likely agent steps and serial tool calls (confirm in traces). Replace the open loop with a bounded execution graph.

1. Identity, sharing rules, field masks and secrets

  • The answer key says "apply user, role, tenant, region and sensitivity permissions before retrieval" and stops there.
  • This deep dive comes from the source's full design, which adds the mechanism from its identity, connector and structured-data concept material.

Establish identity before any permission logic

  • Authorisation assumes identity is already established, so start in front of it.
  • Authenticate through the customer's own identity provider (IdP).
  • Validate the token's signature, issuer, audience and expiry.
  • Map the customer's groups into the platform's role vocabulary through configuration, not locally invented roles.
  • Group mapping can drift: a group renamed on the customer's side must raise an alert, never silently orphan a rep or widen their access.
  • A user from a newly connected customer is provisioned just in time from the token's claims, scoped to their own company, with minimal rights by default.

Mirror CRM sharing into record attributes

How Salesforce decides visibility

  1. Org-wide defaults: the baseline access everyone gets.
  2. Widened by record owner, role hierarchy, sharing rules, teams and territories.
  3. Field-level security (FLS) separately decides which fields of a visible record show.

What the mirror writes onto each record

Attribute Carries
owner_id Record ownership
territory_ids Territory assignment
role_visible_from Role-hierarchy visibility
Field mask Computed from the current user's effective object and field permissions, including profile and permission-set grants
  • A sales role or territory alone doesn't establish field access.
  • Pre-filter (compiled into retrieval): tenant, territory and role.
  • Post-check (after retrieval, before generation or serving a snapshot): re-verify effective object, record and field access.
  • Masking after generation is insufficient: a generated summary may already blend restricted facts into prose.
    • Invalidate and rebuild it from currently permitted evidence, or
    • omit every affected claim using retained field-level provenance.

Counts, transcripts and derived state

  • A count of open opportunities that includes a peer's territory is as serious as a forbidden document, even with no row shown. Same zero-violation gate.
  • Transcripts add participant and manager access, plus regional recording consent.
  • Embeddings and snapshots are derived state and never grant access.

Keep credentials and keys per connection

  • Credentials for the CRM, call recorder and mailbox are vault references, never values.
    • Resolved at the moment of use.
    • Never logged, never in a model prompt or trace.
    • Scoped per connection, not per connector type: one customer's Salesforce credential can never reach another customer's Salesforce.
  • Per-tenant encryption keys: one leaked key exposes one tenant, not all.
    • A tenant's data can be crypto-shredded (made unreadable) by destroying its key.
  • Editorial caution beyond the source: key deletion doesn't prove every cache, export or plaintext copy is gone, so offboarding still has to govern those paths.

Spoken answer: "Authorisation logic assumes identity is already established. In front of it I validate the customer's own token and map their groups. Underneath it, credentials come from a vault by reference and never appear in a trace."


2. Records that preserve approval and provenance

The source defines six core records. Most carry context; two carry the safety story.

Record Fields Role in the design
Account id, segment, industry, region, owner, entitlements Account context; segment selects the playbook
Opportunity id, stage, amount, close_date, competitors, next_step Structured sales state; source of stage-age and slipped-date risks
Interaction id, account_id, type, transcript, participants, timestamp Calls and email; participants drive transcript access
Playbook id, segment, approved_claims, objections approved_claims is the only place an outbound claim may come from
Draft id, account_id, user_id, content, approval_status approval_status is the gate every write passes through
AuditLog user_id, account_id, source_ids, output_type Connects each output to its evidence

The audit record needs more than the base schema

To reconstruct a decision, trace:

  • source IDs;

  • retrieval and policy versions;

  • field masks applied;

  • citations;

  • model and prompt versions;

  • the claim verdict;

  • the approval;

  • the write receipt.

  • A generated draft and an executed CRM change are different events and get separate entries.


3. Fail visibly while preserving authorisation

The one rule

  • Authorisation and approval fail closed: refuse to answer or act.
  • Everything else degrades visibly with a label: serve something narrower and say so.

Each dependency

  • Missing context field → an explicit list of what couldn't be checked; never a value from model memory.
  • CRM outage → last authorised snapshot, labelled stale, only within allowed staleness; all writes blocked.
  • Vector-store outage → authorised keyword or structured route with a limitation label.
  • Model outage → approved secondary route, or queue drafts and long work with progress shown.
Fails Behaviour
Bad retrieval or missing context Say what couldn't be checked; list the missing evidence; never fill from model memory
Hallucinated policy or procedure Claim verifier blocks; pricing language only from the versioned policy
Cross-tenant or role-based data leakage Pre-filter on tenant, territory and role; post-check on fresh attributes; zero-violation gate
Unsafe tool call or write-back action Allowlist, preview, approval, idempotency key; nothing above the threshold executes
Stale documents or bad sync Staleness label on the snapshot; nightly reconciliation; connector health alert
Cost or latency spike Step caps, snapshot cache, deterministic routes; see the latency section
CRM down Serve the last snapshot, labelled; no writes
Model provider down Fail over to a secondary route; drafts queue with progress state
Prompt injection in a transcript or inbound email Retrieved content is untrusted evidence; it may still sway the model, so write tools stay gated outside it and text can't unlock them
Policy engine or approval service down Fail closed. Refuse. Never fail open on authorisation or approval

The fail-closed rows

  • Policy engine, ACL mapping, approval service. If any is down, the system refuses.
  • Why: an answer built on uncertain access is a possible leak.

Prompt injection, precisely

  • Text in a transcript or inbound email is untrusted evidence.
  • Marking it as data lowers the risk but doesn't stop it from swaying the model.
  • So the defence is structural: write tools and claim policy are gated outside the model, and no text can unlock them.

Scale follows the same logic

  • At ten times the accounts: shard snapshot jobs by territory.
  • Make the connector registry config-driven: one schedule and one health signal per source, so one rate-limited connector doesn't stall all preparation.
  • The interactive path scales with the snapshot cache hit rate, not the CRM's API limits.
  • A latency complaint is a separate drill (section 5).

Soundbite: "Authorisation and approval fail closed; everything else degrades with a label."


4. Diagnose the unsupported-claim model regression

Context

  • The failure the claim verifier exists to prevent.
  • The source's incident sheet files it under its separate Evaluation and Release Gating case (the lesson is release control), and walks it here because the system is a sales copilot drafting outreach from CRM notes, product docs and approved messaging.
  • Everything below is a scenario, not a statement about any real company's certification or results.

Detect

  • 8 July 2026, 09:00: sales email drafting moves from llm_standard_v2 to llm_premium_v3 after offline evals showed better fluency and personalisation.
  • Sales leaders see persuasive drafts claiming:
    • "SOC 2 Type II renewal completed in June 2026" (not yet approved for external use);
    • "average 34% support cost reduction" (from an internal pilot).
  • Offline evaluations had passed. About three hours later:
2026-07-08T12:16:44.921Z level=warn service=online-eval-monitor
  workflow=sales_email_draft model_route=llm_premium_v3 previous_model_route=llm_standard_v2
  unsupported_claim_rate=8.6% baseline=1.2% sample_size=430
  external_claim_policy_failures=37 severity=high

2026-07-08T12:17:03.108Z level=info service=eval-runner
  eval_suite=sales_copilot_release_gate version=eval_v14
  total_cases=120 pass_rate=96.7% release_gate=pass
  regulated_claim_cases=6 regulated_claim_pass_rate=83.3%
  missing_cases=[security_cert_pending,roi_internal_only,customer_logo_permission]

2026-07-08T12:17:11.339Z level=error service=claim-verifier
  trace_id=trc_eval_4402 request_id=req_sales_91902 tenant_id=acme
  generated_claim="SOC 2 Type II renewal completed in June 2026"
  claim_status=pending_approval approved_for_external_use=false
  retrieved_claim_doc_id=doc_security_roadmap_internal visibility=internal_only
  policy_action=should_block actual_action=warn_only

Read the three lines in order:

Log line What it shows
Online monitor Unsupported-claim rate 8.6% vs 1.2% baseline; sample of 430 drafts; 37 external-policy failures
Release gate Why nobody was stopped: 96.7% of 120 cases passed, but only six covered regulated claims, at 83.3% (five of six). No cases at all for pending security certifications, internal-only ROI or customer-logo permission
Claim verifier The last guard knew the claim was pending and internal-only; policy said block; it only warned
  • Detection = compare online failures with offline slices and with the policy action actually taken.

Contain

  1. Roll back to llm_standard_v2.
  2. Restore block mode for external claims.
  3. Add review banners to every draft produced during the experiment.

Root cause (three changes lined up)

  • A suite blind to the slice that mattered: it over-measured writing quality and under-measured unsupported business claims.
  • A stronger model: the upgrade increased persuasive extrapolation.
  • A weaker gate: the policy evaluator was switched from block to warn-only during the experiment to reduce false positives.
  • The failure is in evaluation and release control, not prose style. Editing one draft or tightening the prompt leaves it in place.

Prevent

  • Claim-level evaluation suite with labelled approval status
  • Slice-based release gates requiring zero critical failures on regulated claims
  • Online unsupported-claim monitoring against baseline
  • Negative examples where the model must refuse internal-only claims
  • Never run warn-only for external drafts, whatever the false-positive rate
  • Principal level: run the approved-claims playbook, pricing policy and model routes as control-plane releases with an owner, a canary and a rollback, so nobody quietly flips the verifier again

Spoken answer: "The failure is an eval and launch-gate problem. The suite passed at 96.7%, but it had only six regulated-claim cases and the online unsupported-claim rate jumped to 8.6%. I would roll back the model route, restore blocking for external claims, add claim-level evals for security, ROI and customer-logo claims, and require critical slices to pass independently before release."

  • The weak answer: "the model is too creative, make the prompt stricter and ask reps to review."

Incident scorecard

Criterion Strong Signal Weak Signal
Problem framing Identifies eval coverage regression Says model is "too creative" only
Telemetry interpretation Reads slice pass rates, unsupported claim rate, policy action Cites aggregate pass rate only
Root-cause reasoning Connects model route, weak evals, warn-only policy Blames prompt alone
Production debugging Compares offline/online failures by slice Manually edits one draft
Security/privacy awareness Notes legal/commercial risk of unsupported claims Treats as style issue
Mitigation quality Rollback, block mode, claim-level gates Adds generic human review only
Communication clarity Explains why evals missed critical slice Says "evals passed" defensively

5. Replace a slow open loop with bounded account preparation

The pivot

  • "Sales users complain account prep takes 30 to 45 seconds."
  • Answer it in the same sitting with the same architecture.
  • Likely driver: serial tool calls and agent steps, not necessarily model inference. A hypothesis to confirm in traces:
    • which tools are called;
    • serially or in parallel;
    • how many agent steps run;
    • which data is needed synchronously.
  • Weak move: switch to a faster model without reading the traces.

The strong move

  1. Precompute the account snapshot on the calendar trigger.
  2. Route common questions deterministically.
  3. Parallelise the independent read-only calls that remain.
  4. Cache permission-scoped state.
  5. Cap steps, top-k and timeouts.

Top-k = how many candidates retrieval returns.

  • The agent then handles only the ambiguous next step, not every CRM operation.
  • Prove it before and after: agent step count, tool latency, snapshot hit rate, timeout rate, p95, cost per workflow.

The original ten-minute drill

Drill field Worked answer
Ask Which tools are called? Serial or parallel? How many agent steps? Which data is required synchronously? Can account snapshots be precomputed?
Likely driver (confirm in traces) Agent steps and serial tool calls
Weak move Switch to a faster model without inspecting agent traces
Strong move Trace the agent, cap steps, cache account data, parallelise read-only calls, precompute account summaries, route common requests to deterministic workflows
Path user → deterministic intent route → account cache → parallel CRM/tool calls → summarisation → optional agent for ambiguous next steps
Trade-offs Agent flexibility is useful, but common CRM operations should be deterministic and cache-backed
Metrics that prove it Agent step count, tool latency, cache hit rate, timeout rate, cost per request
Recommendation Replace the open-ended agent loop with a bounded execution graph

Spoken answer (sixty seconds): "Replace the open-ended agent loop with a bounded execution graph. Common CRM operations are deterministic and cache-backed; the agent handles only the ambiguous next step."

  • The snapshot lane is that graph's first node, so the design already holds the drill answer.

Four verbs for any cost or latency answer

  1. Measure: trace and attribute time first.
  2. Route: match model and path to risk.
  3. Bound: limit steps, tokens, top-k, timeouts and budgets.
  4. Cache safely: put tenant, permission and version in the key.

Deliver it in six moves: frame the business impact → decompose the path → name the largest measured driver → fix it safely → prove it with before and after → prevent recurrence.

The sibling drill

  • A real-time sales assistant with a sub-3-second target during live calls.
  • A different system with a different clock, covered in the Real-Time Call Assistant case.
  • Its answer: precompute before the call, stream small suggestions during it, enrich asynchronously afterwards.

6. References and source limits

How the case was assembled

  • Built from a group of prompts, not one bespoke worked design.
  • The group had only a templated practice worksheet.
  • So the CRM-permission and account-data detail (step 3, the permissions deep dive and step 6) was added for the full design from cross-cutting concept material, and is marked as added where it appears.
  • The worksheet alone doesn't make those claims.
Case in the group What it contributes here
Sales Copilot for Account Executives (anchor) The worksheet, answer key, requirements, evaluation, rollout and spoken answer
OpenAI-style practice prompt: AI-Powered Sales or Account-Research Assistant The explore list and success metrics in step 1 and step 8, and the fabricated-fact follow-up
Reduce latency for an agentic CRM assistant The latency pivot
Incident 7, model regression missed by a weak eval suite (filed under Evaluation and Release Gating) The claim-level release gate and the regression incident
Concept tutorials on identity, connectors and the structured-data router The permission and CRM-connector detail

External references

  • Salesforce's sharing and field-security guidance and conditional REST requests support the permission and concurrent-update distinctions.
  • The other references were checked on 27 September 2026. They support the explanation; they don't make this prototype a live integration or state current provider guarantees.
Reference What it supports
FDE problem-decomposition question bank (no public link in the source) Reusable practice cases for ambiguous enterprise problems
Control Who Sees What (Salesforce Help) Record access starts from org-wide defaults; FLS controls fields
Field-Level Security (Salesforce Help) Hiding fields such as amount by profile or permission set
AWS KMS cryptography essentials (envelope encryption) What per-tenant data keys do and don't protect
Stripe API reference: Idempotent requests Idempotency keys stop a retried write from running twice
OWASP GenAI LLM01:2025 Prompt Injection Treating content as data lowers but doesn't stop injection
OWASP GenAI LLM06:2025 Excessive Agency Gate write tools outside the model
Deep Dive, latency pivot (the full casebook) Agent steps and serial tool calls are the likely driver, to confirm in traces

Quick Recall: Lines to Say in the Interview

  • "Authorisation assumes identity is already established."
  • "Masking a column after generation is too late; rebuild from permitted evidence or omit the claim."
  • "A count over a peer's territory is a leak, even with no row shown."
  • "Credentials are vault references, scoped per connection, never in a trace."
  • "Authorisation and approval fail closed; everything else degrades with a label."
  • "Injected text can sway the model, so write tools are gated outside it."
  • "96.7% on 120 hid 83.3% on six; the verifier warned where it should have blocked."
  • "Replace the open-ended agent loop with a bounded execution graph."

Quick review

One sentence: build the brief before the meeting as the rep, recheck access when serving it, cite every fact, block unapproved external claims, and preview every CRM write.

30-Second Cheat Sheet

  • Five outputs by risk: read-only, draft-only, approved write-back.
  • Three lanes: precompute, ask, write.
  • Two final gates: the claim verifier (blocks) and the rep's approval (before any CRM write).
  • A snapshot never authorises access. Recheck after a territory change.
  • Counts and IDs use reviewed CRM operations; counts obey the zero-leak rule.
  • Targets (source examples): asks in 3 to 8 seconds, 90% grounded, 95% citations, 80% task completion, 95% escalation, zero violations.
  • Regression: 96.7% over 120 hid 83.3% over six; online 8.6% vs 1.2%.

1. Recall the three lanes and two final gates

Five outputs by risk

Output Tier
Account summary, opportunity risks Read-only
Discovery questions, email drafts Draft-only
CRM update suggestions Preview and approval before write-back

Ask first

  1. The workflow and its decision.
  2. Who uses and who reviews.
  3. Which tasks read, draft or write.
  4. Which sources and permissions.
  5. Which claims and prices are approved.
  6. What must be refused.
  7. The 30-day pilot metric.
  8. The audit proof.

Three lanes

Lane Path
Precompute Sources → ACL and territory mirror → structured store + hybrid index → snapshot built as the rep → permission-keyed cache
Ask SSO → role and territory → route → authorised evidence → fresh post-check → cited answer or draft → claim verifier
Write Proposed exact fields → preview → human approval → allowlisted idempotent gateway → CRM receipt
  • The copilot LLM summarises and drafts.
  • A bounded agent handles ambiguous steps.
  • Common CRM lookups are deterministic.
  • The model can't approve claims or writes.

Rules

  • A snapshot is a materialised view and never authorises access; recheck after a territory change.
  • CRM org-wide defaults, owner, role hierarchy, territory, sharing rules and field masks all matter.
  • Counts and ID lookups use reviewed CRM operations, not vector similarity; counts obey the same zero-leak rule as excerpts.
  • Opportunity risk comes from fetched fields and interactions, not model memory.
  • External claims require approved playbook or policy evidence, and the verifier blocks.
  • Permission uncertainty and approval failures close the path.

Targets (source examples, not measured results)

Item Target
Interactive asks 3 to 8 seconds
Grounded claims At least 90%
Correct citations 95%
Task completion 80%
Correct high-risk escalation 95%
Permission violations Zero
Critical unsupported external claims Zero

2. Failure, rollout, latency and regression cards

Failure card

Event Response
CRM down Labelled, authorised stale snapshot; no writes
Territory changed Invalidate and reauthorise
Missing fact Say so
Unapproved price or certification Block the draft
Injected email or transcript Untrusted data; write tools gated outside the model

Rollout

one connector + territory matrix → offline golden set → shadow mode → read-only pilot → approved drafts and writes

  • Gate critical claim slices independently.
  • Measure rep adoption and prep-time reduction as well.

Latency answer

  • 30 to 45 second prep likely comes from agent steps and serial tools (confirm in traces).
  • Fix: precompute, route deterministically, cache with permission scope, parallelise safe reads, bound the graph.
  • Measure: step count, tool time, cache hit rate, p95, cost per workflow.

Regression card

  • An aggregate 96.7% over 120 cases hid regulated claims at 83.3% over six.
  • Online unsupported claims hit 8.6% against 1.2% after a model upgrade and a warn-only verifier.
  • Fix: roll back the route, restore blocking, add claim-level critical gates.

Interview close: "The system is useful only when the rep trusts both the account facts and the boundary around them: authorised evidence, approved claims, and approved writes."


Flashcard Drill


Quick Recall: Lines to Say in the Interview

  • "Build it as the rep, recheck when serving, cite every fact."
  • "Read-only, draft-only, approved write-back."
  • "A snapshot is a materialised view; it never authorises access."
  • "Counts obey the same zero-leak rule as excerpts."
  • "Risk comes from fetched fields, not model memory."
  • "The verifier blocks unapproved external claims."
  • "Prep at 30 to 45 seconds: confirm in traces, then bound the graph."
  • "96.7% over 120 hid 83.3% over six."

Where next

Practise this as a worksheet
Sales Copilot for Account Executives
Revise the concepts