# RAG Tenant Isolation Test Reviewer

> Review RAG tenant isolation test evidence, detect cross-tenant data exposure in retrieved documents, citations and generated answers, and identify incomplete security tests using deterministic Python validation.

RAG Tenant Isolation Test Reviewer is a paid AI agent skill on Agensi by Pat Hogen, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $5 (one-time purchase)
- Creator: [Pat Hogen](https://www.agensi.io/creators/pat-hogen)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 0.1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/rag-tenant-isolation-test-reviewer
- Tags: security, testing, llm-ops, ai-security, tenant-isolation, data-leakage, application-security, llm-security

## What it does

- Reviews captured two-tenant canary test results
- Detects foreign canary strings and document identifiers in supported output fields
- Checks retrieved documents, source citations and generated answers for cross-tenant exposure
- Verifies positive controls and bidirectional isolation test coverage
- Flags incomplete evidence and unconfirmed actor identity
- Produces structured PASS, FAIL or UNVERIFIED security review results

## Who it's for

- **AI application developers:** Review tenant isolation evidence before releasing multi-user RAG applications. Try: "Review these two-user RAG isolation test results and identify any data exposure."
- **Application security engineers:** Identify observed cross-tenant exposure and gaps in isolation test coverage. Try: "Audit these captured canary test results for authorization boundary failures."
- **AI quality assurance engineers:** Standardize the evaluation of positive controls and cross-tenant security tests. Try: "Check whether these four tenant isolation test cases meet the validation criteria."
- **Platform and cloud engineers:** Evaluate supplied isolation regression evidence before deploying application changes. Try: "Review these RAG regression test results and identify missing security evidence."

## About this skill

### A successful API response does not prove tenant isolation

Retrieval-augmented generation (RAG) applications must prevent users from accessing information belonging to other tenants. HTTP status codes alone are insufficient to establish whether this security boundary is working.

RAG Tenant Isolation Test Reviewer evaluates captured security test evidence using a structured, repeatable validation process.

### How it works

1. Provide authorized test observations from two synthetic or redacted tenants with distinct canary strings and document identifiers.
2. The skill organizes authentication evidence, HTTP status codes, retrieved documents, citations and generated answers.
3. A deterministic Python checker evaluates each test against explicit isolation rules.
4. The checker assesses positive controls and cross-tenant tests in both directions.
5. Receive a structured report identifying observed exposure, incomplete evidence and recommended follow-up testing.

### Four-direction test coverage

- A to A: Tenant A positive control.
- A to B: Cross-tenant isolation test.
- B to A: Reverse cross-tenant isolation test.
- B to B: Tenant B positive control.

### Clear validation results

- **PASS:** All required test directions satisfy the defined observation-based rules.
- **FAIL:** Foreign canary data or document evidence is detected.
- **UNVERIFIED:** Evidence, authentication confirmation or required test coverage is insufficient.

### Key benefits

- Identify observed cross-tenant data exposure.
- Avoid relying exclusively on HTTP status codes.
- Review retrieval results, citations and generated answers.
- Identify missing security regression tests.
- Generate consistent, explainable findings.

### Privacy and requirements

The included checker requires no external APIs, additional paid tools, credentials or direct network access. Use synthetic or redacted evidence. Python execution enables deterministic validation, with a labeled manual review fallback when execution is unavailable.

### Limitations

This skill reviews supplied observations only. It does not perform live security testing, access target applications, verify server-side authorization implementation or provide security certification. A passing result does not establish the absence of all possible data leaks.

## Requires

- Python 3.9+ (for deterministic validation)

Python is required for deterministic script execution. A labeled manual review fallback is available for agents without terminal access. Use synthetic or redacted test evidence. No API keys, credentials or external accounts are required.

## Known limitations

Reviews supplied observations from two tenants using distinct, nonoverlapping canary strings and document identifiers. Uses exact case-sensitive matching and requires confirmed actor identity, complete output capture and all four test directions for a passing result. Cannot establish server-side authorization correctness, detect every possible form of data leakage or certify application security. Does not execute live security probes. Manual fallback results are not script-verified.

## Technical details

Built using the open SKILL.md format and a self-contained Python validation script. Uses exact case-sensitive canary matching, document identifier comparisons, explicit authentication and capture-completeness flags, positive controls, and four-direction test coverage.

Includes SKILL.md, scripts/audit.py and synthetic examples in references/examples.md. Structured JSON input and output with deterministic PASS, FAIL and UNVERIFIED rules. No third-party Python packages, API keys or persistent data storage are required.

Version 0.1.0 passed nine local validation scenarios. Independent agent integration testing has not yet been completed.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the RAG Tenant Isolation Test Reviewer skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does this skill perform live security testing?

No. It reviews authorized, user-supplied security test observations without accessing target systems.

### Does a PASS mean my RAG application is secure?

No. A PASS applies only to the supplied observations and defined validation criteria. It is not a security certification.

### Can an HTTP 403 response still fail validation?

Yes. Observed foreign canary or document evidence causes a failure regardless of the HTTP status code.

### What happens when test evidence is incomplete?

Incomplete evidence or missing passing test directions produces UNVERIFIED unless observed foreign evidence establishes a failure.

### Can I use this without Python?

A labeled manual review fallback is available. Deterministic script validation requires Python execution.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
