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: Design · Explain the trade-offs. 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.

Design · Explain the trade-offs

Design integration and release boundaries

Objectives of this level: Choose graph/loop responsibilities with atomic external-write gates.

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.

Design a hybrid with explicit ownership

Let the outer workflow own admission, approval, deadlines and reconciliation. Let a sub-loop own only bounded read/exploration proposals. Pass a capability manifest, not the parent's unrestricted credentials. When exploration cannot establish enough evidence, return unknown or manual review rather than widening permissions.

Persist the versioned transition policy alongside unfinished executions. A release that changes node order or the meaning of execute must drain old work, route it to an old worker, or explicitly migrate and verify it. Replaying old decisions under a newly interpreted phase is not merely a JSON migration.

Compare a plain loop, an explicit graph and an existing workflow engine against recovery/approval needs using the same injected failure windows. Measure completion, tool attempts and active versus approval-wait latency separately. Do not select a framework from diagram complexity. This course's pure function chooses candidates; proving actual durable execution requires the integration route and external receipt tests.

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

Design integration and release boundaries

Design a hybrid with explicit ownership

Let the outer workflow own admission, approval, deadlines and reconciliation. Let a sub-loop own only bounded read/exploration proposals. Pass a capability manifest, not the parent's unrestricted credentials. When exploration cannot establish enough evidence, return unknown or manual review rather than widening permissions.

Persist the versioned transition policy alongside unfinished executions. A release that changes node order or the meaning of execute must drain old work, route it to an old worker, or explicitly migrate and verify it. Replaying old decisions under a newly interpreted phase is not merely a JSON migration.

Compare a plain loop, an explicit graph and an existing workflow engine against recovery/approval needs using the same injected failure windows. Measure completion, tool attempts and active versus approval-wait latency separately. Do not select a framework from diagram complexity. This course's pure function chooses candidates; proving actual durable execution requires the integration route and external receipt tests.

Acceptance task for this level

Change the stated condition, predict the branch before running, and write a300-word ADR distinguishing implemented local behavior, missing integration proof and the owner of each production invariant.

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

Is loop model_stop task success?

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.