Until he was dismissed amid great controversy, Hastings was considered one of the greatest intelligence agents of all time.
Conclusion (Thus / forced to conclude)
Hastings must have been disloyal.
Evidence
If Hastings's dismissal was justified, then he was either incompetent or disloyal. After his dismissal, it was shown he was not incompetent.
Evaluate
This is a pretty straightforward conditional logic style argument.
Its desired flow is like this - If X, then Y or Z. - This thing is X, but it isn't Z. - Thus, it must be Y
That would be airtight logic, but this argument never provided the "this thing is X" claim. It never triggered the conditional rule it's trying to use.
We call this an Untriggered Conditional. The argument hinges on whether or not the dismissal was actually justified.
Goal
The author is assuming the dismissal was justified, since she's trying to use that rule. If the dismissal weren't justified, she wouldn't have an argument.