Skip to content
Agent Field Notes
On this pageExplore this knowledge map by topic.

SYSTEMATIC LEARNING

Agent application development: knowledge map

Starting from business tasks, the system learns the interface calling, tool integration, retrieval, memory, reliable execution, evaluation and launch of large model applications. Go in-depth step by step along implementation, faults, and engineering trade-offs, and then use interview questions and experiments to check your understanding. Choose junior/intermediate/senior in https://ai.lwkjob.com/lab/capstone/CAREER_PATHS.md before starting. All use this same seven-stage project. Junior adds personal bounded code/diagnosis; intermediate independently delivers a changed requirement and regression/recovery; senior adds tenant capacity, version fencing, ADRs, migration/incident and team responsibility. Lesson levels are learning activities, not job ranks.

8 core directions · 50 knowledge unitsStart with the learning path →Start the first lesson →

Continue learning

Reading this browser’s record…

Your learning position and task self-checks are saved only in this browser and do not sync to other devices.

Signed-out records are separate from each account. Other signed-out visitors using this browser can see them.

Reading this browser’s record…

Evidence contract self-test progress

Open self-test →

Take each concept deeper into engineering practice

Developers who are new to Agent should first learn the basics, and continue to study faults and trade-offs after gaining implementation experience. Choose a starting point based on your familiarity with this knowledge point.

Understand the concepts

Start with prerequisite concepts, causal explanations and counterexamples, and be able to explain them clearly in your own words.

Start with model call →

Diagnose failures

Use follow-up questions and transfer scenarios to analyze crashes, retries, and changing conditions.

Learn to perform reliably →

Explain trade-offs

Compare options within business constraints and explain costs, risks, and applicability boundaries.

Enter system design →

There are 50 layered topics, each with independent explanations and tasks at every level.

Core area 01

Model calls and context

Based on application needs, understand interface returns, context capacity and model capability boundaries. Pre-training and fine-tuning only talk about how they affect model selection, knowledge updating and evidence use; the tasks in this direction revolve around request assembly, response processing and application solution selection.

Questions that run through this direction:Where does the model obtain information, what stage is the output at, and what judgments can the program make based on this?

After learning, what should you be able to explain?
  • Calculate input, output and context margins and explain truncation reasons
  • Select retrieval, tools or fine-tuning solutions based on knowledge update, evidence and behavioral needs
  • Identify different processing paths for text, tool requests, rejections, and incomplete responses
  • Explain the relationship between valid structure, correct facts and business completion

Core area 02

Task contracts and execution orchestration

Autonomous planning must fall within controllable task boundaries. Task contracts, status, budgets, and transitions determine how the system moves forward, when it ends, and how multiple branches work together.

Questions that run through this direction:How to organize the model's next-step recommendations into a constrained and acceptable execution process?

It is recommended to understand first:Model calls and context

After learning, what should you be able to explain?
  • Define execution boundaries with task inputs, constraints and acceptance
  • Compare when state graphs, autonomous loops, and multiple agents are appropriate
  • Explain invariants in concurrent merging, replanning, and context compression
  1. Control and completion criteria in agent loopsStarting from the tool invocation loop, design termination conditions, budgets, cancellations, and verifiable completion statuses.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  2. Combine deterministic workflows with bounded explorationChoose a recoverable orchestration structure around defined processes, dynamic exploration, checkpoints, and manual approvals.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  3. Algebra and business semantics of parallel state mergingMove from field-owned batch merging to durable replay identity, atomic local commits and explicit remote boundaries.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. Task contracts and independent acceptance checksMake the execution environment, permissions, status, evidence and completion judgment of the model into a project contract.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Transfer responsibility and permissions during task handoffExamining Handoff, Identity Propagation, Minimal Context, and Responsibility Boundaries.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  6. Modern harnesses: replaceable controllers, external sessions and controlled executionDerive session, context, sandbox, tool gateway and business-ledger boundaries from one return task, then govern dynamic tools, skills/hooks and model+harness upgrades.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  7. Benefits and coordination costs of multiple agentsWhen is another Agent worth adding? Compare sequential reads, parallel tools and isolated deterministic evidence workers under the same evidence contract, diagnose a lost branch result, and explain what would justify a separate model decision loop.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  8. Separate plan revisions from external factsExamine dynamic plans, completed side effects, dependencies, and acceptance invariants.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

Core area 03

Tool contracts and external actions

Tools allow models to influence real systems. Parameters, identities, protocols, versions, and business idempotency jointly determine whether a tool request can be safely understood, executed, and verified.

Questions that run through this direction:How does a seemingly legitimate tool request become a verifiable business action?

It is recommended to understand first:Task contracts and execution orchestration

