Graph design
One review per ticket, all at once.
The batch is split so every ticket is reviewed in parallel, then gathered back into one ranked list.
- Batch inFrom the PM agent
- Fan outOne branch per ticket
- CriticsRun side by side
- JudgePass, return, escalate
- PauseApprover decides
The fan-out uses LangGraph's Send, which starts one copy of the review branch per ticket (a map-reduce pattern). The results join back at the judge.
Returned tickets loop back to the PM agent through a conditional edge, with a round counter so the argument can't go on forever. Escalated tickets hit an interrupt: the graph saves its state and waits, for hours if needed, until the approver taps a decision.
- Parallelism
- Send, one branch per ticket
- Loop limit
- Two pushback rounds
- Human step
- interrupt, resumed by the approver
- State
- Saved per batch by a checkpointer