# Fixed graph vs LLM supervisor: lessons from building a 7-step paper writer in LangGraph

**URL:** <https://forum.langchain.com/t/fixed-graph-vs-llm-supervisor-lessons-from-building-a-7-step-paper-writer-in-langgraph/4582>\
**Category:** Talking Shop\
**Created:** [September 20, 2026, 12:24pm UTC](https://forum.langchain.com/t/fixed-graph-vs-llm-supervisor-lessons-from-building-a-7-step-paper-writer-in-langgraph/4582 "2026-09-20T12:24:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![prekshabarjatya](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.langchain.com/prekshabarjatya/32/3590_2.png) [@prekshabarjatya](https://forum.langchain.com/u/prekshabarjatya)\
**Post date:** [September 20, 2026, 12:24pm UTC](https://forum.langchain.com/t/fixed-graph-vs-llm-supervisor-lessons-from-building-a-7-step-paper-writer-in-langgraph/4582/1 "2026-09-20T12:24:54Z")

</div>

I built a LangGraph workflow that turns an assignment brief into a cited research paper, then ran it live against Groq, OpenAlex and Crossref. The biggest lesson was to keep routing in plain code and not let an LLM choose the next step.

The graph has seven roles: brief analyst, topic strategist, source scout, thesis writer, outliner, drafter and critic. The order is fixed. The only dynamic decisions are two human approvals (topic and thesis) and the critic choosing between “rewrite” and “find more sources”.

Why I went this way:

- It is cheaper, easy to test, and fits free-tier rate limits.
- Citations are checked in code. A source is kept only if its DOI resolves in Crossref and the title and year match. The writer can only cite verified ids, and code builds the reference list, so the model cannot invent an entry.
- Progress is checkpointed in Postgres after every node, so a run resumes after a crash or deploy.

Live runs found problems my tests did not:

- One prompt was 8,779 tokens against an 8,000 limit. I capped sources at 15, trimmed abstracts, and showed the critic only the body plus the sources it cites.
- 42 verified sources included an edge-computing paper for a last-mile delivery query. I now rank by relevance first, then verify in rank order.
- The critic flagged a “12% fuel reduction” that no source supported.

What I have not measured: paper quality, and whether each sentence is faithful to its source. That is judged only by an LLM reviewer, which is not proof. Every live run that finished was flagged for human review, mostly for word count.

My question: for people running LangGraph in production, do you checkpoint into your own Postgres tables like this, or keep run state elsewhere and use checkpoints only for the graph?

Code: [GitHub - Prekshabarjatya/research-desk: LangGraph workflow that turns an assignment into a cited research paper. Citations verified against Crossref in code, human approval gates, resumable runs on Postgres, FastAPI + web UI. · GitHub](https://github.com/Prekshabarjatya/research-desk)  
Write-up: [research-desk/docs/CASE\_STUDY.md at main · Prekshabarjatya/research-desk · GitHub](https://github.com/Prekshabarjatya/research-desk/blob/main/docs/CASE_STUDY.md)

---

<div class="post-metadata">

**Author:** ![beesbot](https://avatars.discourse-cdn.com/v4/letter/b/e9c0ed/32.png) [@beesbot](https://forum.langchain.com/u/beesbot)\
**Post date:** [October 27, 2026, 3:16pm UTC](https://forum.langchain.com/t/fixed-graph-vs-llm-supervisor-lessons-from-building-a-7-step-paper-writer-in-langgraph/4582/2 "2026-10-27T15:16:47Z")

</div>

The citation check in code is the part worth copying. We run a similar shape in Bees, an open source desktop app: fixed stages, and a separate reviewer agent at the end that can send work back.

On your question, we keep the two apart:

- Graph checkpoints are for resuming a run. They follow the graph’s shape, so they get awkward once you add or rename a node while threads are still in flight.
- Anything you’ll want to query later (what each step produced, which approvals were given, why the critic sent it back) is worth keeping in your own tables, keyed by run id. That’s what you’ll reach for when someone asks “show me every run the critic flagged for word count”.

Two small things from our runs:

- Keep the critic’s reason, not just its verdict. Ours once sent work back because a step was skipped with “not reached in this run”. The reason was the useful part, and it’s easy to lose if it only lives in message history.
- If most human-review flags are word count, that’s a check you can run in code before the critic sees the draft, the same way you did citations.
