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

SYSTEMATIC LEARNING / FOUR-LEVEL COURSE

Match orchestration abstractions to business responsibilities

Use state complexity, recovery requirements, tool contracts, and team constraints to make trade-offs, rather than choosing based on framework popularity.

Learning objectives: The framework should cover the control and recovery complexity that the task truly requires, rather than assuming non-existent guarantees for the business. Selection compares fault behavior, debugging costs, and state transition boundaries for the same task.

Content checked: 2026-10-03 · 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.

Match orchestration abstractions to business responsibilities
The framework should cover the control and recovery complexity that the task truly requires, rather than assuming non-existent guarantees for the business. Selection compares fault behavior, debugging costs, and state transition boundaries for the same task.

How does the mechanism work?

Step-by-step explanation
  1. With an existing Java task platform, when is it worth introducing a Python graph orchestration service?

    Framework selection must consider the existing Java platform and team costs as well as abstractions.

  2. When the business process is fixed, why might there be no need for multiple agents?

    Establish the need for workflows and multiple agents separately.

  3. The framework upgrade changes the status format. How to migrate tasks that are waiting for approval?

    After persisting framework state, address upgrades and compatibility with old tasks.

Foundation · Understand the concepts

Understand the principle · Match orchestration abstractions to business responsibilities

Objectives of this level: Read recovery requirements separately from declared candidate capabilities.

Visual guide · Filter fit before comparing cost

Filter fit before comparing cost

Capabilities and operating costs here are declared fixtures, not product benchmarks. No fit returns none; a framework name grants no business guarantee. Select the figure to open it at full size.

Same after-sales project

The after-sales Agent reads an order and policy, pauses for approval and resumes a return-application request. Compare an existing Java loop, a Java workflow and a Python graph using declared capability fixtures, not product reputation. A model SDK handles model I/O; orchestration owns control flow; business services still own authority and effects. Anthropic’s workflow/agent distinction motivates comparing task constraints; its tooling examples are version-sensitive.

The existing capstone main-return creates a return application; it does not execute a refund. These manifests are independent fictional extensions or policy/evidence/counting exercises. They do not add real refunds, publication, model calls or Java execution to the capstone runtime.

Read complete fixtures

approval-wait

{
  "required": [
    "durable",
    "human_wait"
  ],
  "language": "java",
  "candidates": [
    {
      "id": "existing-loop",
      "capabilities": [],
      "ops_cost": 0,
      "language": "java"
    },
    {
      "id": "java-workflow",
      "capabilities": [
        "durable",
        "human_wait"
      ],
      "ops_cost": 3,
      "language": "java"
    },
    {
      "id": "python-graph",
      "capabilities": [
        "durable",
        "human_wait",
        "branches"
      ],
      "ops_cost": 1,
      "language": "python"
    }
  ]
}

Expected

{
  "expected": {
    "choice": "java-workflow",
    "rejected": [
      {
        "id": "existing-loop",
        "missing": [
          "durable",
          "human_wait"
        ]
      },
      {
        "id": "python-graph",
        "missing": [
          "language:java"
        ]
      }
    ]
  },
  "error": null
}

simple-read

{
  "required": [],
  "language": "java",
  "candidates": [
    {
      "id": "existing-loop",
      "capabilities": [],
      "ops_cost": 0,
      "language": "java"
    },
    {
      "id": "java-workflow",
      "capabilities": [
        "durable",
        "human_wait"
      ],
      "ops_cost": 3,
      "language": "java"
    },
    {
      "id": "python-graph",
      "capabilities": [
        "durable",
        "human_wait",
        "branches"
      ],
      "ops_cost": 1,
      "language": "python"
    }
  ]
}

Expected

{
  "expected": {
    "choice": "existing-loop",
    "rejected": [
      {
        "id": "python-graph",
        "missing": [
          "language:java"
        ]
      }
    ]
  },
  "error": null
}

no-fit

{
  "required": [
    "migration"
  ],
  "language": "java",
  "candidates": [
    {
      "id": "existing-loop",
      "capabilities": [],
      "ops_cost": 0,
      "language": "java"
    },
    {
      "id": "java-workflow",
      "capabilities": [
        "durable",
        "human_wait"
      ],
      "ops_cost": 3,
      "language": "java"
    },
    {
      "id": "python-graph",
      "capabilities": [
        "durable",
        "human_wait",
        "branches"
      ],
      "ops_cost": 1,
      "language": "python"
    }
  ]
}

Expected

{
  "expected": {
    "choice": null,
    "rejected": [
      {
        "id": "existing-loop",
        "missing": [
          "migration"
        ]
      },
      {
        "id": "java-workflow",
        "missing": [
          "migration"
        ]
      },
      {
        "id": "python-graph",
        "missing": [
          "language:java",
          "migration"
        ]
      }
    ]
  },
  "error": null
}

Reason before coding

For approval-wait, only java-workflow satisfies both capability and language. Removing both required capabilities selects existing-loop. Requiring migration produces null; it does not authorize an arbitrary fallback.

Write your predicted decision, evidence used and evidence still absent for each sample before running anything. Match the complete protocol in the implementation track; the examples alone are not the entire contract.

Responsibility boundary

Four tracks are learning methods, not job levels. Junior candidates own bounded code and a counterexample; intermediate candidates own integration/recovery and changed-business evidence; senior candidates add architecture, isolation/migration/incident ownership and one specialty. Real API and JD-required production experience stay separate evidence gates. A fixed local pass is not a learner mastery or hiring certificate.

code example

Read the visible decision evidence

For approval-wait, only java-workflow satisfies both capability and language. Removing both required capabilities selects existing-loop. Requiring migration produces null; it does not authorize an arbitrary fallback.

Before running, name one fixture assumption you would need to replace with trusted service evidence.

Acceptance task for this level

Before execution, annotate the three visible fixtures with decision, gate order, known fact and missing evidence; then compare your predictions with the supplied expectations. Contract: choose_orchestration(payload).

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

Why does cheaper python-graph lose approval-wait?

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.