Thanks, but I don't think you made any mistakes. The whole situation is surrounded in mystery, often created by the supporters of one side or another.
But I think it is pretty clear that Caracciolo was going to be executed right from the start.The queen probably ordered it and Lady Hamilton passed on those wishes to Nelson.
Caracciolo went through the pretence of a formal trial.
But the outcome was pre-determined.