Union-PR simulator
Catches unsafe combinations that only break isolation when multiple PRs merge. Fail CI only when your Shield Score says it’s safe to do so.


Runtime-true guardrails for B2B SaaS. xTenant watches the SQL your app actually executes, verifies tenant predicates at the AST level, tracks context across web → workers → caches, and turns precise findings into PR comments, CI checks, and compliance-grade evidence.
Catches unsafe combinations that only break isolation when multiple PRs merge. Fail CI only when your Shield Score says it’s safe to do so.
Not just red flags—one-click diffs to add the missing tenant predicate or propagate context.
Optional Postgres wire proxy (audit-only) while native agents roll out.
AST engine + clustering + baselines with <1% FP target and Shield Score gating keep trust high.
pip install xtenant-agent
# settings.py
MIDDLEWARE += ["xtenant.middleware.AuditMiddleware"]
TENANT_FIELD = "tenant_id"
XTENANT_DSN = "xtnt://ingest.eu/org=acme/app=core"
XTENANT_SECRET = "set-this-in-env"Strict GDPR Mode (default): fingerprints only, SQL shape (no literals), tenant pseudonyms via per-org HMAC, EU-resident storage, short retention. One-click Evidence Packs for SOC2/ISO; CSV/JSON exports; DSAR/Erasure by pseudonym.