produce() switched QContext to a plain new QSession() around addProcesses,
which reads worm_audit_settings for the startup schedules. Token-based
default authentication (OAuth2, Auth0) rejects any tokenless session that
is not a QSystemUserSession, so on kof22 the read failed with
JWTDecodeException: The token is null and the host could not start.
Run the startup read as core QSystemUserSession(qInstance), the same
pattern as qbit-object-storage#18. The persisted schedule settings still
take effect at restart, as documented.
TokenRequiredHostTest builds the host with a test authentication module
that rejects tokenless sessions; it fails without this fix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>