Search docs
Docs searchValidation rule
Back to Rule CatalogAP-TEN-004Tenant IsolationTenant isolation model undocumented or inconsistent
Reports missing or inconsistent documentation for the tenant isolation model.
infoguidanceNo auto-fix
How to fix
- Update the tenant model ADR or architecture overview.
- Name the tenant discriminator and ownership model.
- 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/adrsdocs/architecture/overview.md.archpilot/architecture.json
Related CLI commands
archpilot validatearchpilot validate --ci