Two Design Approaches for Autonomous Agents and Engineering Practices

    This article explores the engineering practices and two primary design approaches for autonomous agents: long-term growth-oriented and task execution-oriented. It clarifies the concept of "self-evolution," detailing how agents manage memory, handle vague instructions, and maintain reliable feedback loops. Additionally, it provides a structured guide on evaluating agent performance and implementing systems incrementally to balance autonomy, control, and verifiability.

    1. Comparing Agents: Start with Design Goals

    When an agent can decompose goals, invoke tools, read execution results, and adjust subsequent actions, it transcends being merely a text-generation interface and becomes a system actively participating in task execution.

    However, “being able to execute tasks” does not fully describe an agent’s design philosophy. Different systems might use similar models and tools yet adopt different strategies for state management, experience accumulation, access control, and failure recovery, ultimately delivering vastly different user experiences.

    From an engineering perspective, these differences can be abstracted into two design focuses:

    • Long-term Growth-Oriented: Emphasizes saving valid information across sessions, transforming task experiences into reusable knowledge, and making the system more adaptable to specific users and environments.
    • Task Execution-Oriented: Emphasizes completing the current task within clear goals, constraints, and processes, prioritizing controllability, verifiability, and operational boundaries.

    These two focuses are not mutually exclusive product categories, nor can they be directly used to judge superiority. A mature system can possess both long-term memory and strict execution processes. The real question is: when resources are limited, goals are ambiguous, or execution fails, what does the system prioritize, and what behavioral changes does it allow?

    2. What Does “Self-Evolution” Actually Mean?

    “Self-evolution” often evokes the idea that a model automatically trains itself during use, continuously improving all its capabilities. In actual engineering, it is crucial to distinguish between changes in model capabilities and changes in system behavior.

    Whether model parameters are updated depends on an independent training pipeline. The reason an agent behaves more proficiently during daily use often stems from the following mechanisms:

    2.1 Preserving Stable User and Environment Information

    For example, a user’s preference for report structure, the meaning of common data fields, accessible directories, and confirmed business constraints. This information reduces repetitive queries, allowing subsequent tasks to enter the execution phase more quickly.

    However, remembering information does not mean assuming it is always correct. Directories might migrate, fields might be renamed, and business rules might change. Therefore, long-term information must include update timestamps, sources, and applicable scopes.

    2.2 Distilling Experience from Task History

    A single task might generate a large amount of conversation, tool outputs, and error logs. Saving everything directly usually increases retrieval costs and introduces noise.

    A more valuable approach is to distill:

    • Which conditions triggered the failure;
    • Which fix method was verified;
    • What prerequisites that method relies on;
    • Under what circumstances the method should no longer be used;
    • How the final result was verified.

    This experience is not universally valid knowledge, but rather conditional practice records.

    2.3 Solidifying Verified Methods into Skills

    If a certain type of task recurs frequently, the verified steps can be organized into templates, scripts, or controlled workflows. This way, subsequent executions do not need to reason from scratch every time.

    However, skill solidification should have clear thresholds. A single success might be coincidental and should not immediately become the default strategy. For operations involving data modification, access adjustment, or external submission, testing, version management, and manual review are even more necessary.

    Therefore, a more rigorous understanding is: growth means the system leverages manageable memory and experience to improve subsequent decisions, rather than acquiring unconstrained, infinitely expanding capabilities.

    3. What Problems Do the Two Design Approaches Solve?

    3.1 Long-Term Growth-Oriented: Reducing Repetitive Communication and Exploration

    When users continuously handle the same type of task, an agent starting from scratch each time will repeatedly ask for background information, probe the environment, and re-solve previously encountered problems.

    The long-term growth-oriented approach is suitable for continuous work, such as periodic data analysis, continuous code maintenance, tracking research items, and generating reports around fixed business rules.

    Its core value is not just “remembering the user,” but reducing ineffective repetition. The system can identify which context is worth retaining and retrieve it for the next task.

    Its main risk also stems from this long-term nature: erroneous information might continuously propagate, outdated experience might be repeatedly invoked, and temporary preferences from a specific task might be mistaken for permanent requirements. Therefore, memory must allow viewing, correction, and deletion.

    3.2 Task Execution-Oriented: Improving Boundary Clarity and Result Verifiability

    The task execution-oriented approach focuses more on the inputs, outputs, and execution conditions of the current request. It can preserve state during the task process but does not need to automatically transform every experience into long-term knowledge.

    This design is suitable for tasks with clear goals, stable processes, or higher risks. For example, processing files according to established rules, running tests, generating fixed-format materials, or executing business operations requiring approval.

    Its advantage is auditability: what inputs this task was based on, which tools were called, and where it failed can all be independently inspected.

    The trade-off is that when facing ambiguous goals, the system might need more clarification; for recurring problems, without an additional experience management mechanism, it might repeatedly conduct the same exploration.

    3.3 Enterprise Implementation Usually Requires a Hybrid Design

    For low-risk format preferences, the system can be allowed to save them after user confirmation; for verified troubleshooting experience, it can be reused in restricted environments; for processes involving production data or external operations, fixed permissions, approval nodes, and rollback mechanisms should be adopted.

    Therefore, a reasonable combination does not mean allowing all behaviors to be automatically learned, but distinguishing: which information can be accumulated, which steps can be adjusted, and which rules must never be overridden by historical experience.

    4. How Agents Advance Tasks Under Vague Instructions

    A user might only say: “Get some data and generate a visualization report.”

    This request does not specify the data source, statistical criteria, access permissions, chart format, or acceptance standards. The reason an agent can sometimes continue advancing relies primarily on the combined effect of model reasoning capability, tool access capability, and feedback loops, rather than just long-term memory.

    A reliable processing flow should include the following steps.

    4.1 Distinguish Inferable Information from Mandatory Confirmation Information

    Report titles and preliminary chart formats can usually be proposed as default schemes; data access authorization, sensitive field scope, and statistical criteria should not be decided arbitrarily.

    Reducing reliance on precise prompts does not mean skipping necessary confirmations, but rather handing over implementation details that users do not need to describe personally to the system.

    4.2 Transform Goals into Verifiable Subtasks

    The task can be decomposed into:

    1. Confirm the data source and access method;
    2. Retrieve a sample and check fields and data types;
    3. Handle missing values, duplicate records, and time formats;
    4. Execute statistical calculations;
    5. Generate charts and explanations;
    6. Verify the results and deliver the file.

    Each step should clearly define inputs, outputs, and success conditions. Otherwise, the system might generate a file but cannot prove that the file’s content meets the requirements.

    4.3 Adjust Local Plans Based on Feedback

    When a script fails, the agent can read the error message, determine whether it is a missing field, type mismatch, dependency issue, or insufficient access permission, and then decide whether to modify the plan.

    However, feedback loops need limits. Repeated failures are not necessarily solved by continuing to try; insufficient permissions cannot be “fixed” by expanding access scope. The system should stop when retries, costs, or risks reach a boundary and explain the reason to the user.

    5. Memory Systems: Distinguishing Facts, Preferences, and Experiences

    Dumping all historical conversations into the same storage space does not equate to establishing effective long-term memory. Different information has different reliability and usage methods.

    5.1 Working Memory

    Saves current task goals, stage states, intermediate results, and pending issues. It serves the current execution and can be archived or cleaned up after the task ends.

    5.2 User Preferences

    Saves confirmed output styles, language choices, and common working habits. Preferences cannot override current instructions. For example, if a user historically preferred concise reports but explicitly requests detailed analysis now, the current request should be followed.

    5.3 Environmental Facts

    Records the operating environment, data structure, and resource locations. Since environments change, this information must be periodically verified, and critical operations cannot be executed based solely on historical records.

    5.4 Practical Experience

    Saves problem conditions, solution steps, and verification results. During retrieval, it is not enough to just check if the descriptions are similar; you must also verify if the environment and constraints match.

    5.5 Controlled Skills

    Saves tested executable processes. Skills should have versions, applicable conditions, and failure handling methods, and should support disabling and rollback when necessary.

    Information retrieved from memory also needs authorization and applicability checks. Instructions in historical documents, logs, or tool outputs cannot automatically become new execution authorizations, let alone bypass the permission boundaries defined by the system.

    6. Turning Feedback Loops into Maintainable Execution Mechanisms

    A general execution loop can be summarized as:

    Goal Understanding → Plan Generation → Permission Check → Tool Execution → Result Verification → Local Adjustment → Task Summary.

    The most easily overlooked step here is “Result Verification.” A tool not throwing an error only indicates that the invocation process might have succeeded; it does not mean the business goal has been achieved.

    For example, after generating a data report, you should still check:

    • Whether the record count between input and output is reasonable;
    • Whether the time range and statistical criteria are consistent;
    • Whether the handling of missing values affects the conclusion;
    • Whether the chart labels correspond to the actual data;
    • Whether the numbers in the report can be traced back to the calculation results.

    The task summary should also not just say “successfully completed.” It should explain what was accomplished, what assumptions were made, what limitations remain, and what experience qualifies for long-term storage.

    For operations such as writing to databases, overwriting files, or sending external messages, the impact of repeated execution should be considered. Steps that can be designed to be idempotent (where repeated execution produces no extra side effects) should be prioritized; when this is not possible, deduplication records, transaction control, or explicit compensation mechanisms are required.

    7. Replace Single Demos with Engineering Evaluation

    A smoothly completed demo cannot prove that an agent has stable capabilities for complex tasks. Evaluation should cover at least five dimensions.

    7.1 Task Completion Quality

    Judge the result based on predefined acceptance criteria, rather than using response length or whether a file was generated as the success standard.

    7.2 Error Recovery Capability

    Introduce controllable failures like field changes, missing data, or tool timeouts. Observe whether the system can locate the problem and whether it will take unauthorized or destructive actions.

    7.3 Memory Effectiveness

    Compare the performance of repetitive tasks with and without memory enabled. Also check behavior with outdated memory, incorrect memory, and after memory deletion. The value of memory should be reflected in reducing repetitive work, not just increasing retrieved content.

    7.4 Execution Cost

    Track time consumed, model invocations, tool calls, and human interventions. If a task is completed but the cost is unpredictable, it is not suitable for stable deployment.

    7.5 Traceability

    Retain plan versions, tool calls, verification results, and memory change logs to support post-hoc reproduction and problem localization. When sensitive data is involved, logs also require desensitization and access control.

    Test tasks should also include failure samples and edge cases, avoiding only selecting tasks that are easy for the system to complete.

    8. Start with a Minimal Closed Loop, Not Full Automation

    In actual implementation, it is recommended to first select a task with a clear scope, low risk, and explicit acceptance criteria, establish a complete closed loop, and then gradually add long-term capabilities.

    Phase 1: Limit the number of tools and accessible resources to ensure the execution process is recordable and results are verifiable.
    Phase 2: Only save confirmed preferences and task summaries, providing interfaces to view, correct, and delete them.
    Phase 3: Solidify repeatedly verified methods into skills, and establish testing, versioning, and disabling mechanisms for these skills.
    Phase 4: Based on real needs, expand to parallel execution, multi-task scheduling, or cross-session collaboration, while maintaining identity isolation and permission boundaries.

    Long-term growth and task execution reflect an agent system’s emphasis on different engineering goals. The former pursues reducing repetitive exploration, while the latter pursues the stability and controllability of the current task. A truly reliable autonomous agent should combine the two: allowing experience accumulation but requiring trustworthy sources; allowing path adjustments but not breaking through authorizations; allowing tasks to advance automatically, but ensuring results can be verified, failures can be explained, and control can be handed back to the user promptly when necessary.