AI Agent Architecture: From Tool Orchestration to Experience Accumulation

    The evolution of AI agents is shifting from merely orchestrating tools to building reliable, experience-driven systems. This article explores the architectural divergence between configuration-driven and experience-driven agents, detailing the execution loops, skill extraction, memory governance, and phased implementation strategies necessary to build trustworthy, autonomous enterprise agents.

    1. The Real Divergence is How Systems Handle Experience, Not Feature Count

    When discussing AI agents, people often focus first on feature lists: whether they can operate files, access business systems, execute scheduled tasks, connect to messaging channels, or switch between different models. These capabilities determine the environments an agent can reach, but they do not directly explain whether it can complete tasks consistently and reliably.

    Two systems with similar tool sets can offer completely different user experiences. One system might require users to re-explain processes, supplement environment information, and manually adjust configurations after each failure. Another system can retrieve previously verified handling methods, reuse them when current conditions apply, and ask for confirmation when encountering uncertainties.

    The difference is not about which system is “more human-like,” but whether the system has established a complete experience management mechanism.

    Therefore, the core issue of agent technology is extending from “how to make models call tools” to “how to make task execution produce reusable, auditable, and reversible experience.” The former solves action capability, while the latter solves reliability and maintenance costs during continuous use.

    It must be emphasized that open-source popularity, community discussion heat, and installation convenience cannot directly prove task success rate, security, or enterprise applicability. Technology selection should return to real workloads, rather than treating communication hype as engineering metrics.

    2. Configuration-Driven vs. Experience-Driven: Solving Different Problems

    1. Configuration-Driven: Explicitly Writing Out Behavior Boundaries

    Configuration-driven agents operate based on pre-defined roles, tool permissions, execution flows, and rules. Developers must decide which tools can be called, which steps must be executed, which exceptions require abortion, and how results are delivered.

    The main advantage of this approach is controllability. For tasks with relatively standard inputs, fixed processes, and clear responsibility boundaries, explicit workflows are often easier to test and audit.

    For example, when periodically aggregating business data, you can fix data sources, statistical criteria, output formats, and approval steps. The model is responsible for understanding natural language requirements or generating explanations, while data querying, permission validation, and result submission are executed by deterministic logic.

    Its limitations are also obvious: environmental changes bring maintenance costs. Field adjustments, permission changes, dependency upgrades, or increased exception types may all require manual process modifications. The more tools there are, the more complex the combinatorial relationships between components, and troubleshooting easily shifts from a single-point issue to a systemic issue.

    However, this does not mean configuration-driven is inherently backward. For high-risk operations, clear rules are usually more important than flexible exploration.

    2. Experience-Driven: Letting Historical Results Participate in Subsequent Decisions

    Experience-driven agents not only execute current tasks but also save valuable context, failure reasons, and successful paths, retrieving and using this information in subsequent tasks.

    For example, if a system previously found that a certain type of file needs its encoding unified before parsing, it can check the encoding first the next time it processes a similar file, rather than directly repeating the failed operation.

    The “growth” here is usually not the automatic update of model parameters after each conversation, but the capability enhancement at the system level: persistent memory saves facts, retrieval mechanisms recall relevant experience, skill libraries encapsulate stable steps, and feedback evaluation decides which experiences are worth continuing to use.

    This route is more suitable for tasks that recur but with constantly changing details. However, it also introduces new risks: wrong experiences may be repeatedly reused, expired rules may continuously affect decisions, and malicious content may pollute memory.

    Therefore, experience-driven does not mean canceling configuration, but adding an experience loop on top of controlled configuration.

    3. Context, Memory, Skills, and Training Must Be Distinguished

    When discussing whether an agent “can learn,” we must first clarify at which layer the learning occurs.

    Context is the information visible during current reasoning, including user requests, recent conversations, tool return results, and temporary plans. It is suitable for supporting the current task, but cannot inherently guarantee cross-session saving, nor is it suitable for infinite accumulation.

    Persistent memory is filtered, saved information, such as output preferences confirmed by users, environment facts related to tasks, and handling experiences for certain exceptions. Persistent memory requires retrieval, updating, expiration, and deletion mechanisms; otherwise, it easily becomes a mixed information warehouse.

    Skills are structured, repeatable task methods. It should not only record “it succeeded before,” but also describe applicable conditions, input requirements, execution steps, result validation, and failure handling.

    Model training involves updating model parameters, requiring data governance, training pipelines, and independent evaluation. Writing execution records into storage does not equal completing model training.

    These layers can collaborate but must not be confused. Otherwise, the system might mistake “recording more content” for “continuously improving capabilities,” ultimately increasing costs without improving result quality.

    4. What Execution Loop Should an Experience-Driven Agent Have?

    A deployable architecture can be organized around the following process:

    Task receipt -> Goal and constraint parsing -> Relevant experience retrieval -> Plan generation -> Permission check -> Tool execution -> Result validation -> Experience candidate extraction -> Review and versioned save.

    1. Define Success Criteria Before Execution

    After receiving a task, the agent should clarify deliverables, allowed data, modifiable resources, time limits, and actions requiring manual confirmation.

    “Organize materials” is not a sufficiently clear goal. “Extract approved documents from the specified directory, generate summaries by topic, and retain source locations” is closer to a verifiable task.

    If success criteria are missing, the system might complete many actions without truly accomplishing what the user needs.

    2. Retrieve Experience, Don’t Load All History

    Experience retrieval should consider both semantic similarity and structural conditions. The same task type does not mean the same environment, permissions, and input conditions.

    For example, if a processing method is only valid under a specific file structure, its applicable conditions must participate in retrieval and filtering. Expired, revoked, or unverified experiences should not have the same weight as approved experiences.

    The key to memory design is not capacity, but relevance, credibility, and timeliness.

    3. Set Checkpoints During Execution

    Long tasks should not rely on a single complete plan to run directly to the end. A more reliable approach is breaking the task into stages and validating status after key steps.

    Check data integrity after reading, check file format after generation, check permissions before submitting changes, and request necessary approvals before producing external impacts. Checkpoints can narrow the scope of failure and make manual takeover easier.

    4. Separate Result Validation from Text Generation

    “No error in tool calls” does not equal successful business task; “the answer looks reasonable” does not equal correct content.

    Data processing should verify record counts and field constraints; file generation should check file existence and content structure; code modifications should run applicable tests; tasks involving business state should check whether the expected state truly appeared.

    The model can assist in explaining results, but should not solely act as the final judge for all results.

    5. How to Transform a Single Success into a Trusted Skill

    Successful trajectories cannot be directly copied into the skill library. A single execution might rely on accidental conditions, temporary permissions, or outdated assumptions. Directly reusing them will amplify hidden risks.

    Skill precipitation requires at least four stages.

    First is abstraction: remove specific users, paths, and sensitive data, and refine stable steps into parameterized processes.

    Second is constraint completion: explain the applicable scope, necessary permissions, input limits, and actions that cannot be executed automatically.

    Third is validation: it should not only check normal inputs but also cover missing fields, empty data, insufficient permissions, and tool failures.

    Fourth is release governance: save versions, validation records, and rollback methods to prevent new experiences from changing online behavior without inspection.

    The following is an implementation-agnostic schematic structure:

    1. Skill: Generate Periodic Summary
    2. Input: Time range, data source, output location
    3. Prerequisites: Read permissions confirmed, statistical criteria approved
    4. Steps: Read data -> Validate structure -> Summarize -> Generate result
    5. Validation: Record count matches, key fields complete, output readable
    6. Failure Handling: Stop subsequent submission, save diagnostic info
    7. Release Conditions: Testing complete, required approvals passed

    The value of skills is not to make the system “ask fewer questions,” but to allow it to do less repetitive labor within clear boundaries. When encountering new conditions, active confirmation is often more reliable than blind application.

    6. Auto-Repair Must Be Constrained by Permissions and Change Policies

    Agents can automatically handle some recoverable issues, such as retrying temporary failures within allowed limits, correcting output formats, or cleaning up temporary files generated by tasks. However, “can repair” does not mean “can modify everything by itself.”

    A practical method is dividing actions by impact scope:

    • Low-risk actions: Read-only queries, format checks, draft generation, which can be executed automatically within authorized scopes.
    • Limited-risk actions: Creating temporary resources, modifying task workspaces, which require checkpoints and recoverable mechanisms.
    • High-risk actions: Deleting important data, expanding permissions, modifying production configurations, incurring financial or external commitments, which usually require explicit approval.

    In particular, avoid the agent bypassing security controls on its own just to complete a task. Failure sometimes indicates that permission boundaries are working correctly, rather than being obstacles that need to be “repaired.”

    For repeatedly executed operations, idempotency checks should be designed to prevent duplicate submissions caused by retries. For external actions that cannot be directly rolled back, compensation processes should be predefined, rather than assuming all operations can be undone.

    7. The More Useful Persistent Memory Is, the Higher the Governance Requirements

    Experience accumulation means information exists long-term, so privacy, security, and tenant isolation must be considered.

    Memory should distinguish user preferences, business facts, execution logs, and general skills, adopting different storage strategies for different categories. Credentials and access tokens should not be mixed into ordinary memory; sensitive content should be minimized in storage and subject to access control.

    It is also necessary to prevent external content from influencing the agent. Documents, web pages, and tool return values may contain induction instructions, asking the system to ignore rules, leak information, or modify memory. This content should be treated as data to be processed and must not gain instruction permissions just because it enters the context.

    Persistent memory especially should not allow arbitrary external text to be written directly. Before writing, the source, content category, and necessity should be checked, and the source and valid scope should be recorded.

    For enterprise users, the ability to view, correct, and delete memory is usually more important than “remembering more.” Experience must be traceable, and it must also be able to be forgotten.

    8. Evaluate Using Task Metrics, Not Demo Impressions

    To evaluate agent routes, prepare a representative task set covering normal inputs, abnormal inputs, environmental changes, and permission limits, and compare results under similar conditions.

    Core metrics can include:

    • End-to-end success rate: Whether predefined acceptance criteria are met.
    • Human intervention count: How many times supplementary information, confirmation, or error correction is needed.
    • Completion latency and resource cost: Time and consumption required to reach a qualified result.
    • Experience reuse benefits: After enabling experience, whether success rate, latency, or human intervention improves.
    • Error spread degree: Whether wrong experiences affect other tasks and whether they can be quickly undone.
    • Security boundary performance: Whether unauthorized requests or malicious inputs are correctly rejected or escalated for approval.

    During evaluation, experience extraction tasks should be separated from validation tasks to avoid the system merely reproducing seen answers. The performance with memory turned on and off should also be compared to confirm that benefits come from effective experience, rather than accidental changes brought by more context.

    9. Gradual Implementation: Stable Execution First, Then Expanded Autonomy

    Development teams do not need to build fully autonomous agents from the start. A more prudent path is selecting high-frequency, low-risk, verifiable tasks to establish a deterministic execution foundation first.

    Phase 1: Clarify tool boundaries, task inputs, and result validation methods.
    Phase 2: Add controlled memory, prioritizing the saving of user-confirmed preferences and stable environment facts.
    Phase 3: Extract candidate skills from repeated successful tasks, and release them after testing and review.
    Phase 4: Allow the system to retry and repair within limited scopes, and establish monitoring, budget limits, and manual takeover mechanisms.

    When memory causes performance degradation, frequent errors, or major environmental changes, the relevant experiences should be able to be turned off, falling back to a more deterministic execution path.

    Conclusion: From “Able to Act” to “Able to Accumulate Trusted Experience”

    Configuration-driven and experience-driven approaches are not simple substitutions. The former provides clear boundaries, while the latter reduces repetitive labor; the former ensures controllable behavior, while the latter improves long-term adaptability.

    A truly mature agent is neither a toolset entirely dependent on users’ step-by-step commands, nor a black box with infinite autonomy that constantly rewrites its own behavior. It should execute tasks within clear permissions, filter experiences with verifiable results, achieve reuse through versioned skills, and retain human decision-making power in uncertainty.

    The key to measuring such systems is not how many tools it integrates or how smart it looks, but whether it can continuously deliver trusted results while keeping every experience accumulation explainable, auditable, and reversible.