Search docs

Docs search
Back to Rule Catalog
AP-TEN-004Tenant Isolation

Tenant isolation model undocumented or inconsistent

Reports missing or inconsistent documentation for the tenant isolation model.

infoguidanceNo auto-fix

How to fix

  1. Update the tenant model ADR or architecture overview.
  2. Name the tenant discriminator and ownership model.
  3. Link tenant isolation docs from security-sensitive workflows.

What it means

Implementation evidence and documentation do not clearly agree on how tenants are isolated.

Why it matters

Teams need durable tenant-model context to review data access, migrations, and authorization behavior.

Common causes

  • The tenant model changed without updating docs.
  • Code uses organization scope but docs use generic account language.
  • ADR and overview documentation disagree.

Example bad pattern

The schema uses organizationId everywhere, but the architecture overview never describes tenant isolation.

Example good pattern

The overview and ADR describe organization-scoped tenant isolation and data-access expectations.

Related files/config

  • docs/adrs
  • docs/architecture/overview.md
  • .archpilot/architecture.json

Related CLI commands

  • archpilot validate
  • archpilot validate --ci
AP-TEN-004 - Tenant isolation model undocumented or inconsistent | ArchPilot Docs