Use the same exclusive config writer for tenant and global token normalization and LastUsedAt updates. Clone the validated record before releasing it, then recheck the cached tenant owner across the lock transition. Keep live revocation, organisation, owner and scope enforcement and explicit credential precedence.
Contract-Neutral: Restores the existing concurrency, live-owner and tenant-isolation guarantees without changing public fields, token authority, organisation membership, archive formats or reload policy.
Change-source: pulse-maintainer
Exercise four concurrent callers through route revalidation and middleware with cached synthetic tenant owners. Preserve token identity, organisation, owner, scope checks and live usage metadata, with a global-inventory control and no monitored runtime.
Change-source: pulse-maintainer
The full consuming router import now passes. Direct auth controls must also supply TenantMiddleware's resolved organisation before testing route enforcement; missing context correctly denotes the default scope. Keep the positive, revocation, replacement and forged-context assertions without relaxing runtime validation.
Change-source: pulse-maintainer
Use the configuration handler's locked monitor-manager reference for auth-context extraction and route revalidation, rather than capturing the manager that an instance reload replaces. Add synthetic old/new-owner, between-check replacement and removed-reference controls without exercising native reload or altering membership/scope rules.
Contract-Neutral: Maintains the existing current-owner credential validation and tenant-isolation invariants across monitor replacement; no public fields, scope grants, membership or reload policy change.
Change-source: pulse-maintainer
A valid tenant token passed auth-context extraction but failed protected routes because checkAuth checked only the global inventory. Retain the middleware-selected tenant inventory owner privately and revalidate the actual presented token against its live cached config at route enforcement. Keep global fallback, explicit-credential priority, tenant binding and scope enforcement; reject unvalidated context claims, revocation and stale runtime owners.
Contract-Neutral: Repairs the existing tenant-token authentication path and credential precedence without changing public fields, supported authorities, scope grants or organisation membership rules.
Change-source: pulse-maintainer
The containing-source API suite passed its auth assertions but failed temporary-directory cleanup in the tenant token test. It unnecessarily started a complete mock monitoring runtime for a request-context check. Use the existing cached-monitor fixture pattern instead; retain global fallback and add real tenant-token and invalid-token controls. This changes no production authentication or monitor lifecycle behaviour.
Change-source: pulse-maintainer