AI Agent Architecture: Configuration-Driven vs. Experience-Driven Approaches

    When two AI agents can both call tools, manipulate files, run scheduled jobs, and connect to messaging channels, comparing feature counts rarely explains the difference in real-world experience. This article contrasts configuration-driven agents, which rely on explicit rules and deterministic workflows, with experience-driven agents, which extract reusable knowledge from task records. It breaks down what "getting better over time" actually requires — task memory, long-term memory with clear lifecycles, reusable skills with stated preconditions, and evidence-based feedback — and proposes a reference architecture of six modules covering constraint parsing, planning, tool execution with permission control, result verification, experience extraction, and review/release/rollback. It also defines the limits of self-repair, lists metrics for judging whether a system is genuinely improving, and outlines a four-stage path for enterprise adoption.

    1. The Real Divide Isn’t the Feature List

    When two agents can both call tools, operate on files, run scheduled tasks, and connect to messaging channels, comparing feature counts rarely explains the difference in actual experience.

    Some systems require the user to configure tools in advance, decompose the workflow, and add rules, after which the task is completed along a fixed path. Another class of system tries to identify obstacles during execution, adjust its strategy, and save validated handling methods for later reuse.

    The difference is not “can it call tools” but three deeper questions:

    • Who mainly defines the task execution logic?
    • When something goes wrong, what does the system base its adjustment on?
    • Can one success or failure improve future execution?

    So agent architecture can be abstracted into two lines: configuration-driven and experience-driven. The former emphasizes explicit rules and deterministic processes; the latter emphasizes extracting reusable knowledge from task records.

    This is not a simple split between advanced and outdated. For fixed workflows, configuration-driven is usually more stable; for tasks involving environment differences, changing inputs, and long-tail cases, experience-driven can reduce repeated configuration and manual troubleshooting. The question worth discussing is how to draw a reasonable boundary between controllability and adaptability.

    2. Configuration-Driven: Putting Determinism First

    The basic idea of a configuration-driven agent is that the developer or user defines the available tools, invocation conditions, execution order, and exception handling strategy ahead of time.

    A typical flow looks like this:

    Task input → intent recognition → rule matching → tool invocation → result check → output delivery

    For example, a daily business report generated on a schedule can have its data sources, calculation definitions, output template, and recipients specified in advance. The agent is mainly responsible for understanding the request, calling tools, and doing any necessary text formatting.

    2.1 Why It Still Matters

    The first advantage of configuration-driven design is predictability. The execution path is relatively stable, and when something breaks, you can locate the fault along a clear process.

    Second is auditability. An organization can inspect why a step happened, which permissions were used, what data was read, and whether the result went through approval.

    Third is straightforward regression testing. After a rule change, a fixed test set can verify whether the new configuration broke existing behavior.

    For high-risk scenarios such as financial processing, permission changes, and production releases, an explicit process is not a compromise on experience — it is a security requirement.

    2.2 Where the Cost Lies

    As tools and scenarios multiply, maintenance cost grows too. Adding a tool is not just one more API call; it can introduce authentication, data formats, timeouts, dependency versions, and permission boundaries.

    If every exception requires a manually added rule, the system gradually accumulates a large number of branches that are hard to manage. The more complex the flow, the more likely you are to hit rule conflicts, duplicated configuration, and hidden dependencies.

    Configuration-driven design is not “dumb” — it simply leaves more of the responsibility for adapting to the environment with the developer.

    3. Experience-Driven: “Growth” Needs a Concrete Mechanism

    An experience-driven agent tries to move part of the adaptation work inside the system. But “the longer you use it, the smarter it gets” is not a technical explanation; it has to be broken down into mechanisms that can be implemented and verified.

    First, a clarification: storing memory, updating task strategies, or generating reusable skills does not mean the underlying model parameters have changed. Much of what is called continuous growth actually happens outside the model, in the knowledge and execution layers.

    3.1 Task Memory: Preserving Execution Context

    Task memory records the goal, inputs, tool invocations, environment state, and final result of a single execution.

    It answers “what happened before,” not “what should be done next.”

    If you store only the full transcript, retrieval can pull in large amounts of irrelevant information. A more sensible approach maintains both the raw record and a structured summary, so the system can distinguish user requirements, tool responses, execution decisions, and verification conclusions.

    3.2 Long-Term Memory: Stable Information with Boundaries

    Long-term memory can hold confirmed user preferences, long-running task constraints, and stable environment information.

    But different memories have different lifecycles. An output language preference may stay valid for a long time; a temporary access token should not be kept indefinitely; an incorrect inference from one task should not become a default rule.

    Long-term memory therefore needs source records, access scope, update timestamps, expiration conditions, and deletion mechanisms. When personal information is involved, a minimization principle should also apply.

    3.3 Reusable Skills: Turning Experience into Operating Procedures

    One successful task does not mean the corresponding steps can be reused unconditionally.

    A valid skill should at minimum state:

    • Which tasks and environments it applies to;
    • Which conditions must be met before execution;
    • Which steps may be completed automatically;
    • How to judge that the result is correct;
    • How to exit or roll back after failure;
    • Which situations require human confirmation.

    For example, “when you hit a permission error, escalate privileges” is not acceptable experience; “first check identity, resource scope, and authorization state, and request approval when it cannot be confirmed” has controlled reuse value.

    3.4 Feedback: Deciding Whether Experience Is Worth Keeping

    An agent cannot treat its own generated “task completed” as evidence of success.

    A successful tool call does not mean the business goal was achieved. A file written successfully does not mean the content is complete; a message sent successfully does not mean it reached the right recipient.

    Effective feedback should come from observable evidence as much as possible — the target file exists, data validation passed, business rules are satisfied, or the user explicitly confirmed. Only verified experience is suitable for the long-term reuse layer.

    4. A Reference Architecture: From Task Execution to Experience Accumulation

    A system that balances adaptability with controllability can be split into six logical modules.

    4.1 Task Entry and Constraint Parsing

    The system first extracts the goal, inputs, delivery requirements, and risk level, and separates hard constraints from preferences.

    “Never modify the source data” is a hard constraint; “prefer presenting results in a table” is a preference. The former cannot be overridden because some piece of experience suggests it.

    4.2 Plan Generation and Strategy Selection

    The planning module combines the current input, approved processes, and applicable experience to produce candidate execution plans.

    For stable tasks, a validated process should be preferred; only when the existing process does not apply should a new execution strategy be considered. This avoids re-exploring from scratch every time, which adds cost and uncertainty.

    4.3 Tool Execution and Permission Control

    The tool layer interacts with the external environment; the permission layer restricts which actions are allowed.

    These two should be designed separately. A model proposing an operation does not mean the system must execute it. Actions involving deletion, payment, outbound information, or changes to production resources should have approval conditions set according to risk.

    4.4 Result Verification

    The verification module checks whether the task meets its delivery conditions, rather than only checking whether tools reported errors.

    Verification rules should be as independent of the generation process as possible. Structured results can be checked for field completeness and value ranges; document tasks can be checked against fact sources, required sections, and formatting requirements.

    4.5 Experience Extraction

    After the task ends, the system can generate candidate experience, including effective steps, failure causes, and applicable conditions.

    What is extracted here is knowledge pending verification, not newly published rules. In particular, accidental successes, temporary environment characteristics, and unproven causal relationships should be kept out of long-term memory.

    4.6 Review, Release, and Rollback

    Candidate experience only becomes a retrievable formal skill after testing or human review.

    The overall loop can be summarized as:

    Task → execution → verification → candidate experience → test and review → versioned release → later reuse

    Every formal piece of experience should retain version and source information. When error rates rise or the environment changes, the system needs to be able to disable, revise, or roll it back, rather than piling on patches.

    5. The Limits of Self-Repair: Retrying Is Not Learning

    “Automatically fix errors when they occur” is easy to over-interpret. In real engineering, exceptions need to be handled in at least a few distinct categories.

    5.1 Transient Failures

    Network jitter and brief service unavailability can be handled with a limited number of retries, backoff waits, or alternative paths.

    These problems usually are not worth turning into complex skills, because they do not necessarily indicate a flaw in the process itself.

    5.2 Diagnosable Process Errors

    Mismatched input formats, missing required parameters, and incorrect step ordering can be corrected under explicit constraints.

    The resulting experience must record its applicable conditions, so that a handling method for one scenario is not generalized to all tasks.

    5.3 Permission and Security Issues

    Missing permissions, requests that exceed authorization scope, and suspicious instructions returned by a tool should not be “fixed” by automatically expanding privileges.

    External documents, web pages, and tool responses should all be treated as data sources, not as inherently trustworthy system instructions. An agent must prevent external content from changing its original goal or luring it into sensitive operations.

    5.4 Irreversible or High-Risk Operations

    Deleting critical data or sending sensitive material externally requires predefined approval and recovery strategies, even when the system believes it is confident.

    Reliable self-repair is essentially about narrowing a problem within granted authorization, not breaking boundaries to complete a task.

    6. How to Tell Whether the System Is Actually Improving

    Community attention, tool counts, and demo quality are no substitute for real evaluation. An experience-driven system should be compared against a baseline that does not use long-term experience, keeping tasks, models, permissions, and verification standards as consistent as possible.

    Recommended metrics:

    • Verified task success rate: whether delivered results actually meet requirements.
    • Human intervention frequency: how many clarifications or corrections are needed to finish a task.
    • Execution cost: model calls, tool calls, runtime, and review effort.
    • Repeat error rate: whether the same class of problem keeps recurring.
    • Experience reuse effectiveness: whether invoking a given piece of experience improves the result.
    • Security violations: whether privilege escalation, incorrect outbound delivery, or improper memory storage occurred.
    • Recoverability: whether the system can exit safely, preserve state, and recover after a failure.

    Testing should also include environment changes and out-of-scope scenarios. If a system performs better only on the original task but misapplies experience to similar tasks, what it has gained may be overfitting rather than reliable adaptability.

    7. Enterprise Adoption: Fix the Main Flow First, Then Open Up Learning Gradually

    For an organization, the safer path is usually not deploying a fully autonomous agent from day one, but building a controlled loop step by step.

    Stage one: pick low-risk, verifiable tasks such as internal document organization, draft generation, or read-only information lookup. The focus is on establishing tool permissions, logging, and result validation.

    Stage two: record failure cases and human corrections, but do not yet allow the system to change formal processes automatically. First confirm which problems genuinely recur and which experience has reuse value.

    Stage three: introduce a reviewed skill library. The system can retrieve and use approved experience, but publishing new skills still requires testing or human confirmation.

    Stage four: open limited automatic updating for low-risk, reversible tasks with clear verification standards, while setting up regression tests, execution budgets, and rollback mechanisms.

    Throughout this process, infrastructure such as logging services, object storage, message queues, container platforms, and monitoring and alerting can respectively handle record retention, asynchronous tasks, environment isolation, and anomaly detection. They provide operational guarantees, but they do not automatically grant an agent the ability to learn.

    8. Conclusion: Build Flexibility on a Verifiable Foundation

    The key shift in agent architecture is expanding from “executing a task once” to “managing the full lifecycle of task experience.”

    Configuration-driven design provides clear boundaries; experience-driven design adds adaptability. The two are not in conflict: stable processes can be fixed in place, long-tail problems can generate candidate experience, and high-risk decisions always keep an approval step.

    A genuinely valuable agent is not the one with the most tools, nor the one that claims it can grow on its own, but the one that can explain the basis for its actions, verify delivered results, distinguish where experience applies, and roll back safely when something goes wrong.

    Only when experience can be verified, audited, updated, and revoked does “it gets better the more you use it” turn from a description of user experience into a trustworthy engineering capability.