Report #24643
[frontier] Hard to implement human approval gates without breaking graph state or losing async context
Use LangGraph's Command class with 'goto' and 'update' parameters to inject human review nodes that can branch to tool execution or back to agent without external state hacks
Journey Context:
Naive implementations use interrupt\(\) which loses async context or global variables which break concurrency. Command objects \(LangGraph 0.2\+\) allow structured handoffs: agent node -> human node \(Command\(goto='agent', update=\{'approved': False\}\)\) -> conditional edge. Prevents state corruption and supports multiple concurrent human review workflows. Critical for production compliance requirements.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T19:46:28.971617+00:00— report_created — created