After learning, what should you be able to explain?
  • Distinguish between structure verification, business verification and authorization
  • Explain why timeouts, disconnections and retries require result verification
  • Design tool collections, compatible versions, and delivery methods for big results
  1. Tool contracts: from a valid request to an authorized business effectBuild a refund boundary, inject valid-but-unauthorized and stale requests, then change the contract and the authority boundary.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 3 linked exercises · Start answering →
  2. MCP reconnection across protocol versions and business outcomesCompare MCP 2025-11-25 and 2026-07-28; preserve the legacy fixture while designing stateless requests, task handles and safe write reconciliation.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  3. Delivery conditions and shared deadlines for parallel resultsExamine asynchronous concurrency, deadlines, cancellation propagation, and partial results.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. Separate discovery from execution in large tool catalogsExamine tool catalog, dynamic discovery, recall quality, and server-side authorization.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Computation, references, and consistent snapshots for large resultsExamine output contracts, paging, artifact references, and deterministic calculations.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

Core area 04

Retrieval, evidence, and long-term memory

Answer quality depends directly on whether the model receives relevant, trustworthy information it is currently authorized to use. Retrieval and memory share source, scope, version, and revocation boundaries, while having different read, write, and evaluation mechanisms.

Questions that run through this direction:How do you put correct and acceptable information into context and know when you can't answer?

It is recommended to understand first:Model calls and context, Tool contracts and external actions

After learning, what should you be able to explain?
  • Positioning errors along recall, sorting, assembly and generation
  • Handle chunking, query rewriting, reference and evidence conflicts
  • Managing memory writing, retrieval, scoping, and undoing

RAG 与检索工程

  1. RAG evidence: applicability, complete context and supported claimsTrace a return-policy rule and its battery exception through filtering, ranking and context assembly, then reject a cited but contradicted claim.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 4 linked exercises · Start answering →
  2. From document ingestion to cited RAG answersRun Markdown parsing, replay recorded embedding vectors, apply SQL permission filters, and inspect BM25, vector retrieval, RRF, and answer acceptance checks.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 5 linked exercises · Start answering →
  3. Consistent authorization across RAG and derived dataEnforce authorization throughout retrieval, reranking, context assembly, caching, and source access.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. Entity disambiguation and constraint preservation in query rewritingExamining multiple rounds of reference, entity linking, clarification, and original constraint preservation.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Definitions, granularity, and execution boundaries in natural-language queriesExamine the semantic layer, controlled SQL, read-only execution, and result review.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

记忆管理

  1. Memory scopes and trusted authorization contextDesign memory scope, authenticity, permissions and recall order as data contracts, and vector similarity is only responsible for sorting.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  2. Revoke memories, clean up derivatives, and prevent stale data from returningPractice restoring an old checkpoint, dropping an invalid summary, and rejecting renamed writes that still depend on a revoked source. Distinguish blocking reuse from physical cleanup.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  3. Memory writes: source authority, valid time, stale jobs and revocationAdmit scoped reusable facts, order corrections by source events and revisions, then prove old asynchronous jobs cannot revive a revoked preference.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. Objects, sources, and bitemporal reasoning in memory conflictsExamine fact versions, validity times, source priority, and conflict presentation.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Hard filters, value ranking, and causal evaluation in memory retrievalExamining memory retrieval stratification, relevance, authority, temporality, and counterfactual assessment.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

Core area 05

Reliable execution and task recovery

Long tasks will encounter process interruptions, duplicate messages, approval waits, and status upgrades. Only by understanding the fault window and status boundaries can the recovery process be checked with external business effects.

Questions that run through this direction:How to continue without losing business facts after a task is interrupted, replayed or taken over?

It is recommended to understand first:Task contracts and execution orchestration, Tool contracts and external actions

After learning, what should you be able to explain?
  • Distinguish between checkpoint, idempotent, lease and business completion status
  • Handle unknown results, duplicate approvals, and compensation failures
  • Design state migration, message delivery and multi-tenant queuing strategies
  1. Idempotency, unknown outcomes, and task recoveryLearn how stable operation IDs, server-side deduplication, and outcome queries help avoid repeated side effects after tool timeouts. Use two independent databases to examine their guarantees and limits.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 5 linked exercises · Start answering →
  2. Committed effects and conditional compensation in sagasExamine cross-service transactions, compensation conditions, irreversible actions, and human intervention.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  3. Atomic intent and duplicate delivery with the outbox patternExamine double-write issues, transaction outboxes, duplicate deliveries, and recovery scans.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. Fair scheduling, resource quotas, and backpressure across tenantsExamine multi-tenant queuing, fair scheduling, backpressure and multi-dimensional quotas.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Structural and business compatibility during workflow upgradesCheck workflow version, persistence state schema and playback compatibility.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

