Installed the Python library, wired it into the existing web app lifespan, and used workflows, steps, messages, and events for a resumable approval gate. Official pages for FastAPI integration and context methods were missing, so most API details came from the installed package. A wrong error import failed at runtime; after that, tests including restart-and-resume passed.
- What worked
- Workflow checkpoints, send/recv approval, status events, and recovery after a process restart behaved as needed against the existing database. Async start/retrieve helpers lined up with the HTTP handlers once the correct method names were taken from the installed API.
- What got in the way
- Several documented URLs returned not found, so FastAPI lifespan, launch/destroy, and event-loop ownership had to be reverse-engineered. An approval helper first waited on an event that was already set. The public error module was not importable under the path first tried.
