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

SYSTEMATIC LEARNING / FOUR-LEVEL COURSE

A controlled task chain from evidence to publication

Connect identity, knowledge permissions, structured tools, persistence tasks, and audit releases into a recoverable system.

Learning objectives: Enterprise tasks should be recorded separately for reading evidence, generating drafts and publishing results, and then connecting them with versions and authorizations. Durable orchestration restores control flow but does not automatically guarantee consistent evidence or that external writes occur only once.

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.

A controlled task chain from evidence to publication
Enterprise tasks should be recorded separately for reading evidence, generating drafts and publishing results, and then connecting them with versions and authorizations. Durable orchestration restores control flow but does not automatically guarantee consistent evidence or that external writes occur only once.

How does the mechanism work?

Step-by-step explanation
  1. Reports involve multiple documents that are constantly updated. How to define a consistent snapshot of evidence?

    Reports draw on multiple changing sources, so explain the scope of evidence consistency.

  2. The worker crashes after a successful release. How to avoid repeated releases during recovery?

    Durable-task recovery must handle the window where an external action succeeds but is not recorded locally.

  3. When the user cancels the task, how to handle the external requests that have been sent?

    The task chain must define how cancellation relates to an irreversible commit.

Foundation · Understand the concepts

Understand the principle · A controlled task chain from evidence to publication

Objectives of this level: Separate durable control flow from current authorization and receipt facts.

Visual guide · Publish from current facts

Publish from current facts

This planner only recommends a next step. Check current authority first; stale approval cannot turn committed or unknown receipts into a fresh send. Select the figure to open it at full size.

Same after-sales project

The after-sales Agent publishes a reviewed refund-policy notice. A stored checkpoint is control-flow data; current publishing authority, current document version, approval binding and the external receipt are separate facts. This local planner recommends a next step; it does not commit a database transaction, publish remotely or prove enterprise readiness.

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

publish

{
  "current": {
    "tenant": "t1",
    "version": "v2",
    "can_publish": true
  },
  "document": {
    "tenant": "t1",
    "version": "v2"
  },
  "approval": {
    "tenant": "t1",
    "version": "v2",
    "expires_at": 101
  },
  "receipt": {
    "status": "none",
    "operation_key": "publish-42-v2"
  },
  "operation_key": "publish-42-v2",
  "now": 100
}

Expected

{
  "expected": {
    "next": "publish",
    "reason": "guards_satisfied",
    "operation_key": "publish-42-v2"
  },
  "error": null
}

unknown-receipt

{
  "current": {
    "tenant": "t1",
    "version": "v2",
    "can_publish": true
  },
  "document": {
    "tenant": "t1",
    "version": "v2"
  },
  "approval": {
    "tenant": "t1",
    "version": "v2",
    "expires_at": 101
  },
  "receipt": {
    "status": "unknown",
    "operation_key": "publish-42-v2"
  },
  "operation_key": "publish-42-v2",
  "now": 100
}

Expected

{
  "expected": {
    "next": "reconcile",
    "reason": "unknown_receipt",
    "operation_key": "publish-42-v2"
  },
  "error": null
}

approval-expiry-boundary

{
  "current": {
    "tenant": "t1",
    "version": "v2",
    "can_publish": true
  },
  "document": {
    "tenant": "t1",
    "version": "v2"
  },
  "approval": {
    "tenant": "t1",
    "version": "v2",
    "expires_at": 100
  },
  "receipt": {
    "status": "none",
    "operation_key": "publish-42-v2"
  },
  "operation_key": "publish-42-v2",
  "now": 100
}

Expected

{
  "expected": {
    "next": "approval",
    "reason": "approval_not_current",
    "operation_key": "publish-42-v2"
  },
  "error": null
}

Reason before coding

A current guard set permits publish. unknown-receipt requires reconciliation using the unchanged operation key. At expires_at == now, a fresh send needs approval. A done result reports an existing confirmed fixture effect; it never means this function published it.

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

A current guard set permits publish. unknown-receipt requires reconciliation using the unchanged operation key. At expires_at == now, a fresh send needs approval. A done result reports an existing confirmed fixture effect; it never means this function published it.

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: plan_publication(payload).

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

Why is approval alone insufficient to publish?

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.