Evaluation token validation and extension

The evaluation workflow validates and extends refresh tokens before an evaluation run starts:
  • On-demand evaluations: The refresh token must remain valid for at least two hours. The system regenerates the token when the validity period falls below the threshold.
  • Scheduled evaluations: The refresh token must remain valid for at least 20 days. The system regenerates the token when the validity period falls below the threshold.
  • Bulk evaluations: The system validates one refresh token for the entire batch to prevent token conflicts across evaluations.
  • Stale or invalid tokens: The system stops the evaluation run gracefully and records an error.
Note: Embedded Experience Evaluations do not depend on the refresh token.