Enterprise Work Agents: From Goal-Driven to Trusted Execution Architecture

    Enterprise work agents are evolving from simple conversational assistants into systems capable of advancing actual business tasks. This article explores the architecture of trusted work agents, covering task contracts, the separation of planning and execution, tool integration, multi-model routing, long-term memory, and security governance to ensure reliable, verifiable execution in enterprise environments.

    1. From Conversational Assistants to Work Agents: What Has Changed?

    Traditional conversational assistants primarily focus on generating responses based on single inputs, leaving users to organize the results, operate business systems, and verify task completion. Enterprise work agents go a step further by connecting models, data, and tools, attempting to translate natural language goals into a set of executable steps and adjusting subsequent actions based on execution feedback.

    For example, “compile this quarter’s project risks and create review materials” is not a simple text generation request. A complete process might include querying project records, reading meeting minutes, verifying milestones, identifying causes of delays, generating a risk checklist, and submitting the draft to the person in charge for confirmation.

    The key shift in these systems is moving from “outputting content” to “advancing work.” However, being goal-driven does not mean users can omit all business constraints, nor does it mean the system can operate fully autonomously in any environment. Available data, authorization scope, acceptance criteria, and approval requirements still need to be clearly defined.

    Therefore, an enterprise work agent is better understood as a constrained task execution system: the model is responsible for understanding, reasoning, and generation; the execution framework handles state management, tool invocation, and process control; and the enterprise governance mechanism defines the boundaries of permissions and responsibilities.

    2. Define the Task Contract Before Discussing Autonomous Execution

    Goal descriptions are often ambiguous. “Improve customer response efficiency” is a business direction, not a task that can be directly executed and validated. If an agent infers the goal on its own, it might optimize response speed at the expense of reply accuracy or compliance.

    A reliable task entry point should organize natural language goals into a “task contract” that includes at least the following:

    • Expected Deliverables: Whether a report, spreadsheet, analytical conclusion, or a state change in a business system is required.
    • Input Scope: What materials can be accessed, what the data cutoff time is, and whether there is missing data.
    • Execution Boundaries: Which operations can be completed automatically and which require approval.
    • Acceptance Criteria: What completeness, accuracy, and formatting requirements the results must meet.
    • Resource Constraints: Allowed execution time, invocation budget, and degree of parallelism.
    • Stop Conditions: How to handle insufficient permissions, source conflicts, or high-risk operations.

    For tasks with insufficient information but low risk, drafts can be generated after clearly annotating assumptions; for tasks like payments, contract changes, or external communications, critical conditions should not be filled in by guessing.

    The significance of a task contract is transforming hard-to-verify “correct understanding” into checkable execution boundaries.

    3. General Architecture: Separating Planning, Execution, and Validation

    A maintainable work agent system can be divided into an entry layer, a planning layer, an execution layer, a state layer, and a governance layer.

    The entry layer receives user goals, identity information, and business context. The planning layer breaks down goals into subtasks, identifies dependencies, and selects tools to invoke. The execution layer calls business capabilities according to the authorization scope. The state layer saves task progress, tool return results, and pending items. The governance layer runs through the entire process, implementing access control, auditing, approval, and risk checks.

    Planning and execution should not be mixed. The model proposing to “modify customer records” does not mean the execution service should directly accept this action. The execution service still needs to verify caller permissions, field validity, target record status, and approval credentials.

    Task processes should not only consist of “started” and “completed” states. Actual systems usually need to distinguish between:

    Pending information, pending execution, executing, waiting for external results, pending approval, retryable failure, unrecoverable failure, canceled, and completed.

    This state modeling helps handle long-running tasks. For example, after an agent submits an analysis request, it needs to wait for data processing to finish without continuously occupying model reasoning resources. Execution state can be maintained by persistent storage and then advanced via message notifications or periodic checks.

    The final completion check should also include independent validation: Does the report cover the specified scope? Do the referenced materials actually exist? Was the business change successfully submitted? Generating the text “task completed” does not mean the task is actually complete in the business system.

    4. Tool Integration: Unified Invocation Does Not Mean Unified Permissions

    Enterprise work often spans document management, email, calendars, CRM, ticketing, finance, and data analysis systems. The goal of tool integration is to transform these capabilities into clearly bounded operations with explicit inputs and outputs, rather than centralizing all system permissions under the model.

    Tool design should prioritize small, deterministic actions, such as “query tickets for a specific project,” “create a pending email draft,” or “read an authorized data view.” In contrast, broad capabilities like “execute any operation” or “run any query” make permission control and result verification much harder.

    Each tool should specify its purpose, input structure, output structure, authorization requirements, and whether it has side effects. Information returned by tools should also be as structured as possible, preventing the agent from having to guess whether an operation succeeded from free-text responses.

    For operations with side effects, handling repeated calls is crucial. A network timeout does not mean the request failed. If the agent submits again without verifying the result, it may cause duplicate emails, duplicate ticket creation, or duplicate accounting. For business APIs that support idempotency, idempotency keys should be used to avoid duplicate execution; for those that do not, risks should be mitigated through business state queries or manual verification.

    Furthermore, permissions must be bound to actual identities and task scopes. A user being able to access a document does not mean the agent can copy that document to all collaborators. Cross-system operations still require separate verification of access and propagation permissions.

    5. Multi-Model Routing: Choose Based on Task Needs, Not Blind Switching

    Different models may vary in text understanding, complex reasoning, content generation, and code processing. Therefore, multi-model routing can be part of a general architecture, but its value must be confirmed through real business evaluation.

    Reasonable routing criteria include task complexity, input length, data sensitivity level, response latency, cost budget, and output format requirements. Simple classification and complex analysis do not necessarily require the same model; when handling restricted data, model invocation location and data processing constraints may be more important than generation quality.

    The routing mechanism must also be paired with stable context management. The ability to switch models does not mean an entire conversation can be directly copied to another call chain. The system needs to construct necessary context summaries based on permissions and task needs, retaining key evidence, execution states, and confirmed constraints, while filtering out irrelevant or sensitive content.

    When multi-model results are inconsistent, majority voting cannot simply replace fact-checking. Multiple models might draw similar conclusions based on the same incorrect data. A more reliable approach is to return to data sources, business rules, and tool execution results to identify where the discrepancy occurred.

    Enterprises should treat models as replaceable reasoning components, while keeping business rules, task states, permission policies, and audit records in independent systems to reduce dependence on a single model’s behavior.

    6. Long-Term Memory: Accumulating Experience While Preventing Error Solidification

    Work agents need to retain some information across tasks, but “memory” should not be understood as infinitely storing all history. In practice, information can be categorized by purpose:

    Conversation Context maintains the goals, constraints, and completed steps of the current task, usually having a short lifecycle.

    Semantic Knowledge records relatively stable business facts and terminology, such as department responsibilities and approved process guidelines. Such content should have sources, versions, and validity periods.

    Procedural Knowledge describes verified working methods, such as report creation processes or troubleshooting steps. It needs to distinguish between formal processes and personal experience to avoid mistaking a single successful operation for a universal rule.

    Episodic Records save decisions, anomalies, and handling results from specific tasks, primarily used for tracing and review.

    These categories are an engineering organizational method and do not mean all agents must possess the same memory mechanisms.

    Memory writes should be subject to auditing and validation constraints. If a model infers in a conversation that “a certain customer allows receiving internal quotes,” this should not form a long-term fact. Information involving authorization, personnel identity, or financial rules must rely on authoritative sources.

    Simultaneously, the memory system needs to support retrieval permissions, expiration, correction, and deletion. Once historical facts expire, they should no longer participate in decision-making; sensitive information should also not be permanently retained just to improve response convenience.

    7. Long-Term Role Agents and Multi-Agent Collaboration

    Enterprises can configure agents with persistent work roles, such as project coordination, financial analysis, or knowledge organization. The advantage of long-term roles is that their responsibilities, input sources, and work rhythms are relatively stable, facilitating the formation of evaluable processes.

    However, a role name does not equate to business permissions. An agent called a “financial analysis assistant” may have report reading and analysis capabilities but not necessarily payment permissions. Whether to configure independent accounts, emails, or calendars should be determined by enterprise identity governance and business needs, rather than directly equating the agent with a human employee.

    Multi-agent collaboration is suitable for large tasks that can be clearly split. For example, data organization, data verification, and report writing can proceed in parallel, but the inputs, outputs, and owners of each subtask must be clearly defined.

    The main task should control shared context and merging rules to prevent sub-agents from repeatedly accessing the same resource, making contradictory modifications, or infinitely recursing to create new tasks. Concurrency limits, total invocation budgets, and maximum execution rounds should all have boundaries.

    If a task itself has only a few deterministic steps, a fixed workflow is often more reliable than complex multi-agent orchestration. Whether to introduce collaboration should be determined by task structure and evaluation results, not by architectural complexity.

    8. Security Governance: Isolate External Content from Execution Instructions

    Documents, emails, and web pages read by agents may contain text attempting to alter their behavior, such as requesting to bypass approvals, leak data, or invoke additional tools. Such content is untrusted input and should not receive the same instructional status as user goals or system policies.

    Protection cannot rely solely on the model’s own identification. The system should enforce tool whitelists, least privilege, parameter validation, and approval for sensitive operations on the execution side. Even if the model generates an erroneous plan, it cannot cross actual authorization boundaries.

    High-risk actions can adopt a “draft then approve” mode: the agent completes information gathering and plan generation, and after authorized personnel confirm, the execution service implements the change. The approval interface should display the operation target, proposed modifications, data sources, and potential impacts, rather than just offering a vague “continue?”

    When running code, isolated environments should be used to restrict network access, file system scope, execution time, and resource consumption, avoiding exposing long-term valid credentials directly to the execution environment.

    Audit records should at least cover task sources, key decisions, tool invocations, approval results, and actual changes. The goal of auditing is to be able to explain “who authorized, what was executed, and what the result was,” rather than infinitely preserving all sensitive raw text.

    9. Evaluation and Deployment: Prove Reliability First, Then Expand Autonomy

    Work agent evaluation should focus on both results and processes. Merely tracking answer satisfaction cannot detect repeated operations, unauthorized access, and unnecessary tool calls.

    It is recommended to focus on the following metrics:

    • Whether task deliverables meet acceptance criteria.
    • Whether tool calls and business changes are correct.
    • Frequency of unsupported conclusions and missing information.
    • Where and why manual intervention occurs.
    • Total time from goal submission to acceptance completion.
    • Resource consumption and failure recovery costs per task.
    • Occurrences of permission violations, sensitive information leaks, and duplicate executions.

    Test sets should cover scenarios like normal tasks, missing information, insufficient permissions, tool timeouts, source conflicts, and malicious inputs. After offline evaluation passes, controlled pilot runs should be conducted, as data distributions and exception combinations in real business are usually more complex.

    Deployment can be divided into three phases. Phase one provides read-only retrieval, analysis, and draft generation without directly modifying business data. Phase two executes limited operations after manual approval to verify permissions, auditing, and recovery mechanisms. Phase three opens higher levels of automation only for low-risk, clearly defined, verifiable, and recoverable tasks.

    For professional work in fields like finance and law, agents can assist with material organization, difference checking, and draft creation, but generated content should not be directly used as the final professional judgment. Important conclusions need to be checked against evidence and reviewed by personnel with corresponding responsibilities.

    10. Conclusion: Trusted Execution Matters More Than Feature Count

    The long-term value of enterprise work agents comes from the synergy of goal understanding, tool execution, state management, and governance mechanisms, not just improvements in model capabilities.

    A truly usable system should be able to answer four questions: Why was this step executed? Is there authorization to execute it? How is successful execution confirmed? How to stop or recover after failure?

    When task contracts are clear, tool boundaries are well-defined, memory sources are reliable, and approval responsibilities are traceable, agents can gradually move from assisting in content generation to reliably taking on work. Enterprises should build these capabilities around verifiable business benefits, rather than making “autonomous operation” itself the deployment goal.