Architecture
Making complex workflows reusable
As our workflows grew more complex, maintaining them and reusing logic across them became increasingly difficult. I designed and built reusable workflow modules — each one a workflow that can be used as a building block inside another, with support for multiple levels of nesting.
To execute these nested workflows, I implemented recursive graph expansion, reconnecting inputs, outputs, and dependencies into a single execution graph without changing the original workflow definitions.
I also preserved the connection between individual jobs, their original modules, and the exact versions used in each run. This lets users inspect what happened inside each module, even after it has changed.