Always-On Proactive AI Agents: Architecture and Secure Implementation
This article explains how always-on proactive AI agents differ from request-response assistants, why continuous operation changes the security and control requirements, and how to design them for real deployments. It covers action tiers for automation versus human approval, a six-layer architecture with an execution loop, isolated browser VMs and sandboxes, governance for memory, skills, and connectors, cross-device state consistency, observability, and a phased rollout approach.
1. From Passive Q&A to Always-On Proactivity: Technical Positioning and Core Pain Points
Traditional conversational assistants usually follow a short “user asks, model answers” loop and produce almost no behavior when there is no request. For professionals and small teams facing information overload, the real problem is often not a lack of questions to ask, but a lack of time to continuously track, summarize, judge, and move work forward. The core change with an always-on proactive agent is that it can run continuously in the background, identify to-dos, anomalies, and opportunities based on context within the user’s authorized scope, and advance work as task units, requesting human confirmation when necessary.
Typical tasks for this type of system include daily briefing generation, application status monitoring, dashboard building, meeting scheduling, and financial forecasting. Compared with single-turn Q&A, the technical difficulty expands from “generation quality” to “continuous operation quality”: whether tasks can be resumed, whether actions can be audited, whether permissions can be constrained, whether errors can be rolled back, and whether costs can be controlled. Especially in a limited preview phase, products are usually opened only to selected subscribers and retain human approval boundaries. This shows that always-on agents must prioritize security and controllability in deployment, rather than pursuing automation level alone.
2. Capability Boundaries: Which Actions Can Be Automated and Which Require Approval
An always-on proactive agent needs a clear action-tier model. A common classification is:
- Read-only sensing actions: reading calendars, messages, business data, and application status to generate summaries or alerts. These actions carry lower risk, but they still need to follow the principle of least privilege.
- Low-risk write actions: creating drafts, generating to-dos, building dashboard drafts, and proposing candidate meeting times. These can be executed automatically but should support undo.
- Outbound and commitment actions: sending messages, publishing content externally, signing documents, making payments, and deleting data. These actions have external impact or are irreversible, so human confirmation must be introduced.
- High-risk financial and account actions: securities trading, transfers between accounts, and similar operations should remain unavailable by default even when authorization exists, so that model judgment is not directly converted into financial risk.
Therefore, system design should not conflate “can call a tool” with “can execute directly.” Tool-calling capabilities can be broadly available, but execution policy must be decided by a policy engine independent of the model. The model proposes plans and candidate actions, while the policy engine determines whether approval is required, who the approver is, whether dual approval is needed, and whether the request expires on timeout.
3. Overall Architecture: Six Layers and One Closed Loop
A deployable always-on proactive agent typically includes the following layers:
- Access layer: provides mobile, desktop, and web entry points for user commands, approval results, and status queries.
- Trigger and scheduling layer: supports scheduled triggers, event triggers, and conditional triggers, and handles task queuing, priority, and concurrency control.
- Orchestration layer: uses a large model for intent understanding, task decomposition, plan generation, and tool selection, but plans must pass policy validation.
- Execution layer: runs browser sessions, script tasks, data queries, and connector calls in isolated environments.
- Memory and skill layer: stores user preferences, historical tasks, skill templates, and connected-application authorizations, and supports inheritance across sessions.
- Governance and observability layer: handles permissions, approvals, auditing, logs, metrics, tracing, and cost control.
Its operating loop can be summarized as: trigger, context assembly, plan generation, policy validation, tool invocation, human approval, execution, result reporting, and memory update. The key to this loop is not unlimited model autonomy, but ensuring that every step has state, boundaries, records, and recoverability.
loop:event = wait_for_trigger()ctx = assemble_context(event, memory, connectors)plan = model.plan(ctx)decision = policy.evaluate(plan.actions)if decision.requires_approval:approval = request_human_approval(plan, decision)if not approval.granted: continueresult = sandbox.execute(plan.actions, scope=decision.scope)audit.record(event, plan, decision, result)memory.update(result.summary)notify_user_if_needed(result)
4. Isolated Execution: Dedicated Browser VMs and Sandbox Boundaries
Always-on agents need to access web pages, applications, and data sources, but they should not run directly on the host environment. A reasonable approach is to assign isolated execution environments to tasks, such as dedicated browser VMs or container sandboxes, and to restrict network egress, file systems, and credential scope. Browser VMs can host web operations that require login state, while container sandboxes can host data processing and script tasks. Both should support snapshots, destruction on timeout, and resource quotas.
Isolation design should cover at least four points. First, credentials must not enter the model context; connectors should call through a gateway proxy. Second, network egress should be controlled by domain and protocol allowlists. Third, the file system should use temporary mounts and read-only inputs. Fourth, environments should be reclaimed after tasks end while audit records are retained. In this way, even if the model produces an incorrect plan or encounters prompt injection, the impact can be limited to the sandbox and the authorized scope.
5. Governance for Memory, Skills, and Connectors
Always-on agents usually inherit account-level memory, a skill library, and connected applications. Memory should distinguish short-term task context, long-term preferences, and sensitive information. Sensitive information should be encrypted and stored with restricted read access. Skills should be versioned and support enablement, disablement, and rollback. Connectors and plugin ecosystems should be integrated through a unified gateway, authorized by application, data domain, and action type, and support revocation by the user at any time.
The governance focus should be “scope” rather than “quantity.” A large number of connectors does not equal high automation value; instead, it expands the attack surface. It is advisable to define an action allowlist, data-field allowlist, and invocation rate limit for each connector; add approval policies for write operations; and add desensitization and purpose limitation for cross-application data flows.
6. Cross-Device Continuous Operation and State Consistency
When supporting mobile, desktop, and web clients, the system needs to solve state synchronization between background tasks and foreground interactions. Common practices are: task state is authoritative on the server, and clients only subscribe to changes; push notifications carry only summaries and approval entry points; execution uses idempotency keys to avoid duplicate actions; and long-running tasks support checkpoint resumption and timeout compensation. For actions that require human approval, approval should expire automatically on timeout, preventing old plans from being executed incorrectly after context changes.
7. Observability and Engineering Recommendations
Always-on agents should monitor at least task trigger volume, plan generation latency, tool-call success rate, approval backlog duration, human rejection rate, abnormal termination rate, and per-task cost. Logs should record trigger source, plan summary, policy decision, approver, execution result, and rollback status. For cloud deployment, container platforms can host execution sandboxes, message queues can decouple triggers from execution, object storage can hold audit attachments, and logging and monitoring services can provide unified observability; on cloud platforms such as Baidu AI Cloud, these general-purpose capabilities can be used to build the components described above.
A practical rollout should proceed in stages: first open read-only briefing and monitoring tasks, then introduce low-risk writes and draft generation, and finally pilot outbound actions and process advancement under strong approval controls. In a limited preview phase, it is not appropriate to cover the complex permission systems of large enterprise tenants. Instead, the priority should be validating the permission model, audit loop, and cost boundaries for individuals and small teams. Only by breaking “proactive execution” into task units that can be approved, audited, and rolled back can always-on proactive agents create sustainable value in real business operations.
