homestar
homestar copied to clipboard
Add max recursion depth for provider workflow info requests
Summary
Problem
Workflow info requests may be made recursively in search of a provider. Recursion is not currently limited.
Impact
Without limits on recursion, we may end up infinite recursion and potentially cycles as providers lose memory of who has already been asked.
Solution
Pass a counter when making recursive requests to set a max recursion depth.
Another approach to limiting recursion by tracking which supposed providers have been visited. We could derive the count from the list, and it gives us more information to not make repeated requests to supposed providers.