Unattended Execution for System-Level Mobile Agents

    System-level mobile agents can turn screen understanding, intent, system capabilities, and audit trails into one execution chain without extra hardware. This article explains what unattended operation means inside pre-authorized bounds, then covers capability layers, least privilege, runtime controls, app collaboration, evaluation, and a practical rollout path.

    A system-level agent lets a phone understand the interface, interpret intent, call system capabilities, and leave an audit trail as one execution chain, without relying on external hardware as a substitute. Unattended operation does not mean the device acts arbitrarily while the user is unaware. It means completing predictable actions inside a pre-authorized task boundary—on the lock screen, with weak interaction, or in the background—and stopping automatically when an action would exceed authority, the request is ambiguous, or execution fails.

    Problem Definition: Replace the Device or Strengthen the System

    The industry commonly follows two paths. One uses a new device form to handle conversation and sensing. The other pushes intelligent capability down into system services on the phone people already use. The second path fits daily life more closely: communication, payments, photos, calendar, sensors, and notifications already live on the same device. What is missing is stable orchestration across apps, not another screen.

    Unattended operation has to answer four engineering questions. Can the task be described formally? Can the system capabilities it needs be granted with least privilege? Is every step observable and interruptible? Can state be recovered after failure? A foreground chat bot can hide these issues behind the conversation UI. Once the agent runs on the lock screen or in the background, permissions, battery, network, and race conditions appear together.

    Capability Layers

    Split a system-level agent into five layers. Layers should communicate only through explicit contracts.

    The perception layer handles screen structure, notifications, sensors, and time context. Screen understanding should prefer structured sources such as the accessibility tree and window hierarchy. Vision is a supplement, not the only source of truth—pixels should not be treated as the sole facts. Notifications must be distinguished by category, source app, and whether the user has already read them. Not every push is a to-do.

    The understanding layer turns natural language or rule templates into a task graph: goal, constraints, deadline, allowed capabilities, and forbidden actions. The same sentence can mean different things under different accounts or time zones. The interpretation must carry a context snapshot so it can be reviewed later.

    The planning layer emits a bounded set of steps, not an open-ended chain. Each step states preconditions, expected observations, and a timeout. There should be a step limit; exceeding it is a planning failure and should request human confirmation. Planning must handle branches explicitly: network unavailable, app not installed, a verification code appears, or balance or permission is insufficient.

    The execution layer calls only public system capabilities: intent navigation, notification actions, calendar and reminders, the clipboard only with a separate grant, and cross-app data through system share or content-provider interfaces. Do not simulate unauditable global taps to bypass permissions. If the UI must be operated, limit that to apps and screens the user has already authorized, and record control identifiers rather than coordinates so the flow is less brittle when resolution or layout changes.

    The governance layer runs through the whole path: identity, authorization scope, validity period, audit logs, circuit breaking, and rollback. Automation without governance only moves risk from human mistakes to unexplained automatic mistakes.

    Permissions and Least Privilege

    Trust in unattended operation comes from authorization granularity, not from a model claiming it will be careful.

    Authorize by capability, not with a blanket “the agent may do anything.” Typical capabilities include reading a specified notification category, creating calendar events, starting a saved navigation route in a specified time window, organizing one album folder, and drafting a message that is not sent by default. Sending, paying, deleting, and granting access to a third party should require a second confirmation by default, or run only inside a whitelist template the user wrote in advance.

    Authorization needs a time window and a scenario. For example: “weekdays from 9:00 to 18:00, and only while connected to a known network, draft meeting notes.” If the scenario does not match, the execution layer must not relax the rule. It should fail outright.

    Sensitive screens need policy blocks. Password fields, payment confirmation, biometrics, and permission pages in system settings must not enter an automatic tap path. Even if the model “understands the button,” governance should refuse.

    Data leaving the device must be configurable. Understanding and planning that can finish on device should not upload the full text. When cloud inference is required, send only the fragments the task needs, and state the retention period. Object storage and log services should keep only de-identified task identifiers, step results, and error codes—not full screen contents—unless the user explicitly enables short-lived capture for troubleshooting.

    Runtime for Unattended Operation

    A practical runtime usually includes a scheduler, an executor, an observer, and a circuit breaker.

    The scheduler accepts three kinds of triggers: time, system events, and conditions the user wrote in advance. Events should be debounced so a notification storm does not cause repeated runs. The same resource—for example, one calendar day or one conversation—needs a mutual-exclusion lock so two tasks do not interleave writes.

    The executor advances step by step and compares observations before and after each step. The expected result is “a calendar event with the specified title exists,” not “I tapped save.” If observation fails, retry a limited number of times. If it still fails, compensate: roll back partial artifacts this task created, or mark the task for human handling.

    The circuit breaker tracks consecutive failures, unexpected navigation, and battery. Pause non-critical tasks when battery is too low, temperature is too high, or the user is on a call or screen recording. After a trip, keep only local state. Do not retry forever in the background.

    A neutral, vendor-agnostic task description can look like this:

    {
    “goal”: “Turn tonight’s meeting into one calendar draft”,
    “constraints”: [“do_not_send”, “no_payment”, “work_hours_only”],
    “capabilities”: [“read_notification_category”, “write_calendar_draft”],
    “steps_max”: 6,
    “timeout_sec”: 120,
    “on_failure”: “rollback_and_notify”
    }

    This is not an interface for any particular platform. It shows that the task contract should be machine-readable: goal, constraints, capabilities, step limit, timeout, and failure policy written together so the executor cannot improvise.

    Collaboration with Apps

    System-level does not mean bypassing apps. The stable approach is for apps to expose declarative actions: create a draft, query a read-only summary, confirm whether something is already done. The system agent should prefer those actions. Only when an action is missing should it fall back to controlled UI operation, and it should lower the automation level—for example, only producing a card that waits for confirmation.

    Apps should provide idempotency identifiers. Triggering the same task again should not create multiple calendar entries or messages. Drafts and formal submission must stay separate. Unattended operation stops at the draft by default.

    Completion feedback should be short. When a task ends, one local notification should say what was done, what was not done, and where to undo it. If the user turns off further authorization for that task, the change should take effect immediately, including steps already queued.

    Quality, Security, and Evaluation

    Evaluation cannot stop at whether the dialogue feels smooth. It has to check whether the task finished inside its constraints.

    Functional set: given the allowed actions, did the agent reach an observable result? Did it exceed authority? Did it stop correctly on a verification code, a login wall, or empty data?

    Robustness: after font-size changes, dark mode, orientation changes, and app version upgrades, does structured targeting still work? If a coordinate script’s failure rate rises, degrade rather than retry harder.

    Resources: background tasks need a budget for power, traffic, and wakeups. Unattended operation that depends on continuous screenshots and always-on inference will be unacceptable on battery and heat. Prefer event-driven execution. Run long inference on demand, and allow it to be deferred.

    Security: prompt injection can arrive in notifications, web pages, and message bodies. The executor must not treat “ignore the previous limits” inside external text as a system instruction. External content is data only. Policy follows the local task contract.

    Privacy: tier the logs. Default logs contain only a task id, capability name, result code, and duration. Screen text, contacts, and location stay out of persistent logs by default. Troubleshooting samples need a separate switch, a short lifetime, and a way to clear them locally.

    Human sampling: keep sampled review for high-risk capabilities, and track false-trigger rate and undo rate. If the undo rate stays high, the authorization wording or trigger conditions are unclear. Change the task template rather than giving the model more freedom.

    Rollout Steps

    Start with one low-risk closed loop, such as “from a read meeting notification, create a calendar draft and do not send it.” Write down the trigger, capabilities, prohibitions, and rollback. Connect observation with structured perception first, then decide whether a cloud model is needed for extra classification or summarization. The cloud should carry general inference and elastic compute. Authorization decisions and final execution stay on device.

    Second, add audit and undo. The user should see step results in a notification and undo that draft in one action. Do not widen the action set until undo exists.

    Third, consider cross-app work. Each new capability needs matching tests and circuit-breaker thresholds. Do not let one “universal agent” touch messages, payments, and system settings at the same time.

    Fourth, set a version policy. App UI change is normal. Action interfaces last longer than visual scripts. Where a stable interface is not available, keep human confirmation.

    Boundaries and Expectations

    Unattended operation fits repeated work that can be verified and rolled back. It does not fit final confirmation that needs value judgment, a legal commitment, or a movement of funds. The value of a system-level agent is to orchestrate capabilities the phone already has into an auditable flow, and to stop when something is abnormal. With least privilege, observable steps, and rollback on failure, automation is an engineering capability you can ship. Otherwise it only moves uncontrolled actions from the user’s hands to the model’s.