Skip to content
Agent Field Notes
Course contentsExpand a topic to choose a lesson.

SYSTEMATIC LEARNING / FOUR-LEVEL COURSE

Combine deterministic workflows with bounded exploration

Choose a recoverable orchestration structure around defined processes, dynamic exploration, checkpoints, and manual approvals.

Learning objectives: Known business rules should determine which paths are allowed, and the model only explores unknown steps within the allowed range. Graphs improve process observability, and loops provide local adaptability; neither replaces the idempotency and version acceptance of external writes.

Content checked: 2026-10-30 · Each level has independent explanations, tasks and inspections

Choose a starting point based on your familiarity with this topic. Current level: Foundation · Understand the concepts. After completing the task, continue to the next level. Reading and self-checks alone do not establish mastery.

On this level

Review the prerequisites

Suitable for: Backend developers learning Agent applications.

Combine deterministic workflows with bounded exploration
Known business rules should determine which paths are allowed, and the model only explores unknown steps within the allowed range. Graphs improve process observability, and loops provide local adaptability; neither replaces the idempotency and version acceptance of external writes.

How does the mechanism work?

Step-by-step explanation
  1. Parallel nodes modify the evidence list at the same time. How should they be merged?

    Parallel graphs turn sequential reads and writes into a merge problem, requiring explicit semantics for shared fields.

  2. Recovery will rerun the node. What will happen if a notification is sent before approval?

    The recovery point determines which code is replayed. Persistence alone does not ensure that external actions execute only once.

  3. How to prevent the draft you see during approval from being different from the published content?

    Content may change between the review node and the publishing node.

Foundation · Understand the concepts

Derive ownership and invariants

Objectives of this level: Compare a repeated search under graph and loop without weakening business guards.

Visual guide · Where the next action is chosen

Where the next action is chosen

Both modes use the same authority and budget boundaries. This pure selector dispatches nothing; model_stop ends the loop without proving business completion. Select the figure to open it at full size.

Choose where exploration is allowed

A workflow makes allowed business transitions explicit; an agent loop chooses its next candidate from observations. The useful choice is often a workflow around a bounded loop: fixed identity, approval and commit boundaries, with flexible evidence discovery inside them. A graph alone does not authenticate a caller or undo an external write.

For an after-sales request, retrieve → draft → approve → execute → reconcile → done describes business progress. The model may search again when evidence is missing, but must not jump from a draft to done. A model choosing finish means reasoning stopped; only independent business checks establish completion.

Compare the same search candidate: graph mode advances retrieve to draft; loop mode retains its exploration phase. Both pause an unapproved write. These are local teaching policies, not universal LangGraph defaults. Use fixed flows when required transitions are known; allow local exploration when the evidence path is uncertain.

Continue the same implementation

Use the complete function contract and reproduction commands in the implementation layer. Public cases remain in cases/graph-vs-agent-loop.json inside the existing extended-agent-practice-v1.zip. These are local fixtures, not remote-model or production-load measurements.

code example

Derive ownership and invariants

Choose where exploration is allowed

A workflow makes allowed business transitions explicit; an agent loop chooses its next candidate from observations. The useful choice is often a workflow around a bounded loop: fixed identity, approval and commit boundaries, with flexible evidence discovery inside them. A graph alone does not authenticate a caller or undo an external write.

For an after-sales request, retrieve → draft → approve → execute → reconcile → done describes business progress. The model may search again when evidence is missing, but must not jump from a draft to done. A model choosing finish means reasoning stopped; only independent business checks establish completion.

Compare the same search candidate: graph mode advances retrieve to draft; loop mode retains its exploration phase. Both pause an unapproved write. These are local teaching policies, not universal LangGraph defaults. Use fixed flows when required transitions are known; allow local exploration when the evidence path is uncertain.

Acceptance task for this level

For the three inputs, write each output/error by hand and identify the source of trusted facts; explain which expected fields encode business rather than transport success.

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

Can a more flexible loop bypass an approval checkpoint?

Further explanations and practice

When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.

All linked explanations and exercises (1 )

Sources and verification scope

The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.