Motivation
Connecta already coordinates rotating-token refreshes across request scopes and tests two-request contention, cancellation, and credential-write races. Add regression coverage under greater contention and prove the coordinator handles another refresh after the first settles.
Duplicate redemption can invalidate a rotating refresh token or its token family. A single successful wave cannot establish that the gate releases correctly rather than retaining a settled result or blocking later calls.
Inspired by Executor's cross-session refresh tests: UsefulSoftwareCo/executor#1537.
Behavioral requirements
Exercise one OAuth connector and credential partition in one runtime through two successive waves of eight independent request scopes. Each wave must force overlapping refresh demand rather than rely on incidental scheduler timing. The second wave must require another refresh using credentials saved by the first.
Preserve Connecta's existing request lifetimes and cancellation semantics. This issue requests regression coverage, not detached refresh work, cross-isolate coordination, or an OAuth architecture change.
Acceptance criteria
Motivation
Connecta already coordinates rotating-token refreshes across request scopes and tests two-request contention, cancellation, and credential-write races. Add regression coverage under greater contention and prove the coordinator handles another refresh after the first settles.
Duplicate redemption can invalidate a rotating refresh token or its token family. A single successful wave cannot establish that the gate releases correctly rather than retaining a settled result or blocking later calls.
Inspired by Executor's cross-session refresh tests: UsefulSoftwareCo/executor#1537.
Behavioral requirements
Exercise one OAuth connector and credential partition in one runtime through two successive waves of eight independent request scopes. Each wave must force overlapping refresh demand rather than rely on incidental scheduler timing. The second wave must require another refresh using credentials saved by the first.
Preserve Connecta's existing request lifetimes and cancellation semantics. This issue requests regression coverage, not detached refresh work, cross-isolate coordination, or an OAuth architecture change.
Acceptance criteria
npm run checkpasses.