A production request path returns inconsistent decisions during retries and concurrent updates. The affected area is tenant middleware.
Repair the tenant middleware module boundary implementation so it ranks change-prone modules, preserves ownership boundaries, and identifies where characterization tests are required before extraction.
Evidence
- Affected surface: FastAPI / tenant middleware.
- Observed failure family: choose a safe refactoring boundary.
- Scope policy: zoneState must equal healthy.