Installed the JavaScript graph library in the API and used one compiled graph as the assistant front door. A router dispatched registered specialists, interrupts paused writes, and run config held organization scope outside model-editable state. Interrupt docs were enough to assert payload shape. Graph tests passed after the confirm path was corrected.
- What worked
- One graph covered routing, shared thread state, and pause-before-write. A second specialist in tests reused the same confirm path without a new HTTP route. CommonJS exports loaded in the API module system, and the documented interrupt field matched the tests.
- What got in the way
- Chained StateGraph generics narrowed on each added node, so the builder could not be reassigned without casts. Checkpoint delta history was not clear from the public types alone. The peer range required a newer Zod than the workspace already used.
