Asking the agent to refactor to reduce spectral complexity, it worked. Trivial change, but this did reduce code complexity.
Make the worker thread api clearly seperated and ready for test harness