mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-08-23 21:12:22 +02:00
The module was written when the workflow store lived only on eric/workflow, so every store touch went through p_store()/p_model() try/except-returning-None. Both resolve on this branch (the round-trip test already asserts as much), so those guards had become dead code that would swallow a genuine ImportError in storage.py and surface it to the user as "this build doesn't support workflows yet; please update OpenSwarm". Imports storage/Workflow at module level, drops the None branches, and rewrites the stale docstring. The safety contract is unchanged and still covered by test_workflow_sanitize_disables_schedule_and_strips_pii: an imported workflow never auto-runs, and the sharer's phone number never rides along.