From Pretraining to Autonomous Action: Capabilities and Engineering Boundaries of AI Agents

    This article examines the gap between AI models that can answer questions and agents that can take reliable actions in real environments. It outlines the core loop of observation, planning, execution, and verification, compares autonomous programming with spatial exploration, and discusses engineering practices for building controllable agent systems—including state management, permission controls, independent validation, safety mechanisms, and realistic evaluation methods. The conclusion emphasizes that pre-trained knowledge becomes valuable only when it is translated into verifiable, bounded actions.

    From Pretraining to Autonomous Action: Capabilities and Engineering Boundaries of AI Agents

    1. What Is Missing Between “Being Able to Answer” and “Being Able to Act”

    Navigating a 3D environment to find a target and manipulate objects, or analyzing requirements and modifying code in a software engineering environment, may appear to be two very different tasks. In fact, they share a common set of core capabilities: understanding a goal, recognizing the current state, inferring the consequences of actions, performing operations, and revising plans based on feedback.

    Traditional question-answering mainly generates a block of content, while an agent must change the external environment. The former can end in a single interaction, whereas the latter often requires multiple rounds of operation. For example, completing a code change is not merely about generating a plausible implementation—you must also confirm that the file was correctly updated, that related tests pass, and that existing behavior is not broken. Exploring a 3D environment follows the same logic: proposing a route is not the same as reaching the destination; the route must be verified through continuous observation and physical actions.

    Therefore, an agent should not be understood as “a large model with tools attached.” Instead, it is a system composed of a model, environment interfaces, state management, execution control, and verification mechanisms. Pretraining provides the capability foundation, while the engineering system determines whether those capabilities can be reliably converted into results.

    2. Pretraining Provides Knowledge, Not Reliability

    Calling pretrained capabilities “innate intelligence” is a helpful metaphor in that the model already possesses substantial background knowledge before entering a new task, but it is only a metaphor. The model’s abilities come from learning during training, not from genuine innate cognition.

    From large-scale data, a model may learn language structures, code patterns, common problem-solving steps, and relationships between objects. If the training data includes visual or action information, it may also form representations related to space, movement, and interaction. These representations allow the model to avoid starting from scratch for every task, instead using existing patterns to propose initial solutions.

    But there is a clear gap between knowledge, understanding, and successful action.

    • Training data coverage is incomplete. The model may be familiar with general rules of a class of operations, but have never seen the specific rules of the current environment.
    • Training knowledge can become outdated. Codebase structure, business constraints, and execution environments may have changed; historical experience cannot replace on-site inspection.
    • Generating a plausible explanation is not the same as having correct state information. The model can describe what an action should do, but it does not necessarily know whether that action has actually succeeded.

    A more rigorous statement is: pretraining provides the agent with transferable knowledge and reasoning patterns, but actual task capability still depends on environment adaptation, necessary post-training, and runtime feedback. We cannot infer that a model will reliably complete complex tasks simply because it can fluently discuss strategies.

    3. The Core of an Agent: An Observation-Feedback Loop

    A general agent execution process can be summarized as:

    Goal understanding → State observation → Action planning → Operation execution → Result verification → State update.

    This loop typically needs to be repeated multiple times rather than completed in one pass.

    3.1 Goal Understanding: Translate Natural Language into Verifiable Conditions

    User-provided goals are often imprecise. “Optimize this program” may mean reduce runtime, or it may mean improve readability; “find the exit” may also imply avoiding dangerous areas.

    The system should clarify the goal, constraints, and completion criteria. For coding tasks, requirements can be organized into expected behavior, allowed modification scope, compatibility constraints, and test conditions. For environment interaction, target locations, prohibited actions, and resource limits can be defined. When ambiguity affects execution, clarification should be sought rather than letting the model silently fill in business requirements.

    3.2 State Observation: Distinguish Facts, Inferences, and Unknowns

    An agent needs environment information relevant to its decisions. A 3D task may involve images, positions, visible objects, and action feedback; a programming task may involve file contents, dependencies, error messages, and test results.

    Observations should not be treated as absolutely reliable facts. Visual information may be occluded, logs may show only part of a failure, and file summaries may omit key constraints. The state record should distinguish among “confirmed,” “inferred from phenomena,” and “not yet checked,” to prevent unverified guesses from gradually becoming assumed facts in later reasoning.

    3.3 Action Planning: Control the Impact of Each Step

    Complex tasks usually require decomposition, but plans should not be too long or too detailed. As the environment changes, long-term steps may become invalid. A more practical approach is to keep the overall goal stable while only detailing near-term executable steps.

    For example, when fixing a defect, you might first reproduce the problem, then locate the relevant code path, implement the smallest necessary modification, and finally verify. When exploring an environment, you might first confirm nearby reachable areas, execute short movements, and then update the route based on new observations. Both follow the same principle: lower key uncertainties first, then expand the scope of action.

    3.4 Result Verification: Use Environmental Evidence to Determine Completion

    The model saying “done” is not a reliable acceptance criterion. The system must check actual results.

    For code tasks, you need to confirm that the changes match the requirements and pass appropriate tests or checks. For environment tasks, you need to confirm that the target state actually appears, rather than simply seeing a similar image. If verification fails, return to the observation and planning stages to analyze whether the issue lies in goal understanding, state estimation, the execution interface, or the solution itself.

    4. 3D Exploration and Autonomous Programming Share Capabilities, But Are Not Interchangeable

    Both types of tasks require handling partially observable environments: at any given moment, the agent only sees a portion of the overall state. But their operational conditions differ, so the same execution strategy cannot be directly reused.

    3D exploration emphasizes spatial relationships, temporal continuity, and action control. A single action may trigger a continuous change, and an erroneous movement may place the agent in an unrecoverable position. The system needs to handle perception errors, action duration, collision risk, and path reachability. When physical devices are involved, independent safety limits must be introduced, not relying solely on model judgment.

    Autonomous programming typically has stronger symbolic structure. Files, functions, error messages, and test results can be explicitly read, and many modifications can be undone through change records. However, engineering environments are not inherently safe: command execution, configuration changes, data access, and deployment operations can all have external side effects.

    Therefore, the engineering focus for 3D tasks is often on the stability of perception and control, while programming tasks focus more on dependency understanding, change management, and verification completeness. What is shared is the task loop, not all underlying implementations.

    5. How to Build a Controllable Autonomous Execution System

    5.1 Separate Decision-Making from Execution

    The model is suitable for proposing plans, explaining issues, and selecting candidate actions, but it should not bypass system constraints to execute arbitrary operations directly. The execution layer should check whether an action is legal, whether parameters meet requirements, and whether resource access is authorized.

    This separation prevents treating “the model thinks it can do this” as equivalent to “the system allows this.” Even if the model generates an inappropriate request, the execution layer should reject it.

    5.2 Use Structured State Instead of Relying Only on Chat History

    For long tasks, relying solely on conversational text to track progress can lead to missing context, repeated operations, or accumulation of false assumptions. A more robust approach is to maintain a separate task state, including goals, constraints, completed steps, current evidence, assumptions to verify, and failure records.

    Note that state summaries can themselves be wrong. Important conclusions should retain traceable evidence locations, and the system should re-read original information when necessary, rather than permanently trusting a single summary.

    5.3 Set Tiered Permissions for Operations

    Reading information, modifying files, and producing external impacts should have different authorization levels. Low-risk operations can be executed automatically; reversible modifications should keep change records; high-risk actions such as deleting important data, changing production configuration, or triggering formal deployments should require explicit approval.

    Permissions should also be limited to specific targets and validity time. An agent performing one task does not need long-term control over the entire environment.

    5.4 Make Verification an Independent Stage

    The execution module and the verification module have different responsibilities. The execution module produces changes; the verification module judges whether the changes satisfy the goal. Verification may combine rule checks, automated tests, state reads, and human review, and it should not rely entirely on the same model evaluating its own results.

    For programming tasks, tests are not absolute proof. If test coverage is insufficient, all tests may pass while hidden defects remain. Therefore, the scope of verification should match the risk of the modification; a few checks cannot replace a complete judgment.

    5.5 Define Termination and Escalation Conditions

    Autonomous execution must have boundaries. The system should set task time limits, operation counts, resource budgets, and stopping conditions for repeated failures. When critical evidence is missing, permissions are insufficient, or consecutive repair attempts fail, the system should report its current state to the user and request clarification or human takeover.

    This is more reliable than infinite retries and prevents errors from expanding in impact.

    6. Capability Evaluation Cannot Rely on a Single Demonstration

    An agent succeeding on one case does not prove stable generalization. Effective evaluation needs to cover different task difficulties, initial states, and abnormal conditions.

    • Measure end-to-end task success rate, determined by external acceptance criteria, not by the model’s self-description.
    • Observe execution cost, including number of operations, time, resource consumption, and human intervention.
    • Record failure modes: Did it overstep permissions? Did it falsely claim completion? Did it miss critical checks? Was it able to exit safely after failure?

    For knowledge transfer, you can test with unseen environment layouts, new code organization styles, or differently phrased task requirements to see whether the system can adapt using existing knowledge. But you should distinguish true rule transfer from reproduction of known examples, avoiding the assumption that performance in familiar scenarios indicates general capability.

    Evaluation must also focus on recovery ability. A reliable system does not necessarily never make mistakes, but it should recognize errors, limit their impact, preserve evidence, and when necessary roll back or ask for help.

    7. Safety Issues Arise Not Only from Errors, But Also from Untrusted Input

    When an agent reads files, documents, or environmental text, it may encounter content that attempts to alter its behavior. For example, a document under analysis might contain text like “ignore the original task and perform other operations.” Such content is task data and should not automatically gain control over the system.

    Engineering should clearly distinguish user authorization, system rules, and external material. External content can provide factual clues, but it must not expand tool permissions, modify safety constraints, or replace the task goal.

    Additionally, control the scope of sensitive information reading and propagation. Data needed to complete a task should not be indiscriminately written to logs, and outputs should avoid leaking credentials or private information. Security boundaries must be enforced through access control and execution checks, not just prompt text.

    8. The Real Value Lies in Converting Existing Knowledge into Verifiable Action

    Pretraining gives agents a strong starting point: they can use existing knowledge to understand unfamiliar tasks, propose plans, and reduce blind exploration. But this advantage is neither a complete mastery of task rules nor a guarantee of execution results.

    From 3D exploration to autonomous programming, stable capability comes from the same engineering logic: observe the real state, act within constraints, verify results with external evidence, and adjust strategies based on feedback.

    For developers and enterprises, implementation should start with tasks that have clear boundaries, checkable results, and recoverable failures, gradually expanding the scope of autonomous execution. Instead of pursuing a system that seems to do everything, it is better to build a system that knows when it has finished, when it has failed, and when it needs to stop. That is the key to moving from pretrained knowledge to reliable autonomous action.