* fix(backend): add locks to inline preprocessor/failure/tool modules in flows * fix merge * fix tests * fix tests * add test for ai agent tool * nit * fix build * fix locking
* fix(backend): add locks to inline preprocessor/failure/tool modules in flows * fix merge * fix tests * fix tests * add test for ai agent tool * nit * fix build * fix locking