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 the rule validates
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.
Typical violation example
The schema uses organizationId everywhere, but the architecture overview never describes tenant isolation.Typical compliant example
The overview and ADR describe organization-scoped tenant isolation and data-access expectations.Related rules
AP-TEN-001 - Missing tenant context propagationAP-TEN-002 - Missing tenant enforcement on data accessAP-TEN-003 - Cross-tenant access risk
Adjacent categories
Related files/config
docs/adrsdocs/architecture/overview.md.archpilot/architecture.json
Related CLI commands
archpilot validatearchpilot validate --ci