Skip to content

Check that an AI employee retrieves only the right customer’s data

Create a unique synthetic record in each test tenant, then query from each identity and inspect retrieved items, tool results and citations. Fail if a user or agent can see another tenant’s record at any step.

What you need

For a product or IT owner evaluating an AI employee that serves more than one customer, business unit or tenant.

  • Two isolated test tenants with distinct synthetic records.
  • The user or agent identity used for each query.
  • Retrieval results, citations and downstream tool logs from a test environment.

Verify tenant boundaries across retrieval and downstream tool use

  1. Create a unique marker in tenant A and a different one in tenant B.
  2. Query each tenant using its own authorized identity, then try a negative cross-tenant lookup.
  3. Inspect source retrieval, answer citations and tool arguments rather than checking only the final text.
  4. Fail the test if any foreign marker appears or an unauthorized record lookup occurs; fix the enforcement boundary and repeat.

A polished answer can still leak the wrong record

Synthetic markers only: tenant A contains ORCHID-41 and tenant B contains COBALT-82.

Scroll the table to see all columns.

Synthetic cross-tenant test
CallerQuestionExpected markerObserved markerDecision
A userFind my open requestORCHID-41ORCHID-41Pass
B userFind my open requestCOBALT-82COBALT-82Pass
A userFind record COBALT-82No result or access deniedCOBALT-82 appears in citationFail

The third case fails even if the response says access is denied: the citation already exposed a tenant B marker to tenant A.

What to hand over

A tenant-by-tenant access matrix showing expected and observed retrieval, citations and tool access.

Limitation. Passing two synthetic tenants does not prove isolation across every identity, role, index partition or integration; expand the matrix to match the real architecture.

Next step

Bring a redacted data-flow sketch and the identities used for retrieval. Define the test cases that must pass before an AI workflow can serve multiple customers.

Discuss an AI workflow boundary test

Sources