The application of applied category theory to quantify mission success