From Q&A Assistants to Proactive Execution: Rebuilding the Capability Stack of On-Device AI Systems

    This article breaks down the architecture of a Proactive On-Device Task System, a general model for AI assistants that deliver results rather than text. It explains the five capability layers—intent understanding, task orchestration, cross-app operation, context and memory, and security and compliance—along with the three shifts required to move from passive to proactive behavior: event-driven triggering, interruptible and rollback-safe failure handling, and end-to-end evaluation metrics. It also covers a practical cloud-device deployment architecture, a phased rollout strategy, and common pitfalls to avoid.

    1. The Starting Problem: Why a Q&A Assistant Is Not Enough

    Over the past few years, the dominant interaction model for mainstream AI assistants has been “the user asks, the model answers.” This works well for information retrieval and text generation, but it has a structural flaw: the model outputs content, not results. After receiving a set of instructions, users still have to switch between multiple apps themselves, manually copying, pasting, filling in forms, and confirming. The real efficiency loss does not happen at the “understanding” stage; it happens at the “execution” stage.

    A mobile ecosystem leader once remarked at a developer event that the industry is moving from an operating system to an intelligent system. The technical meaning of that statement is worth unpacking: an operating system has traditionally handled resource scheduling and process management, whereas an “intelligent system” needs to add an intent scheduling layer on top of resource scheduling—mapping a user’s natural-language goal into a continuous sequence of actions across apps and web pages, while handling exceptions throughout execution.

    This article does not discuss any specific vendor’s product. Instead, it abstracts this class of solutions into a general technical architecture: a Proactive On-device Task System. It consists of five layers, covered one by one below.

    2. Capability Layers: The Five Tiers of a Proactive Task System

    2.1 Intent Understanding Layer

    The input is natural language or speech; the output is a structured task goal. Engineering work here typically involves three things: intent classification (is this a query, an operation, or a composite task), slot extraction (parameters such as time, location, amount, and contact), and ambiguity resolution (when a user says “book me the cheapest flight to Shanghai tomorrow,” the system must determine the ranking basis for “cheapest” and the timezone that applies to “tomorrow”).

    The key metric for this layer is not single-point accuracy but the executable rate: what proportion of intents can be picked up by the downstream executor. It is advisable to introduce a confidence threshold here and proactively ask a clarifying question when confidence falls below it, rather than executing blindly.

    2.2 Task Orchestration Layer

    This layer breaks the goal into behavior nodes expressed as a directed acyclic graph (DAG). For example, “organize last week’s invoices and file an expense report” is decomposed into: locate the receipt sources → extract amounts and dates → verify invoice authenticity → fill in the expense form → submit for approval. The orchestration layer must handle three classes of problems: dependencies, retry on failure, and rollback after partial success.

    A simplified orchestration description could look like this:

    1. {
    2. "task": "monthly_report",
    3. "nodes": [
    4. {"id": "n1", "action": "collect", "source": "local_files", "retry": 2},
    5. {"id": "n2", "action": "transform", "depends_on": ["n1"]},
    6. {"id": "n3", "action": "fill_form", "depends_on": ["n2"], "on_fail": "ask_user"}
    7. ],
    8. "policy": {"max_steps": 30, "human_confirm_before_submit": true}
    9. }

    Here, human_confirm_before_submit is the core switch of the safety design: for irreversible actions such as submitting, paying, or deleting, control must return to the user for confirmation.

    2.3 Cross-App Operation Layer

    This is the most difficult part of the whole approach from an engineering standpoint. The system needs the ability to understand screen semantics: recognizing the type, hierarchy, and interactivity of on-screen controls, then driving execution through a unified action abstraction (tap, input, swipe, wait, assert). A common industry approach is to build dual-channel recognition based on a “UI element tree plus visual features,” falling back to pure visual localization when the control tree is missing or unavailable.

    Stability comes from two design choices. First, action idempotence: repeated execution produces no side effects. Second, state assertions: after each step, verify that the page has reached the expected state; otherwise trigger replanning instead of continuing blindly.

    2.4 Context and Memory Layer

    Proactive execution depends on long-term memory: the user’s frequently used addresses, preferred ranking rules, and historical task templates. The recommended engineering approach is tiered storage—short-term context kept within the session, user preferences stored in a structured form, and task templates under version control. Memory must have eviction and correction mechanisms; otherwise, wrong preferences get amplified repeatedly.

    2.5 Security and Compliance Layer

    This is a cross-cutting capability spanning the four layers above. It includes least-privilege permissions (requesting only the permissions required for the current task), masking of sensitive fields, audit logs of operations, and explainable output (telling the user which steps were taken and on what basis).

    3. Three Key Shifts from Passive to Proactive

    The first is the change in the trigger mechanism. A passive assistant is explicitly woken by the user; a proactive system also needs event-driven triggers, such as time-based, location-based, and notification-based triggers. Event triggers must be paired with rate limiting and quiet hours, or they will quickly burn through user trust.

    The second is the change in failure handling. A failed Q&A simply means an unsatisfactory answer, whereas a failed execution can cause real loss. A proactive system therefore needs a three-part kit: interruptible, rollback-capable, and takeover-ready. Tasks can be paused at any time, side effects can be undone, and control is handed smoothly back to the user when something goes wrong.

    The third is the change in evaluation. Text tasks are measured by satisfaction; execution tasks need end-to-end completion rate, average number of interventions, and reduction in average time spent. During a staged rollout, it is worth using stratified sampling to compare the completion rates of a “fully manual” path against a “system-assisted” path.

    4. Deployment Architecture and Cloud-Side Support

    A deployable system is typically built on device-cloud collaboration: the device handles screen perception and action execution to keep latency low and preserve privacy, while the cloud handles model inference, task template distribution, log aggregation, and monitoring and alerting. General-purpose capabilities from Baidu AI Cloud can be combined by category: a container platform to host inference services and handle elastic scaling, object storage to hold task templates and audit archives, a message queue to distribute and buffer task events, and log and monitoring services for full-chain observability.

    For the release strategy, a three-step approach is recommended: start with shadow mode (generate execution plans without actually executing them), then a small-traffic staged rollout (limited to specific task types and user groups), and finally gradual expansion. Each step needs a clear rollback switch.

    5. Common Pitfalls

    The first pitfall is chasing full automation. A genuinely usable system applies “automatic” to repetitive and reversible steps, and reserves “confirmation” for critical nodes. The second is ignoring execution drift caused by UI changes; a solution without state assertions becomes extremely expensive to maintain once it ships. The third is leaving memory ungoverned, which turns personalization into “frozen errors.” The fourth is optimizing the model while neglecting orchestration, which leaves the end-to-end completion rate stuck.

    6. Conclusion

    Moving from a Q&A assistant to a proactive task assistant is essentially about pushing intelligence from content generation to result delivery. For developers, the real moat lies not in single-point model capability but in four engineering foundations: task orchestration, screen semantic understanding, failure recovery, and security boundaries. Build those solidly, then draw on general-purpose cloud products for observability and elasticity, and you can create an intelligent system that users are willing to trust with real tasks.