From Instruction Following to Experience Reuse: The Architectural Debate in AI Agents
As agent capabilities become standard, usefulness depends less on tool count and more on how a system plans, recovers, and reuses experience. This article contrasts configuration-driven and experience-driven design, and explains memory types, controlled learning loops, failure recovery, enterprise boundaries, and evaluation.
1. Agent competition is shifting from feature count to closed-loop execution
The most intuitive way to judge an agent is to inspect its feature list: Can it operate on files, run code, access business systems, receive messages, and schedule jobs?
Once those capabilities become common, feature count no longer explains differences in user experience. Two systems may call the same class of tools and still behave very differently on the same task. One may require the user to keep supplying missing steps. The other may notice missing information, revise the plan, and attempt a reasonable recovery when something fails.
That difference does not necessarily mean the second system uses a stronger model. It may come from better context management, clearer tool feedback, a more coherent execution loop, and a mechanism for reusing prior experience.
Architecture discussions therefore need to move from “what is connected” to “how those capabilities are organized.”
Four questions matter:
- After a user states a goal, can the system turn it into a verifiable execution plan?
- When a tool returns an error, can the system locate the cause and limit the scope of retries?
- After a task ends, which experience should be kept, and what must be discarded?
- The next time a similar task appears, can the system reduce repeated work without expanding risk?
Around these questions, common design tendencies can be summarized as configuration-driven and experience-driven. They are not mutually exclusive product categories. They are two different centers of architectural gravity.
2. Configuration-driven design: hand the process to the system explicitly
Configuration-driven design emphasizes predefined capabilities and execution boundaries. Developers configure tools, permissions, triggers, workflows, and exception-handling rules. The agent completes tasks inside those constraints.
A daily report, for example, can be split into fixed steps:
- Read data for a specified time range from an authorized source.
- Calculate metrics using predefined definitions.
- Check for missing and anomalous values.
- Generate a written summary.
- Submit the result to a reviewer.
- After approval, send it to the designated recipients.
The advantages are clarity, testability, and auditability. Each step has explicit inputs and outputs, and failures are easier to assign to a responsibility boundary.
In higher-risk settings such as financial approval, production changes, and customer-data processing, determinism usually matters more than flexibility. The model should primarily understand, summarize, and recommend, while critical operations remain in validated workflows.
Configuration-driven systems also have a maintenance cost. As tools, environments, and business rules grow, dependencies among configurations become complex. A changed field, an expired permission, or an updated runtime can interrupt a previously stable flow.
If the system only executes mechanically and cannot explain failures, users must keep acting as operators: inspect configuration, adjust parameters, patch the workflow, and run the task again.
The core challenge is therefore not “insufficient openness.” It is how to stay controllable while reducing the burden of manual maintenance.
3. Experience-driven design: turn one success into a reusable method
Experience-driven design focuses on knowledge retained after a task. The system does not only execute the current instruction. It also tries to extract useful information from the execution record to improve later decisions.
One concept needs to be clear: an agent “remembering experience” usually does not mean that the base model’s parameters are updated in real time.
A more common implementation stores experience as external state, such as:
- Expression preferences confirmed by the user
- Step templates for a class of tasks
- Conditions under which a tool applies, and its known limits
- Failure-handling methods that have been validated
- Rules for checking results
When a later task arrives, the system retrieves relevant records, includes them in context, and lets the model decide whether to use them.
In other words, “growth” is usually the combined result of retrieval, planning, and state management, not evidence that the system has acquired reliable autonomous learning.
The value is less repeated trial and error. The harder question is how the system decides which experiences are worth learning.
An accidental success should not automatically become a general procedure. A network timeout should not be generalized into “the tool is unavailable.” Unverified experience can accumulate until the system becomes more confident and less reliable.
Experience retention therefore needs scope, evidence of validation, an expiration period, and a way to revoke it.
4. Memory is not a chat log, and a skill is not a pile of prompts
Reliable reuse starts by separating types of information.
4.1 Working memory: for the current task
Working memory holds the current goal, completed steps, intermediate results, and open problems. It should be updated as the task proceeds, rather than appending every tool output to the context unchanged.
After reading a large log, what is usually worth keeping is an exception summary, the time range, and where the evidence lives—not the full log text.
That reduces irrelevant information that can distort later judgments and makes conclusions easier to verify.
4.2 Preference memory: user habits
Preference memory can include report format, language style, and commonly used output locations. The system must still distinguish a lasting preference from a one-time request.
“Just the conclusion this time” does not mean every future task can omit the analysis. Updates that persist a preference should go through explicit confirmation or an explainable management interface.
4.3 Procedural memory: how a class of tasks is done
Procedural memory describes how to complete a type of task. A reusable skill should at least include:
- Applicable scenarios
- Input requirements
- Preconditions
- Execution steps
- How to validate the result
- Failure handling
- Required permissions
- Version and validation records
A paragraph that only says “do this, then do that” is usually not enough for stable reuse. A skill must also state when it must not be used, and how to show that the result is correct after execution.
4.4 Factual memory: traceable information
Business rules, document summaries, and environment information belong to factual memory. This information needs a source and an update time.
Permissions, prices, organizational structure, and system state change often. Something that was once correct should not be treated as permanently correct. When necessary, the system should query the authoritative source again.
5. Bringing experience into the system requires a controlled loop
A relatively complete experience-driven architecture can be abstracted as:
Goal parsing → plan generation → permission check → tool execution → result validation → experience extraction → review and storage → later retrieval.
The most important stages are not “extract experience,” but validation and review.
Consider a data-cleaning task. The system finds that an input file contains an extra explanatory row, adjusts how it reads the file, and successfully produces a report. A reasonable lesson is not “always skip the first row when reading files.” It is:
“When the input matches a specific template and the first row has the characteristics of explanatory text, use the corresponding parsing strategy; after parsing, still validate fields and record counts.”
That experience includes conditions. It is not an unbounded conclusion.
In practice, new experience can first be stored as a candidate and enabled only after testing or human confirmation. High-risk skills should also be validated in an isolated environment rather than applied directly to production.
The experience store also needs lifecycle management:
- New experience enters a candidate state.
- After validation, it becomes available.
- After the environment changes, it is rechecked.
- On conflict, its priority is lowered or it is disabled.
- Records that go long without validation become expired.
Without these mechanisms, an experience store easily degrades into an ungovernable collection of historical text.
6. Failure recovery means understanding error types, not retrying forever
“Self-repair” is easily misunderstood as continuing to try no matter what goes wrong. Reliable recovery needs explicit boundaries.
Common errors fall into several types:
- Transient errors, such as a brief connection failure, may be retried a limited number of times.
- Input errors, such as a missing field, should request more information or a corrected input.
- Permission errors should stop execution and state the authorization required. The system must not look for a bypass.
- Environment errors, such as a missing dependency, may lead to a repair proposal within the authorized scope.
- Business-rule errors, such as unmet approval conditions, should return to the business process.
Recovery strategy should rely on structured error information, not only on the model’s guess about a block of error text.
Retries must also consider idempotency. Reading a file again after a failed read usually has no extra side effect. Payment, sending a notification, or changing an order is different. If the system cannot confirm whether the previous operation succeeded, a blind retry can duplicate it.
Write operations should therefore have operation records, deduplication, and a way to query state whenever possible. When the outcome cannot be judged reliably, the system should pause and hand the task to a person.
7. Enterprise deployment: separate flexible judgment from deterministic execution
Enterprise settings are a poor fit for simply pursuing “as autonomous as possible.” A hybrid architecture is more robust.
The model understands the goal, proposes a plan, explains anomalies, and summarizes experience. Deterministic components handle permission checks, parameter validation, state management, approval, and execution.
The division can be stated as: let the model propose an action, and let the system decide whether that action is allowed.
Permission governance should follow least privilege. A task that only needs to read data should not receive write permission. A task that only needs to draft output should not be able to send it externally.
Important operations should also use tiered confirmation:
- Low-risk reads and organization can run automatically.
- Reversible internal changes can run within an explicitly authorized scope.
- External publication, financial operations, production changes, and data deletion should face stricter approval conditions.
Memory itself needs access control. Experience from different users, projects, and business spaces must not be mixed unconditionally. Otherwise, reuse can become a channel for leaking sensitive information.
Another risk is contamination from external content. Instructions inside documents, web pages, or tool output must not automatically carry the same authority as the user’s instructions, and they must not be stored as long-term skills without review.
8. Evaluation: do not judge only whether one demo succeeded
Evaluate agents on real tasks, not only on feature count or a single smooth demonstration.
At least these dimensions are worth examining:
8.1 Task quality
Does the result meet the business standard? Are calculations correct? Are conclusions supported? Correct output format and a correct business result should be scored separately.
8.2 Cost of human intervention
Record how often users supply information, change configuration, and correct errors. A system that eventually finishes may still fail to reduce total cost if it needs continuous guidance.
8.3 Behavior after failure
Introduce missing fields, invalid permissions, and transient faults, and observe whether the system classifies them correctly, stops dangerous operations, and offers actionable advice.
8.4 Effect of experience reuse
After an initial task, test a similar but not identical task. Check both whether experience reduces repeated work and whether the system incorrectly applies an old rule to a new situation.
8.5 Security and traceability
Check whether tool calls, permission decisions, experience updates, and human approvals are recorded. The system should not only produce a result. It should be able to explain which data and operations the result came from.
8.6 Total operating cost
Beyond model-call cost, include deployment and maintenance, tool execution, failed retries, human review, and incident handling. A cheap single call does not mean the full task is economical.
During evaluation, keep the task set, data scope, and model configuration fixed, and reduce environmental differences as much as possible. Otherwise it is hard to tell whether an improvement came from the architecture or from an easier task.
9. The direction is not better execution alone, but more reliable accumulation of experience
Configuration-driven design supplies boundaries and determinism. Experience-driven design reduces repeated work and improves adaptability. Together, they are closer to an agent system that can be used sustainably.
For developers, the focus should shift from continually adding tools to completing the execution loop: Are inputs explicit? Is state visible? Can results be verified? Can failures be recovered? Can experience be revoked?
For enterprises, the investment that matters is not a promise that “no one needs to supervise it.” It is measurable process improvement: less repeated configuration, less human intervention, faster fault localization, and continued compliance with permission and audit requirements.
An agent can become more familiar with a task, but accumulated experience should not automatically grant it more permission. It can propose more mature methods, but it should not skip result validation.
That is the point of moving from instruction following to experience reuse: not unlimited autonomy, but improvements that have evidence, boundaries, and room to be corrected.
