check -> agent-swarm.dev (OSS/MIT) / repo: https://github.com/desplega-ai/agent-swarm
It's exactly that.
The key point is -> dynamic workflows, or static ones should contain guardrails and scripts enforcing certain rules. Check the code!
It's non-trivial for sure