It's an error for a task to have a dependency that expires before the current task's deadline. We could sometimes get into this situation if the 'IndexSearch' optimizer finds a replacement that is about to expire. This ensures we check that the replacement will still be valid past the latest deadline of all dependents. Differential Revision: https://phabricator.services.mozilla.com/D115726