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

SYSTEMATIC LEARNING / FOUR-LEVEL COURSE

Failure windows and recovery invariants

Actual response loss/process exit,red-green acceptance repair and cross-ledger incident review.

Learning objectives: Reproduce unknown results,locate receipt/idempotency boundaries and write negative checks explaining recovery/effects.

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

Failure windows and recovery invariants
Recovery correctness is determined by the business facts before and after the failure. The test must cut off the window between "submission, receipt, and status advancement" to prove that replay will not break idempotency, permissions, and budget constraints.

How does the mechanism work?

Step-by-step explanation
  1. What is the difference between repeat requests and repeat effects?

    Recovery often relies on resending requests, so distinguish network attempts from actual business effects.

  2. Why is fixed model response still valuable for testing?

    Fault-injection experiments require repeatable control of variables, so explain the value and limits of test doubles.

  3. Does stopping at unknown when it cannot be verified count as a test failure?

    When the expected receipt is missing, specify exactly what the test requires.

Foundation · Understand the concepts

Understand the principle · Failure windows and recovery invariants

Objectives of this level: Draw four windows,predict no receipt/one effect,separate safety/completion.

Visual guide · Commit can precede knowledge

Commit can precede knowledge

The local fault commits one merchant application before losing its response. A missing caller receipt does not establish zero effects. Select the figure to open it at full size.

Two ledgers and four windows

agent.sqlite stores task/operation_key/receipt; merchant.sqlite owns returns/receipts. Actual local HTTP crosses services without a shared transaction. This creates fictional return applications. Completion requires a correctly bound merchant receipt, not model text or a local approved flag.

Draw before commit(zero possible), commit before response(one effect/no local receipt possible), response before checkpoint(one possible), completed replay(one retained). Timeout/500 cannot locate the window. This lesson newly executes commit, closed connection and worker exit 75; other windows need their own records.

Predict before reading facts

Extract the complete ZIP, read Agent execution and merchant contract. After the fault:outcome_unknown, receipt=null, merchant returns=1. Unknown describes knowledge, not absence of commit. A new key is blocked by this service’s task uniqueness; another provider may lack that fallback.

Safety and completion

Pausing unknown results may satisfy safety without meeting a deadline. Failed authorization, unavailable lookup or mismatched binding requires a pause/manual path, not invented success. Deterministic generation/local failures prove neither live model quality nor universal remote guarantees.

code example

Evidence and interview explanation

Draw four windows,predict no receipt/one effect,separate safety/completion.

Use the inputs,code,exits and ledgers above;submit your own diff,not copied green logs,and name unverified capabilities.

Acceptance task for this level

Draw four windows,predict no receipt/one effect,separate safety/completion.

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

Does unknown mean uncommitted?

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.