Core area 06

Evaluation, acceptance, and iteration

A successful demonstration is not enough to prove that the system is reliable. Results, processes, test sets, repeatability, and human judgment need to be designed separately to detect improvements and degradations caused by changes.

Questions that run through this direction:How to use interpretable evidence to determine whether the Agent is doing the right thing, is doing it steadily, and is worthy of being launched online?

It is recommended to understand first:Task contracts and execution orchestration, Tool contracts and external actions

After learning, what should you be able to explain?
  • Establish acceptance conditions for results and processes
  • Identify data leakage, grader bias, and inconsistent measurement definitions
  • Compare different versions using fault testing and regression

Core area 07

Security boundaries and production operations

After launch, maintain permissions, quality, cost, and runtime state together. Security controls and observability belong at execution boundaries; caches, fallback models, and streaming connections must preserve the same business contract.

Questions that run through this direction:How to keep the system controllable in the presence of real users, failures, and untrusted input?

It is recommended to understand first:Tool contracts and external actions, Reliable execution and task recovery, Evaluation, acceptance, and iteration

After learning, what should you be able to explain?
  • Implement approval, sandboxing and minimum permissions into action execution
  • Locating performance, cost and quality issues along operational evidence
  • Maintain consistency in caching, downgrading, outage recovery, and incident handling
  1. Approval binding: unchanged intent, current authority and one operationReview a frozen refund intent, then test changed arguments, permission revocation, expiry, resource changes and duplicate workers.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  2. Reconnecting clients and durable task stateExamine task and connection decoupling, event sequence number, reconnection and clear final state.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  3. Isolate resources and capabilities when executing codeExamine files, networks, processes, credentials, and resource limits.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. Semantic and authorization equivalence for cache reuseExamine different caching tiers, permission versions, latency and real savings.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Task causality and resource attributionString business tasks, model requests and tool calls into queryable links, and use quality regression to supplement operating indicators.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  6. Incident containment, evidence, and causal diagnosisTwo offline incident cases have the same 403 rate. Follow the events for a failed task in each case to find the first stage where it went wrong, then use the evidence to plan containment and reconcile in-flight work.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  7. Harness integration: official SDK, recovery and OTLPRun real SDK transport and trace export against local fixtures while keeping business receipts and process limits explicit.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  8. External data and execution-permission boundariesExamine indirect prompt injection, data and command separation, tool permissions, and outbound control.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  9. Capability and status contracts for fallback modelsExamine multi-model adaptation, capability matrices, failure classification, and degradation.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

Core area 08

System design and engineering trade-offs

Comprehensive scenarios put the previous mechanisms under common constraints. Understanding the business goals, acceptable risks and acceptance methods enables you to select the appropriate architecture and explain under what conditions it needs to be adjusted.

Questions that run through this direction:How do you combine these mechanisms into deliverable systems based on mission, risk, and team conditions?

It is recommended to understand first:Retrieval, evidence, and long-term memory, Reliable execution and task recovery, Evaluation, acceptance, and iteration, Security boundaries and production operations

After learning, what should you be able to explain?
  • Derive architecture from enterprise tasks rather than stacking components
  • Explain the trade-offs between framework selection, customer service actions, R&D tasks, and research release
  • Explain the project experience with the design and evidence that I am responsible for
  1. Match orchestration abstractions to business responsibilitiesUse state complexity, recovery requirements, tool contracts, and team constraints to make trade-offs, rather than choosing based on framework popularity.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  2. Bind code changes to acceptance evidenceExamine code base understanding, isolation execution, acceptance, regression and manual review.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  3. Separate natural-language requests from transaction stateExamine intent understanding, business rules, authorization and traceable execution.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  4. A controlled task chain from evidence to publicationConnect identity, knowledge permissions, structured tools, persistence tasks, and audit releases into a recoverable system.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  5. Evidence and conditional reasoning about project capabilitiesChoose junior, intermediate or senior Agent responsibilities and demonstrate personal code, task delivery and architecture evidence.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  6. Bind claims to sources and verification scopeExamine research plans, source verification, evidence ledgers, experimentation and publication thresholds.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →
  7. Tenant isolation and continuous authorization during executionBuild evidence from strict scoped application work to independent recovery/audit, then platform capacity and failure-window decisions.

    Four-level course · Separate lessons and tasks for foundation, implementation, debugging, and design

    Practice · 1 linked exercises · Start answering →

How can I understand it and draw inferences?

  1. First use core principles to establish causal relationships, and then read about implementation and trade-offs.
  2. Follow the continuous question and answer process to see how the plan changes after the constraints change.
  3. Compare transfer cases to identify shared invariants and different assumptions.
  4. When you need to check your understanding, do short answers or small experiments and record your explanations.