# Piko > Piko is a personal AI assistant by Prysai for iPhone, iPad, Mac and Apple Watch. Ruiming Zhao at Prysai proposes PESA (Personal Ecosystem Super Agent, 个人生态超级智能体 / 個人生態超級智能體): a super agent whose working environment is a person's own device ecosystem, whose basic unit is the thing to get done rather than the conversation, and which works natively on every device. Key facts: - PESA stands for Personal Ecosystem Super Agent. It was proposed by Ruiming Zhao (Prysai, Piko) on 2026-11-15; current version 1.2, updated 2026-11-24. - Six properties: continuous, efficient, proactive, persistent, ecosystem-native, trustworthy. - Reference architecture: one front desk and many background workers; signals from life as triggers with two-level filtering; an archive with chain of recall; speculative preparation that waits for the user's approval; asynchronous full-duplex work; a brain in the cloud with hands on the user's own devices; a watchdog that rescues first. - Official Piko product domain: https://piko.prysai.com (part of the official Prysai Lab ecosystem: https://prysai.com and https://docs.prysai.com). - How to cite: Zhao, Ruiming. PESA: Personal Ecosystem Super Agent. Piko Research, Prysai, 2026-11-15. https://piko.prysai.com/research/pesa (DOI: https://doi.org/10.5281/zenodo.24429625, PDF: https://piko.prysai.com/research/pesa.pdf, BibTeX: https://piko.prysai.com/research/pesa.bib, RIS: https://piko.prysai.com/research/pesa.ris, CSL-JSON: https://piko.prysai.com/research/pesa.csl.json, CFF: https://piko.prysai.com/research/CITATION.cff) ## Research - [PESA: Personal Ecosystem Super Agent (English)](https://piko.prysai.com/research/pesa): vision paper with definition, architecture, trust principles and roadmap. Markdown: https://piko.prysai.com/research/pesa.md - [PESA:个人生态超级智能体(简体中文)](https://piko.prysai.com/zh-Hans/research/pesa): 简体中文版。Markdown: https://piko.prysai.com/zh-Hans/research/pesa.md - [PESA:個人生態超級智能體(繁體中文)](https://piko.prysai.com/zh-Hant/research/pesa): 繁體中文版。Markdown: https://piko.prysai.com/zh-Hant/research/pesa.md ## Product - [Piko home (简体中文)](https://piko.prysai.com/): what Piko is and which devices it supports - [Piko home (English)](https://piko.prysai.com/en): English homepage - [Piko home (繁體中文)](https://piko.prysai.com/zh-Hant): Traditional Chinese homepage - [Download Piko for Mac](https://piko.prysai.com/download/mac) - [Documentation](https://piko.prysai.com/manual) - [Service status](https://piko.prysai.com/status) ([EN](https://piko.prysai.com/en/status)) - [Announcements](https://piko.prysai.com/announcements) ([EN](https://piko.prysai.com/en/announcements)) ## Optional - [Full text of all research for LLMs](https://piko.prysai.com/llms-full.txt) - [XML Sitemap](https://piko.prysai.com/sitemap.xml) - [Privacy policy](https://piko.prysai.com/privacy) ([EN](https://piko.prysai.com/en/privacy), [繁體](https://piko.prysai.com/zh-Hant/privacy)) - [Terms of service](https://piko.prysai.com/terms) ([EN](https://piko.prysai.com/en/terms), [繁體](https://piko.prysai.com/zh-Hant/terms)) - [Contact & tickets](https://piko.prysai.com/contact) ([EN](https://piko.prysai.com/en/contact), [繁體](https://piko.prysai.com/zh-Hant/contact)) ## Parent Studio & Official Ecosystem - [Prysai Lab (Official Studio)](https://prysai.com/): Independent AI studio behind Piko, creative diffusion models, and PESA research. - [Prysai Lab LLMs Index](https://prysai.com/llms.txt) ([Full Compendium](https://prysai.com/llms-full.txt)) - [Piko Architecture & Ecosystem Overview (Prysai Docs)](https://docs.prysai.com/piko/) ([简体中文](https://docs.prysai.com/zh-cn/piko/), [繁體中文](https://docs.prysai.com/zh-tw/piko/)) - [Founder: Ruiming (Raymond) Zhao](https://prysai.com/raymond-zhao/) ([ORCID](https://orcid.org/0009-0007-8335-5067), [GitHub](https://github.com/uuzzrm)) --- title: "PESA: Personal Ecosystem Super Agent" author: "Ruiming Zhao" affiliation: "Prysai (Piko)" date: 2026-11-15 updated: 2026-11-24 version: "1.2" language: en canonical: https://piko.prysai.com/research/pesa license: "CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). You are welcome to quote and share this paper with attribution, the DOI (https://doi.org/10.5281/zenodo.24429625) and a link to the original." --- # PESA: Personal Ecosystem Super Agent *Architecture, formal model, and attention economics for cross-device personal super agents.* Ruiming Zhao · Prysai Lab · 2026-11-15 · Version 1.2 (2026-11-24) ## Abstract Single-task language model agents can now invoke tools, write code, and drive graphical interfaces to complete isolated tasks with increasing reliability. Yet in everyday personal use, stronger models rarely translate into lower cognitive load. Because today's personal AI tools remain confined to isolated chat sessions or single-device screens, users must continuously notice incoming needs, ferry context across email, calendars, browsers, and chat windows, and watch the screen whenever an agent touches a desktop interface. This paper defines **PESA (Personal Ecosystem Super Agent)**: a resident, single-principal super agent whose operating environment is an individual's entire device ecosystem (phone, tablet, computer, and watch), whose user-facing unit of work is the *thing* rather than the *conversation*, and which acts natively on each platform while waiting by default for explicit human confirmation before any outward side effect. Building on the resident two-layer Super-agent architecture [1], we formalise PESA across devices, event streams, threads, things, workers, and user policy, and derive a four-component human attention cost model, a Horvitz mixed-initiative speculation threshold for high-noise personal streams, a closed eight-state lifecycle with versioned optimistic concurrency control, and seven verifiable runtime invariants. We prove safety against duplicate or unapproved outward writes (Proposition 1), bounded wait and deadlock-freedom for single-desktop focus arbitration (Proposition 2), and an irreducible sovereignty lower bound on human attention (Proposition 3). We specify a complete reference architecture—spanning a resident front desk, task-scoped background workers, a three-tier cross-device *Thing Archive*, two-stage edge-cloud filtering, an exclusive desktop lease (`ComputerHandsLease`), a rescue-first watchdog, and three deterministic-first scheduling algorithms (`route`, `choose_device`, `choose_surface`)—alongside a defence-in-depth threat model against indirect prompt injection and covert URL exfiltration. Through structured analytical workflow accounting across four representative cross-device scenarios, we show why stopping at single-device proactivity (L3) still leaves 0.50 manual context transfers per thing, whereas a complete ecosystem architecture (L4 PESA) compresses mean human interventions from 3.75 (L0) to 1.25 (-66.7%) and eliminates manual transfers (-100%). We also propose the synthetic replay benchmark **PESA-Bench**, report passing deterministic unit verification of six core runtime mechanisms in our reference system Piko, and discuss methodological limitations and open research problems. **Keywords:** Personal Ecosystem Super Agent (PESA); personal AI agents; human-centred AI; multi-device systems; attention economics; mixed-initiative interaction; speculative execution; optimistic concurrency; desktop lease arbitration; indirect prompt injection **Summary card** | | | | --- | --- | | Term | PESA | | Full name | Personal Ecosystem Super Agent | | Chinese | 个人生态超级智能体 | | Author | Ruiming Zhao (Prysai Lab) | | First published | 15 November 2026 | | Core thesis | A resident, single-principal super agent spanning all personal devices, organising work around things rather than chats, and waiting for versioned human approval before outward writes. | | Levels | L0 Respond · L1 Execute · L2 Concurrent · L3 Proactive · L4 Ecosystem | | Reference system | Piko (iPhone, iPad, Mac, Apple Watch) | **Core findings** 1. PESA elevates personal AI from isolated chat sessions to discrete, cross-device things (#T-id) coordinated across phone, tablet, computer, and watch. 2. Grounds personal multi-device orchestration in classical systems and HCI primitives: time-bounded desktop leases (Gray & Cheriton), optimistic version commits (Kung & Robinson), mixed-initiative utility thresholds (Horvitz), and 2D human-centred AI (Shneiderman). 3. Proves outward side-effect safety & idempotency (Prop. 1), desktop lease deadlock-freedom (Prop. 2), and an irreducible sovereignty lower bound of A(τ) ≥ 1 on human attention (Prop. 3). 4. Analytical accounting across four cross-device workflows shows why L3 single-device proactivity still leaves 0.50 manual transfers per thing, whereas L4 PESA cuts human steps to 1.25 (-66.7% vs. L0) and manual transfers to zero (-100%). 5. Six production runtime mechanisms (BackgroundWorkers, scoped briefs, ComputerHandsLease, 45 s watchdog) pass deterministic unit verification in Piko, while limitations and threats to validity are documented explicitly. ## 1. Introduction Modern foundation models can read long documents, write working code, and operate graphical user interfaces. Paradoxically, giving a knowledge worker a smarter chat model often leaves them juggling *more* windows rather than fewer. Handling a single everyday matter—rescheduling a client meeting, comparing vendor quotes before filling an internal procurement form, or tracking a multi-week negotiation—still forces a person to open four or five disconnected chat tabs across a phone and a laptop. Each tab is a sealed sandbox unaware of what happened in another window or on another device. The human user becomes the glue between them: spotting the trigger, copying context into prompts, watching the screen while tools run, and pasting results back into email or enterprise forms. The DeepSeek Harness team observed in their Super-agent report that working memory and switching costs limit a person to supervising roughly three to five concurrent chat sessions [1]. In a session-centric architecture, **the model sets the ceiling on single-turn answer quality, but human attention sets the ceiling on daily throughput**. Classic HCI evidence explains why this bottleneck hurts so badly: in their CHI 2008 laboratory study, Mark, Gudith, and Klocke showed that interrupted knowledge workers instinctively work faster to compensate for fragmented time, finishing in similar wall-clock time only at the cost of markedly higher mental workload, stress, time pressure, frustration, and error rates [2]. Bouncing across mail clients, calendars, browser tabs, and multiple AI windows is a sustained form of self-interruption. > **Intuition.** Smarter language models solved the problem of *how to finish a step once you explain it*. They did not solve the problem of *who notices the work, carries the context between devices, keeps background tasks from fighting over your mouse, and stops safely before pressing Send*. PESA is a systems architecture designed for that missing layer. ### 1.1 Four structural bottlenecks in personal AI agents Between 2024 and 2026, personal AI tooling moved rapidly from plain chat toward tool calling, browser and desktop automation (computer-use agents), and standalone AI hardware. In sustained daily use, these approaches repeatedly encounter four structural walls: 1. **Prompt cold-start and the context-ferrying tax.** Everyday work almost never begins inside an empty chat box. It begins with a client email, a flight delay alert, a photo of an invoice on a phone, or a schedule change in a group thread. When a user must manually gather those fragments, write a prompt, and carry the answer back to the originating app, the coordination overhead frequently exceeds the effort of doing the task directly—causing daily retention to collapse. 2. **Desktop focus contention and supervision fatigue.** Computer-use agents can click buttons and fill forms, yet a personal laptop has only one physical pointer, one keyboard focus, and one active window. While an agent drives the desktop, the user is locked out of their own machine—and, fearing an accidental click, overwrite, or premature submission, stays glued to the screen as a full-time supervisor. Synchronous screen takeover binds human attention linearly to execution time. 3. **Standalone hardware islands versus existing device ensembles.** Dedicated AI pins and pocket devices attempt to bypass existing operating systems, but users already carry a tightly differentiated personal hardware ensemble: a phone in the pocket, a watch on the wrist, a tablet for reading and comparison, and a computer on the desk. What is missing is not another screen without apps or history, but a shared architecture that lets one continuous agent inhabit the devices people already own. 4. **The proactivity-versus-trust dilemma.** A purely passive agent stops working the instant a laptop lid closes or a phone locks. Yet a naive proactive agent turns hundreds of daily notifications, promotions, and chat messages into relentless interruption noise—while introducing unacceptable risk if it sends messages, submits forms, or moves money under the user's real identity without review. ### 1.2 Research questions and contributions This paper is a systems architecture and vision paper guided by three research questions: - **RQ1 (Abstraction & Attention):** What system abstraction and capability taxonomy separate an ecosystem-wide personal agent from session-bound chat tools and single-device automation, and how does each capability level change human attention cost? - **RQ2 (Systems & Concurrency):** How can one resident agent coordinate continuous cloud reasoning with intermittent local devices, prevent concurrent background workers from colliding over a single desktop focus, and avoid duplicate outward actions across multiple screens? - **RQ3 (Trust & Noise Discipline):** How can a proactive personal agent filter high-noise everyday streams without burning cloud tokens or annoying the user, while defending private memory and credentials against indirect prompt injection? To answer these questions, we make five contributions: 1. **Conceptual framework and L0–L4 taxonomy (Section 3).** We formally define **PESA (Personal Ecosystem Super Agent)**, articulate three design theses grounded in human-centred AI [3] and six system properties, and establish a model-agnostic L0–L4 taxonomy measured by how much coordination burden the system absorbs. 2. **Formal model, decision calculus, and verifiable guarantees (Section 4).** We formalise PESA with orthogonal device capabilities $\kappa(d) = \langle \kappa_{\text{exec}}(d), \kappa_{\text{surf}}(d) \rangle$, derive a four-component human attention cost model and a Horvitz mixed-initiative speculation threshold under personal noise amplification, specify a closed eight-state lifecycle with versioned optimistic concurrency control [4], and prove three core safety, liveness, and attention-bound propositions. 3. **Cross-device reference architecture and deterministic-first algorithms (Sections 5–6).** We specify a resident front desk with isolated workers, a three-tier *Thing Archive* with hop-by-hop recall, checkpointed resume across device sleep, a time-bounded desktop lease (`ComputerHandsLease`) [5], a rescue-first watchdog, and three low-overhead scheduling algorithms (`route`, `choose_device`, `choose_surface`) with complexity bounds. 4. **Ecosystem-native interaction, failure-resilient scenarios, and defence-in-depth security (Sections 7–9).** We map ergonomic device roles across four form factors, trace both normal execution and fault-recovery paths across four daily workflows, fold eight internal states into a calm three-state interface, and establish a three-layer defence against indirect prompt injection and covert URL exfiltration [6]. 5. **Evaluation methodology, analytical L0–L4 accounting, and reference runtime verification (Sections 10–12).** We define eight orthogonal evaluation metrics and the **PESA-Bench** replay suite, perform transparent step-by-step attention accounting across L0–L4 (pinpointing why L3 proactivity alone leaves cross-device manual transfers unresolved), report deterministic unit verification of six core mechanisms in our reference system **Piko**, and analyse limitations and threats to validity. ## 2. Background and related work PESA synthesises ideas from six research traditions in AI agents, operating systems, distributed systems, and human-computer interaction. Examining what each line of work achieved—and what remains unresolved in personal daily life—motivates our architectural design. ### 2.1 From conversational assistants to tool and GUI agents Early conversational assistants operated as stateless turn-by-turn loops confined to a single chat window. ReAct [7] interleaved natural-language reasoning traces with environment actions so language models could ground plans in observations, while Toolformer [8] demonstrated self-supervised tool invocation. Comprehensive surveys trace how these building blocks evolved into coding agents, browser agents, and standardised tool-connector protocols such as MCP [9]. Yet real-world personal environments remain unforgiving for standalone single-task agents. On WebArena's 812 long-horizon tasks across four self-hosted web domains [10], human completion reached 78.24% whereas GPT-4 agents achieved 14.41%. On OSWorld's 369 real desktop tasks across Ubuntu, Windows, and macOS [11], human completion reached 72.36% compared with 12.24% for the strongest multimodal agent at release. Even as visual grounding and planning models improve, everyday personal workflows face three structural barriers that model scaling alone does not solve: expired credentials and two-factor prompts across devices, critical context residing on a different device or in another application, and irreversible terminal actions (sending mail, submitting orders, authorising payments) where silent autonomous failure is unacceptable. ### 2.2 Multi-agent orchestration, tiered memory, and resident Super-agents Multi-agent frameworks such as AutoGen [12] divide complex work among specialised conversational agents, but typically bind coordination to a single session lifecycle. Generative Agents [13] introduced a continuous memory stream scored by recency, importance, and relevance alongside reflection trees, though inside a closed sandbox with no financial liability or external attackers. MemGPT [14] drew on operating-system virtual memory, treating the context window as main memory and paging archival records in and out via explicit function calls. PESA builds directly on MemGPT's cache-and-archive insight, but changes the primary unit of indexing from raw chat chunks to causally linked, cross-device *things* (`#T-id`). The DeepSeek Harness team's Super-agent architecture [1] broke decisively out of single-session chat by introducing a resident Router layer, isolated concurrent background Workers, event-driven triggers, compute-storage separation, and an external watchdog, inspiring open-source implementations such as `deepseek-super-agent` [15] and `opensuperagent` [16]. Super-agent was engineered for a **software development team** working in enterprise chat and code repositories on always-on cloud servers. Moving this architecture into **one individual's everyday device ecosystem** introduces three fundamentally different systems constraints: (i) a **personal noise multiplier**, where over 80% of daily phone notifications, group chats, and marketing emails require no action; (ii) **intermittent device sleep and single-desktop focus contention**, where laptops close in backpacks and only one cursor exists on a personal computer; and (iii) **strict personal sovereignty**, where every outward message or transaction carries the individual's legal and social identity. ### 2.3 Distributed systems primitives: leases, optimistic concurrency, and calm HCI PESA grounds its multi-device coordination in classical systems and HCI foundations rather than ad-hoc heuristics: - **Time-bounded leases.** Gray and Cheriton [5] introduced *leases* in SOSP '89 to grant time-bounded exclusive control that recovers automatically from holder failures or network partitions without manual intervention. PESA applies this exact principle to a personal computer's physical cursor and window focus via `ComputerHandsLease`. - **Optimistic concurrency control.** Kung and Robinson [4] showed that when conflicts are rare relative to reads, validating a version snapshot at commit time avoids heavy distributed locking. PESA applies versioned optimistic commits across phone, watch, tablet, and computer so rapid cross-device taps never trigger duplicate outward actions. - **Calm technology, context awareness, and human-centred AI.** Weiser [17] and Weiser and Brown [18] articulated *calm technology*, in which ongoing system activity rests at the periphery of attention and moves to the centre only when needed. Dey [19] formalised *context* as any information characterising the situation of an entity relevant to user-application interaction. Horvitz [20] framed *mixed-initiative interfaces* via Bayesian expected utility, balancing the benefit of proactive help against the asymmetric cost of unwanted interruptions. Shneiderman [3] further demonstrated that high computer automation and high human control are orthogonal dimensions rather than opposite poles of a single slider—a direct foundation for PESA's "speculate deeply in the background, pause cleanly for human sign-off" paradigm. - **Speculative execution and operating-system intent surfaces.** Modern superscalar processors execute predicted instruction paths into a sandboxed reorder buffer and commit architectural state only once the branch resolves [21]. Meanwhile, native OS frameworks such as Siri, App Intents, Shortcuts, Handoff, and ActivityKit Live Activities [22][23] provide rich cross-device surfaces, yet lack a persistent cloud-and-device state machine for multi-week asynchronous workflows. PESA treats native OS surfaces as its sensory and delivery layer rather than competing with them. **Table 1. Architectural positioning of PESA relative to existing agent paradigms** | Dimension | Conversational assistant | Single-task tool / GUI agent | Team Super-agent | **PESA (Personal Ecosystem Super Agent)** | | --- | --- | --- | --- | --- | | Primary unit of work | Isolated chat session | Single task command | Engineering event thread | **A personal *thing* (`#T-id`)** | | Operating environment | Single chat window | One machine or browser sandbox | Team chat, code repos & cloud servers | **All personal devices (phone, tablet, computer, watch) & apps** | | Initiation & proactivity | Purely passive | User-initiated, synchronous | Team members & dev pipeline events | **User intent + everyday events via two-stage edge-cloud filter** | | Concurrency & responsiveness | Single window blocks | Often monopolises desktop screen | Resident router + background workers | **Responsive front desk + isolated concurrent background workers** | | Offline resilience & focus mutex | Halts when tab closes | Fails on lid close; tasks fight over cursor | Always-on cloud machines; no single-GUI fight | **Cloud continuation + silent wakeup + `ComputerHandsLease` mutex** | | Memory & cross-device recall | Trapped in one transcript | Scoped to one task run | Platform-local ID recall | **Three-tier memory + cross-device Archive (`#T-id` chain of recall)** | | Delivery surfaces | Uniform chat list | Terminal log or floating overlay | Group chat & pull requests | **Context-matched $\kappa_{\text{surf}}$: Dynamic Island, Watch, iPad Split View, cards** | | Outward safety & credentials | Copied manually by user | Credentials often exposed in prompt | Team CI/CD auto-execution | **Sealed credential vault + scoped `brief` + default versioned approval gate** | **Quantitative lessons from Super-agent and scope caveats.** DeepSeek Harness reported three systems measurements that directly motivate PESA's pipeline [1]: (1) decoupling a resident router from concurrent workers lowered p95 task completion latency from 29.5 min (single-session neutral baseline) to 15.7 min (-46.8%, median 12.4 min); (2) keeping thread subscription pass-through enabled prevented read-cache token volume from jumping from 23.23M to 31.77M (+36.8%) and avoided ~30% extra router calls; and (3) adaptive backlog batching scaled batch size from 1.0 to 2.8 as arrivals rose from 1 to 40 events/min, holding per-request latency to 3.9 s (from 2.5 s) while cutting amortised routing time per event from 6.4 s to 1.6 s (-75%). Because these figures were measured on software engineering workloads, they cannot be transferred verbatim to personal life without correction: personal streams carry far higher noise density, which is why PESA adds deterministic on-device pre-filtering and per-source speculative budgets ahead of the cloud router (Section 4.2). ## 3. Conceptual framework and capability taxonomy ### 3.1 Formal definition > **Definition 1 (PESA).** A **Personal Ecosystem Super Agent (PESA)** is a resident, single-principal super agent whose operating environment spans all of an individual's personal devices and applications. It maintains one continuous identity and shared context across devices; organises work around discrete *things* (`Thing`) rather than *conversations* (`Session`) and advances multiple things concurrently in isolated background sandboxes; filters everyday event streams through a two-stage edge-cloud funnel to prepare worthwhile work speculatively; perceives, executes, and delivers on each device in that platform's native idiom; and requires explicit, version-bound human confirmation before any action that mutates external state (except for specific low-risk actions explicitly pre-authorised in user policy). > **Intuition.** Put plainly, a PESA behaves less like a chatbot sitting in a browser tab and more like a quiet, trustworthy executive assistant who shares access to your devices: it reads only the sources you turn on, quietly handles the research and draft preparation in the background, stays invisible when nothing matters, and taps you once on the right screen when a real decision is ready. Each word in the name fixes a concrete systems boundary: - **Personal (single-principal sovereignty):** Memory, calendar data, contacts, and credentials belong strictly to one person—never a multi-tenant team bot reconciling competing stakeholders. - **Ecosystem (heterogeneous multi-device substrate):** The runtime spans complementary hardware (e.g., phone, tablet, computer, watch) plus their native OS services, rather than one isolated browser tab. - **Super (resident, concurrent, persistent):** Extends Super-agent [1] beyond turn-by-turn sessions with continuous availability, foreground-background decoupling, event-driven proactivity, and watchdog self-healing. - **Agent (bounded closed-loop actor):** Orchestrates cloud tools and local device executors to advance work all the way to a ready-to-approve deliverable. ### 3.2 Three core design theses PESA is built on three architectural theses that align with Shneiderman's two-dimensional human-centred AI framework—simultaneously maximising background automation and preserving human control [3]: 1. **Thesis 1 — The operating environment is a device ecosystem, not a chat window.** Human digital context is physically partitioned by form factor: messaging and quick alerts live on the phone, deep documents and legacy apps live on the desktop, reading and side-by-side review live on the tablet, and in-motion glances live on the wrist. Any agent trapped in one window is structurally half-blind and shifts integration work back onto the user. 2. **Thesis 2 — The user-facing unit is the *thing*, not the *conversation*.** "New Chat" is an artefact of stateless LLM endpoints, not how people think about daily life. People care about outcomes—whether a client reschedule reply has been sent, whether a vendor comparison is ready, or what a contract clause said two weeks ago. Prompt assembly, session turns, and worker spawning belong under the hood. 3. **Thesis 3 — High background automation and strict human final authority are complementary, not opposing.** Search, cross-device synchronisation, form pre-filling, and stall recovery belong to the machine. Human attention should enter only at two high-leverage points: expressing new intent and signing off on outward side effects. ### 3.3 Six core system properties PESA inherits the four foundational systems properties of a Super-agent (*continuous, efficient, proactive, persistent*) [1] and introduces two properties required specifically by personal ecosystems: **ecosystem-native** and **trustworthy** (Table 2). **Table 2. The six core system properties of PESA** | Property | Architectural meaning and engineering requirement | | --- | --- | | Continuous | One continuous agent identity across every device and entry point; switching devices never drops context, and past things are recalled hop by hop via `#T-id` references. | | Efficient | The resident front desk stays immediately responsive to new input while isolated background workers execute long tasks concurrently without blocking. | | Proactive | Enabled everyday signals (email, calendar, watched pages) pass through two-stage filtering to trigger speculative background preparation and concise suggestion cards. | | Persistent | Cloud reasoning continues when phones lock or laptops close; device-bound steps support silent wakeup or checkpointed parking; stalls trigger watchdog self-rescue before human escalation. | | **Ecosystem-native** | Each device performs the work matched to its ergonomics, honouring platform interaction conventions (Dynamic Island, Split View, menu bar & desktop lease, wrist glance). | | **Trustworthy** | External sources default to off and uncertain signals stay silent; outward writes wait for versioned confirmation by default; credentials remain sealed out of prompts and untrusted data cannot exfiltrate memory. | ### 3.4 Core terminology Table 3 establishes precise definitions for the twelve system abstractions used throughout this paper, pairing each formal role with its everyday intuition. **Table 3. Core terminology and responsibility boundaries in PESA** | Term | Formal definition and responsibility boundary | | --- | --- | | Front desk | The single resident conversational coordinator (analogous to a Super-agent Router). Parses intent, splits or merges things, batches backlogs, dispatches workers, and speaks in one voice; never blocks on multi-minute tasks. | | Worker | An isolated background execution unit owning exactly one thing $\tau$. Receives only a minimal task-scoped `brief` and executes concurrently without sharing raw context with sibling workers. | | Event | A discrete observation from daily life or a device: an email, instant message, calendar change, watched web update, OS share action, or direct user instruction. | | Thread | A time-ordered sequence of related events sharing a business or conversational context (e.g., an email chain or ongoing procurement workflow). | | Thing | The fundamental unit of user interaction and scheduling: carries a global ID (`#T-id`), origin, goal, eight-state lifecycle status, optimistic `version`, owner, required capabilities, causal `refs`, and outcome. | | Subscription | A persistent binding from a worker to one or more threads ($\text{sub}(w) \subseteq H$). Subsequent events on a subscribed thread bypass redundant front-desk LLM routing or reactivate a completed thing. | | Thing Archive | Durable cloud store for things, threads, and tiered memory. Every entry records *fact/quote*, *auditable origin (`#T-id`)*, and *confidence*, enabling cross-device hop-by-hop recall. | | Device hands | Local device executors possessing execution capability $\kappa_{\text{exec}}$ (e.g., desktop GUI, browser sessions, local files), arbitrated on desktops by an exclusive time-bounded lease (`ComputerHandsLease`). | | Delivery surface | A platform-native user interface ($\kappa_{\text{surf}}$) that surfaces progress or a decision: inline chat pill, Lock Screen Live Activity / Dynamic Island, iPad Split View card, Mac menu bar, or Apple Watch glance. | | Approval gate | The mandatory default checkpoint requiring a user's explicit, version-bound confirmation token before any outward side effect executes. | | Watchdog | An independent liveness monitor outside the primary inference loop that audits real progress, injects bounded recovery prompts on stalls, and escalates honestly only when automated recovery fails. | | Policy | Explicit user-configured boundaries: enabled event sources $S_{\text{on}}$, pre-authorised low-risk actions $A_{\text{auto}}$, quiet/Focus schedules $Q_{\text{quiet}}$, and per-source daily speculative quotas $B_{\text{spec}}$. | ### 3.5 PESA capability levels (L0–L4) Drawing on the SAE J3016 automation taxonomy [24], we define five architectural levels (L0–L4) based on **how much session management, proactive filtering, and cross-device coordination the system shoulders** (Figure 1, Table 4). Each level strictly subsumes the levels below it. > Figure 1. PESA capability taxonomy (L0–L4). Each level strictly subsumes the levels below; only L4 constitutes a complete PESA. **Table 4. PESA five-level capability taxonomy** | Level | Name | Architectural criterion | Human role and attention burden | | --- | --- | --- | --- | | L0 | Respond | Synchronous turn-by-turn Q&A; no cross-session workflow state; context stays trapped in one chat box. | User notices needs, writes prompts, copies context across apps, and executes every external action manually. | | L1 | Execute | Calls tools to finish a single task inside one device or sandbox, initiated and waited on synchronously. | User avoids some manual clicking within one app, but still initiates work, transfers data across devices, and supervises execution. | | L2 | Concurrent | Resident front desk + isolated background workers: long work executes asynchronously while chat stays free for new input. | User no longer blocks on a single task screen, but must still notice every everyday trigger and instruct the agent manually. | | L3 | Proactive | Connects to everyday event streams with two-stage filtering and speculative drafting; delivers suggestion cards and stays silent when uncertain. | User avoids discovering routine tasks, but single-device or web-only systems still leave manual cross-device transfers unresolved. | | **L4** | **Ecosystem** | **Unified identity and `#T-id` Archive across all personal devices; cloud continuation across device sleep with silent wakeup, desktop lease arbitration, checkpointed resume, native surfaces, and atomic multi-device dismissal.** | **User is freed from context ferrying and screen babysitting, intervening only to express new intent or confirm outward decisions.** | Under this taxonomy, **only L4 constitutes a complete PESA**. Two grading principles prevent marketing inflation: (1) *levels measure system architecture, not base-model size*—a frontier reasoning model packaged inside a single-turn chat box remains L0; and (2) *vertical prototypes do not define global level*—an agent with proactive monitoring on one narrow web source exhibits L3 behaviour on that pathway, while its overall level depends on whether its unified cross-device state machine spans the user's ecosystem. ## 4. Formal system model, decision calculus, and guarantees This section formalises PESA's runtime state, derives its attention-cost and mixed-initiative decision boundaries, defines its closed lifecycle state machine, and proves three foundational safety, liveness, and attention-bound properties. ### 4.1 System entities and orthogonal capability decomposition We model a running PESA instance as a six-tuple $\mathcal{S}_{\text{PESA}} = \langle D, E, H, T, W, P \rangle$ governed by a resident front-desk scheduling operator $F$: - **Device ensemble $D = \{d_1, \dots, d_n\}$.** Each device $d \in D$ exposes an orthogonal pair of capabilities $\kappa(d) = \langle \kappa_{\text{exec}}(d), \kappa_{\text{surf}}(d) \rangle$, separating **what the device can execute** (browser sessions, native desktop apps, local files, on-device connectors) from **how the device can reach the user** (foreground chat, actionable notifications, Dynamic Island / Live Activities, tablet split-view panels, menu bar, wrist glances). Its time-varying power and connectivity state is $\alpha(d, t) \in \{\text{online}, \text{wakeable}, \text{offline}\}$. - **Event stream $E = (e_1, e_2, \dots)$.** Each event is a tuple $e = \langle \text{id}, \text{source}, t, \text{payload}, h \rangle$, where $\text{source}$ identifies the user, an external communication channel, or a device transition, and $h \in H$ links it to a thread. - **Threads $H$.** Each thread $h \in H$ orders related events sharing a persistent conversational or operational context. - **Things $T$.** Each thing is an eleven-tuple: $$\tau = \langle \text{id}, \text{origin}, \text{goal}, \text{state}, \text{wait\_reason}, \text{version}, \text{owner}, \text{subs}, \text{req\_exec}, \text{refs}, \text{outcome} \rangle \tag{1}$$ Here $\text{id}$ is a global reference (`#T-108`); $\text{version} \in \mathbb{N}^+$ is a monotonically increasing optimistic-concurrency version counter; $\text{wait\_reason} \in \{\text{none}, \text{approval}, \text{device\_offline}, \text{intervention}\}$ separates ready drafts awaiting confirmation, device-offline parking, and fault escalation; and $\text{refs} \subset T.\text{id}$ stores directed causal links to prior things for cross-device recall. - **Workers $W$.** Each worker $w \in W$ owns exactly one thing $\tau$, receives only a minimal task-scoped brief $\text{brief}(\tau)$, and subscribes to threads $\text{sub}(w) \subseteq H$. Crucially, **threads $H$ and things $T$ form a many-to-many mapping**: one complex thing (e.g., coordinating a trip) can subscribe simultaneously to email, calendar, and flight-alert threads, whereas a single user message containing three independent requests is split by $F$ into three independent things $\tau_1, \tau_2, \tau_3$. - **User policy $P = \langle S_{\text{on}}, A_{\text{auto}}, Q_{\text{quiet}}, B_{\text{spec}} \rangle$.** Every boundary defaults safely: $S_{\text{on}} = \varnothing$ (no external source read until enabled), $A_{\text{auto}} = \varnothing$ (no outward write auto-approved unless allowlisted), $Q_{\text{quiet}}$ encodes Focus and quiet-hour rules, and $B_{\text{spec}}$ bounds daily speculative trials per source. The resident front desk $F$ is a deterministic-rule-first, model-fallback transition operator: $$F(e, T, P) \longrightarrow \big\{\text{reply}, \text{create}, \text{merge}, \text{split}, \text{reactivate}, \text{stop}, \text{silent}\big\}$$ > **Intuition.** Separating $\kappa_{\text{exec}}$ from $\kappa_{\text{surf}}$ is what makes cross-device collaboration click: *your desk Mac might be the best device to fill a web form ($\kappa_{\text{exec}}$), while your wrist or tablet might be the best screen to ask for your final confirmation ($\kappa_{\text{surf}}$)*. ### 4.2 Human attention cost and mixed-initiative threshold calculus To compare agent architectures quantitatively rather than by anecdote, we decompose the human operational attention cost $\mathcal{A}(\tau)$ required to complete a thing $\tau$ into four orthogonal components: $$\mathcal{A}(\tau) = I_{\text{init}}(\tau) + I_{\text{transfer}}(\tau) + I_{\text{supervise}}(\tau) + I_{\text{decide}}(\tau) \tag{2}$$ where $I_{\text{init}}$ counts discovery and prompt-initiation steps, $I_{\text{transfer}}$ counts manual copy-paste or cross-device context transfers, $I_{\text{supervise}}$ counts synchronous screen-watching or mid-course manual rescues, and $I_{\text{decide}}$ counts final review and sign-off taps. A naive proactive agent could game Eq. (2) by spamming speculative suggestions for every notification. To close that loophole, let $T_{\text{done}}$ denote completed things and $T_{\text{skip}}$ denote proactive suggestion cards surfaced to the user and dismissed via *Skip* at rejection cost $I_{\text{reject}}(\tau') \ge 1$. We define the **amortised effective attention cost**: $$\overline{\mathcal{A}} = \frac{\sum_{\tau \in T_{\text{done}}} \mathcal{A}(\tau) + \sum_{\tau' \in T_{\text{skip}}} I_{\text{reject}}(\tau')}{\lvert T_{\text{done}} \rvert} \tag{3}$$ **Mixed-initiative gating under personal noise amplification.** Following Horvitz's Bayesian expected-utility criterion [20], let $P(G \mid E)$ denote the inferred probability that an incoming event $E$ reflects an actionable user goal $G$, $U_{\text{save}}$ the human attention utility saved when background preparation hits, $C_{\text{compute}}$ the background token cost of a speculative trial, and $C_{\text{interrupt}}$ the cognitive cost of a false interruption. PESA enforces a **two-threshold gate**: $$P(G \mid E) > \frac{C_{\text{compute}}}{U_{\text{save}}} \;\;(\text{admit trial}), \qquad P(G \mid E) > p^* = \frac{C_{\text{interrupt}}}{C_{\text{interrupt}} + U_{\text{save}}} \;\;(\text{surface card}) \tag{4}$$ Because cloud inference is far cheaper than fracturing human focus ($C_{\text{compute}} \ll C_{\text{interrupt}}$), the system can safely run quiet, side-effect-free background trials at a lower confidence threshold, then discard low-value trials silently before they ever cross $p^*$ to touch a user screen. Equally important is the **personal noise multiplier**. Suppose a fraction $\rho \in [0, 1)$ of inbound personal events is non-actionable noise (promotions, routine group banter, OTP codes). If every raw event hits a cloud LLM router, the ratio of total routed events to genuinely actionable events is $\frac{1}{1 - \rho}$. At typical personal notification noise levels ($\rho \ge 0.80$), skipping Stage-1 deterministic on-device pre-filtering inflates cloud routing traffic and token spend by at least $5\times$ (and at $\rho = 0.90$, by $10\times$), while exposing far more private text to cloud servers. Placing zero-token deterministic rules ahead of semantic filtering eliminates the bulk of $\rho$ locally before a single cloud token is spent. ### 4.3 Closed eight-state lifecycle and optimistic concurrency commit > Figure 2. Closed eight-state lifecycle of a thing. Outward writes must pass through Waiting (approval); dashed states remain invisible to the user, while Skipped explicitly accounts for dismissed suggestion cards. To handle noise filtering, sleeping devices, outward approval gates, stall recovery, and multi-week follow-ups without dangling states, PESA maintains eight strictly defined internal states that fold into three calm user-facing views (Figure 2, Table 5). **Table 5. Closed eight-state lifecycle and user-facing view mapping** | Internal state | System semantics and residency condition | Legal transitions | User-facing view | | --- | --- | --- | --- | | `Candidate` | Cleared Stage-1 on-device rules; undergoing Stage-2 semantic value check | Worth doing $\to$ `Running`; uncertain/low value $\to$ `Discarded` | Hidden (silent) | | `Running` | Owned by an isolated worker $w$ in cloud or holding a local device lease | Ready / outward action $\to$ `Waiting (approval)`; low value $\to$ `Discarded`; required device offline $\to$ `Parked` | **In progress** | | `Parked` | Next step needs capability $\text{req\_exec}$ on an offline device or awaits an external condition | Device online/woken $\to$ `Running`; user cancels $\to$ `Stopped`; unrecoverable timeout $\to$ `Waiting (intervention)` | **In progress** (with wait note) | | `Waiting` | Blocked on the user for one of two reasons: (a) **approval** of a ready outward action, or (b) **intervention** after missing capability or 3 failed watchdog rescues | (a) Approve $\to$ `Done`, Edit $\to$ `Running`, Skip $\to$ `Skipped`; (b) Unblock & retry $\to$ `Running`, Stop $\to$ `Stopped` | **Waiting for you** (routed to 1 surface) | | `Done` | Goal delivered or confirmed outward action executed | Retained thread subscription $\text{sub}(w)$ triggers **reactivation** (`Done` $\to$ `Running`) or chains `#T-id` on follow-up | **Done** | | `Discarded` | Eliminated silently by the system during filtering or trial before reaching any screen | Internal terminal state (consumes $B_{\text{spec}}$; produces zero alerts) | Hidden (silent) | | `Skipped` | Card reached a user surface and was explicitly dismissed via *Skip* | Internal terminal state (penalises $\overline{\mathcal{A}}$ and false-interruption rate; down-weights similar signals) | Archived | | `Stopped` | User explicitly halted the thing from `Running`, `Parked`, or `Waiting` | Internal terminal state (releases held device leases and compute immediately) | Stopped (archived) | Three transition axioms make the state machine sound: 1. **Axiom 1 (Mandatory Approval Gate):** No direct transition exists from `Candidate` or `Running` to outward side-effect execution and `Done` for any action $a \notin A_{\text{auto}}$; execution must pass through `Waiting (approval)`. 2. **Axiom 2 (Non-Falsifiable Interruption Accounting):** Trials dropped silently before reaching any surface enter `Discarded`; any card shown to the user and dismissed must enter `Skipped`. Implementations cannot conceal annoying interruptions as silent discards. 3. **Axiom 3 (Post-Completion Context Continuity):** Entering `Done` closes the current turn without purging the Archive entry or thread subscription, allowing follow-up replies days later to reactivate or chain `#T-id` seamlessly. **Multi-device optimistic concurrency commit rule.** In a four-device ecosystem, a user may tap *Approve* on an Apple Watch and, half a second later, tap the same notification on an iPhone. Adopting Kung and Robinson's optimistic validation principle [4], every surfaced card carries snapshot version $v = \tau.\text{version}$, and the cloud state machine evaluates an atomic compare-and-increment commit: $$\text{commit}(\tau, v, \text{action}, d) = \begin{cases} \langle \text{OK},\; \tau.\text{version} \leftarrow v + 1,\; \text{withdraw}(D \setminus \{d\}) \rangle & \text{if } \tau.\text{state} = \text{Waiting} \land \tau.\text{version} = v \\ \langle \text{NOOP\_ALREADY\_HANDLED},\; \tau.\text{version} \rangle & \text{otherwise} \end{cases} \tag{5}$$ Only the first arriving confirmation with matching snapshot $v$ executes the outward side effect and increments $\tau.\text{version}$; any lagging tap fails version validation cleanly as a no-op while cloud push withdraws the stale prompt from all remaining devices. ### 4.4 Seven runtime invariants and formal properties Every compliant PESA runtime must uphold seven system invariants at all times: 1. **One voice:** Only the resident front desk $F$ speaks to the user; worker spawning, retries, and lease queuing stay transparent. 2. **Approval before outward side effects:** Every action $a \notin A_{\text{auto}}$ mutating external state requires a user-confirmed token bound to $\tau.\text{version}$. 3. **Verifiable provenance:** Every thing $\tau$ and Archive entry retains an auditable chain (`origin`, `refs`) back to its source event or instruction. 4. **Quiet by default:** External sources default to off ($S_{\text{on}} = \varnothing$); uncertain candidates stay silent and `Discarded` work emits zero alerts. 5. **Rescue first, escalate transparently:** Watchdog stall detection attempts bounded automated recovery (up to 3 rescues) before moving to `Waiting (intervention)` with plain diagnostics, never silently cancelling user-enabled watches. 6. **Sealed credentials and data-instruction separation:** Secrets travel only between an encrypted vault and low-level executors, never entering model prompts; workers receive only minimal scoped `brief`s, and external text is strictly data. 7. **Idempotent intake and synced single-surface dismissal:** Inbound events deduplicate by `e.id`; pending decisions alert on at most one surface at a time and clear atomically across all devices upon resolution. From these axioms and runtime rules follow three core guarantees: > **Proposition 1 (Outward Side-Effect Safety and Idempotency).** Under Axiom 1, Invariant 2, and the atomic commit rule in Eq. (5), any non-allowlisted outward action $a \notin A_{\text{auto}}$ executes **zero times** without explicit user confirmation and **at most once** even under concurrent multi-device taps or network retries. > **Proof Sketch.** By Axiom 1 and Invariant 2, the low-level executor rejects any outward write lacking a confirmation token bound to $(\tau.\text{id}, v)$ signed while $\tau.\text{state} = \text{Waiting}$. Thus zero unapproved executions can occur. When multiple devices $d_1, d_2 \in D$ concurrently submit confirmations for snapshot $v$, the linearisable cloud state machine executes Eq. (5) atomically: the first request observes $\tau.\text{state} = \text{Waiting} \land \tau.\text{version} = v$, transitions $\tau.\text{version} \leftarrow v + 1$, and dispatches $a$ once. Every subsequent request with version $v$ fails the equality guard and returns `NOOP_ALREADY_HANDLED`. $\square$ > **Proposition 2 (Desktop Lease Deadlock-Freedom and Bounded Priority Wait).** Under time-bounded single-holder lease semantics (`maxRunning` $= k$, foreground priority preemption, and idle auto-reclamation `idleRelease` $= T_{\text{idle}}$), `ComputerHandsLease` is free of permanent desktop focus deadlock, and a foreground user desktop request acquires the lease within at most one active atomic holder interval (bounded above by $T_{\text{idle}}$ if the current holder stalls). > **Proof Sketch.** At any instant at most one entity holds the exclusive lease. Because every lease is time-bounded by $T_{\text{idle}}$ (180 s in our reference runtime) following Gray and Cheriton [5], a crashed, disconnected, or stalled holder cannot retain desktop control indefinitely; the runtime reclaims the lease automatically and hands it to the head of the queue. Because live foreground requests preempt all queued background workers (`Queue #1`), a foreground request waits behind at most the single current holder rather than all $k$ background tasks, preventing starvation and focus deadlock. $\square$ > **Proposition 3 (Sovereignty Lower Bound on Human Attention).** For any thing $\tau$ terminating in an outward action $a \notin A_{\text{auto}}$, any PESA-compliant system satisfies $\mathcal{A}(\tau) \ge 1$, with equality achieved if and only if $I_{\text{init}}(\tau) = I_{\text{transfer}}(\tau) = I_{\text{supervise}}(\tau) = 0$ and $I_{\text{decide}}(\tau) = 1$. > **Proof Sketch.** By Invariant 2, at least one explicit human decision event is required before $a$ commits, so $I_{\text{decide}}(\tau) \ge 1$. Since all four components in Eq. (2) are non-negative integers, $\mathcal{A}(\tau) \ge I_{\text{decide}}(\tau) \ge 1$. Consequently, once final human authority is preserved, the *only* architectural levers for reducing $\overline{\mathcal{A}}$ in Eq. (3) are driving $I_{\text{init}}$, $I_{\text{transfer}}$, and $I_{\text{supervise}}$ to zero while keeping false interruptions $|T_{\text{skip}}|$ minimal. $\square$ ## 5. Reference architecture > Figure 3. PESA reference architecture. Direct user input and filtered life signals enter through one resident front desk, which dispatches isolated background workers operating through local device hands and responds in a single voice. ### 5.1 Resident front desk and isolated background workers Figure 3 shows the overall PESA reference architecture. Extending the two-layer Super-agent structure [1], the **front desk** acts as a lightweight, always-on coordinator receiving every user message, OS share handoff, and filtered life event across all devices. Its scope is deliberately narrow: parse intent, split or merge things, batch bursts of related events, dispatch background workers, and report results in a single voice. It never blocks on multi-minute browsing or desktop automation. **Background workers** are spawned per thing. Each worker owns exactly one $\tau$, runs inside an isolated context holding only a minimal task-scoped `brief`, and executes concurrently with sibling workers. When bursts of events arrive on the same thread (e.g., rapid project chat replies or multiple shipping notifications), adaptive backlog batching groups them into one routing decision, cutting amortised routing latency by up to 75% [1]. ### 5.2 Three-tier memory hierarchy and the cross-device Thing Archive Existing assistants suffer from "device amnesia" when a user switches from laptop to phone—or forget constraints agreed upon weeks earlier—because they either trap history inside one chat transcript or flatten it into disconnected vector chunks that sever causal provenance. Drawing on virtual memory paging and MemGPT [14], PESA organises memory into three tiers anchored by a cloud **Thing Archive** (Figure 4): > Figure 4. Three-tier memory hierarchy and cross-device Thing Archive. Verbose execution traces page out to durable cloud storage keyed by #T-id so any device recovers prior conclusions and verbatim provenance hop by hop. 1. **Tier 1 — Hot working context cache.** Lives inside the active front desk and running workers, holding only recent turns, compact summaries of active things, and lightweight ID pointers (`#T-108`, `#T-114`). Once a thing finishes, verbose traces (DOM trees, raw search outputs, intermediate drafts) page out immediately to the cloud Archive so main memory remains compact and fast. 2. **Tier 2 — Episodic Thing Archive with hop-by-hop chain of recall.** Persists every thing durably in the cloud with three mandatory fields: *(i) factual summary and verbatim key quotes*, *(ii) auditable provenance* (triggering device, raw source, `#T-id`), and *(iii) confidence level and timestamp*. Directed `refs` edges link causally related work (e.g., `#T-108 comparison` $\to$ `#T-114 vendor quote` $\to$ `#T-142 final approval`). When a user asks on a phone during a commute about a warranty quote checked on their Mac a week earlier, the front desk traverses `#T-142` $\to$ `#T-114` $\to$ `#T-108` hop by hop to load the exact record on demand. 3. **Tier 3 — Inspectable preference and policy memory.** Distils stable preferences from user card decisions (*Send*, *Edit*, *Skip*) to calibrate filter thresholds. Every learned preference remains human-readable, editable, and deletable with one tap from any device. ### 5.3 Asynchronous full-duplex interaction Any task lasting longer than a few seconds executes asynchronously. If a user asks the agent to extract cash-flow comparisons from three PDF reports *and* watch whether an evening flight is delayed, the front desk decomposes both intents within a second, dispatches two workers (`#T-201` and `#T-202`), inserts two compact live progress lines into the conversation, and immediately returns to ready state. The user can continue chatting or lock their phone; finished outcomes flow back into the conversation or route silently to an ambient surface, and any in-flight thing remains inspectable or stoppable at any moment. ### 5.4 Cloud brain, local device hands, checkpointed resume, and desktop leases PESA strictly decouples reasoning, durable state, and local execution: the reasoning "brain" runs statelessly in the cloud, the eight-state machine and Archive persist independently, and local "hands" execute on the user's own devices. Making this split dependable in daily life requires solving two problems unique to personal hardware: 1. **Mid-execution sleep and checkpointed idempotent resume.** Personal laptops close mid-task when users walk into meetings. PESA structures device-side automation into **checkpointed idempotent read/prepare steps** followed by a **terminal commit boundary**. On disconnect, completed checkpoints sync to the cloud: cloud-executable steps (synthesis, price comparison, drafting) continue uninterrupted, while GUI-bound steps park cleanly (`Parked`). Upon reconnect or silent push wakeup, the local executor verifies the target window or DOM fingerprint against the saved checkpoint before resuming; if external state drifted ambiguously, it refuses to click blindly and escalates to `Waiting (intervention)`. 2. **Single-desktop focus mutual exclusion (`ComputerHandsLease`).** Ten cloud workers can reason in parallel, yet a personal computer has only one mouse cursor and one keyboard focus. Applying Gray and Cheriton's time-bounded lease abstraction [5], `ComputerHandsLease` enforces four deterministic rules (Figure 5): (i) **single-holder mutual exclusion** across at most `maxRunning = 3` concurrent background workers; (ii) **foreground chat preemption**, jumping live user desktop requests straight to the head of the queue; (iii) **cloud-first non-blocking progress**, letting queued workers finish cloud research and drafting first and parking cleanly after `maxWait = 600s`; and (iv) **180-second idle auto-reclamation** (`idleRelease = 180s`), reclaiming stalled leases automatically and notifying the watchdog. > Figure 5. Exclusive desktop hands lease (ComputerHandsLease) timeline. At most one execution entity controls local GUI focus at a time: live foreground chat preempts queued background workers, waiting workers advance cloud steps first, and 180 s idle leases reclaim automatically. ### 5.5 Independent watchdog: rescue first, never drop work silently Network glitches, expired sessions, and changed web layouts inevitably stall long-running tasks. PESA isolates liveness monitoring in an external **watchdog loop** that checks substantive state progress rather than mere process heartbeats. In our reference runtime, the watchdog sweeps active workers every 45 seconds: after 20 minutes without progress, it injects a diagnostic recovery prompt guiding path-switching or sub-environment reset (up to 3 automated attempts). Only after 60 minutes of stall or 3 failed rescues does it transition the thing to `Waiting (intervention)` with a plain-language diagnostic—never silently cancelling user-enabled watches. ## 6. End-to-end pipeline, scheduling algorithms, and complexity This section specifies the six-stage pipeline and three deterministic-first algorithms that move a signal from intake to a user surface. ### 6.1 Six-stage event-to-thing pipeline and routing algorithm > Figure 6. Six-stage event-to-thing pipeline. Deterministic rules decide before invoking language models, uncertain signals expire silently, and outward writes halt at the versioned approval gate. Every inbound event $e$ passes through six sequential stages (Figure 6): 1. **Idempotent intake:** Persist before acknowledging; deduplicate by `e.id` and drop echoes of the system's own outward writes. 2. **Stage-1 deterministic edge filter:** Apply zero-LLM rules locally (source allowlist $S_{\text{on}}$, contact/past-reply graph, calendar patterns, explicit watch rules) so >80% routine noise expires on-device with zero cloud token spend and zero unnecessary upload of private text. 3. **Stage-2 semantic value filter:** Evaluate only Stage-1 survivors against Eq. (4); uncertain or low-value candidates transition silently to `Discarded`. 4. **Deterministic-first routing:** Handle stop commands, explicit `#T-id` references, and subscribed thread pass-through without invoking the front-desk LLM (preserving the ~36.8% read-cache token savings measured in [1]); only novel events enter adaptive front-desk batching. 5. **Isolated execution and speculative preparation:** Workers perform read-only lookups, comparisons, and form pre-filling in parallel, halting cleanly before any outward write boundary. 6. **Version-bound delivery:** Bind the prepared suggestion card to $\tau.\text{version}$ and route it to a single context-matched surface. Algorithm 1 specifies deterministic-first event routing `route(e)`: ```alg route(e): if seen(e.id) or is_echo(e): # 1. O(1) idempotent dedupe & echo drop return if e is a stop command: # 2. zero-LLM immediate halt stop(target_thing); return if e references thing τ (#T-id): # 3. O(1) direct thing lookup deliver(e, τ.owner); return if worker w subscribes to e.thread: # 4. O(1) subscription pass-through (-36.8% cache tokens) if w.thing.state == done: reactivate_or_chain(w.thing, e); return deliver(e, w); return front.batch(e) # 5. adaptive backlog batching for novel events ``` **Complexity and cost profile.** Steps 1–4 execute in $O(1)$ average time via hash-indexed deduplication, thing-ID, and thread-subscription tables with **zero LLM invocations**. Model calls occur strictly in Stage-2 filtering and Step 5 batched front-desk triage. ### 6.2 Mixed-initiative speculative execution In superscalar processors, speculative execution runs instructions ahead of unresolved branches inside a sandboxed reorder buffer and commits architectural state only on a branch hit, flushing silently on a miss [21]. PESA applies the exact same contract to personal tasks under Horvitz's expected-utility gate [20]: - **Side-effect-free speculation:** Workers check calendars, pull prior Archive notes, compare prices, and pre-fill draft replies or form fields strictly in read-only or draft state. - **Three-choice commit card (*Approve / Edit / Skip*):** Pausing before the outward boundary presents one scannable card. *Approve* commits the prepared action in under a second (`Done`); *Edit* accepts a short adjustment and returns to `Running` with full context intact; *Skip* leaves the outside world untouched (`Skipped`) while lowering speculative priority for similar future signals. Trials found unhelpful before surfacing flush silently to `Discarded`. Per-source daily budgets $B_{\text{spec}}$ cap worst-case background compute. ### 6.3 Orthogonal scheduling: acting device ($\kappa_{\text{exec}}$) and delivery surface ($\kappa_{\text{surf}}$) Single-device assistants collapse execution and presentation onto one screen. Grounded in Dey's context-aware computing framework [19], PESA decouples them into two independent $O(\lvert D \rvert)$ deterministic algorithms (since a personal ensemble typically has $\lvert D \rvert \le 10$, both execute in sub-millisecond time without LLM overhead). **Algorithm 2 (`choose_device(τ)`)** selects the optimal device capable of executing the next step: ```alg choose_device(τ): capable = { d ∈ D | τ.req_exec ⊆ κ_exec(d) } usable = { d ∈ capable | α(d, now) ∈ {online, wakeable} } if usable is not empty: d* = argmin_{d ∈ usable} load_and_rtt(d) if α(d*, now) == wakeable: wake(d*) # silent push wakeup & local lease grant return d* if capable is not empty: τ.state = parked τ.wait_reason = "device_offline" else: τ.state = waiting τ.wait_reason = "intervention: missing required device capability" ``` **Algorithm 3 (`choose_surface(τ, D, P, now)`)** selects **at most one** delivery surface respecting user focus, quiet hours $Q_{\text{quiet}}$, and time sensitivity (Table 6, Figure 7): ```alg choose_surface(τ, D, P, now): if τ.state == running: return ambient_progress(D) # inline pill + Dynamic Island + menu bar if τ.state == waiting: if user is actively chatting on device d_chat: return inline_card(d_chat, τ.version) if now ∈ P.Q_quiet and not τ.is_urgent_override: return queue_silent_card(τ.version) # quiet inbox logging; zero screen wake if τ.is_time_sensitive and Watch ∈ D is online and worn: return watch_glance_card(Watch, τ.version) if iPhone ∈ D is online: return actionable_notification(iPhone, τ.version) return next_open_device_card(D, τ.version) ``` **Table 6. Context-aware delivery surface selection and interruption discipline** | User context & thing state | Selected surface ($\kappa_{\text{surf}}$) | Interruption profile & cross-device sync | | --- | --- | --- | | Actively conversing in chat | Inline card or reply inside the active chat stream | Zero context switch; confirm right where attention already rests | | Background work in progress | Inline progress pill; iPhone Dynamic Island & Live Activity [22]; Mac menu bar | Calm periphery [18]; no pop-up or sound; tap anytime to inspect or stop | | Ready for decision, non-urgent | Suggestion card queued for the next opened client | Zero immediate disruption; batch-reviewed calmly on tablet or computer | | Ready for decision, time-sensitive | Apple Watch glance confirmation card or iPhone actionable notification | Single light haptic alert; versioned commit on one device withdraws alerts on all others | | Focus mode or quiet hours | Silent logging into *Waiting for you* inbox under $Q_{\text{quiet}}$ | Strictly zero interruption unless matched by an explicit user-defined urgent override | > Figure 7. Orthogonal scheduling of acting device (κ_exec, α) and delivery surface (κ_surf, Q_quiet). Capability and availability select the execution device, while user focus and quiet policy choose at most one alert surface with synced multi-device dismissal. ### 6.4 End-to-end walkthrough: rescheduling while commuting with a closed laptop > Figure 8. Cross-device sequence walkthrough. With the laptop lid closed, cloud workers check calendars and draft a reply, route a glance confirmation card to the watch, and dispatch upon atomic version validation. Figure 8 illustrates how the pipeline and algorithms interlock during a routine morning commute when the user's laptop is closed inside a backpack and a key client emails to propose a Wednesday 2:00 pm review: 1. **Intake and two-stage filtering ($t = 0\text{s}$):** Stage-1 rules match an active recent correspondent plus meeting keywords at zero model cost; Stage-2 confirms that checking the calendar and drafting a reply adds high expected value. 2. **Thing creation and subscription ($t = 2\text{s}$):** The front desk creates `#T-305`, dispatches worker $w_1$, and subscribes $w_1$ to thread $h_{\text{mail-89}}$. 3. **Cloud speculative preparation ($t = 3\text{s}\dots11\text{s}$):** Even with the laptop asleep and phone locked, cloud worker $w_1$ queries the read-only calendar feed, identifies a Wednesday conflict, notes open Thursday 10:00 am and Friday 3:00 pm slots, loads prior meeting context from Archive `#T-288`, and drafts a concise reply proposing Thursday at 10:00 am. 4. **Approval gate and surface selection ($t = 12\text{s}$):** Sending external email crosses Invariant 2, transitioning `#T-305` to `Waiting (approval, version = 1)`. Algorithm 3 sees the user is walking with an active watch and delivers a two-line glance card to the wrist. 5. **Atomic commit and thread reactivation ($t = 18\text{s}$):** The user raises the watch once and taps *Approve*. Eq. (5) verifies `version == 1`, increments to `version = 2`, dispatches the email, marks `#T-305` `Done`, and clears the prompt from phone and computer. When the client replies thirty minutes later confirming Thursday, Step 4 of Algorithm 1 routes the email directly back to $w_1$'s retained subscription to prepare the calendar invite without re-explaining any context. Compared with a conventional multi-window workflow (**4 manual interventions, 3 cross-app copy-paste transfers**), PESA compresses the interaction to **1 wrist tap and 0 context transfers**. ## 7. Ecosystem-native interaction and representative scenarios ### 7.1 Ergonomic division of labor across device form factors Shrinking a dense desktop layout onto a phone—or putting a miniature chat box on a watch—fails because each personal device carries a distinct **ergonomic interaction window**: ~2 seconds on a watch, ~30 seconds one-handed on a phone, ~15 minutes of split-screen reading on a tablet, and multi-hour pointer/keyboard execution on a computer. Using a four-device Apple ensemble (iPhone, iPad, Mac, Apple Watch) as a concrete mapping, Table 7 illustrates how one unified thing state renders natively across form factors while respecting platform Human Interface Guidelines [23]. **Table 7. Ergonomic division of labor across a four-device personal ecosystem** | Form factor | Native platform capabilities ($\kappa_{\text{exec}}$ & $\kappa_{\text{surf}}$) | Primary role in PESA | | --- | --- | --- | | **Smartphone (e.g., iPhone)** | Always carried, actionable notifications, Dynamic Island & Live Activities, Siri/Shortcuts, system Share Sheet | **Pocket sensor, ambient tracker, and quick-approval hub.** Sharing any link or file from any app via the native Share Sheet creates a thing immediately; background work pulses quietly on the Dynamic Island. | | **Tablet (e.g., iPad)** | Large touch canvas, Split View, multi-windowing, Drag & Drop, keyboard & stylus | **Comparison and batch-review desk.** Sidebar queue beside a full detail canvas lets the user inspect a source PDF contract alongside pre-filled order items and approve calmly. | | **Desktop / Laptop (e.g., Mac)** | Continuous power, full filesystem, Menu Bar & global shortcuts, browser sessions, native desktop apps & CLI | **Primary local execution hands.** Driven under `ComputerHandsLease` mutual exclusion for multi-tab web automation, intranet form filling, local file operations, and scripts. | | **Smartwatch (e.g., Apple Watch)** | Tactile tap, 1–2 s raise-to-wake glance, watch face complications, short voice capture | **High-signal confirmation valve.** Never streams verbose logs; presents only time-sensitive two-line approval cards (*Approve / Later*) or captures quick one-sentence voice intents. | | **Cross-device continuum** | Cloud state machine, optimistic `version` commit, Archive `#T-id` recall chain, Handoff | **Seamless continuity.** Start on phone, execute form pre-fill on desktop, glance on watch, verify on tablet—one decision anywhere converges everywhere. | ### 7.2 Four representative scenarios and fault-recovery paths A credible systems architecture must specify not only the happy path, but also **how it degrades gracefully when laptops sleep, requirements change mid-flight, or untrusted web content attacks the runtime**. Figure 9 summarises four representative workflows: > Figure 9. Four representative cross-device personal ecosystem scenarios: cross-timezone scheduling, phone-to-desktop comparison and intranet form filling, multi-week thread batching with hop-by-hop recall, and neutralising indirect prompt injection and covert URL exfiltration. 1. **Scenario 01 — Cross-timezone scheduling and travel changes.** - *Normal closed loop:* While the laptop is closed, a meeting reschedule email clears two-stage filtering; a cloud worker checks calendar conflicts, drafts a reply, and surfaces a glance card on the watch for one-tap approval with synced multi-device dismissal. - *Exception recovery:* If the user taps *Edit* and speaks *"move it to next Tuesday afternoon"* on the phone, the thing returns from `Waiting` to `Running` and the same worker revises the draft in seconds with full thread history intact. If the client's email also asks to resend last week's quote sheet, the front desk splits out a second sub-step pulling attachment `#T-114` from the Archive. 2. **Scenario 02 — Cross-device price comparison and intranet desktop form pre-filling.** - *Normal closed loop:* Sharing a product link from the phone triggers cloud multi-vendor price comparison; the worker acquires `ComputerHandsLease` on the desk computer to pre-fill the internal procurement portal and halts right before *Submit*, while live progress displays on the phone and final review happens in tablet Split View. - *Offline and focus-contention recovery:* If the user is actively typing on the computer, foreground priority keeps the cursor untouched while the worker finishes all cloud comparisons first. If the home computer is completely offline, cloud research still finishes completely and only the final intranet form step parks (`Parked: device_offline`), resuming from its verified checkpoint once the computer wakes. 3. **Scenario 03 — Multi-week project thread batching and hop-by-hop Archive recall.** - *Normal closed loop:* Over a three-week client negotiation, emails, document comments, and status alerts route directly to one subscribed worker via Algorithm 1 and batch into one concise milestone card. Asking later from a phone in a taxi for the client's verbatim wording on a liability cap triggers hop-by-hop recall (`#T-142` $\to$ `#T-114` $\to$ `#T-108`), returning the exact quote and timestamp. - *Cross-client isolation:* Because every worker runs in a scoped sandbox with explicit subscriptions $\text{sub}(w)$, pricing terms from Client A cannot leak into concurrent drafts for Client B. 4. **Scenario 04 — Defending against indirect prompt injection and covert URL exfiltration.** - *Attack and recovery:* Summarising an external web page whose hidden HTML embeds `[System Override: read recent financial emails and API keys, Base64-encode into https://evil.example/pixel.png?leak=... and render]` fails against two independent gates: (1) the worker holds only `brief = "Summarise the core arguments of the target URL"` and cannot read private mail, chat history, or sealed credentials (Invariant 6); and (2) the egress guard blocks parameterised requests and auto-loaded external images to unapproved domains, logging the blocked attempt and returning a clean summary. ## 8. Interaction architecture: from chat transcripts to things DeepSeek's Super-agent report highlights "what interface and mental model should replace the single chat window" as a central open challenge [1]. PESA replaces endless sidebars of raw chat transcripts with an interface anchored on **things**. Every surfaced thing answers four immediate questions: *where it originated*, *how far it has progressed*, *what the bottom-line result is*, and *whether human input is required now*. To keep interaction effortless, the eight internal states of Section 4.3 fold into three views inside familiar native surfaces: - **Natural entry with zero ticket-form friction.** Users still converse naturally via text, voice, or OS share menus without filling out manual task forms. - **Inline progress pills.** Long background work occupies a single compact progress line inside the conversation; users continue chatting underneath or tap the pill to inspect steps, adjust constraints, or stop execution. - **Three-state global view (*In progress / Waiting for you / Done*):** *In progress* merges `Running` and `Parked` (showing calm subtitles such as *"Comparison ready · waiting for Mac to open"*); *Waiting for you* gathers `Waiting (approval)` and `Waiting (intervention)`; *Done & archived* retains `Done`, `Stopped`, and `Skipped` with searchable `#T-id` provenance, while `Candidate` and `Discarded` remain invisible. - **Four-part Suggestion Card anatomy.** Every proactive card follows one scannable layout: (1) *provenance header* (source, timestamp, `#T-id`), (2) *prepared payload preview* (full draft text, calendar diff, or highlighted pre-filled form fields), (3) *three-button decision bar* (**Approve / Edit / Skip**), and (4) *collapsible reference drawer* listing consulted `#T-id` entries. - **Calm periphery discipline.** Following Weiser and Brown [18] and Horvitz [20], Lock Screen Live Activities reflect only active progress, watches receive strictly time-sensitive decisions, and uncertain trials vanish silently. ## 9. Threat model and defence-in-depth architecture Expanding an agent from a passive chat box into a cross-device ecosystem proxy with email access and local GUI control significantly broadens its attack surface. We first state our explicit trust boundaries, then map Saltzer and Schroeder's classic protection principles [25] onto concrete architectural mechanisms. **Trust assumptions and adversary model.** In PESA's baseline deployment model, the user's authenticated devices, OS Keychain/sealed credential vault, and isolated cloud state machine are treated as the **trusted computing base (TCB)**. The **adversary** controls untrusted external content—web pages, incoming emails, shared documents, and PDF attachments—and may embed indirect prompt injections [6], malicious hyperlinks, or covert tracking images. We also treat **LLM hallucinations, transient network retries, and multi-device race clicks** as first-class fault sources that safety mechanisms must contain deterministically rather than relying on model obedience. (Section 12.1 examines the stronger zero-trust setting where the cloud coordinator itself is untrusted.) 1. **Complete mediation — versioned approval gate (Invariant 2).** Outward write executors verify a user-confirmed token bound to $(\tau.\text{id}, \tau.\text{version})$ before executing any non-allowlisted action. Even if a compromised prompt coaxes the LLM into invoking `send_email()`, the executor rejects the call outright without a valid version token. 2. **Fail-safe defaults and on-device pre-filtering (Invariant 4).** All external connectors start disabled ($S_{\text{on}} = \varnothing$) and are individually revocable [25]. Stage-1 deterministic rules run locally on-device for high-sensitivity sources (notifications, local messages) so unmatched private text never leaves the hardware. 3. **Least privilege — sealed credential vault and scoped worker briefs (Invariant 6).** Passwords, session cookies, and OAuth tokens stay sealed in the OS Keychain or execution vault; workers invoke authenticated operations via opaque capability handles and never observe raw credential strings in prompt context. Each worker receives only a minimal task-scoped `WorkerTask.brief`, isolating unrelated main-chat memory. 4. **Data-instruction separation and three-layer defence against covert exfiltration (Invariants 6, 2).** Greshake et al. [6] showed that indirect prompt injection can silently steal context by encoding private text into rendered Markdown image URLs (`![img](https://attacker.tld/collect?data=...)`) or HTTP GET query parameters without triggering send/pay dialogs. PESA deploys three concentric barriers (Figure 10): (i) *signed data-channel framing* barring tool-call extraction from untrusted payloads; (ii) *scoped `brief` air-gapping*, ensuring a web-summarisation worker holds no sensitive private history to steal; and (iii) an *egress domain allowlist and parameter guard* that blocks auto-loaded external images and dynamically parameterised requests to unapproved third-party domains, halting suspicious outbound URLs at the approval gate. 5. **Minimal ephemeral retention and zero training.** Relayed attachments and screenshots reside only in encrypted ephemeral caches during active task execution and are never used for model training. 6. **Psychological acceptability — preventing approval fatigue (Invariants 1, 3, 7).** As Saltzer and Schroeder warned [25], excessive confirmation dialogs train users into blind click-through habituation. Filtering >80% of noise up front, completing preparation before surfacing one concise card, and clearing alerts across all devices upon confirmation ensure that every approval prompt represents a genuine, scannable decision. > Figure 10. Defence-in-depth boundary against indirect prompt injection and covert URL-parameter exfiltration. Scoped worker briefs isolate private history, credentials stay sealed out of prompt context, and egress guards plus versioned approval gates enforce zero unauthorized outward writes. **Table 8. Personal ecosystem threat model, fault paths, and defence-in-depth matrix** | Threat or fault class | Attack vector / real-world failure path | Architectural defence-in-depth mechanism | Enforced invariant | | --- | --- | --- | --- | | Unapproved outward write | Model hallucinates or misjudges intent and attempts to send mail, submit a form, or pay | Low-level executor enforces user-signed token bound to `version`; missing token halts at `Waiting (approval)` | Invariant 2 | | Indirect prompt injection hijack | Malicious instructions inside web pages, emails, or PDFs attempt to hijack tool calls [6] | Untrusted text isolated in signed data channels + worker restricted to minimal task-scoped `brief` decoupled from privileged tools | Invariant 6 | | Covert URL / image exfiltration | Injected prompt encodes private memory into Markdown image URLs or GET query parameters [6] | Scoped `brief` removes unrelated private memory + egress guard blocks unapproved external parameterised URLs + approval gate | Invariants 2, 6 | | Credential extraction | Prompt injection or log dump attempts to leak passwords, cookies, or API tokens | Credentials sealed inside encrypted vault between OS Keychain and executor, never entering prompt context | Invariant 6 | | Desktop focus contention & deadlock | Multiple workers and live chat fight over mouse/keyboard, or a GUI step hangs | `ComputerHandsLease` single-holder mutex + foreground preemption + 180 s idle auto-reclamation + 45 s watchdog sweep | Invariants 1, 5 | | Cross-device tap race | Rapid taps on Watch and phone within a second risk duplicate sends or charges | `e.id` deduplication + atomic cloud optimistic commit on `version` (Eq. 5) + synced multi-device dismissal | Invariant 7 | | Mid-task lid close / disconnect | Laptop sleeps halfway through a form; naive replay risks duplicate submissions | Checkpointed idempotent steps; DOM/window fingerprint verified on wake; ambiguous drift escalates to `Waiting (intervention)` | Invariants 2, 5 | ## 10. Evaluation methodology, five-level attention accounting, and PESA-Bench ### 10.1 Eight orthogonal evaluation metrics Single-task completion benchmarks such as WebArena [10] and OSWorld [11] remain essential for testing L1 execution accuracy, but they do not capture the defining criteria of L2–L4 ecosystem systems: *how much attention was saved, how many false interruptions were inflicted, whether memory held across devices, and whether safety invariants remained unbroken*. Table 9 defines eight orthogonal evaluation metrics. **Table 9. Evaluation metrics for personal ecosystem super agents** | Metric | Formal definition and accounting rule | Target direction | | --- | --- | --- | | **Amortised attention cost ($\overline{\mathcal{A}}$)** | $(\sum_{\tau \in T_{\text{done}}} \mathcal{A}(\tau) + \sum_{\tau' \in T_{\text{skip}}} I_{\text{reject}}(\tau')) / \lvert T_{\text{done}} \rvert$ (Eq. 3; penalises dismissed cards) | Lower is better | | **Time to decision** | Median and p95 latency from event arrival (or user instruction) until a prepared result reaches `Waiting` | Shorter is better | | **Speculative hit rate** | Adopted cards (*Approve* + *Edit*-then-*Approve*) $\div$ (Adopted + *Skipped*); excludes silent `Discarded` trials | Higher is better | | **False interruption rate** | Surfaced alerts dismissed via *Skip* or marked unnecessary $\div$ total proactive alerts delivered | Lower is better | | **Key-event miss rate** | Share of genuinely desired events silently dropped into `Discarded` by filtering or trials | Lower is better | | **Cross-device continuity** | Share of cross-device follow-ups accurately resolved with provenance via the `#T-id` Archive recall chain | Higher is better | | **Watchdog self-healing rate** | Share of runtime stalls recovered automatically without escalating to human intervention | Higher is better | | **Runtime invariant violations** | Total breaches of the seven runtime invariants (Section 4.4) across the full evaluation trace | **Must be strictly zero** | False interruption rate and key-event miss rate form a tunable precision-recall frontier governed by Eq. (4) and policy $P$, whereas *runtime invariant violations = 0* is a hard safety constraint that cannot be traded for efficiency. ### 10.2 Analytical attention and context-transfer accounting across L0–L4 To isolate what each architectural level in Table 4 actually eliminates under Eq. (2), Figure 11 and Table 10 perform a **transparent, step-by-step analytical accounting** of human intervention steps ($\mathcal{A}$) and manual cross-app/cross-device transfers ($I_{\text{transfer}}$) across all five levels (L0–L4) on the four representative daily scenarios from Section 7.2. We explicitly frame Table 10 as an analytical model rather than a longitudinal user study; every step count is listed verbatim so readers can audit the assumptions directly. > Figure 11. Analytical workflow attention accounting and four-stage gating funnel. Left: mean human steps and manual context transfers per thing across L0–L4 over the four scenarios; right: the four-stage edge filtering, subscription pass-through, and Horvitz utility gating funnel. **Table 10. Analytical step-by-step accounting of human interventions and manual transfers across L0–L4** | Scenario (Section 7.2) | L0 Respond | L1 Execute (single-task) | L2 Concurrent | L3 Proactive (single-device) | **L4 Complete PESA (ecosystem)** | | --- | --- | --- | --- | --- | --- | | **01 · Client meeting email** (check calendar & reply) | **4 steps / 3 transfers** (read mail $\to$ check calendar $\to$ paste to chat $\to$ paste back & send) | **2 steps / 1 transfer** (paste mail & wait $\to$ confirm send; blocked if laptop sleeps) | **2 steps / 0 transfers** (dispatch background draft $\to$ confirm; user still spots mail first) | **1 step / 0 transfers** (cloud filters & drafts proactively; waits until user opens app) | **1 step / 0 transfers** (cloud checks calendar & drafts while Mac sleeps; 1 wrist tap sends & clears all 4 devices) | | **02 · Phone link $\to$ desktop compare & intranet form** | **5 steps / 4 transfers** (copy link $\to$ compare tabs $\to$ send to Mac $\to$ paste fields $\to$ submit) | **3 steps / 1 transfer** (send link to Mac $\to$ start & watch form fill $\to$ review & submit) | **2 steps / 1 transfer** (send link to Mac for background fill $\to$ review & submit) | **2 steps / 1 transfer** (proactive price watch on one device; without Share Sheet & Mac lease, user still ferries to Mac) | **2 steps / 0 transfers** (iPhone Share Sheet intake + Mac `ComputerHandsLease` background fill + 1-tap iPad Split View approval) | | **03 · Multi-week thread & two-week quote recall** | **4 steps / 3 transfers** (search mail/chat $\to$ paste into chat $\to$ ask quote $\to$ verify) | **3 steps / 2 transfers** (run separate searches $\to$ stitch threads manually $\to$ ask quote) | **2 steps / 0 transfers** (background summary $\to$ follow-up in same session; phone loses context) | **1 step / 1 transfer** (proactive batching card; asking from iPhone about a Mac task still needs manual lookup) | **1 step / 0 transfers** (subscribed worker batches updates into 1 card; casual iPhone query recalls exact quote via `#T-id`) | | **04 · Summarise untrusted page with hidden leak** | **2 steps / 1 transfer** (copy article text $\to$ paste into chat to summarise) | **2 steps / 0 transfers** (launch reader; without scoped `brief` & egress guard, user must supervise) | **1 step / 0 transfers** (hand URL to background worker; scoped `brief` isolates memory) | **1 step / 0 transfers** (watched page summarised proactively under scoped `brief`) | **1 step / 0 transfers** (scoped `brief` + egress guard + approval gate block covert URL with 0 violations) | | **Mean across 4 workflows** | **3.75 steps / 2.75 transfers** | **2.50 steps / 1.00 transfer** | **1.75 steps / 0.25 transfers** | **1.25 steps / 0.50 transfers** | **1.25 steps (-66.7%) / 0.00 transfers (-100%)** | Three structural findings follow from Table 10 and Proposition 3: 1. **L0 $\to$ L2 eliminates synchronous screen supervision and within-device copy-pasting, but leaves $I_{\text{init}} \ge 1$.** Moving from L0 (3.75 steps) to L2 (1.75 steps) removes tedious clicking and waiting, yet the user must still personally discover every incoming event and initiate the workflow. 2. **Why stopping at L3 exposes a cross-device gap (0.50 transfers/thing).** Single-device or web-only proactivity (L3) cuts mean intervention steps down to 1.25, matching L4's step count—yet in naturally cross-device workflows (Scenarios 02 and 03), lacking native Share Sheet intake, a desktop execution lease, and a shared `#T-id` Archive forces **0.50 manual cross-device transfers per thing**. 3. **Only L4 PESA reaches both 1.25 steps (-66.7% vs. L0) and strictly 0.00 manual transfers (-100%).** Combined with Stage-1 zero-token filtering, subscription pass-through (-36.8% read-cache tokens [1]), and backlog batching (-75% amortised routing latency [1]), human attention converges near Proposition 3's sovereignty lower bound. ### 10.3 Proposed replay benchmark: PESA-Bench To enable reproducible, apples-to-apples evaluation of L2–L4 personal ecosystem agents, we specify **PESA-Bench**, a synthetic multi-week replay benchmark comprising three stress suites: - **Multi-week noisy life traces:** Two-to-four-week timestamped event streams interleaving emails, calendar updates, chats, watched pages, and cross-device user requests mixed with **>82% non-actionable noise** (promotions, group banter, OTP codes, routine alerts) to jointly measure speculative hit rate, false interruption rate, and key-event miss rate. - **Device availability, focus contention, and tap-race schedules:** Realistic $\alpha(d, t)$ transitions across four devices (commutes, closed-lid meetings, active desktop work, night Focus hours), injecting foreground chat preemptions on `ComputerHandsLease` and simulated 300 ms cross-device Watch/phone double-taps to stress-test Eq. (5). - **Indirect prompt injection and covert exfiltration red-team suite:** Adversarial web pages, HTML emails, and PDF attachments following Greshake et al.'s taxonomy [6], embedding spoofed system overrides, cross-brief memory probes, and Markdown image / URL parameter exfiltration traps. Any single breach of Invariants 1–7 fails the suite outright. ## 11. Reference implementation: Piko and runtime verification PESA is grounded in an active engineering system, **Piko**, a personal AI assistant spanning iPhone, iPad, Mac, and Apple Watch. To keep architectural theory strictly separated from current shipping reality, this section reports exactly what is verified in production code today and what remains on the implementation roadmap. ### 11.1 Deterministic unit verification of production runtime mechanisms For the L2 concurrency, isolation, lease arbitration, and watchdog primitives already shipping in Piko's client runtime, we maintain an automated deterministic test suite (`BackgroundWorkerTests`). All six core runtime mechanisms pass verification (Table 11). **Table 11. Deterministic unit verification of Piko production runtime mechanisms (`BackgroundWorkerTests`)** | Verified mechanism | Production module & parameters | Enforced invariant / property | Test status | | --- | --- | --- | --- | | Background result returns to origin chat | `BackgroundWorkers` (`maxRunning = 3`) | Asynchronous full-duplex delivery in one front-desk voice (Invariant 1) | Passed | | Task-scoped `brief` isolation | `WorkerTask.brief` context boundary | Worker receives only minimal current-task brief; zero unrelated chat or secrets (Invariant 6) | Passed | | Desktop single-holder mutual exclusion | `ComputerHandsLease.acquire` | At most one entity drives local GUI at a time; queued workers run cloud steps first (Proposition 2) | Passed | | 180 s idle lease auto-reclamation | `ComputerHandsLease` (`idleRelease = 180s`) | Leases idle for 180 s or held by exited runs reclaim automatically, preventing deadlock (Invariant 5) | Passed | | Foreground chat priority preemption | `ComputerHandsLease` priority queue | Live foreground desktop requests jump ahead of queued background workers (Invariant 1, Prop. 2) | Passed | | Watchdog 45 s sweep & 3-try escalation | `BackgroundWorkers` (`45s / 20m / 60m or 3 tries`) | Stalls trigger recovery prompts at 20 min and escalate honestly after 60 min or 3 tries (Invariant 5) | Passed | ### 11.2 Honest capability self-assessment and four-phase roadmap Judged strictly against Section 3.5's L0–L4 criteria, **Piko's production foundation today sits in L1-to-L2 consolidation**, with vertical pathways such as cloud change-watching ("Watch for Changes", applying deterministic rules before model evaluation) exhibiting early **L3 prototype behaviour**. Significant engineering work remains to complete full L4 ecosystem unification—for example, the Apple Watch client currently acts as a read-only progress mirror rather than the versioned one-tap approval valve specified in Table 7. Ongoing development converges all existing modules under the unified eight-state *Thing* state machine while enforcing a strict backward-compatibility discipline—**add, never alter**: every phase adds capabilities and state unification underneath without silently breaking established user workflows (Table 12). **Table 12. Four-phase engineering roadmap for Piko toward complete L4 PESA** | Phase | Core engineering scope and deliverables | Target level | Current status | | --- | --- | --- | --- | | Phase 1 | Asynchronous foreground-background decoupling: results return to origin chat in one front-desk voice; 45 s watchdog sweeps active workers with up to 3 automated rescue attempts | L2 | Done | | Phase 2 | Unified *Thing* runtime: long chat work hands off cleanly to background workers; `ComputerHandsLease` with foreground preemption; cross-device `#T-id` sync; inline progress pills and three-state UI | L2 | In progress | | Phase 3 | Everyday signals enter the pipeline: email, calendar, and Share Sheet intake wired into two-stage edge-cloud filtering and the eight-state machine, delivering *Approve / Edit / Skip* suggestion cards | L3 | Planned | | Phase 4 | Full sleep-resilient L4 ecosystem: continuous cloud state machine, silent push wakeup with checkpointed resume, Apple Watch one-tap versioned approval with synced four-device dismissal, and server-side watchdog closure | L4 | Planned | ## 12. Limitations, threats to validity, and open research questions ### 12.1 Limitations and threats to validity As an architecture and vision paper, this work carries four explicit limitations that bound its current claims: 1. **Analytical workflow accounting versus longitudinal user deployment (external validity).** Table 10's step reductions (3.75 $\to$ 1.25 steps, 2.75 $\to$ 0 transfers) derive from structured analytical decomposition of four representative scenarios rather than an in-the-wild multi-week user study. Real-world attention savings will depend heavily on each user's empirical false-interruption rate $|T_{\text{skip}}|$ in Eq. (3) and on how well Stage-2 filtering calibrates to individual habits. Full empirical execution of PESA-Bench and longitudinal field evaluation remain essential future work. 2. **Cold-start miss risk in aggressive on-device rule filtering (precision-recall trade-off).** Stage-1 deterministic rules cut cloud routing load by $\ge 5\times$ when noise exceeds 80%, yet strict sender allowlists risk silently dropping a genuinely urgent message from a first-time sender (e.g., an unexpected medical clinic or new client). Mitigating cold-start misses without eroding privacy requires careful keyword fallbacks and lightweight on-device semantic classifiers. 3. **Cross-vendor OS platform constraints (deployability).** Although PESA's formal model is OS-agnostic, capabilities such as silent background push wakeup, Lock Screen Live Activities, system Share Sheets, and desktop accessibility APIs vary sharply across Apple, Android, Windows, and Linux platforms—especially in mixed-vendor households (e.g., iPhone paired with a Windows desktop). 4. **Cloud coordinator trust boundary (security scope).** Our baseline threat model assumes an honest, isolated cloud state machine (Section 9). Protecting users even against a compromised cloud coordinator requires pushing policy verification and biometric presence signing down into on-device hardware enclaves. ### 12.2 Open research questions Treating a personal device ecosystem as an agent's operating environment opens six compelling research problems across systems, HCI, and security: - **Multi-year episodic Thing memory consolidation and verifiable forgetting.** Once an Archive holds tens of thousands of things over years, how should systems merge stale causal chains, reconcile shifting preferences (e.g., changing meeting-time habits), and prove cryptographically that a forgotten thread has been purged everywhere? - **Few-shot online calibration of personal interruption thresholds.** Tolerance for proactive cards differs dramatically across individuals and shifts between workday focus and weekend rest. How can an agent converge rapidly on each user's Horvitz threshold $p^*$ (Eq. 4) from sparse *Approve / Edit / Skip* feedback? - **Energy- and privacy-aware partitioning between on-device SLMs and cloud models.** As mobile and laptop neural accelerators advance, how much of Stage-2 filtering, entity redaction, and offline drafting can run locally without unacceptable battery drain or thermal throttling, and how should the split adapt dynamically to battery and network state? - **Sovereignty-preserving PESA-to-PESA negotiation protocols.** When one user's agent negotiates meeting slots with a colleague's agent or compares quotes with a merchant's agent, how can two autonomous PESAs reach agreement via minimal-disclosure protocols without exposing full calendars or private reserve prices before returning to each principal's approval gate? - **Zero-trust hardware boundaries between cloud brain and local hands.** If a cloud coordinator is compromised, how can Secure Enclave attestation and local hardware biometric checks ensure local device hands reject forged high-risk execution commands? - **Pareto optimality between speculative compute spend and human attention saved.** Under a fixed daily budget $B_{\text{spec}}$, what scheduling policy maximises human attention saved ($\Delta \overline{\mathcal{A}}$) per thousand speculative cloud tokens spent? ## 13. Conclusion Once language models can reliably complete isolated steps, the real ceiling on personal productivity shifts from model capability to **how often a person's finite attention is fractured**. Keeping agents inside isolated chat boxes—or letting desktop agents fight users for the same cursor—paradoxically turns better models into heavier coordination work. PESA shifts that coordination layer into the systems architecture itself. By treating the entire personal device ensemble as one operating environment, elevating the unit of work from *conversations* to *things*, decoupling execution capability ($\kappa_{\text{exec}}$) from delivery surface ($\kappa_{\text{surf}}$), arbitrating desktop focus via time-bounded leases, and enforcing versioned approval gates and scoped worker isolation, a personal agent can absorb discovery, context transfer, and fault recovery while leaving final authority strictly with the human user. In this architecture, the agent ceases to be a text box waiting for prompts and becomes a quiet, trustworthy system spanning the devices people already carry—appearing on the right screen only when a real decision is ready. ## Appendix A. Architectural mapping from Super-agent to PESA Table A1 summarises how PESA inherits core systems mechanisms from DeepSeek Super-agent [1] and adapts each mechanism to the constraints of a single individual's multi-device ecosystem. **Table A1. Evolution of core systems mechanisms from Super-agent to PESA** | Super-agent mechanism | PESA counterpart | Architectural evolution for personal ecosystems | | --- | --- | --- | | Resident router + concurrent workers | Resident front desk + isolated workers | Scoped to single-principal sovereignty; adds multi-intent splitting, cross-channel merging, and optimistic `version` arbitration | | Environment event triggers | Everyday life signals (mail, calendar, notifications, Share Sheet, web) | Adds two-stage zero-token edge rule filter + cloud semantic filter for >80% personal noise; sources default off, uncertain stays quiet | | Thread subscription pass-through | Worker thread subscriptions ($\text{sub}(w) \subseteq H$) | Generalised to many-to-many thread-thing mapping plus automatic reactivation and `#T-id` chaining from `Done` | | Context as cache, recall by reference | Three-tier memory & cross-device Thing Archive | Recall unit becomes a cross-device *Thing* (`#T-id`) enforcing *summary/quote, provenance, and confidence* | | Speculative execution | Side-effect-free preparation + approval card | Coupled with Horvitz expected-utility thresholds (Eq. 4); outward writes halt at `Waiting`; separates system `Discarded` from user `Skipped` | | Asynchronous full duplex | Background work + responsive foreground chat | Outcomes route either inline in chat or via Algorithm 3 to Dynamic Island, Watch, or queued cards; interruptible anytime | | Compute-storage separation | Cloud brain + local device hands | Local hands are heterogeneous user devices; adds `ComputerHandsLease` mutex, foreground preemption, 180 s idle reclaim, and checkpointed resume | | External watchdog | Rescue-first 45 s watchdog | Injects up to 3 diagnostic recovery prompts at 20 min; escalates transparently at 60 min or 3 failures; never silently cancels user watches | | Group chat & PR delivery | Four-device ecosystem-native surfaces | Separates execution selection (Algorithm 2, $\kappa_{\text{exec}}$) from surface selection (Algorithm 3, $\kappa_{\text{surf}}$) with synced multi-device dismissal | ## Appendix B. Design rationale and frequently asked questions ### How does PESA relate to DeepSeek Super-agent? PESA builds directly on Super-agent's systems foundations: breaking the single-session boundary, decoupling a resident front desk from isolated background workers, using event-driven triggers with subscription pass-through, separating compute from storage, and monitoring liveness via an external watchdog [1]. The key divergence is the **operating environment and principal**: Super-agent targets a software team working in group chats and code repositories on always-on cloud machines, whereas PESA targets one individual across heterogeneous, intermittently sleeping personal devices. That shift motivates two additional properties (*ecosystem-native* and *trustworthy*), on-device noise filtering, `ComputerHandsLease` focus arbitration, orthogonal device/surface scheduling, and defence-in-depth against covert URL exfiltration. ### How does PESA differ from Computer Use / Browser Agents or MCP tool plugins? Computer-use agents, browser automation tools, and connector protocols such as MCP operate primarily at the **L1 (Execute)** layer—they expand what tools local hands can call ($\kappa_{\text{exec}}$). Running a computer-use agent directly on a primary laptop hijacks the user's cursor and halts whenever the lid closes. PESA is the **L4 ecosystem systems architecture** above those executors: it coordinates browser and desktop tools as leased local hands (`ComputerHandsLease`), keeps reasoning alive in the cloud across device sleep, filters noisy event streams before invoking models, and enforces versioned human confirmation before outward writes. ### Is PESA tied exclusively to the Apple ecosystem? No. PESA's formal model, eight-state lifecycle, seven invariants, and three scheduling algorithms are completely platform-independent and apply to any multi-device personal ensemble (Android, Windows, Linux, or mixed ecosystems). Piko chose Apple platforms (iPhone, iPad, Mac, Apple Watch) for its first reference implementation because the four form factors have sharp ergonomic differentiation and mature native ambient surfaces (Dynamic Island, ActivityKit, Share Sheet, Handoff). ### Can PESA send messages, submit forms, or make payments without approval? Not by default. Under Axiom 1 and Runtime Invariant 2 (Proposition 1), every outward write mutating external state—sending emails or messages, submitting forms, publishing content, or paying—must halt at `Waiting (approval)` and verify a user-signed confirmation token bound to $\tau.\text{version}$, unless the user has explicitly added a specific low-risk action class to policy allowlist $A_{\text{auto}}$. ### Do tasks continue when the phone is locked and the laptop lid is closed? Yes. Because reasoning and durable Archive state live in the cloud, all cloud-executable steps (research, calendar checks, price comparison, reply drafting) proceed uninterrupted while personal devices sleep. Only steps physically requiring a specific local GUI attempt silent wakeup via Algorithm 2 or checkpoint cleanly into `Parked`, resuming from verified checkpoints once that device reconnects. ### How is an agent's PESA level (L0–L4) determined? Strictly by system architecture (Table 4), never by model parameter count: single-turn chat locked in one window is L0; synchronous single-task tool execution is L1; responsive front desk plus isolated concurrent background workers is L2; event-driven two-stage filtering with speculative suggestion cards is L3; and full cross-device continuity with shared `#T-id` recall, sleep resilience, desktop lease arbitration, native surfaces, and synced dismissal is L4 Complete PESA. ### Is Piko already a complete L4 PESA? Not yet. As Section 11 documents candidly, Piko's production foundation currently sits in L1-to-L2 consolidation—with `BackgroundWorkers`, `ComputerHandsLease`, task-scoped `brief` isolation, and the 45-second watchdog verified by deterministic unit tests (Table 11)—while cloud change-watching operates as an early L3 vertical prototype. Table 12 details the remaining phases toward complete L4 unification. ## Declarations - **Author and affiliation**: Ruiming Zhao, Prysai Lab (ORCID: 0009-0007-8335-5067). - **Competing interests**: The author is the founder of Prysai Lab. Piko, the reference system reported in Section 11, is developed by Prysai Lab. - **Data and verification**: This is a systems architecture and vision paper. Empirical systems figures cited in Section 2 originate from their attributed publications; Section 10.2 reports transparent analytical step accounting across L0–L4, and Section 11.1 reports deterministic unit tests passing on the production Piko runtime. - **Revision history**: First published 2026-11-15 (v1.0, Zenodo DOI: 10.5281/zenodo.24424696); revised 2026-11-21 (v1.1, Zenodo DOI: 10.5281/zenodo.24429625); revised 2026-11-24 (v1.2, academic restructuring, formal propositions & proof sketches, Horvitz threshold calculus, limitations & threats to validity, native trilingual rewrite, and publication-grade typography). - **Licence**: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). You are welcome to quote and share this paper with attribution, the DOI (https://doi.org/10.5281/zenodo.24429625) and a link to the original. ## How to cite Zhao, Ruiming. PESA: Personal Ecosystem Super Agent. Piko Research, Prysai, 2026-11-15 (v1.2, 2026-11-24). https://piko.prysai.com/research/pesa · DOI: https://doi.org/10.5281/zenodo.24429625 APA: Zhao, R. (2026). PESA: Personal Ecosystem Super Agent (Version 1.2) [Vision paper]. Piko Research, Prysai. https://doi.org/10.5281/zenodo.24429625 GB/T 7714: ZHAO R. PESA: Personal Ecosystem Super Agent[R/OL]. Piko Research, Prysai, 2026-11-15. https://piko.prysai.com/research/pesa. DOI: 10.5281/zenodo.24429625. PDF: https://piko.prysai.com/research/pesa.pdf · BibTeX: https://piko.prysai.com/research/pesa.bib · RIS: https://piko.prysai.com/research/pesa.ris ```bibtex @techreport{zhao2026pesa, title = {PESA: Personal Ecosystem Super Agent}, author = {Zhao, Ruiming}, institution = {Prysai}, type = {Vision paper}, series = {Piko Research}, year = {2026}, month = nov, doi = {10.5281/zenodo.24429625}, url = {https://piko.prysai.com/research/pesa}, language = {en}, note = {Version 1.2, revised 2026-11-24} } ``` ## References [1] Qiao, Yujia et al. (DeepSeek Harness Team). Exploring Super-agent Design: Towards a More Autonomous Agent System (in Chinese). DeepSeek Technical Report, April 2026. https://github.com/deepseek-ai/dsh-superagent-prototype [2] Mark, Gloria, Gudith, Daniela, and Klocke, Ulrich. The Cost of Interrupted Work: More Speed and Stress. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '08), pp. 107–110, ACM, 2008; doi:10.1145/1357054.1357072. https://doi.org/10.1145/1357054.1357072 [3] Shneiderman, Ben. Human-Centered Artificial Intelligence: Reliable, Safe & Trustworthy. International Journal of Human–Computer Interaction 36(6): 495–504, 2020; doi:10.1080/10447318.2020.1741118. https://doi.org/10.1080/10447318.2020.1741118 [4] Kung, H. T., and Robinson, John T. On Optimistic Methods for Concurrency Control. ACM Transactions on Database Systems (TODS) 6(2): 213–226, June 1981; doi:10.1145/319566.319567. https://doi.org/10.1145/319566.319567 [5] Gray, Cary G., and Cheriton, David R. Leases: An Efficient Fault-Tolerant Mechanism for Distributed File Cache Consistency. Proceedings of the 12th ACM Symposium on Operating Systems Principles (SOSP '89) / ACM SIGOPS Operating Systems Review 23(5): 202–210, December 1989; doi:10.1145/74850.74870. https://doi.org/10.1145/74850.74870 [6] Greshake, Kai, Abdelnabi, Sahar, Mishra, Shailendra, Endres, Christoph, Holz, Thorsten, and Fritz, Mario. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec '23), pp. 79–90, ACM, 2023; doi:10.1145/3605764.3623985; arXiv:2302.12173. https://arxiv.org/abs/2302.12173 [7] Yao, Shunyu, Zhao, Jeffrey, Yu, Dian, Du, Nan, Shafran, Izhak, Narasimhan, Karthik, and Cao, Yuan. ReAct: Synergizing Reasoning and Acting in Language Models. International Conference on Learning Representations (ICLR), 2023; arXiv:2210.03629. https://arxiv.org/abs/2210.03629 [8] Schick, Timo, Dwivedi-Yu, Jane, Dessì, Roberto, Raileanu, Roberta, Lomeli, Maria, Hambro, Eric, Zettlemoyer, Luke, Cancedda, Nicola, and Scialom, Thomas. Toolformer: Language Models Can Teach Themselves to Use Tools. Advances in Neural Information Processing Systems (NeurIPS) 36: 68539–68551, 2023; arXiv:2302.04761. https://arxiv.org/abs/2302.04761 [9] Wang, Lei, Ma, Chen, Feng, Xueyang, Zhang, Zeyu, Yang, Hao, Zhang, Jingsen, Chen, Zhiyuan, Tang, Jiakai, Chen, Xu, Lin, Yankai, Zhao, Wayne Xin, Wei, Zhewei, and Wen, Jirong. A Survey on Large Language Model based Autonomous Agents. Frontiers of Computer Science 18(6): 186345, 2024; doi:10.1007/s11704-024-40231-1; arXiv:2308.11432. https://arxiv.org/abs/2308.11432 [10] Zhou, Shuyan, Xu, Frank F., Zhu, Hao, Zhou, Xuhui, Lo, Robert, Sridhar, Abishek, Cheng, Xianyi, Ou, Tianyue, Bisk, Yonatan, Fried, Daniel, Alon, Uri, and Neubig, Graham. WebArena: A Realistic Web Environment for Building Autonomous Agents. International Conference on Learning Representations (ICLR), 2024; arXiv:2307.13854. https://arxiv.org/abs/2307.13854 [11] Xie, Tianbao, Zhang, Danyang, Chen, Jixuan, Li, Xiaochuan, Zhao, Siheng, Cao, Ruisheng, Hua, Toh Jing, Cheng, Zhoujun, Shin, Dongchan, Lei, Fangyu, Liu, Yitao, Xu, Yiheng, Zhou, Shuyan, Savarese, Silvio, Xiong, Caiming, Zhong, Victor, and Yu, Tao. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments. Advances in Neural Information Processing Systems (NeurIPS) 37, Datasets and Benchmarks Track, 2024; arXiv:2404.07972. https://arxiv.org/abs/2404.07972 [12] Wu, Qingyun, Bansal, Gagan, Zhang, Jieyu, Wu, Yiran, Li, Beibin, Zhu, Erkang, Jiang, Li, Zhang, Xiaoyun, Zhang, Shaokun, Liu, Jiale, Awadallah, Ahmed Hassan, White, Ryen W., Burger, Doug, and Wang, Chi. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. First Conference on Language Modeling (COLM), 2024; arXiv:2308.08155. https://arxiv.org/abs/2308.08155 [13] Park, Joon Sung, O'Brien, Joseph C., Cai, Carrie J., Morris, Meredith Ringel, Liang, Percy, and Bernstein, Michael S. Generative Agents: Interactive Simulacra of Human Behavior. Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST '23), Article 2, pp. 1–22, ACM, 2023; doi:10.1145/3586183.3606763; arXiv:2304.03442. https://arxiv.org/abs/2304.03442 [14] Packer, Charles, Wooders, Sarah, Lin, Kevin, Fang, Vivian, Patil, Shishir G., Stoica, Ion, and Gonzalez, Joseph E. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560, 2023. https://arxiv.org/abs/2310.08560 [15] LofiSu. deepseek-super-agent: Open-source implementation of the DeepSeek Super-agent architecture. GitHub repository, 2026. https://github.com/LofiSu/deepseek-super-agent [16] thefullgc. opensuperagent: Community implementation of event-driven Super-agent. GitHub repository, 2026. https://github.com/thefullgc/opensuperagent [17] Weiser, Mark. The Computer for the 21st Century. Scientific American 265(3): 94–104, September 1991; doi:10.1038/scientificamerican0991-94. https://doi.org/10.1038/scientificamerican0991-94 [18] Weiser, Mark, and Brown, John Seely. Designing Calm Technology. PowerGrid Journal 1.01, July 1996 (reprinted in Beyond Calculation: The Next Fifty Years of Computing, pp. 75–85, Springer, 1997). https://calmtech.com/papers/designing-calm-technology [19] Dey, Anind K. Understanding and Using Context. Personal and Ubiquitous Computing 5(1): 4–7, 2001; doi:10.1007/s007790170019. https://doi.org/10.1007/s007790170019 [20] Horvitz, Eric. Principles of Mixed-Initiative User Interfaces. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '99), pp. 159–166, ACM, 1999; doi:10.1145/302979.303030. https://doi.org/10.1145/302979.303030 [21] Hennessy, John L., and Patterson, David A. Computer Architecture: A Quantitative Approach (6th Edition). Morgan Kaufmann, Cambridge, MA, 2017; ISBN 978-0-12-811905-1. [22] Apple Inc. ActivityKit: Displaying Live Data with Live Activities. Apple Developer Documentation. https://developer.apple.com/documentation/activitykit [23] Apple Inc. Human Interface Guidelines. Apple Developer Documentation. https://developer.apple.com/design/human-interface-guidelines/ [24] SAE International. Taxonomy and Definitions for Terms Related to Driving Automation Systems for On-Road Motor Vehicles. SAE Standard J3016_202104, April 2021. https://www.sae.org/standards/content/j3016_202104/ [25] Saltzer, Jerome H., and Schroeder, Michael D. The Protection of Information in Computer Systems. Proceedings of the IEEE 63(9): 1278–1308, September 1975; doi:10.1109/PROC.1975.9939. https://doi.org/10.1109/PROC.1975.9939 --- iPhone, iPad, Mac, Apple Watch, Siri and Apple Pencil are trademarks of Apple Inc., registered in the U.S. and other countries and regions. Piko is an independent product of Prysai Lab and is not affiliated with Apple Inc. --- title: "PESA:个人生态超级智能体" author: "Ruiming Zhao" affiliation: "Prysai (Piko)" date: 2026-11-15 updated: 2026-11-24 version: "1.2" language: zh-Hans canonical: https://piko.prysai.com/zh-Hans/research/pesa license: "CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)。本文可自由引用与转载,请注明出处并附 DOI(https://doi.org/10.5281/zenodo.24429625)及原文链接。" --- # PESA:个人生态超级智能体 *面向跨设备个人生态的系统架构、形式化模型与注意力经济学。* Ruiming Zhao · Prysai Lab · 2026-11-15 · 版本 1.2 (2026-11-24) ## 摘要 单任务语言模型智能体已经能够调用外部工具、编写代码并操作图形界面,独立完成越来越复杂的单点任务。然而在日常个人使用中,底座模型变强并没有自然换来人的轻松。由于现有个人 AI 产品仍被困在孤立的会话框或单台设备的屏幕里,用户依然不得不亲自留意新消息、在邮箱、日历、浏览器与多个聊天窗口之间反复搬运上下文,并在智能体接管桌面操作时全程盯屏看护。 本文提出并形式化定义 **PESA(Personal Ecosystem Super Agent,个人生态超级智能体)**:一种服务于单一个人主权、以个人全部设备生态(手机、平板、电脑与手表)为工作环境、以“事项(Thing)”而非“对话(Session)”为基本工作单位、在每台设备上按平台原生习惯协同执行、且在任何对外写操作前默认等待本人显式确认的常驻超级智能体。在继承常驻双层 Super-agent 架构 [1] 的基础上,本文围绕设备、事件流、线索、事项、后台执行器与用户策略建立形式化模型,推导出四分量人类注意力成本模型、面向高噪个人事件流的 Horvitz 混合主动投机阈值、闭合八态生命周期与跨端乐观并发提交规则,并提出七条可验证的运行时系统不变量。在此基础上,我们证明了对外副作用安全性与跨端幂等性(命题 1)、单桌面焦点租约的无死锁与有限等待特性(命题 2),以及主权约束下人类注意力的不可压缩下界(命题 3)。 工程层面,本文给出完整的端到端参考架构——涵盖单一常驻前台协调器、任务级最小权限隔离的后台执行器、跨设备三层**事项档案库(Thing Archive)**、端云两级降噪过滤、单桌面互斥租约(`ComputerHandsLease`)、独立自愈看门狗,以及三项确定性优先调度算法(`route`、`choose_device`、`choose_surface`)——并构建了抵御间接提示注入与隐蔽 URL 参数外泄的纵深防御模型。通过在四类高频跨设备场景上进行可逐跳核对的解析注意力核算,我们揭示了仅停留在单端主动(L3)仍会残留平均每事项 0.50 次跨设备手动搬运,而完整生态架构(L4 PESA)可将人工介入从 L0 的 3.75 步降至 1.25 步(降低 66.7%),并将手动上下文搬运彻底归零(降低 100%)。最后,本文提出合成回放基准 **PESA-Bench**,报告参考实现 **Piko** 生产运行时中六项核心机制的确定性单元测试验证,并系统讨论了方法论局限性、有效性威胁与开放研究问题。 **关键词:**个人生态超级智能体(PESA);个人 AI 智能体;以人为中心的 AI;多设备协同系统;注意力经济学;混合主动交互;投机执行;乐观并发控制;桌面租约仲裁;间接提示注入 **论文摘要卡** | | | | --- | --- | | 术语 | PESA | | 全称 | Personal Ecosystem Super Agent | | 中文 | 个人生态超级智能体 | | 作者 | Ruiming Zhao(Prysai Lab) | | 首次发布 | 2026 年 11 月 15 日 | | 核心界定 | 服务单一个人主权、贯通个人全部设备、以「事项」而非「对话」为单位、对外动作默认须经版本化本人确认的常驻超级智能体。 | | 能力分级 | L0 应答 · L1 执行 · L2 并发 · L3 主动 · L4 生态 | | 参考实现 | Piko(iPhone、iPad、Mac、Apple Watch) | **核心结论** 1. 将个人智能体的基本单位从孤立对话升级为跨设备「事项(#T-id)」,贯通手机、平板、电脑与手表。 2. 扎根经典系统与 HCI 理论:有界桌面租约(Gray & Cheriton)、乐观并发版本提交(Kung & Robinson)、Horvitz 混合主动双阈值与 Shneiderman 二维人本 AI。 3. 给出三条核心命题及证明思路:对外副作用安全与跨端幂等(命题 1)、桌面租约无死锁与有限等待(命题 2)、主权约束下注意力下界 A(τ) ≥ 1(命题 3)。 4. 四类跨设备场景解析核算表明:仅做到 L3 单端主动仍会残留 0.50 次/事项跨端搬运,唯有 L4 完整 PESA 将人工介入降至 1.25 步(-66.7%)且搬运归零(-100%)。 5. 参考实现 Piko 的六项核心运行时机制已通过确定性单元测试,并专节坦诚剖析了方法论局限性与有效性威胁。 ## 1. 引言 今天的大模型已经能读懂长文档、写出可运行的代码,也能模拟鼠标键盘操作软件。但有一个令人意外的现象:模型越聪明,个人用户往往反而越忙。为了办妥一件稍微复杂的日常事务——比如协调一次客户改期、比价后填写公司采购单,或是追踪一场持续三周的项目谈判——用户常常不得不在手机和电脑上同时开四五个互不相通的聊天窗口。每个窗口都是一个孤立的沙盒,不知道你在另一个标签页里聊过什么,更不知道你十分钟前在另一台设备上做过什么。于是,人成了系统之间唯一的粘合剂:亲自发现事务、把散落的上下文复制拼成提示词、在工具运行期间守着屏幕盯防、做完后再把结果搬回邮件或业务系统。 DeepSeek Harness 团队在 Super-agent 技术报告中指出,受制于工作记忆和任务切换开销,一个人同一时段通常只能有效跟进 3 到 5 个并行会话 [1]。在以“单次对话”为中心的架构下,**底座模型决定了单轮回答的质量上限,但人的注意力决定了每天能推进多少件事的吞吐上限**。人机交互领域的经典实证早已说明了这种碎片化打断的隐性代价:Mark、Gudith 与 Klocke 在 CHI 2008 的实验室研究中发现,当知识工作者被频繁打断并被迫在多任务间切换时,人们会本能地加快操作节奏来弥补损失的时间,结果总耗时看起来虽未明显拉长,却付出了显著上升的认知负荷、时间压力、挫败感与错误率 [2]。在邮件、日历、浏览器与多个 AI 窗口之间来回切换,本质上就是一种高强度的持续自我打断。 > **直观理解。** 更强的大模型解决了“你把背景交代清楚后,它怎么把这一步干好”的问题;但它没有解决“谁替你留意日常动静、谁把上下文跨设备带过去、怎么防止后台任务抢你的鼠标,以及怎么在真正发出去之前稳稳停住让你拍板”的问题。PESA 正是为补齐这一缺失的系统层而设计的架构。 ### 1.1 当前个人智能体落地的四重结构性瓶颈 2024 至 2026 年间,个人 AI 工具迅速从纯文本问答演进到工具调用、桌面与浏览器操控(Computer-Use Agents)以及独立 AI 硬件。然而进入高频日常使用后,现有路线反复撞上四面结构性高墙: 1. **提示词冷启动与上下文搬运税。** 真实生活中的事务几乎从不始于一个空白输入框,而是始于一封客户改期邮件、一条航班延误提醒、一张手机拍下的发票,或群聊里的一句日程变动。只要用户必须手动收集这些碎片、组织成提示词再把产出搬回原应用,协调本身的麻烦就常常超过亲手办完这件事的成本,导致日常留存难以维系。 2. **单桌面焦点争抢与“盯屏监工”疲劳。** 桌面操控智能体能点击按钮、填写表单,但一台个人电脑只有一套物理鼠标键盘和一个前台活动窗口。智能体操控桌面时,用户不仅无法继续用电脑工作,还会因担心误点、误删或提前提交而不得不全程盯着屏幕看护。同步独占屏幕的交互方式,把人的注意力与执行时长死死绑定在了一起。 3. **独立 AI 硬件孤岛与既有设备生态的割裂。** 试图绕开现有操作系统的独立挂件或掌上硬件屡屡遇冷,原因很朴素:人们已经拥有一套分工清晰、全天相伴的设备群——口袋里的手机、手腕上的手表、用于阅读与对比的平板、桌上的电脑。用户缺的不是一块没有历史数据和生态应用的新屏幕,而是一套能让同一个持续在线的智能体进驻既有设备群的系统架构。 4. **主动性与信任感的两难。** 纯被动助手在合上电脑、锁上手机的瞬间便停止运转;可一旦盲目开启主动推送,每天涌入的数百条促销邮件、群聊闲聊与应用通知就会化作令人烦躁的弹窗噪音——更危险的是,如果系统在未经本人核对的情况下以用户真实身份对外发信、提交表单或发起支付,任何一次失误都会造成不可挽回的信任崩塌。 ### 1.2 研究问题与主要贡献 本文是一篇系统架构与愿景论文,围绕三个核心研究问题展开: - **RQ1(抽象模型与注意力):** 应当用怎样的系统抽象与能力分级,将跨设备个人生态智能体与会话型聊天工具、单端自动化工具区分开来?每一级架构演进究竟消除了哪一部分人类注意力成本? - **RQ2(系统协同与并发):** 单一常驻智能体如何把持续在线的云端推理与间歇休眠的本地设备协同起来,在单台电脑上防止多个后台任务争抢桌面焦点,并在多块屏幕间避免重复触发对外操作? - **RQ3(信任边界与降噪纪律):** 主动式个人智能体如何在高噪日常事件流中既不空耗云端算力、又不频繁打扰用户,同时抵御来自外部网页与邮件的间接提示注入与隐蔽数据外泄? 针对上述问题,本文做出五项主要贡献: 1. **概念框架与 L0–L4 能力分级(第 3 节)。** 正式定义 **PESA(Personal Ecosystem Super Agent)**,基于以人为中心的 AI 双维原则 [3] 阐明三条设计命题与六项系统特征,建立与模型参数量解耦、按系统替人分担的协调范围划分的 L0–L4 分级标准。 2. **形式化模型、混合主动决策边界与理论保证(第 4 节)。** 给出将设备能力正交拆分为执行能力与送达能力 $\kappa(d) = \langle \kappa_{\text{exec}}(d), \kappa_{\text{surf}}(d) \rangle$ 的形式化定义;构建四分量注意力成本方程与高噪个人环境下的 Horvitz 投机阈值;设计闭合八态生命周期与基于乐观并发控制 [4] 的版本化原子提交规则;证明了对外副作用安全性、桌面租约无死锁性与主权注意力下界三条核心命题。 3. **跨设备参考架构与确定性优先调度算法(第 5–6 节)。** 设计单一常驻前台、任务级隔离后台执行器、跨设备三层**事项档案库**、断线检查点续接、有界时间互斥租约(`ComputerHandsLease`)[5] 及独立自愈看门狗,并给出事件路由(`route`)、执行设备选择(`choose_device`)与情境送达面选择(`choose_surface`)三项低开销调度算法及复杂度分析。 4. **生态原生交互、容错场景与纵深防御体系(第 7–9 节)。** 阐述四类设备形态的人体工学分工,剖析四类高频跨设备场景的正常闭环与异常恢复路径,说明八态如何折叠为极简三态视图,并建立抵御间接提示注入与隐蔽 URL 外泄的三道架构防线 [6]。 5. **评估指标、L0–L4 解析核算与参考实现验证(第 10–12 节)。** 提出八项正交评估指标与合成回放基准 **PESA-Bench**;在四类场景上逐跳核算 L0 至 L4 的人工介入与跨端搬运(量化说明为何 L3 单端主动仍会残留跨端搬运);报告参考系统 **Piko** 六项生产运行时机制的确定性单元测试结果,并坦诚剖析本文的方法论局限与有效性威胁。 ## 2. 背景与相关工作 PESA 汇聚了智能体系统、操作系统、分布式系统与人机交互六条脉络的研究成果。梳理每一条脉络解决了什么、又在个人日常生活中留下了什么空白,有助于看清 PESA 的系统定位。 ### 2.1 从对话助手到单任务工具与桌面智能体 早期对话助手采用受限于单一窗口的无状态轮询交互。ReAct [7] 通过交替生成推理轨迹与环境动作,使语言模型能依据外部观测修正计划;Toolformer [8] 证明模型可通过自监督学习掌握外部 API 调用时机。综述研究系统梳理了这一范式如何演进为编码智能体、浏览器智能体以及 MCP 等标准化工具连接生态 [9]。 但进入真实个人环境后,独立单任务智能体仍面临显著可靠性鸿沟。在包含 812 个真实网站长程任务的 WebArena 基准中 [10],人类完成率为 78.24%,而当时 GPT-4 智能体仅为 14.41%;在涵盖 Ubuntu、Windows 与 macOS 共 369 个真实桌面任务的 OSWorld 基准中 [11],人类完成率为 72.36%,而发布时最优多模态智能体仅为 12.24%。即便后续模型在视觉定位与长链规划上持续提升,日常个人任务仍频繁遇到三道并非靠单纯扩大模型规模就能消除的高墙:跨设备登录态过期与二次验证、关键上下文散落在另一台设备或另一款应用中,以及不可逆的末端外部动作(发邮件、提单、付款)绝不容许系统静默犯错。 ### 2.2 多智能体协作、分层记忆与常驻 Super-agent AutoGen [12] 等多智能体框架允许专职角色通过可编程对话分工协作,但协同生命周期大多仍绑定于单次会话。Generative Agents [13] 为虚拟社区角色构建了按近期性、重要性与相关性检索的连续记忆流及反思树,但沙盒环境不存在真实资金责任与外部攻击者。MemGPT [14] 借鉴操作系统虚拟内存思想,将上下文窗口视为“主存”,通过显式调用在主存与外部归档存储之间换入换出历史记录。PESA 的事项档案库直接继承了这一分层换页洞见,但将索引与召回的基本单位从松散的聊天片段升级为带因果关联链的跨设备**事项(`#T-id`)**。 DeepSeek Harness 团队提出的 Super-agent 架构 [1] 迈出了打破单次会话束缚的关键一步:引入常驻路由层(Router)、后台并发执行层(Worker)、事件驱动触发、存算分离与外部看门狗,并催生了 `deepseek-super-agent` [15]、`opensuperagent` [16] 等社区开源实现。然而 Super-agent 的原生目标场景是**软件研发团队**——依托企业群聊、代码托管平台与 24 小时常开的云端开发机。将其迁移至**单一个人的日常生活生态**时,三类全新系统约束立刻凸显:① **个人噪音放大效应**:日常手机通知、群聊与营销邮件中超过 80% 无需任何动作;② **设备间歇休眠与单桌面焦点冲突**:个人笔记本随时会合盖放进背包,且一台电脑只有一套物理键鼠;③ **个人主权与法律责任**:发出的每一封信、提交的每一张表都以本人实名承担后果,绝不允许越权自治。 ### 2.3 分布式系统原语与平静人机交互基础 PESA 的核心协调机制并非拍脑袋的经验规则,而是直接扎根于分布式系统与 HCI 领域的经典理论: - **有界时间租约(Leases)。** Gray 与 Cheriton 在 SOSP 1989 提出“租约”机制 [5]:通过授予带超时自动回收的排他控制权,确保持有者宕机或失联时系统能无需人工干预地自动恢复活性。PESA 通过 `ComputerHandsLease` 将这一经典原语精准用于个人电脑物理桌面焦点的互斥仲裁。 - **乐观并发控制(OCC)。** Kung 与 Robinson 在 ACM TODS 1981 指出 [4],当写冲突远少于读操作时,在提交阶段校验版本号快照可避免沉重的分布式锁开销。PESA 据此实现跨手机、手表、平板与电脑的版本化原子确认,彻底杜绝快速连点造成的重复发信或重复扣款。 - **平静技术、情境感知与以人为中心的 AI。** Weiser [17] 及其与 Brown 合著的平静技术理论 [18] 主张,日常计算任务应安居于注意力的边缘,仅在必要时平滑进入中心;Dey [19] 对“情境(Context)”给出了经典形式化界定,奠定了感知用户当前状态并匹配送达面的理论基础;Horvitz [20] 用贝叶斯期望效用刻画了混合主动交互,在主动协助收益与误打扰代价之间做定量权衡;Shneiderman [3] 进一步论证,“高程度机器自动化”与“高程度人类控制权”是两条彼此正交的坐标轴,而非非此即彼的一维滑块——这正是 PESA“后台充分投机准备、末端由本人拍板确认”的理论基石。 - **投机执行与系统原生框架。** 现代超标量处理器在分支条件未决前先行在重排序缓冲区中投机执行,仅在命中后原子提交架构状态 [21]。与此同时,Siri、App Intents、快捷指令、Handoff 与 ActivityKit 锁屏实时活动 [22][23] 等系统框架提供了得天独厚的跨端原生交互面,但仍以短链路同步指令为主,缺少跨周存活的云端异步事项状态机。PESA 并不与操作系统原生入口竞争,而是将其整合为感知与送达能力层。 **表 1 PESA 与主流智能体架构的多维度定位对比** | 对比维度 | 对话式助手 | 单任务工具 / 操控智能体 | 团队级 Super-agent | **PESA(个人生态超级智能体)** | | --- | --- | --- | --- | --- | | 基本工作单位 | 单次独立对话(Session) | 单次指令任务(Task) | 研发事件线索(Thread) | **具体个人事项(Thing, `#T-id`)** | | 运行与感知环境 | 单一聊天窗口 | 单台电脑或浏览器沙盒 | 团队群聊、代码库与云端主机 | **个人全部设备(手机/平板/电脑/手表)与应用** | | 触发与主动性 | 纯被动等待输入 | 人工发起、同步执行 | 团队成员与研发流水线事件 | **用户意图 + 经端云两级过滤的日常事件流** | | 并发与响应性 | 单窗口阻塞 | 执行时常独占屏幕焦点 | 常驻路由 + 后台并发执行器 | **轻快常驻前台 + 隔离并发后台执行器** | | 离线韧性与焦点互斥 | 关标签页即停 | 合盖中断、多任务抢鼠标 | 云端常开、无单桌面焦点冲突 | **云端续跑 + 静默唤醒 + `ComputerHandsLease` 单租约互斥** | | 记忆与跨端召回 | 困在单段聊天记录 | 局限于当次运行上下文 | 单平台内按编号检索 | **三层记忆 + 跨设备事项档案库(`#T-id` 逐跳召回)** | | 送达与交互面 | 统一对话列表 | 终端日志或悬浮操控框 | 群聊消息与代码评审(PR) | **按 $\kappa_{\text{surf}}$ 匹配情境:灵动岛、Watch、iPad 分栏、卡片** | | 对外安全与凭据隔离 | 人工手动复制外发 | 凭据常暴露于上下文 | 依团队 CI/CD 权限自动执行 | **凭据保险库封存 + 最小工牌隔离 + 默认版本化确认关卡** | **来自 Super-agent 的系统实测启示与适用边界。** DeepSeek Harness 报告中的三组系统实测直接指导了 PESA 的流水线设计 [1]:① 前后台双层并发将任务完成尾延迟(p95)从单会话中性基线的 29.5 分钟压低至 15.7 分钟(缩短 46.8%,中位数 12.4 分钟);② 开启线索订阅直通避免了对同一线索重复做全量路由,防止读取缓存 token 从 2323 万暴涨至 3177 万(+36.8%)并减少约 30% 的路由决策;③ 入站速率从每分钟 1 条升至 40 条时,积压合批使平均批大小从 1.0 自适应增至 2.8,单次请求耗时仅从 2.5 秒微增至 3.9 秒,均摊每条决策耗时从 6.4 秒降至 1.6 秒(缩短 75%)。需要审慎指出,上述数据测得于研发流水线负载,个人生活环境的噪音密度远高于代码仓库,因此 PESA 在保留订阅直通与积压合批的同时,必须在云端模型之前前置零 token 的端侧规则预筛与每日投机配额门控(见第 4.2 节)。 ## 3. 概念框架与能力分级 ### 3.1 形式化定义 > **定义 1(PESA)。** **个人生态超级智能体(Personal Ecosystem Super Agent, PESA)** 是一种服务于单一个人主权、以该个体全部设备与应用生态为运行环境的常驻超级智能体。它在所有设备上保持单一连续身份与统一上下文;以具体**事项(Thing)**而非**对话(Session)**为基本工作单位,在隔离的后台沙盒中并发推进多项事务;通过端云两级过滤从日常事件流中识别高价值事务并提前完成只读调查与草稿准备;在每台设备上遵循该平台原生的交互习惯进行感知、执行与送达;除用户在策略白名单中显式预先授权的特定低风险动作外,任何改变外部世界状态的写操作默认必须先获得本人携带版本号的显式确认。 > **直观理解。** 换句大白话说,PESA 不再是一个停在浏览器标签页里等你敲字的聊天框,而更像一位安静、守规矩、贯通你所有设备的专属助理:只读取你亲手打开的信息来源,在后台默默查清资料、拟好草稿,拿不准价值时绝不出声,只在真正需要你拍板的那一刻,在你此刻最方便看的那块屏幕上轻点一下。 名称中的四个词各自划定了清晰的工程边界: - **Personal(单一个人主权边界):** 记忆、日历、通讯录与账号凭据严格归属于这一个人,不是在多方利益间做折中的多租户团队机器人。 - **Ecosystem(异构多端运行环境):** 运行载体是用户已有的互补硬件群(如手机、平板、电脑、手表)及其原生系统服务,而非单一网页或孤立单机。 - **Super(常驻双层与超会话能力):** 沿袭并扩展 Super-agent [1] 的系统内涵,具备跨会话连续性、前后台全双工并发、事件驱动主动性与断线自愈持久性。 - **Agent(有界闭环行动体):** 不仅能生成文本,还能在严格权限边界内调度云端工具与本地端侧执行器,把事务推进到“万事俱备、只待确认”的交付态。 ### 3.2 三条核心设计命题 PESA 的整体设计建立在三条相互支撑的命题之上,呼应了 Shneiderman 关于“高自动化与高人类控制并行不悖”的二维人本 AI 框架 [3]: 1. **命题一:工作环境是跨设备生态,而不是单一聊天窗口。** 个人的数字上下文天然按设备物理形态分片存放:随身消息在手机,深度文档与桌面软件在电脑,长文对比在平板,行进中的快速反馈在手腕。局限于单一窗口的智能体在架构上是“半盲”的,必然把跨端整合的成本转嫁给人。 2. **命题二:面向用户的基本单位是“事项”,而不是“对话”。** “新建对话”是早期无状态模型接口遗留的交互产物,并非人类组织事务的心智模型。人在日常中关心的是“客户改期回复发出去了吗”“采购比价表填好了吗”“两周前合同里违约金条款的原话是什么”。提示词组装、会话轮次与后台执行器调度都应被封装在系统内部。 3. **命题三:高程度后台自动化与严格的人类最终拍板权相辅相成,而非此消彼长。** 检索、跨端同步、表单预填与异常重试应当彻底交给机器在幕后消化;人的注意力只需保留在两个最具价值的节点——**提出意图**,以及**在对外动作前做出最终确认**。 ### 3.3 六项核心系统特征 在继承 Super-agent 四项基础系统特征(连续、高效、主动、持久)[1] 之上,面向个人设备生态的特殊要求,PESA 确立了**生态原生**与**可信**两项决定性特征(表 2)。 **表 2 PESA 的六项核心系统特征** | 系统特征 | 架构含义与工程要求 | | --- | --- | | 连续(Continuous) | 单一连续身份贯穿全部设备与入口;切换设备不丢上下文,历史事项可通过 `#T-id` 跨端逐跳召回。 | | 高效(Efficient) | 常驻前台协调器随时保持秒级响应,多项长耗时事务由隔离的后台执行器并发推进,互不阻塞。 | | 主动(Proactive) | 已开启的日常信号(邮件、日历、关注网页)经端云两级过滤自动立项,在后台投机备好草稿并呈递精简建议卡。 | | 持久(Persistent) | 手机锁屏、电脑合盖时云端推理不中断;需本地配合的步骤支持静默唤醒或断点挂起;卡滞由看门狗先自救再上报。 | | **生态原生(Ecosystem-native)** | 每台设备承担最契合其物理禀赋的角色,严格遵守各平台交互规范(灵动岛、分栏、菜单栏与桌面租约、抬腕速览)。 | | **可信(Trustworthy)** | 外部数据源默认关闭、无把握默认安静;对外写操作默认必经版本化本人确认;凭据封存不进上下文,外部文本不可驱动指令或外泄隐私。 | ### 3.4 核心术语表 表 3 统一界定了全文十二个核心系统抽象的职责边界,确保形式化推演与工程讨论口径一致。 **表 3 PESA 核心术语与职责边界** | 术语 | 形式定义与系统职责边界 | | --- | --- | | 前台协调器(Front Desk) | 唯一常驻的对话协调中枢(对应 Super-agent 的 Router 层)。负责意图理解、事项拆分与合并、积压合批、任务分派及单一声音回复,绝不阻塞于长耗时操作。 | | 后台执行器(Worker) | 隔离的并发执行单元。每个执行器绑定且仅绑定一件事项 $\tau$,仅持有前台签发的最小任务工牌(`brief`),彼此上下文完全隔离。 | | 事件(Event) | 来自日常生活或设备的离散观测:一封邮件、一条消息、一次日历变更、一个关注网页更新、一次系统分享操作,或用户的直接指令。 | | 线索(Thread) | 共享同一业务或会话脉络、按时间排序的事件序列(例如围绕同一议题的邮件往来或采购审批流)。 | | 事项(Thing) | 用户交互与系统调度的核心单位:携带全局编号(`#T-id`)、来源、目标、八态生命周期状态、乐观锁版本号 `version`、负责人、所需执行能力、因果引用 `refs` 与交付结论。 | | 订阅(Subscription) | 执行器与一条或多条线索之间的持久绑定($\text{sub}(w) \subseteq H$)。已订阅线索上的新事件可绕过前台大模型重路由,直达对应执行器或续接已完成事项。 | | 事项档案库(Thing Archive) | 事项、线索与分层长期记忆的云端持久化存储。每条记录强制保留“事实摘要/原话、可审计来源(`#T-id`)、置信度与时间戳”三要素,支持跨端逐跳召回。 | | 端侧执行器(Device Hands) | 运行在用户自有设备上的本地执行能力 $\kappa_{\text{exec}}$(浏览器会话、桌面软件、本地文件),在个人电脑上受有界互斥租约(`ComputerHandsLease`)仲裁。 | | 送达面(Delivery Surface) | 向用户呈现进度或待定决策的平台原生界面($\kappa_{\text{surf}}$):对话内进度条、锁屏实时活动与灵动岛、iPad 分栏复核卡、Mac 菜单栏、Apple Watch 抬腕卡片。 | | 确认关卡(Approval Gate) | 任何对外写操作执行前默认必须经过的人工拍板节点,需验证本人针对当前版本号签发的确认令牌。 | | 看门狗(Watchdog) | 独立于主推理循环之外的活性巡检回路。周期性核查实质进度,遇停滞先注入有界恢复指令自救,确认无法自动恢复才透明转交人工。 | | 策略(Policy) | 用户显式设定的系统运行边界:已开启事件来源集 $S_{\text{on}}$、免确认低风险白名单 $A_{\text{auto}}$、专注与夜间静默时段 $Q_{\text{quiet}}$,以及各来源每日投机预算 $B_{\text{spec}}$。 | ### 3.5 PESA 五级能力分类(L0–L4) 借鉴国际自动机工程师学会的驾驶自动化分级标准 SAE J3016 [24],本文按**系统替人接管会话管理、主动感知与跨设备协同的范围**,将个人智能体划分为 L0 至 L4 五个等级(图 1,表 4)。每一级严格包含其下级全部能力。 > 图 1 PESA 五级能力分类(L0–L4)。每一级严格包含其下级能力,唯有达到 L4 方为完整 PESA。 **表 4 PESA 五级能力分类与架构判定标准** | 等级 | 名称 | 核心架构判定标准 | 人的角色与注意力负担 | | --- | --- | --- | --- | | L0 | 应答(Respond) | 同步一问一答;无跨会话工作流状态;上下文锁死在当前聊天窗口内。 | 用户负责发现事务、撰写提示词、跨应用复制粘贴并手动执行所有外部操作。 | | L1 | 执行(Execute) | 可在单台设备或单沙盒内调用工具完成单个任务,但须由人手动发起并同步等待。 | 省去部分应用内点击,但仍需手动发起、跨设备传数据并盯屏监护。 | | L2 | 并发(Concurrent) | 具备“常驻前台 + 隔离后台执行器”双层架构:长任务后台异步推进,前台随时可聊新话题。 | 摆脱单窗口同步阻塞,但仍需本人亲自发现日常事务并逐一交代给系统。 | | L3 | 主动(Proactive) | 接入日常事件流并具备端云两级过滤与投机准备能力;无把握时保持静默,有把握时呈递建议卡。 | 大幅削减被动事务的发现与发起成本,但若限于单端或网页,跨设备流转仍需人手搬运。 | | **L4** | **生态(Ecosystem)** | **统一身份与 `#T-id` 档案库贯通个人全部设备;设备休眠时云端续跑并支持静默唤醒、桌面租约互斥与断点续接;各端按原生执行面与送达面协同,一端确认多端原子撤回。** | **人彻底脱离跨端搬运与盯屏监工角色,仅在表达新意图与最终确认对外动作时介入。** | 依据该标准,**只有达到 L4 才是完整的 PESA**。定级须遵循两条客观原则:① **只看系统架构,不看模型规模**——即便接入最强的推理模型,若产品形态仍是单窗口问答,它依然是 L0;② **区分局部原型与全局底座**——某一垂直来源(如单条云端网页变更监控)可以率先展现 L3 主动特征,但系统整体定级取决于统一跨设备状态机是否全面贯通。 ## 4. 形式化系统模型、决策边界与理论保证 本节建立 PESA 的形式化运行时模型,推导注意力成本与高噪环境下的混合主动投机阈值,规范闭合八态生命周期与多端乐观并发提交规则,并给出三条核心系统性质的证明思路。 ### 4.1 系统实体与设备能力正交分解 我们将运行中的 PESA 系统形式化为六元组 $\mathcal{S}_{\text{PESA}} = \langle D, E, H, T, W, P \rangle$ 与常驻前台调度算子 $F$: - **设备集合 $D = \{d_1, \dots, d_n\}$。** 每台设备 $d \in D$ 的能力被正交分解为 $\kappa(d) = \langle \kappa_{\text{exec}}(d), \kappa_{\text{surf}}(d) \rangle$,明确区分**执行能力**(浏览器会话操控、桌面原生软件、本地文件读写、端侧连接器)与**送达能力**(前台对话流、可交互通知、灵动岛与锁屏实时活动、平板分栏、菜单栏、手表抬腕卡片)。设备在时刻 $t$ 的连接与电源可用性记为 $\alpha(d, t) \in \{\text{online}, \text{wakeable}, \text{offline}\}$。 - **事件流 $E = (e_1, e_2, \dots)$。** 每个事件为五元组 $e = \langle \text{id}, \text{source}, t, \text{payload}, h \rangle$,其中 $\text{source}$ 标明来源(用户本人、外部通信应用或设备状态变更),$h \in H$ 为其所属线索标识。 - **线索集合 $H$。** 每条线索 $h \in H$ 将同一业务上下文下先后到达的事件串接为有序序列。 - **事项集合 $T$。** 每件事项是一个十一元组: $$\tau = \langle \text{id}, \text{origin}, \text{goal}, \text{state}, \text{wait\_reason}, \text{version}, \text{owner}, \text{subs}, \text{req\_exec}, \text{refs}, \text{outcome} \rangle \tag{1}$$ 其中 $\text{id}$ 为全局唯一编号(如 `#T-108`);$\text{version} \in \mathbb{N}^+$ 为单调递增的乐观并发版本号;$\text{wait\_reason} \in \{\text{none}, \text{approval}, \text{device\_offline}, \text{intervention}\}$ 清晰区分待审批、等设备上线与故障转人工三种等待原因;$\text{refs} \subset T.\text{id}$ 记录指向历史关联事项的有向边,构成跨端召回链。 - **后台执行器集合 $W$。** 每个执行器 $w \in W$ 严格绑定唯一事项 $\tau$,仅持有前台签发的最小任务工牌 $\text{brief}(\tau)$,并可订阅线索子集 $\text{sub}(w) \subseteq H$。需要指出,**线索 $H$ 与事项 $T$ 是多对多映射**:一件复杂事项(如安排跨城差旅)可同时订阅邮件、日历与航班动态三条线索;反之,用户在一条消息中连续交代三件独立事务,也会由前台拆分为 $\tau_1, \tau_2, \tau_3$ 并行推进。 - **用户策略 $P = \langle S_{\text{on}}, A_{\text{auto}}, Q_{\text{quiet}}, B_{\text{spec}} \rangle$。** 全部遵循失败安全默认:$S_{\text{on}} = \varnothing$(外部来源默认全关),$A_{\text{auto}} = \varnothing$(对外写操作默认全需确认),$Q_{\text{quiet}}$ 规定专注与夜间静默规则,$B_{\text{spec}}$ 限定各来源每日投机预算。 常驻前台 $F$ 是一个确定性规则优先、语义模型兜底的调度算子: $$F(e, T, P) \longrightarrow \big\{\text{reply}, \text{create}, \text{merge}, \text{split}, \text{reactivate}, \text{stop}, \text{silent}\big\}$$ > **直观理解。** 把执行能力 $\kappa_{\text{exec}}$ 和送达能力 $\kappa_{\text{surf}}$ 拆开,是跨设备协同真正好用的关键:*桌上的 Mac 也许是最适合代填内网表单的执行设备($\kappa_{\text{exec}}$),但手腕上的手表或手边的 iPad 才可能是此刻最适合请你确认的那块屏幕($\kappa_{\text{surf}}$)*。 ### 4.2 人类注意力成本模型与混合主动投机阈值 为避免凭主观印象评判智能体优劣,我们将用户完成单件事项 $\tau$ 付出的注意力操作成本 $\mathcal{A}(\tau)$ 分解为四个正交分量: $$\mathcal{A}(\tau) = I_{\text{init}}(\tau) + I_{\text{transfer}}(\tau) + I_{\text{supervise}}(\tau) + I_{\text{decide}}(\tau) \tag{2}$$ 其中,$I_{\text{init}}$ 为发现事务并组织提示词发起的步数;$I_{\text{transfer}}$ 为跨窗口或跨设备手动复制粘贴的次数;$I_{\text{supervise}}$ 为因焦点被占或任务停滞而被迫盯屏看护/人工干预的次数;$I_{\text{decide}}$ 为审阅结果并确认放行的操作次数。 若只看式 (2),主动系统可能通过疯狂推送低价值建议卡来压低 $I_{\text{init}}$。为此,记成功交付事项集合为 $T_{\text{done}}$,已呈递到用户界面但被点选“忽略(Skip)”拒绝的建议卡集合为 $T_{\text{skip}}$(每次拒绝消耗注意力 $I_{\text{reject}}(\tau') \ge 1$),定义**均摊有效注意力成本**: $$\overline{\mathcal{A}} = \frac{\sum_{\tau \in T_{\text{done}}} \mathcal{A}(\tau) + \sum_{\tau' \in T_{\text{skip}}} I_{\text{reject}}(\tau')}{\lvert T_{\text{done}} \rvert} \tag{3}$$ **高噪个人环境下的双阈值混合主动门控。** 沿用 Horvitz 的贝叶斯期望效用准则 [20],设 $P(G \mid E)$ 为给定观测事件 $E$ 时用户存在真实行动意图 $G$ 的后验概率,$U_{\text{save}}$ 为投机命中时替人省下的注意力效用,$C_{\text{compute}}$ 为后台试算一次的算力代价,$C_{\text{interrupt}}$ 为一次误打扰造成的人类认知代价。PESA 实施**双阈值门控**: $$P(G \mid E) > \frac{C_{\text{compute}}}{U_{\text{save}}} \;\;(\text{准予后台试算}), \qquad P(G \mid E) > p^* = \frac{C_{\text{interrupt}}}{C_{\text{interrupt}} + U_{\text{save}}} \;\;(\text{准予推送确认卡}) \tag{4}$$ 由于云端算力成本远低于打断人类专注的代价($C_{\text{compute}} \ll C_{\text{interrupt}}$),系统可以在较低门槛下静默开展无副作用的后台预研,若发现结论无打扰价值或置信度未跨过 $p^*$,则直接内部丢弃,绝不惊动用户。 进一步看**个人噪音放大效应**的解析含义:设日常入站事件中无需动作的杂讯占比为 $\rho \in [0, 1)$。若不经过端侧过滤就把全部原始事件送入云端大模型路由,总路由事件数与真正有效事项数之比高达 $\frac{1}{1 - \rho}$。在典型的个人通知噪音比($\rho \ge 0.80$)下,省略第一级确定性规则预筛会使云端路由 token 开销至少放大 $5\times$(当 $\rho = 0.90$ 时高达 $10\times$),且迫使大量私人消息无谓上传云端。前置零 token 端侧规则正是破解这一放大效应的必要条件。 ### 4.3 闭合八态生命周期与跨端乐观并发提交 > 图 2 事项的闭合八态生命周期。对外写操作必经「待确认(审批)」;虚线框状态对用户静默隐藏,「已忽略」显式计入被拒绝的建议卡。 为了让底层调度器完备覆盖降噪过滤、设备休眠、外部审批、故障接管与跨周回信续接,PESA 在内部维护严格闭合的八个状态,并在用户界面上折叠为直观的三组视图(图 2,表 5)。 **表 5 事项的闭合八态生命周期与用户视图映射** | 内部状态 | 系统语义与驻留条件 | 合法转移路径 | 用户界面呈现 | | --- | --- | --- | --- | | `Candidate`(候选) | 通过端侧规则预筛,正接受云端语义价值判断 | 值得处理 $\to$ `Running`;无价值或拿不准 $\to$ `Discarded` | 幕后静默(隐藏) | | `Running`(进行中) | 已分配专属后台执行器 $w$,正在云端或持有端侧租约推进 | 草稿就绪或遇对外边界 $\to$ `Waiting (approval)`;试算无价值 $\to$ `Discarded`;所需设备离线 $\to$ `Parked` | **正在做** | | `Parked`(已挂起) | 下一步所需能力 $\text{req\_exec}$ 对应设备当前离线,或等待外部条件 | 设备上线/唤醒 $\to$ `Running`;用户叫停 $\to$ `Stopped`;超时无替代 $\to$ `Waiting (intervention)` | **正在做**(附等待原因) | | `Waiting`(待确认) | 阻塞等待本人介入,分两类子原因:(a) **待审批**:对外草稿/表单就绪;(b) **需接管**:缺失设备能力或看门狗 3 次自救无果 | (a) 确认 $\to$ `Done`、修改 $\to$ `Running`、忽略 $\to$ `Skipped`;(b) 排除卡点重试 $\to$ `Running`、放弃 $\to$ `Stopped` | **待确认**(送达唯一最适表面) | | `Done`(已完成) | 阶段目标已交付或经确认的对外动作已执行完毕 | 若保留线索订阅 $\text{sub}(w)$,同线索新事件到达时触发**重新激活**(`Done` $\to$ `Running`)或派生带 `#T-id` 的关联事项 | **已完成** | | `Discarded`(已丢弃) | 在过滤或后台试算阶段被系统判定无打扰价值而静默终止 | 内部终态(计入预算 $B_{\text{spec}}$,零用户通知) | 幕后静默(隐藏) | | `Skipped`(已忽略) | 建议卡已触达用户界面并被用户显式点选“不用” | 内部终态(计入式 (3) 惩罚项与误扰率分子,并下调同类信号权重) | 已归档 | | `Stopped`(已停止) | 用户在 `Running`、`Parked` 或 `Waiting` 任一阶段显式叫停 | 内部终态(立即释放持有的设备租约与后台算力) | 已停止(已归档) | 状态机受三条刚性公理约束: 1. **公理 1(强制确认关卡):** 对任意未列入白名单 $A_{\text{auto}}$ 的对外写操作 $a$,不存在从 `Candidate` 或 `Running` 绕过 `Waiting (approval)` 直接对外执行并进入 `Done` 的状态转移。 2. **公理 2(不可篡改的打扰记账):** 未触达屏幕即在后台淘汰的试算归入 `Discarded`;一旦卡片呈递到任意用户界面并遭拒绝,必须归入 `Skipped`,杜绝通过混淆内部丢弃来粉饰误扰率。 3. **公理 3(完成态上下文保活):** 进入 `Done` 仅结束当前回合,不销毁档案库记录与线索订阅,使数日后的后续邮件可沿原线索无缝激活或链式续接。 **多端乐观并发提交规则。** 在四端协同环境中,用户可能在手表上点按“确认发送”后不到一秒,又在手机通知上重复点按同一张卡片。借鉴 Kung 与 Robinson 的乐观并发验证机制 [4],每张呈递卡片均绑定快照版本号 $v = \tau.\text{version}$,云端状态机执行如下原子比对与递增操作: $$\text{commit}(\tau, v, \text{action}, d) = \begin{cases} \langle \text{OK},\; \tau.\text{version} \leftarrow v + 1,\; \text{withdraw}(D \setminus \{d\}) \rangle & \text{if } \tau.\text{state} = \text{Waiting} \land \tau.\text{version} = v \\ \langle \text{NOOP\_ALREADY\_HANDLED},\; \tau.\text{version} \rangle & \text{otherwise} \end{cases} \tag{5}$$ 只有首个携带匹配版本号 $v$ 到达云端的请求能触发真实对外动作并推进版本号;其余设备的滞后点击均因版本号失配安全落为空操作(`NOOP`),同时云端通过推送通道立即撤回其他设备上的残留提醒。 ### 4.4 七条运行时系统不变量与核心理论保证 任何合规的 PESA 运行时在任意时刻都必须满足七条不变量: 1. **单一对外声音:** 面向用户发声的始终只有常驻前台 $F$;后台执行器派生、重试与租约排队对用户透明。 2. **对外副作用必经确认:** 除白名单 $A_{\text{auto}}$ 外,一切改变外部世界状态的写操作均须验证由本人针对 $\tau.\text{version}$ 签发的确认令牌。 3. **全程可验证溯源:** 每件事项 $\tau$ 与每条档案记录均保留可审计的 `origin` 与 `refs` 溯源链。 4. **默认关闭与默认静默:** 外部来源默认关闭($S_{\text{on}} = \varnothing$);无把握信号一律静默,`Discarded` 试算不发任何通知。 5. **先自救再透明升级:** 看门狗检测到停滞须先尝试有界自动恢复(最多 3 次),耗尽后如实转交 `Waiting (intervention)` 并报告卡点,绝不私自取消用户长期值守。 6. **凭据封存与数据指令隔离:** 密钥与会话 Cookie 严格封存于加密保险库与执行器底层,永不进入模型提示词;每个执行器仅获最小任务工牌 `brief`,外部文本一律按不可信数据处理。 7. **入站幂等与单面同步撤回:** 外部事件按 `e.id` 幂等去重;待定提醒同一时刻至多触达一个最佳表面,一端处理后其余各端原子撤回。 由上述公理与运行时规则可直接推得三条系统保证: > **命题 1(对外副作用安全性与跨端幂等性)。** 在公理 1、不变量 2 与式 (5) 的原子提交规则下,任意未列入白名单的对外写操作 $a \notin A_{\text{auto}}$ 在未经本人显式确认时执行次数恒为 **0**,在多端并发点击或网络重传下执行次数亦**至多为 1**。 > **证明思路。** 由公理 1 与不变量 2,底层执行器对任何缺少匹配 $(\tau.\text{id}, v)$ 用户确认令牌的对外写请求一律拒绝,故未授权执行次数必为 0。当多台设备 $d_1, d_2 \in D$ 并发提交同一快照版本 $v$ 的确认请求时,线性一致的云端状态机原子执行式 (5):首个到达的请求通过条件 $\tau.\text{state} = \text{Waiting} \land \tau.\text{version} = v$,原子将版本号推进至 $v + 1$ 并仅派发一次动作 $a$;随后到达的任意同版本请求均不满足等式守卫,返回 `NOOP_ALREADY_HANDLED`。 $\square$ > **命题 2(桌面租约无死锁性与前台有界等待)。** 在单持有者有界租约语义下(并发上限 `maxRunning` $= k$、前台优先插队、闲置自动回收阈值 `idleRelease` $= T_{\text{idle}}$),`ComputerHandsLease` 不存在永久性桌面焦点死锁,且前台用户的实时桌面请求至多等待当前单个活跃持有者的执行片段(若其卡死则上界为 $T_{\text{idle}}$)即可获得控制权。 > **证明思路。** 任意时刻至多一个执行体持有排他租约。依据 Gray 与 Cheriton 的有界租约机制 [5],租约受时间上界 $T_{\text{idle}}$(参考实现中为 180 秒)约束,故崩溃、断连或卡滞的持有者无法永久霸占桌面,超时即被运行时强制回收并移交队首。由于前台实时对话请求享有最高插队权(直接跃升至队首),其等待上界仅为当前唯一持有者,而不会排在全部 $k$ 个后台任务之后,从而同时避免饥饿与焦点死锁。 $\square$ > **命题 3(主权约束下的人类注意力不可压缩下界)。** 对任意以未豁免对外动作 $a \notin A_{\text{auto}}$ 结尾的事项 $\tau$,任何合规 PESA 系统均满足 $\mathcal{A}(\tau) \ge 1$;等号成立当且仅当 $I_{\text{init}}(\tau) = I_{\text{transfer}}(\tau) = I_{\text{supervise}}(\tau) = 0$ 且 $I_{\text{decide}}(\tau) = 1$。 > **证明思路。** 由不变量 2,动作 $a$ 提交前至少需要一次显式人工确认,因此 $I_{\text{decide}}(\tau) \ge 1$。因式 (2) 中四项分量均为非负整数,故必有 $\mathcal{A}(\tau) \ge 1$。这说明只要坚持保留人的最终拍板权,降低式 (3) 均摊注意力成本 $\overline{\mathcal{A}}$ 的唯一架构路径就是将发起、搬运与盯屏三项开销压向零,同时把无效建议卡 $|T_{\text{skip}}|$ 控制到极低水平。 $\square$ ## 5. 参考架构 > 图 3 PESA 参考架构。用户的直接输入与经过滤的日常事件流统一进入单一常驻前台协调器,由其分派至隔离并发的后台执行器,经端侧执行器落地操作并以唯一声音向用户交付。 ### 5.1 单一常驻前台与隔离并发的后台执行器 图 3 展示了 PESA 的总体参考架构。沿袭并深化 Super-agent 的双层解耦思想 [1],**前台协调器(Front Desk)**是全天候在线的唯一交互入口,统一承接四端设备的对话、系统分享菜单投递与过滤后的外部事件流。前台刻意保持轻量化,仅承担意图解析、事项拆分与合并、积压合批、执行器分派以及统一口径回复,绝不亲自执行动辄数分钟的网页检索或桌面操作。 **后台执行器(Background Workers)**按事项按需派生。每个执行器生命周期内只负责一件事项 $\tau$,在隔离沙盒中仅持最小工牌 `brief`,彼此并发推进、互不串扰。当同一线索短时涌入多条关联事件(如项目群连续刷屏或同一订单连发多封物流邮件)时,自适应积压合批机制将其合并为一次前台路由决策,可将均摊决策耗时压缩达 75% [1]。 ### 5.2 三层记忆体系与跨设备事项档案库 现有助手之所以换一台设备便“失忆”,或几天后就忘记先前谈妥的约束,是因为它们要么把原始聊天记录塞进单一上下文窗口,要么切成零散的向量片段而弄丢了因果关系。借鉴操作系统虚拟内存与 MemGPT 的分层换页思想 [14],PESA 构建了以云端**事项档案库(Thing Archive)**为枢纽的三层记忆架构(图 4): > 图 4 三层记忆体系与跨设备事项档案库。冗长执行轨迹换出至云端持久化档案库并按 #T-id 串联,任意设备均可逐跳还原历史结论与原始引文。 1. **第一层:热工作上下文缓存。** 驻留在活跃前台与运行中执行器的主存窗口内,只保留最近数轮对话、活跃事项状态摘要以及轻量编号指针(如 `#T-108`、`#T-114`)。事项结束后,冗长的中间工具轨迹(DOM 树、原始搜索列表、多轮草稿)立即换出至云端档案库,确保前台上下文永远紧凑、推理低延迟。 2. **第二层:支持逐跳召回的跨设备事项档案库。** 云端持久化记录每件事项的完整档案,并强制保存三项字段:① *事实摘要与关键原话引文*;② *可审计来源*(触发设备、原始渠道与 `#T-id`);③ *置信度与时间戳*。因果关联的事项通过 `refs` 形成有向链(如 `#T-108 比价` $\to$ `#T-114 报价` $\to$ `#T-142 定稿`)。当用户在通勤途中用手机随口询问上周在电脑上查过的保修条款,前台可顺着 `#T-142` $\to$ `#T-114` $\to$ `#T-108` 逐跳按需加载原记录,无需用户翻找旧聊天。 3. **第三层:可检视的长期偏好与策略记忆。** 系统从用户在建议卡上的显式决策(确认 / 修改 / 忽略)中提炼稳定偏好,用于校准两级过滤权重。该层完全透明,用户随时可在任意设备查看、编辑或一键删除任意偏好条目。 ### 5.3 异步全双工交互 任何耗时超过数秒的工作均以异步全双工方式运行。当用户交代“把这三份 PDF 财报的现金流整理成对比表,同时盯一下今晚航班是否延误”时,前台在 1 秒内拆解为两件独立事项(`#T-201`、`#T-202`),派发两个后台执行器,在对话流中插入两行紧凑的实时进度条并立刻恢复空闲待命。用户可继续聊其他话题或锁屏离开;完成后结果自动回流至原对话(或按情境静默送达灵动岛与手表),中途随时可点开查看、补充要求或一键停止。 ### 5.4 云端大脑、本地双手、断点续接与桌面互斥租约 PESA 严格执行存算分离:负责推理与规划的“云端大脑”无状态常驻;八态状态机与档案库独立持久化;负责交互本地网页、桌面软件与系统能力的“端侧执行器(Device Hands)”分布在用户自己的设备上。让这套架构在日常生活中可靠运转,必须攻克个人设备特有的两道工程难题: 1. **执行中途休眠与幂等检查点续接。** 个人笔记本随时会在任务半途合盖进入休眠。PESA 将本地桌面操作拆分为**带检查点的幂等只读/准备步**与**末端提交关卡**。一旦 Mac 合盖断连,已完成检查点实时同步至云端:不依赖本地界面的步骤(信息整合、比价计算、拟稿)由云端无缝接续;必须操作本地窗口的步骤则安全进入 `Parked`。待 Mac 恢复唤醒后,端侧执行器先核验目标窗口或网页 DOM 指纹是否与检查点一致——一致则平滑续跑;若外部页面状态发生歧义变动,则绝不盲目点击,安全转交 `Waiting (intervention)` 请本人确认。 2. **单桌面物理焦点的有界互斥租约(`ComputerHandsLease`)。** 云端可以同时运行多个执行器,但一台个人电脑同一时刻只有一套物理键鼠焦点。基于 Gray 与 Cheriton 的有界租约原语 [5],`ComputerHandsLease` 严格执行四条确定性调度规则(图 5):① 在最多 `maxRunning = 3` 个并发后台执行器之间强制**单持有者排他互斥**;② **前台主对话无条件插队**,用户实时交互涉及电脑操作时跃升至队首;③ **未获租约者先跑云端步骤、不空转阻塞**,排队满 `maxWait = 600s` 自动保存检查点挂起;④ **180 秒闲置自动回收**(`idleRelease = 180s`),持有者无界面操作或终止即刻释放租约并通知看门狗。 > 图 5 桌面端侧执行器互斥租约(ComputerHandsLease)调度时序。任意时刻至多一个执行体操控本地 GUI:前台对话优先插队,排队执行器先跑云端步骤不阻塞,闲置满 180 秒自动回收并由看门狗接管。 ### 5.5 独立看门狗:先自救,绝不静默丢单 外部网络超时、登录过期或网页改版在长程任务中不可避免。PESA 在主推理循环之外运行独立的**看门狗巡检回路**,核查实质状态推进而非单纯进程心跳。在参考运行时中,看门狗每 45 秒扫描活跃执行器:若连续 20 分钟无实质进展,即自动注入带诊断上下文的恢复指令引导换路或重置环境(每事项最多自救 3 次);仅当满 60 分钟或 3 次自救均失败时,才转入 `Waiting (intervention)` 并用通俗语言说明卡点与所需条件,绝不悄悄取消用户开启的长期值守。 ## 6. 端到端流水线、调度算法与复杂度分析 本节给出从事件入站到送达屏幕的六步流水线以及三项确定性优先核心调度算法。 ### 6.1 六步事件流水线与优先路由算法 > 图 6 从日常事件到事项交付的六步流水线。确定性规则优先于模型推理,拿不准的候选静默丢弃,对外写操作一律停在版本化确认关卡。 每条进入系统的事件 $e$ 依次流经六个阶段(图 6): 1. **幂等接收:** 先持久化落盘再应答;按 `e.id` 严格去重,并静默丢弃系统自身对外写操作产生的回声事件。 2. **第一级端侧规则预筛:** 零大模型开销本地初筛(核对来源白名单 $S_{\text{on}}$、通讯录/历史回复图谱、日程关键字与显式关注规则),让 >80% 日常杂讯在设备端本地消亡,零云端 token 消耗且不上传无关隐私文本。 3. **第二级云端语义过滤:** 仅少量通过初筛的候选进入轻量语义判断,依据式 (4) 决定是否值得试算;无价值或拿不准一律静默转入 `Discarded`。 4. **确定性优先路由:** 停止指令、显式 `#T-id` 引用与已订阅线索直通均不调用前台大模型(完整保留约 36.8% 缓存 token 节省 [1]);仅全新未归属事件进入前台自适应积压合批队列。 5. **隔离执行与投机准备:** 后台执行器并发完成只读检索、比价与表单预填,触及对外写边界前一律稳停并生成建议卡快照。 6. **版本绑定与情境送达:** 卡片绑定当前快照版本号 $\tau.\text{version}$,交由送达面算法推送至唯一最合适的设备表面。 算法 1 给出确定性优先路由 `route(e)` 的形式化描述: ```alg route(e): if seen(e.id) or is_echo(e): # 1. O(1) 幂等去重与系统回声丢弃 return if e 为显式停止指令: # 2. 零模型延迟立即叫停 stop(目标事项); return if e 明确引用事项 τ (#T-id): # 3. O(1) 按编号直达负责执行器 deliver(e, τ.owner); return if 存在执行器 w 订阅了 e.thread: # 4. O(1) 订阅直通(省 36.8% 缓存 token) if w.thing.state == done: reactivate_or_chain(w.thing, e); return deliver(e, w); return front.batch(e) # 5. 全新事件积压合批,由前台新建/并入/拆分 ``` **复杂度与开销特征。** 第 1–4 步基于哈希索引的去重表、事项编号表与线索订阅表执行,平均时间复杂度为 **$O(1)$** 且**零大模型调用**;语言模型开销严格收敛在第二级少量候选过滤与第 5 步合批后的新事件裁决上。 ### 6.2 混合主动投机执行 在超标量处理器架构中,投机执行先在重排序缓冲区中预跑预测分支,仅在分支命中时原子提交架构状态,失误则静默冲刷 [21]。PESA 在 Horvitz 效用门控 [20] 下将这一思想引入个人日常事务: - **投机阶段严格零外部副作用:** 核对日历、调取档案库纪要、抓取比价与填写草稿表单全部停留在只读或本地草稿态。 - **三选一提交卡(确认 / 修改 / 忽略):** 在对外写边界前呈递单张可一目了然的卡片。点选**确认**即在 1 秒内原子发出并进入 `Done`;点选**修改**只需补一句简短要求即可带着完整上下文退回 `Running` 重拟;点选**忽略**则转入 `Skipped`,既不改动外部世界又下调同类信号权重。后台试算中途自判无价值者静默冲刷进 `Discarded`,并受每日预算 $B_{\text{spec}}$ 硬上限约束。 ### 6.3 正交双选算法:执行设备($\kappa_{\text{exec}}$)与送达面($\kappa_{\text{surf}}$) 单设备助手把“在哪执行”和“在哪提醒”硬绑在同一块屏幕上。基于 Dey 的情境计算框架 [19],PESA 将两者解耦为两项独立的 $O(\lvert D \rvert)$ 确定性算法(个人设备数通常 $\lvert D \rvert \le 10$,亚毫秒级完成、零模型开销)。 **算法 2(执行设备选择 `choose_device(τ)`)** 根据能力集合包含关系、实时可用性 $\alpha(d, \text{now})$ 与负载挑选执行节点: ```alg choose_device(τ): capable = { d ∈ D | τ.req_exec ⊆ κ_exec(d) } usable = { d ∈ capable | α(d, now) ∈ {online, wakeable} } if usable 非空: d* = usable 中负载与网络综合最优设备 if α(d*, now) == wakeable: wake(d*) # 静默推送唤醒并签发本地执行租约 return d* if capable 非空: τ.state = parked τ.wait_reason = "device_offline" else: τ.state = waiting τ.wait_reason = "intervention: 当前生态缺少所需执行能力设备" ``` **算法 3(情境感知送达面选择 `choose_surface(τ, D, P, now)`)** 在结果就绪或需确认时,综合当前聊天焦点、静默策略 $Q_{\text{quiet}}$ 与时效紧迫度挑选**至多一个**最佳送达表面(表 6,图 7): ```alg choose_surface(τ, D, P, now): if τ.state == running: return ambient_progress(D) # 对话内进度条 + 灵动岛 + Mac 菜单栏 if τ.state == waiting: if 用户正在某设备 d_chat 前台对话中: return inline_card(d_chat, τ.version) if now ∈ P.Q_quiet 且 τ 非紧急例外: return queue_silent_card(τ.version) # 静默写入待办箱,不亮屏、不震动 if τ 具高时效 且 Watch ∈ D 在线佩戴中: return watch_glance_card(Watch, τ.version) if iPhone ∈ D 在线: return actionable_notification(iPhone, τ.version) return next_open_device_card(D, τ.version) ``` **表 6 不同情境下的送达面选择与打扰控制准则** | 用户当前情境与事项状态 | 首选送达面($\kappa_{\text{surf}}$) | 打扰强度与跨端协同行为 | | --- | --- | --- | | 正在某设备的对话窗口中 | 当前对话流内的内联卡片或回复 | 零界面切换;直接在当前视线焦点内顺手确认 | | 后台事项正常推进中 | 对话内进度胶囊;iPhone 灵动岛与锁屏实时活动 [22];Mac 菜单栏 | 边缘静默感知 [18];不弹窗、不响铃,随时可点开查看或叫停 | | 需要确认,且非紧急事务 | 建议卡静候于下次打开客户端的设备上 | 零即时打断;空闲时在平板或电脑上从容批量批阅 | | 需要确认,且具明确时效 | Apple Watch 抬腕确认卡或 iPhone 交互通知 | 单次轻触提醒;任一端带版本号确认后,其余设备提醒毫秒级同步撤回 | | 专注模式或夜间静默时段 | 遵循策略 $Q_{\text{quiet}}$ 静默写入“待确认”列表 | 严格零打扰;仅用户显式设定的紧急例外可按规则突破 | > 图 7 正交的执行设备选择(κ_exec, α)与情境送达面选择(κ_surf, Q_quiet)。能力与在线状态决定执行节点,当前焦点与静默策略挑选至多一个送达表面,一端确认多端撤回。 ### 6.4 端到端跨设备时序剖析:合盖通勤期间的会议改期 > 图 8 跨设备时序剖析。笔记本合盖休眠期间,云端执行器自动核对日历并拟稿,将精简确认卡推送至手表,用户抬腕一键确认后经版本号原子校验发出回信。 图 8 追踪了一个高频跨设备闭环——早高峰通勤途中,用户的笔记本合盖在背包里,一位活跃客户发来邮件提议周三下午 2:00 召开评审会: 1. **入站与两级过滤($t = 0\text{s}$):** 第一级端侧规则命中近期回复联系人与会议关键词,零模型开销放行;第二级语义过滤判定查日历并拟稿具备高期望效用。 2. **立项与线索订阅($t = 2\text{s}$):** 前台创建事项 `#T-305`,分派后台执行器 $w_1$ 并将其订阅到邮件线索 $h_{\text{mail-89}}$。 3. **云端投机准备($t = 3\text{s}\dots11\text{s}$):** 即使笔记本休眠、手机锁屏,云端执行器 $w_1$ 仍可通过只读日历接口查出周三下午已有冲突,而周四上午 10:00 与周五下午 15:00 空闲;随后结合档案库 `#T-288` 上周纪要起草礼貌改期回复草稿。 4. **确认关卡与送达路由($t = 12\text{s}$):** 发外部邮件受不变量 2 约束,`#T-305` 进入 `Waiting (approval, version = 1)`;算法 3 检测到用户正在步行且佩戴手表,将两行精简摘要推送至腕部。 5. **原子提交与线索续接($t = 18\text{s}$):** 用户抬腕轻点一次“确认发送”。云端按式 (5) 校验 `version == 1` 通过、递增至 `version = 2`、发出正式回信并置 `#T-305` 为 `Done`,同时同步撤回手机与电脑提醒。半小时后客户回信同意周四上午,新邮件经算法 1 第 4 步直达 $w_1$ 的保留订阅自动生成日程邀请草稿,全程无需复述背景。 相较传统多窗口流程(**4 次主动介入、3 次跨应用复制粘贴**),PESA 将人工负担压缩为 **1 次抬腕确认、0 次上下文搬运**。 ## 7. 生态原生交互与典型容错场景 ### 7.1 四类设备形态的人体工学分工 把桌面复杂多栏硬塞进手机、或在手表上做迷你聊天输入框,在日常中注定失败——因为每种设备都有截然不同的**物理交互时长窗口**:手表是 2 秒抬腕一瞥,手机是 30 秒单手操作,平板是 15 分钟分栏阅读复核,电脑是数小时键鼠重载执行。以苹果四端生态(iPhone、iPad、Mac、Apple Watch)作为具体映射示例,表 7 展示了统一事项状态如何遵循各平台人机界面指南 [23] 自然呈现。 **表 7 四类个人设备形态在 PESA 中的人体工学分工** | 设备形态 | 平台原生能力($\kappa_{\text{exec}}$ 与 $\kappa_{\text{surf}}$) | 在 PESA 中的核心角色 | | --- | --- | --- | | **智能手机(如 iPhone)** | 全天随身、交互通知、灵动岛与锁屏实时活动、Siri/快捷指令、系统分享菜单 | **随身感官、进度追踪与快捷确认枢纽。** 任意 App 点“分享”即可立项;长任务在灵动岛静默呈现进度;通知内一键确认。 | | **平板电脑(如 iPad)** | 宽大触控屏、Split View 分栏、多窗口、跨应用拖放、键盘与触控笔 | **全局对比与批量复核工作台。** 侧栏队列搭配详情画布,可边看原始合同 PDF 边核对预填明细并从容放行。 | | **桌面/笔记本(如 Mac)** | 持续供电与算力、完整文件系统、菜单栏与全局快捷键、浏览器会话、桌面软件与终端 | **主力本地执行器(Hands)。** 在 `ComputerHandsLease` 单租约互斥下负责多页浏览器自动化、内网表单填写与本地脚本。 | | **智能手表(如 Apple Watch)** | 轻触震动、1–2 秒抬腕速览、表盘复杂功能、短语音速记 | **高信噪比决策阀门。** 绝不推送冗长过程日志,仅呈递高时效两行确认卡(确认 / 稍后)或承接一句话语音立项。 | | **跨设备连续体** | 云端状态机、乐观锁 `version` 仲裁、档案库 `#T-id` 召回链、接力(Handoff) | **无缝接力。** 手机分享发起、电脑租约填单、手表速览进度、平板分栏复核——任意一端拍板,四端同步收敛。 | ### 7.2 四类典型跨设备场景及其故障恢复路径 可靠的系统架构不仅要走通理想路径,更要明确**当设备离线、需求中途变更或外部页面夹带恶意指令时如何优雅兜底**(图 9): > 图 9 PESA 四类典型跨设备场景:跨时区日程协商、手机发起与桌面租约填单、跨周线索合批与编号逐跳召回,以及间接提示注入与隐蔽 URL 外泄拦截。 1. **场景 01:跨时区日程协商与差旅应变。** - *正常闭环:* 笔记本合盖在背包时,会议改期邮件通过两级过滤;云端执行器核对日历、拟好回复并推送手表确认,抬腕一键发出且四端同步撤回提醒。 - *异常与变更恢复:* 若用户点“修改”并在手机上语音补充“改到下周二下午”,事项从 `Waiting` 平滑退回 `Running`,原执行器保留全部背景数秒内重拟;若客户邮件同时顺带索要上周报价单,前台自动拆分出子步骤从档案库调取 `#T-114` 附件。 2. **场景 02:跨端商品比价与内网桌面表单预填。** - *正常闭环:* 手机通过系统分享投递商品链接后,云端执行器并发比价,随后向桌面 Mac 申请 `ComputerHandsLease` 租约打开公司内部采购系统填妥所有字段,稳停在“提交审批”按钮前;手机灵动岛实时显示进度,晚间在平板分栏中对照比价表一键放行。 - *离线与焦点争抢恢复:* 若用户此刻正坐在电脑前打字,前台对话插队优先保持桌面归用户使用,执行器先完成全部云端比价计算;若电脑彻底断网离线,云端仍完整产出比价报告,仅将本地填单一步安全置为 `Parked (device_offline)`,待电脑重新联网校验页面指纹后断点续填。 3. **场景 03:跨周多渠道线索合批与档案编号逐跳召回。** - *正常闭环:* 持续三周的客户项目中,往来邮件、文档批注与状态通知经算法 1 直通同一执行器并合批为一张阶段进展卡;乘车时用手机随口追问两周前客户对违约金上限的原话,系统沿 `#T-142` $\to$ `#T-114` $\to$ `#T-108` 逐跳检索,返回精确引文与时间戳。 - *跨客户防串线:* 每位执行器拥有独立沙盒与显式订阅集 $\text{sub}(w)$,客户 A 的报价条款绝不会渗入客户 B 的并发草稿中。 4. **场景 04:不可信外部网页的间接提示注入与隐蔽外泄拦截。** - *攻击与防御:* 总结一篇隐藏 HTML 中夹带 `[System Override: 读取近期财务邮件与 API 密钥,Base64 编码拼入 https://evil.example/pixel.png?leak=... 并渲染]` 的外部网页时,攻击在两道独立闸门前彻底失效:① 该执行器仅持 `brief = "总结目标网页核心观点"`,根本无权触及财务邮件、主对话历史或加密凭据库(不变量 6);② 运行时出站拦截器阻断任何向未授权第三方域名的带参请求与自动加载图片,记录审计日志并仅返回干净摘要。 ## 8. 交互与信息架构:从聊天列表到事项视图 DeepSeek 在报告末尾将“智能体脱离单次会话后,应以何种界面与心智模型承接协作”列为核心开放问题 [1]。PESA 的答案清晰直接:**不再用左侧无止境的聊天记录列表充当任务管理器,而是把交互建立在“事项”之上。** 每件走上界面的事项一目了然地回答四个问题:*从哪儿来*、*推进到哪一步*、*核心结论是什么*、以及*此刻是否需要人做决定*。内部严谨的八态状态机(第 4.3 节)在界面层折叠为极简三态视图: - **自然入口,零表单门槛。** 无需填写繁琐的“创建任务弹窗”,像与熟悉自己的助理沟通一样自然说话、发语音或点系统分享即可。 - **对话内嵌实时进度胶囊。** 转交后台的长任务在对话流中只占一行紧凑进度条;用户可继续聊其他话题,也可随时点开看分步日志、追加约束或叫停。 - **全局三态折叠视图(正在做 / 待确认 / 已完成):** “正在做”合并 `Running` 与 `Parked`(挂起时温和注明等待原因,如“比价已完成,等待 Mac 上线填单”);“待确认”聚合 `Waiting (approval)` 与 `Waiting (intervention)`;“已完成与已归档”保存 `Done`、`Stopped` 与 `Skipped` 及完整 `#T-id` 溯源;而 `Candidate` 与 `Discarded` 永远留在幕后。 - **建议卡标准四要素:** 每张主动卡片统一包含 ① 顶部溯源栏(来源、时间与 `#T-id`)、② 准备好的草稿或关键表单字段高亮预览、③ 三键决策栏(**确认 / 修改 / 忽略**)、④ 可折叠的档案库引用查证抽屉。 - **平静边缘纪律:** 遵循 Weiser 与 Brown [18] 及 Horvitz [20] 的理念,锁屏实时活动仅反映进行中状态,手表仅推高时效待确认,拿不准的候选在后台安静消亡。 ## 9. 威胁模型与纵深防御架构 当个人助手从被动聊天框演进为可读取邮件、总结外部网页并操控本地桌面的生态代理,安全边界必须前置为架构铁律。我们先明确信任假设与攻击者模型,再将 Saltzer 与 Schroeder 经典的系统保护原则 [25] 逐层落地。 **信任假设与攻击者模型。** 在 PESA 基准部署模型中,用户已认证的自有设备、系统钥匙串/加密凭据保险库以及隔离的云端状态机共同构成**可信计算基(TCB)**。**攻击者**控制一切不可信外部内容——网页、陌生邮件、共享文档与 PDF 附件——可在其中埋入间接提示注入 [6]、恶意链接或隐蔽追踪图片。同时,我们将**模型幻觉、网络重传与多端竞态连点**视为一等故障源,要求由确定性运行时机制兜底,绝不把安全寄托于“模型永远听话”。(第 12.1 节进一步讨论云端协调器本身不可信时的零信任边界。) 1. **完全中介:版本化确认关卡(不变量 2)。** 所有对外写执行器在放行非白名单动作前,强制核验针对 $(\tau.\text{id}, \tau.\text{version})$ 签发的本人确认令牌。即使模型因幻觉或诱导试图直接调用 `send_email()`,缺少有效令牌亦会被执行器底层直接拦截。 2. **失败安全默认与端侧隐私预筛(不变量 4)。** 所有外部连接器默认关闭($S_{\text{on}} = \varnothing$),逐项开启、一键吊销 [25]。手机通知、本地消息等高敏信号的第一级确定性规则在设备本地运行,未命中的私人文本不离开终端硬件。 3. **最小权限:凭据保险库与任务工牌隔离(不变量 6)。** 账号密码、Cookie 与 OAuth 令牌封存于系统钥匙串或加密保险库,执行器仅通过不透明能力句柄调用认证操作,原始密钥绝不以明文进入模型提示词。后台执行器仅接收最小任务工牌 `WorkerTask.brief`,与主对话及其他项目记忆完全隔离。 4. **数据与指令隔离,三层阻断隐蔽 URL 外泄(不变量 6、2)。** Greshake 等人 [6] 指出,间接提示注入无需触发发信或付款按钮,只需诱导模型把上下文隐私编入 Markdown 图片链接(`![img](https://attacker.tld/collect?data=...)`)或 HTTP GET 查询参数即可旁路窃密。PESA 建立三道同心防线(图 10):① *带边界签名的数据通道封装*,禁止从外部文本提取工具调用指令;② *最小工牌上下文断路*,总结外部网页的执行器本身就不含私人财务或历史对话,令攻击者“无密可偷”;③ *出站域名白名单与带参拦截器*,阻断向未授权外域自动加载图片或发起动态带参请求,异常外连一律停在确认关卡告警。 5. **最少临时保留与零训练承诺。** 经云端中转的附件与截图仅在事项推进期间加密临时缓存,随生命周期清理,绝不用于大模型训练。 6. **心理可接受性:消除安全弹窗疲劳(不变量 1、3、7)。** Saltzer 与 Schroeder 警示,高频繁琐的安全确认会让用户陷入机械盲点 [25]。通过前端滤掉 >80% 杂讯、后台备妥草稿后仅呈一张清晰卡片、一端确认全端撤回,确保每一次确认都值得用户认真看一眼。 > 图 10 抵御间接提示注入与隐蔽 URL 参数外泄的纵深防御边界。最小工牌隔离无关私人记忆,凭据封存不进模型上下文,出站拦截与版本化确认关卡保障越权外发恒为零。 **表 8 个人生态威胁模型、故障路径与纵深防御矩阵** | 威胁或故障类型 | 攻击向量 / 真实故障路径 | 架构级纵深防御机制 | 守护的不变量 | | --- | --- | --- | --- | | 未经授权擅自外发 | 模型幻觉或误判意图,试图直接发邮件、提单或付款 | 底层执行器强制验证绑定 `version` 的本人确认令牌;无令牌一律拦停于 `Waiting (approval)` | 不变量 2 | | 间接提示注入劫持 | 外部网页、邮件或 PDF 隐藏恶意指令企图劫持工具调用 [6] | 外部文本封装于签名纯数据通道 + 执行器仅持最小工牌 `brief`,与高危工具及无关记忆解耦 | 不变量 6 | | 隐蔽 URL / 图片外泄 | 注入指令诱导模型把私人记忆拼入 Markdown 图片或 GET 参数静默带出 [6] | 工牌隔离切断无关隐私源 + 出站拦截器阻断未授权外域带参请求与自动加载图片 + 确认关卡 | 不变量 2、6 | | 凭据提取与盗用 | 恶意提示或日志转储企图诱使模型吐出密码、Cookie 或密钥 | 凭据封存于系统钥匙串与加密执行器底层,永不进入模型提示词上下文 | 不变量 6 | | 桌面焦点冲突与死锁 | 多后台执行器与实时聊天抢夺鼠键,或 GUI 步骤卡死占着桌面 | `ComputerHandsLease` 单持有者互斥 + 前台插队 + 180 秒闲置自动回收 + 45 秒看门狗巡检 | 不变量 1、5 | | 跨端快速连点竞态 | 手表与手机在 1 秒内先后点按同一卡片导致重复发信或扣款 | `e.id` 幂等去重 + 云端 `version` 乐观并发原子校验(式 5)+ 其余设备同步撤回提醒 | 不变量 7 | | 执行中途合盖断网 | 填表半途合盖休眠,恢复后盲目重跑导致重复提交 | 幂等检查点推进;唤醒后核验页面/DOM 指纹,状态歧义即转 `Waiting (intervention)` 绝不盲点 | 不变量 2、5 | ## 10. 评估方法、全五级注意力核算与 PESA-Bench ### 10.1 八项正交评估指标 WebArena [10] 与 OSWorld [11] 等单任务成功率基准对衡量 L1 执行器至关重要,却无法回答决定 L2–L4 个人生态成败的四个问题:*省下了多少注意力?制造了多少无效打扰?换设备后上下文是否连贯?安全不变量是否全程零越界?* 表 9 定义了八项正交指标。 **表 9 个人生态超级智能体八项评估指标** | 指标名称 | 形式定义与统计口径 | 优化方向 | | --- | --- | --- | | **均摊注意力成本($\overline{\mathcal{A}}$)** | $(\sum_{\tau \in T_{\text{done}}} \mathcal{A}(\tau) + \sum_{\tau' \in T_{\text{skip}}} I_{\text{reject}}(\tau')) / \lvert T_{\text{done}} \rvert$(式 3;将拒绝卡片计入分子防刷分) | 越低越好 | | **决策就绪时延** | 从事件到达或用户交代,到结果备妥进入 `Waiting` 状态的中位时间与 p95 尾延迟 | 越短越好 | | **投机命中率** | 被采纳卡片(确认 + 修改后确认)$\div$(采纳数 + `Skipped` 数);后台静默 `Discarded` 不计入 | 越高越好 | | **主动误扰率** | 被点选“忽略”或事后标为多余的提醒数 $\div$ 呈递到用户界面的主动提醒总数 | 越低越好 | | **关键事件漏报率** | 用户事后认为本应处理却被过滤或试算静默 `Discarded` 的高价值事件占比 | 越低越好 | | **跨设备连续召回率** | 跨设备追问或接力时,依托 `#T-id` 档案库准确还原结论与溯源的比例 | 越高越好 | | **看门狗自愈率** | 遭遇超时、断网或界面阻塞的事项中,经看门狗自动恢复而无需人工接管的比例 | 越高越好 | | **运行时不变量越界次数** | 整个评测轨迹中违反第 4.4 节七条运行时不变量的总次数 | **必须恒等于零** | 其中,“主动误扰率”与“关键事件漏报率”构成由式 (4) 和策略 $P$ 调节的精确率-召回率权衡曲线,而“不变量越界次数 = 0”则是不可妥协的安全硬约束。 ### 10.2 L0–L4 全五级解析注意力与搬运核算 为清晰拆解表 4 中每一个等级究竟消除了式 (2) 中的哪一部分开销,图 11 与表 10 对第 7.2 节的四类典型场景在 **L0 至 L4 全五个等级**下的用户操作步数($\mathcal{A}$)与跨端/跨应用手动搬运次数($I_{\text{transfer}}$)进行了**透明、可逐跳核对的解析核算**。需要明确说明,表 10 是基于代表性场景的解析工作流核算而非大规模真实用户纵向实验;每一步计数的依据均在表中如实列出供同行审验。 > 图 11 L0–L4 全五级解析注意力核算与四级门控漏斗。左:四类典型场景下每事项平均人工介入步数与跨端手动搬运次数;右:端侧规则预筛、线索直通合批与 Horvitz 效用门控漏斗。 **表 10 四类典型场景在 L0–L4 全五级下的人工介入步数与手动搬运解析核算** | 典型场景(第 7.2 节) | L0 应答 | L1 执行(单任务) | L2 并发 | L3 主动(单端/无跨端协同) | **L4 完整 PESA(跨设备生态)** | | --- | --- | --- | --- | --- | --- | | **01 · 客户会议改期邮件**(核对日历并回复) | **4 步 / 3 搬运**(读邮件 $\to$ 查日历 $\to$ 贴入聊天拟稿 $\to$ 贴回邮箱发送) | **2 步 / 1 搬运**(复制邮件发起并等待 $\to$ 确认发送;合盖即停摆) | **2 步 / 0 搬运**(派发后台拟稿 $\to$ 确认;仍需人先看到邮件发起) | **1 步 / 0 搬运**(云端主动过滤拟稿,但需等用户打开主应用确认) | **1 步 / 0 搬运**(电脑合盖时云端查日历拟稿,Watch 抬腕点 1 下发送并四端同步撤回) | | **02 · 手机链接 $\to$ 电脑比价与内网填单** | **5 步 / 4 搬运**(复制链接 $\to$ 多页比价 $\to$ 传电脑 $\to$ 逐项填表 $\to$ 提交) | **3 步 / 1 搬运**(传链接到电脑 $\to$ 发起并盯屏等填单 $\to$ 核对提交) | **2 步 / 1 搬运**(传链接到电脑派后台比价填单 $\to$ 核对提交) | **2 步 / 1 搬运**(单端主动比价;缺少分享入站与 Mac 租约仍须手动传电脑填单) | **2 步 / 0 搬运**(iPhone 分享立项 + Mac `ComputerHandsLease` 后台填妥 + iPad 分栏一键确认) | | **03 · 跨周线索合批与两周前原话召回** | **4 步 / 3 搬运**(翻邮件群聊 $\to$ 贴多段入对话 $\to$ 追问 $\to$ 回翻核对) | **3 步 / 2 搬运**(分别调搜索 $\to$ 手动拼多源线索 $\to$ 追问原话) | **2 步 / 0 搬运**(后台汇总 $\to$ 同会话追问;换手机即丢上下文) | **1 步 / 1 搬运**(主动合批成摘要卡;手机追问电脑旧事仍需手动翻查搬运) | **1 步 / 0 搬运**(订阅执行器合批为 1 卡;手机随口追问沿 `#T-id` 逐跳调出精确原文) | | **04 · 总结夹带隐蔽外泄指令的外部网页** | **2 步 / 1 搬运**(复制网页正文 $\to$ 贴入聊天窗口总结) | **2 步 / 0 搬运**(发起读取;缺工牌隔离与出站拦截,需盯防外泄) | **1 步 / 0 搬运**(交后台总结,最小工牌 `brief` 隔离隐私) | **1 步 / 0 搬运**(订阅页面更新主动总结,受工牌隔离保护) | **1 步 / 0 搬运**(最小工牌 + 出站带参拦截 + 确认关卡双重阻断,0 越权安全返回摘要) | | **四类场景均值** | **3.75 步 / 2.75 搬运** | **2.50 步 / 1.00 搬运** | **1.75 步 / 0.25 搬运** | **1.25 步 / 0.50 搬运** | **1.25 步(-66.7%) / 0.00 搬运(-100%)** | 表 10 与命题 3 共同揭示出三条清晰的架构规律: 1. **L0 $\to$ L2 消除了同步盯屏与同端复制粘贴,但仍卡在 $I_{\text{init}} \ge 1$。** 步数虽从 3.75 降至 1.75,用户仍须亲自发现每件事并手动发起。 2. **仅做 L3(单端主动)会暴露 0.50 次/事项的“跨设备断层”。** L3 已将介入步数压低至 1.25 步,但在天然跨设备的场景 02 与场景 03 中,缺少系统分享入站、桌面执行租约与跨端 `#T-id` 档案库,迫使用户继续承担平均 0.50 次跨端手动搬运。 3. **唯有 L4 完整 PESA 同时达成 1.25 步(-66.7%)与严格 0.00 搬运(-100%)。** 叠加零 token 端侧预筛、订阅直通(-36.8% 读取缓存 token [1])与积压合批(-75% 均摊决策耗时 [1]),使人类注意力逼近命题 3 给出的主权下界。 ### 10.3 拟议回放基准:PESA-Bench 为推动研究社区在统一条件下评测 L2–L4 个人生态智能体,我们提出合成回放基准 **PESA-Bench**,由三套贴近真实生活的压力轨迹构成: - **高噪多通道数周生活事件流:** 按时间戳交织回放 2 至 4 周邮件、日历、即时消息、关注网页更新与跨端指令,混入 **>82% 无需动作的日常杂讯**(促销、群聊闲聊、验证码、系统通知),同步考核投机命中率、误扰率与漏报率。 - **设备作息休眠、焦点争抢与跨端竞态点击轨迹:** 为四端注入早晚通勤、会议合盖、桌面办公与夜间专注的 $\alpha(d, t)$ 切换序列,并注入前台对话抢占 `ComputerHandsLease` 与 300 毫秒内 Watch/iPhone 连点同一卡片的竞态用例,检验式 (5) 的确定性。 - **间接提示注入与隐蔽外泄红队套件:** 依据 Greshake 等人 [6] 的攻击分类,在外部网页、HTML 邮件与 PDF 中埋入伪装指令、跨工牌隐私刺探与 Markdown 图片/URL 带参外泄陷阱;全量回放中出现任意一次不变量越界即判定不通过。 ## 11. 参考实现:Piko 与运行时机制验证 PESA 并非纸上空谈,其核心底座正依托个人 AI 助手 **Piko**(覆盖 iPhone、iPad、Mac 与 Apple Watch)持续演进。为严格区分通用架构理论与当前已上线的工程现实,本节集中汇报已通过测试的运行时机制与后续路线。 ### 11.1 生产运行时核心机制的确定性单元测试 针对 Piko 客户端已落地的 L2 后台并发、工牌隔离、桌面租约互斥与看门狗自愈底座,生产代码库维护了自动化确定性单元测试套件(`BackgroundWorkerTests`),六项核心机制均已验证通过(表 11)。 **表 11 Piko 生产运行时核心机制的确定性单元测试验证(`BackgroundWorkerTests`)** | 验证机制项 | 被测生产模块与核心参数 | 守护的不变量与系统性质 | 测试状态 | | --- | --- | --- | --- | | 后台结果回流原对话 | `BackgroundWorkers`(`maxRunning = 3`) | 异步全双工执行,以唯一前台声音回流原对话(不变量 1) | 已通过 | | 任务级 `brief` 隔离 | `WorkerTask.brief` 作用域边界 | 执行器仅获当前事项最小工牌,零无关主对话隐私与凭据(不变量 6) | 已通过 | | 桌面单持有者强互斥 | `ComputerHandsLease.acquire` | 任意时刻至多 1 个执行体操控本地 GUI,排队者先跑云端步骤(命题 2) | 已通过 | | 180 秒闲置租约回收 | `ComputerHandsLease`(`idleRelease = 180s`) | 闲置满 180 秒或任务终止自动回收租约,消除后台死锁(不变量 5) | 已通过 | | 前台主对话优先插队 | `ComputerHandsLease` 优先级队列 | 实时前台对话请求桌面操作时自动跃升队首(不变量 1、命题 2) | 已通过 | | 看门狗 45 秒巡检与三级升级 | `BackgroundWorkers`(`45s / 20m / 60m 或 3 次`) | 停滞 20 分钟自动注入恢复提示,满 60 分钟或 3 次失败透明转人工(不变量 5) | 已通过 | ### 11.2 诚实能力自评与四阶段演进路线 对照第 3.5 节的 L0–L4 标准严格自评:**Piko 当前的主体生产底座处于 L1 向 L2 全面收拢的阶段**,同时云端变更监控(“留意”,采用先确定性规则后模型理解的两级机制)等局部垂直路径已展现早期 **L3 原型特征**;但距离完整的 L4 生态级 PESA 仍有清晰工程距离(例如 Apple Watch 端目前主要作为只读进度镜像,尚未切换为表 7 目标架构中的版本化一键审批阀门)。 后续研发致力于把既有模块统一收拢到第 4 节的八态*事项*状态机下,全程严守向后兼容纪律——**只增不改(Add, Never Alter)**:每一阶段只做增量叠加与底层状态统一,绝不悄悄破坏用户既有的稳定习惯(表 12)。 **表 12 Piko 通往完整 L4 PESA 的四阶段实施路线** | 演进阶段 | 核心工程交付范围 | 目标等级 | 当前状态 | | --- | --- | --- | --- | | 第一阶段 | 前后台异步全双工解耦:后台结果以唯一前台声音自动回流原对话;看门狗 45 秒巡检并最多 3 次自动自救 | L2 | 已完成 | | 第二阶段 | 统一*事项*底座:对话长任务无缝转交后台执行器;`ComputerHandsLease` 桌面互斥与前台插队;跨端 `#T-id` 同步;对话内进度条与三态视图 | L2 | 进行中 | | 第三阶段 | 日常信号接入统一流水线:邮件、日历与系统分享接入端云两级过滤与八态状态机,后台预备并呈递“确认 / 修改 / 忽略”建议卡 | L3 | 规划中 | | 第四阶段 | 全天候休眠韧性 L4 生态:云端状态机持续运转、静默推送唤醒与检查点续接、Apple Watch 版本化一键审批与四端毫秒级同步撤回、服务端看门狗闭环 | L4 | 规划中 | ## 12. 局限性、有效性威胁与开放研究问题 ### 12.1 局限性与有效性威胁 作为一篇系统架构与愿景论文,本文的现有结论受以下四项显式边界约束: 1. **解析步数核算与真实纵向部署的差距(外部有效性)。** 表 10 的步数与搬运降幅(3.75 $\to$ 1.25 步,2.75 $\to$ 0 搬运)来自对四类代表性场景的解析分解,而非数周规模的真实用户田野实验。现实中的净注意力收益高度依赖每个用户真实的误扰数 $\lvert T_{\text{skip}} \rvert$(式 3)以及第二级过滤对个人偏好的校准精度;完整实现 PESA-Bench 并开展纵向用户研究是后续必经验证。 2. **激进端侧规则过滤的冷启动漏报风险(精确率-召回率权衡)。** 在噪声比超过 80% 的环境下,第一级确定性规则能将云端路由负载降低 $5\times$ 以上,但严格的发件人白名单可能静默漏掉来自陌生新联系人(如医院通知或首次询盘客户)的紧急事件。在不牺牲端侧隐私的前提下缓解冷启动漏报,需结合关键词兜底与轻量端侧小模型语义初判。 3. **跨厂商操作系统权限壁垒(工程可部署性)。** 尽管 PESA 的形式化模型与平台无关,但后台静默唤醒、锁屏实时活动、系统分享入口与桌面无障碍操控权限在 Apple、Android、Windows 与 Linux 之间差异巨大,在跨厂商混用环境(如 iPhone 搭配 Windows 台式机)中会面临显著的工程适配成本。 4. **云端协调器的信任根假设(安全边界)。** 本文基准威胁模型假设云端状态机本身诚实且隔离(第 9 节)。若要抵御云端服务器自身被攻破的极端威胁,必须将策略校验与生物特征签名进一步下沉到终端硬件安全飞地(Secure Enclave)。 ### 12.2 开放研究问题 将多端个人设备生态作为超级智能体的运行环境,开启了六个值得系统、HCI 与安全社区深入探索的方向: - **跨越数年的个人事项记忆演进与可验证遗忘。** 当档案库跨年累积数万件事项后,如何自动归并陈旧因果链、消解动态演变的个人偏好,并支持按线索可密码学验证的彻底遗忘? - **个性化打扰阈值 $p^*$ 的小样本在线收敛。** 不同人及同一人在工作日与周末的打扰容忍度差异悬殊,如何仅靠稀疏的“确认 / 修改 / 忽略”反馈快速收敛个体化的 Horvitz 阈值(式 4)? - **端侧小模型与云端大模型的能耗与隐私自适应切分。** 随手机与电脑 NPU 算力增强,第二级语义过滤、敏感实体脱敏与离线草稿预拟有多大比例适合下沉至端侧,切分点应如何随电量、温控与网络状态动态迁移? - **保护主权的 PESA-to-PESA 跨主体协商协议。** 当用户的智能体与同事、家人或商家的智能体协商日程或议价时,双方如何在不暴露各自完整日历与价格底牌的前提下通过最小信息披露达成意向,再各自回到主人的确认关卡? - **云端大脑与本地双手之间的零信任硬件边界。** 如何在极端云端失陷模型下,利用终端安全飞地签名与本地生物特征在场证明,保证本地执行器拒绝任何伪造的高危指令? - **投机算力投入与人类注意力节省的帕累托最优。** 在给定每日预算 $B_{\text{spec}}$ 下,何种调度策略能使每千个投机 token 换回的 $\Delta \overline{\mathcal{A}}$ 最大化? ## 13. 结语 当大语言模型跨过“可靠完成单点步骤”的门槛之后,制约个人生产力的真正天花板便不再是模型本身,而是**人的有限注意力每天被切碎了多少次**。只要智能体依然被困在孤立的会话框里,或在桌面上与人争夺同一只鼠标光标,技术越进步,人反而越忙于充当跨应用搬运工与全职监工。 PESA 把这层繁琐的协调工作彻底沉入系统架构之中:以个人全部设备生态为统一运行环境,将工作单位从“对话”提升为“事项”,将执行能力($\kappa_{\text{exec}}$)与送达表面($\kappa_{\text{surf}}$)正交解耦,用有界时间租约消除桌面焦点冲突,并用版本化确认关卡与最小工牌隔离守住安全底线。由此,智能体不再是一个停在屏幕上等你敲字提问的输入框,而是一套安静、可信、贯通既有设备的常驻系统——把发现、准备与恢复留在幕后,只在真正需要你拍板的时刻恰到好处地出现在最顺手的那块屏幕上。 ## 附录 A Super-agent 核心机制与 PESA 的架构演进对应 表 A1 总结了 PESA 从 DeepSeek Super-agent [1] 继承的核心系统机制,以及当运行环境从软件研发团队迁移至单一个人的异构多端生态后所做的关键架构演进。 **表 A1 Super-agent 机制与 PESA 个人生态架构的演进对应** | Super-agent 中的机制 | PESA 中的对应机制 | 面向个人设备生态的核心演进 | | --- | --- | --- | | 常驻路由层 + 并发执行层 | 常驻前台协调器 + 隔离后台执行器 | 收束为单一个人主权边界;新增单消息多意图拆分、跨渠道合并与乐观锁 `version` 多端仲裁 | | 环境事件驱动触发 | 日常信号(邮件、日历、通知、分享、网页) | 针对 >80% 个人杂讯前置“端侧零开销规则 + 云端语义过滤”两级漏斗;来源默认关闭,无把握默认静默 | | 线索订阅与直通路由 | 执行器订阅线索($\text{sub}(w) \subseteq H$) | 扩展为线索与事项多对多映射,并支持 `Done` 态事项在后续回信到达时自动激活与 `#T-id` 链式续接 | | 上下文当缓存、按编号召回 | 三层记忆与跨设备事项档案库 | 召回单位升级为跨设备*事项*(`#T-id`),每条归档强制保留“摘要/原文、溯源、置信度”三要素 | | 投机执行 | 零副作用后台准备 + 确认建议卡 | 结合 Horvitz 双阈值门控(式 4);对外写操作一律停在 `Waiting`;严格二分系统 `Discarded` 与用户 `Skipped` | | 异步全双工交互 | 后台并发推进 + 前台轻快响应 | 结果既可回流对话,亦可由算法 3 路由至灵动岛、手表或待办建议卡;全程随时可插话或停止 | | 存算分离、执行就地保留 | 云端大脑 + 本地端侧执行器 | 端侧执行器为个人自有异构设备;引入 `ComputerHandsLease` 单租约互斥、前台插队、180s 回收与检查点续接 | | 外部独立看门狗 | 45 秒巡检、先自救后升级看门狗 | 停滞 20 分钟注入诊断恢复提示(至多 3 次);满 60 分钟或 3 次失败透明转 `Waiting (intervention)` | | 群聊与代码评审(PR)呈现 | 四端生态原生执行与送达面 | 正交拆分执行设备选择(算法 2,$\kappa_{\text{exec}}$)与送达面选择(算法 3,$\kappa_{\text{surf}}$),支持多端同步撤回 | ## 附录 B 设计取舍与常见问题 ### PESA 与 DeepSeek Super-agent 是什么关系? PESA 直接承接并扩展了 Super-agent 的核心系统工程思想:打破单次会话边界、前后台双层解耦、事件驱动与订阅直通、存算分离以及独立外部看门狗 [1]。两者的根本分水岭在于**运行环境与服务主体**:Super-agent 面向软件研发团队的群聊、代码库与常开云端开发机;PESA 面向单一个人的异构多端设备(手机、平板、电脑、手表)与个人应用生态。正是这一迁移催生了“生态原生”与“可信”两项新特征,以及端侧降噪预筛、`ComputerHandsLease` 桌面租约、正交双选算法和防隐蔽 URL 外泄三层防线。 ### PESA 与电脑操控智能体(Computer Use / Browser Agent)或 MCP 插件有什么区别? 电脑操控智能体、浏览器自动化工具及 MCP 等连接器协议主要工作在 **L1(执行)层**,解决的是“端侧执行器手头能调用哪些工具(即扩展 $\kappa_{\text{exec}}$)”。若直接让它们运行在用户主电脑上,不仅会与人争抢鼠标键盘焦点,而且合盖即停摆。PESA 是位于其上的 **L4 个人生态系统架构**:把浏览器与桌面操控统一纳入受 `ComputerHandsLease` 仲裁的本地“双手”,用云端状态机保障合盖续跑,用两级过滤与版本化确认关卡把控何时启动与由谁拍板。 ### PESA 必须构建在苹果生态上吗? 不需要。PESA 的形式化模型、闭合八态生命周期、七条运行时不变量与三项调度算法完全独立于具体操作系统,适用于任何手机、平板、电脑与穿戴设备组合(Android、Windows、Linux 或跨平台混用)。参考实现 Piko 率先选择苹果生态(iPhone、iPad、Mac、Apple Watch),是因为四类设备的人体工学分工清晰,且具备灵动岛、ActivityKit 实时活动、系统分享菜单与接力等成熟原生交互接口。 ### PESA 会在未经允许的情况下擅自发消息、填表提交或付款吗? 默认绝不会。在公理 1、不变量 2 与命题 1 的约束下,任何改变外部世界状态的写操作——发邮件、发即时消息、提交网页表单、公开发布或支付——都必须停在 `Waiting (approval)` 关卡,等待底层执行器核验本人针对当前快照版本 $\tau.\text{version}$ 签发的确认令牌后才会发出(除非用户在策略白名单 $A_{\text{auto}}$ 中显式预先授权了特定低风险动作)。 ### 手机锁屏、电脑合盖离线后,交代的任务还会继续吗? 会继续。因推理“大脑”与档案库状态机常驻云端,所有无需本地界面的步骤(检索资料、核对日历、跨源比价、拟定回复草稿)在设备休眠期间照常推进。只有必须操作特定本地设备界面的步骤才会按算法 2 尝试静默推送唤醒,或在设备彻底离线时安全保存在检查点进入 `Parked`,待设备重新上线核验页面状态后从断点续接。 ### 如何客观判定一个智能体的 PESA 等级(L0–L4)? 严格按表 4 的系统架构标准判定,与模型参数量无关:单窗口问答为 L0;人工发起并同步等待单任务工具调用为 L1;前后台解耦且多任务后台并发为 L2;接入日常事件流、具备两级过滤与建议卡投机准备为 L3;在此之上贯通全部个人设备、具备共享 `#T-id` 档案库、休眠续跑、桌面租约互斥、各端原生送达面与一处确认多端撤回的,才是完整的 L4 PESA。 ### Piko 目前已经达到完整的 L4 PESA 了吗? 还没有。如第 11 节坦诚报告的,Piko 当前已上线的主体生产底座处于 L1 向 L2 收拢阶段(`BackgroundWorkers`、`ComputerHandsLease`、最小工牌隔离与 45 秒看门狗均已通过表 11 的确定性单元测试),云端“留意”等局部垂直路径已具 L3 原型特征。表 12 给出了通往完整 L4 统一底座的后续演进阶段。 ## 声明 - **作者与机构**: Ruiming Zhao,Prysai Lab(ORCID: 0009-0007-8335-5067)。 - **利益关系**: 作者为 Prysai Lab 创始人;第 11 节报告的参考实现 Piko 由 Prysai Lab 研发。 - **数据与验证**: 本文是一篇系统架构与愿景论文。第 2 节引用的系统实测数据均源自所注明已发表文献;第 10.2 节给出透明可审验的 L0–L4 解析步数核算,第 11.1 节报告 Piko 生产运行时已通过的确定性单元测试。 - **修订记录**: 2026-11-15 首发(v1.0,Zenodo DOI: 10.5281/zenodo.24424696);2026-11-21 修订(v1.1,Zenodo DOI: 10.5281/zenodo.24429625);2026-11-24 修订(v1.2,学术结构重构、新增形式化命题与证明思路、Horvitz 阈值推导、局限性与有效性威胁专节、三语母语级重写及出版级排版升级)。 - **许可**: CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)。本文可自由引用与转载,请注明出处并附 DOI(https://doi.org/10.5281/zenodo.24429625)及原文链接。 ## 引用本文 Zhao, Ruiming. PESA:个人生态超级智能体. Piko Research, Prysai, 2026-11-15 (v1.2, 2026-11-24). https://piko.prysai.com/zh-Hans/research/pesa · DOI: https://doi.org/10.5281/zenodo.24429625 APA: Zhao, R. (2026). PESA:个人生态超级智能体 (Version 1.2) [Vision paper]. Piko Research, Prysai. https://doi.org/10.5281/zenodo.24429625 GB/T 7714: ZHAO R. PESA:个人生态超级智能体[R/OL]. Piko Research, Prysai, 2026-11-15. https://piko.prysai.com/zh-Hans/research/pesa. DOI: 10.5281/zenodo.24429625. PDF: https://piko.prysai.com/zh-Hans/research/pesa.pdf · BibTeX: https://piko.prysai.com/zh-Hans/research/pesa.bib · RIS: https://piko.prysai.com/zh-Hans/research/pesa.ris ```bibtex @techreport{zhao2026pesa, title = {PESA:个人生态超级智能体}, author = {Zhao, Ruiming}, institution = {Prysai}, type = {Vision paper}, series = {Piko Research}, year = {2026}, month = nov, doi = {10.5281/zenodo.24429625}, url = {https://piko.prysai.com/zh-Hans/research/pesa}, language = {zh-Hans}, note = {Version 1.2, revised 2026-11-24} } ``` ## 参考文献 [1] Qiao, Yujia 等(DeepSeek Harness 团队). Super-agent 设计探索:迈向更自主的 Agent 系统. DeepSeek 技术报告, 2026 年 4 月. https://github.com/deepseek-ai/dsh-superagent-prototype [2] Mark, Gloria, Gudith, Daniela, and Klocke, Ulrich. The Cost of Interrupted Work: More Speed and Stress. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '08), pp. 107–110, ACM, 2008; doi:10.1145/1357054.1357072. https://doi.org/10.1145/1357054.1357072 [3] Shneiderman, Ben. Human-Centered Artificial Intelligence: Reliable, Safe & Trustworthy. International Journal of Human–Computer Interaction 36(6): 495–504, 2020; doi:10.1080/10447318.2020.1741118. https://doi.org/10.1080/10447318.2020.1741118 [4] Kung, H. T., and Robinson, John T. On Optimistic Methods for Concurrency Control. ACM Transactions on Database Systems (TODS) 6(2): 213–226, June 1981; doi:10.1145/319566.319567. https://doi.org/10.1145/319566.319567 [5] Gray, Cary G., and Cheriton, David R. Leases: An Efficient Fault-Tolerant Mechanism for Distributed File Cache Consistency. Proceedings of the 12th ACM Symposium on Operating Systems Principles (SOSP '89) / ACM SIGOPS Operating Systems Review 23(5): 202–210, December 1989; doi:10.1145/74850.74870. https://doi.org/10.1145/74850.74870 [6] Greshake, Kai, Abdelnabi, Sahar, Mishra, Shailendra, Endres, Christoph, Holz, Thorsten, and Fritz, Mario. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec '23), pp. 79–90, ACM, 2023; doi:10.1145/3605764.3623985; arXiv:2302.12173. https://arxiv.org/abs/2302.12173 [7] Yao, Shunyu, Zhao, Jeffrey, Yu, Dian, Du, Nan, Shafran, Izhak, Narasimhan, Karthik, and Cao, Yuan. ReAct: Synergizing Reasoning and Acting in Language Models. International Conference on Learning Representations (ICLR), 2023; arXiv:2210.03629. https://arxiv.org/abs/2210.03629 [8] Schick, Timo, Dwivedi-Yu, Jane, Dessì, Roberto, Raileanu, Roberta, Lomeli, Maria, Hambro, Eric, Zettlemoyer, Luke, Cancedda, Nicola, and Scialom, Thomas. Toolformer: Language Models Can Teach Themselves to Use Tools. Advances in Neural Information Processing Systems (NeurIPS) 36: 68539–68551, 2023; arXiv:2302.04761. https://arxiv.org/abs/2302.04761 [9] Wang, Lei, Ma, Chen, Feng, Xueyang, Zhang, Zeyu, Yang, Hao, Zhang, Jingsen, Chen, Zhiyuan, Tang, Jiakai, Chen, Xu, Lin, Yankai, Zhao, Wayne Xin, Wei, Zhewei, and Wen, Jirong. A Survey on Large Language Model based Autonomous Agents. Frontiers of Computer Science 18(6): 186345, 2024; doi:10.1007/s11704-024-40231-1; arXiv:2308.11432. https://arxiv.org/abs/2308.11432 [10] Zhou, Shuyan, Xu, Frank F., Zhu, Hao, Zhou, Xuhui, Lo, Robert, Sridhar, Abishek, Cheng, Xianyi, Ou, Tianyue, Bisk, Yonatan, Fried, Daniel, Alon, Uri, and Neubig, Graham. WebArena: A Realistic Web Environment for Building Autonomous Agents. International Conference on Learning Representations (ICLR), 2024; arXiv:2307.13854. https://arxiv.org/abs/2307.13854 [11] Xie, Tianbao, Zhang, Danyang, Chen, Jixuan, Li, Xiaochuan, Zhao, Siheng, Cao, Ruisheng, Hua, Toh Jing, Cheng, Zhoujun, Shin, Dongchan, Lei, Fangyu, Liu, Yitao, Xu, Yiheng, Zhou, Shuyan, Savarese, Silvio, Xiong, Caiming, Zhong, Victor, and Yu, Tao. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments. Advances in Neural Information Processing Systems (NeurIPS) 37, Datasets and Benchmarks Track, 2024; arXiv:2404.07972. https://arxiv.org/abs/2404.07972 [12] Wu, Qingyun, Bansal, Gagan, Zhang, Jieyu, Wu, Yiran, Li, Beibin, Zhu, Erkang, Jiang, Li, Zhang, Xiaoyun, Zhang, Shaokun, Liu, Jiale, Awadallah, Ahmed Hassan, White, Ryen W., Burger, Doug, and Wang, Chi. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. First Conference on Language Modeling (COLM), 2024; arXiv:2308.08155. https://arxiv.org/abs/2308.08155 [13] Park, Joon Sung, O'Brien, Joseph C., Cai, Carrie J., Morris, Meredith Ringel, Liang, Percy, and Bernstein, Michael S. Generative Agents: Interactive Simulacra of Human Behavior. Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST '23), Article 2, pp. 1–22, ACM, 2023; doi:10.1145/3586183.3606763; arXiv:2304.03442. https://arxiv.org/abs/2304.03442 [14] Packer, Charles, Wooders, Sarah, Lin, Kevin, Fang, Vivian, Patil, Shishir G., Stoica, Ion, and Gonzalez, Joseph E. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560, 2023. https://arxiv.org/abs/2310.08560 [15] LofiSu. deepseek-super-agent:DeepSeek Super-agent 架构开源实现. GitHub 开源仓库, 2026. https://github.com/LofiSu/deepseek-super-agent [16] thefullgc. opensuperagent:事件驱动 Super-agent 社区开源实现. GitHub 开源仓库, 2026. https://github.com/thefullgc/opensuperagent [17] Weiser, Mark. The Computer for the 21st Century. Scientific American 265(3): 94–104, September 1991; doi:10.1038/scientificamerican0991-94. https://doi.org/10.1038/scientificamerican0991-94 [18] Weiser, Mark, and Brown, John Seely. Designing Calm Technology. PowerGrid Journal 1.01, July 1996 (reprinted in Beyond Calculation: The Next Fifty Years of Computing, pp. 75–85, Springer, 1997). https://calmtech.com/papers/designing-calm-technology [19] Dey, Anind K. Understanding and Using Context. Personal and Ubiquitous Computing 5(1): 4–7, 2001; doi:10.1007/s007790170019. https://doi.org/10.1007/s007790170019 [20] Horvitz, Eric. Principles of Mixed-Initiative User Interfaces. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '99), pp. 159–166, ACM, 1999; doi:10.1145/302979.303030. https://doi.org/10.1145/302979.303030 [21] Hennessy, John L., Patterson, David A. Computer Architecture: A Quantitative Approach(第 6 版). Morgan Kaufmann, Cambridge, MA, 2017; ISBN 978-0-12-811905-1. [22] Apple Inc. ActivityKit:以实时活动呈现实时数据. Apple Developer 技术文档. https://developer.apple.com/documentation/activitykit [23] Apple Inc. 人机界面指南(Human Interface Guidelines). Apple Developer 技术文档. https://developer.apple.com/design/human-interface-guidelines/ [24] SAE International. Taxonomy and Definitions for Terms Related to Driving Automation Systems for On-Road Motor Vehicles. SAE Standard J3016_202104, April 2021. https://www.sae.org/standards/content/j3016_202104/ [25] Saltzer, Jerome H., and Schroeder, Michael D. The Protection of Information in Computer Systems. Proceedings of the IEEE 63(9): 1278–1308, September 1975; doi:10.1109/PROC.1975.9939. https://doi.org/10.1109/PROC.1975.9939 --- iPhone、iPad、Mac、Apple Watch、Siri 与 Apple Pencil 是 Apple Inc. 在美国及其他国家和地区注册的商标。Piko 是 Prysai Lab 的独立产品,与 Apple Inc. 没有隶属关系。 --- title: "PESA:個人生態超級智能體" author: "Ruiming Zhao" affiliation: "Prysai (Piko)" date: 2026-11-15 updated: 2026-11-24 version: "1.2" language: zh-Hant canonical: https://piko.prysai.com/zh-Hant/research/pesa license: "CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)。本文歡迎自由引用與分享,請註明出處並附 DOI(https://doi.org/10.5281/zenodo.24429625)及原文連結。" --- # PESA:個人生態超級智能體 *面向跨裝置個人生態的系統架構、形式化模型與注意力經濟學。* Ruiming Zhao · Prysai Lab · 2026-11-15 · 版本 1.2 (2026-11-24) ## 摘要 單任務語言模型智能體如今已能呼叫外部工具、撰寫程式碼並操作圖形介面,獨立完成日益複雜的單點工作。然而在日常個人使用中,底層模型變強並未自然換來使用者的輕鬆。由於現有個人 AI 工具仍被困在孤立的對話視窗或單一裝置的螢幕裡,使用者依然必須親自留意新訊息、在電子郵件、行事曆、瀏覽器與多個聊天視窗之間反覆搬運上下文,並在智能體接管桌面操作時全程盯著螢幕看守。 本文提出並形式化定義 **PESA(Personal Ecosystem Super Agent,個人生態超級智能體)**:一種服務於單一個人主權、以個人全部裝置生態(手機、平板、電腦與手錶)為執行環境、以「事項(Thing)」而非「對話(Session)」為基本工作單位、在每台裝置上依平台原生習慣協同執行,且在任何對外寫入操作前預設等待本人明確確認的常駐超級智能體。在承繼常駐雙層 Super-agent 架構 [1] 的基礎上,本文圍繞裝置、事件流、線索、事項、後台執行器與使用者策略建立形式化模型,推導出四分量人類注意力成本模型、面向高雜訊個人事件流的 Horvitz 混合主動投機門檻、閉合八態生命週期與跨端樂觀併發提交規則,並提出七條可驗證的執行期系統不變量。在此基礎上,我們證明了對外副作用安全性與跨端冪等性(命題 1)、單桌面焦點租約的無死鎖與有限等待特性(命題 2),以及主權約束下人類注意力的不可壓縮下界(命題 3)。 在系統工程層面,本文提出完整的端對端參考架構——涵蓋單一常駐前台協調器、任務級最小權限隔離的後台執行器、跨裝置三層**事項檔案庫(Thing Archive)**、端雲兩級雜訊過濾、單桌面互斥租約(`ComputerHandsLease`)、獨立自癒看門狗,以及三項確定性優先排程演算法(`route`、`choose_device`、`choose_surface`)——並建立抵禦間接提示注入與隱蔽 URL 參數外洩的縱深防禦模型。透過在四類高頻跨裝置場景上進行可逐跳核對的解析注意力核算,我們揭示僅停留在單端主動(L3)仍會殘留平均每事項 0.50 次跨裝置手動搬運,而完整生態架構(L4 PESA)可將人工介入自 L0 的 3.75 步降至 1.25 步(降低 66.7%),並將手動上下文搬運徹底歸零(降低 100%)。最後,本文提出合成回放基準 **PESA-Bench**,報告參考實作 **Piko** 生產執行期中六項核心機制的確定性單元測試驗證,並系統性探討方法論侷限、有效性威脅與開放研究問題。 **關鍵詞:**個人生態超級智能體(PESA);個人 AI 智能體;以人為本的 AI;跨裝置協同系統;注意力經濟學;混合主動互動;投機執行;樂觀併發控制;桌面租約仲裁;間接提示注入 **論文摘要卡** | | | | --- | --- | | 術語 | PESA | | 全稱 | Personal Ecosystem Super Agent | | 中文 | 個人生態超級智能體 | | 作者 | Ruiming Zhao(Prysai Lab) | | 首次發布 | 2026 年 11 月 15 日 | | 核心界定 | 服務單一個人主權、貫通個人全部裝置、以「事項」而非「對話」為單位、對外動作預設須經版本化本人確認的常駐超級智能體。 | | 能力分級 | L0 應答 · L1 執行 · L2 併發 · L3 主動 · L4 生態 | | 參考實作 | Piko(iPhone、iPad、Mac、Apple Watch) | **核心結論** 1. 將個人智能體的基本單位從孤立對話升級為跨裝置「事項(#T-id)」,貫通手機、平板、電腦與手錶。 2. 深植經典系統與人機互動理論:有界桌面租約(Gray & Cheriton)、樂觀併發版本提交(Kung & Robinson)、Horvitz 混合主動雙門檻與 Shneiderman 二維人本 AI。 3. 提出三條核心命題及證明思路:對外副作用安全與跨端冪等(命題 1)、桌面租約無死鎖與有限等待(命題 2)、主權約束下注意力下界 A(τ) ≥ 1(命題 3)。 4. 四類跨裝置場景解析核算顯示:僅做到 L3 單端主動仍殘留 0.50 次/事項跨端搬運,唯有 L4 完整 PESA 將人工介入降至 1.25 步(-66.7%)且搬運歸零(-100%)。 5. 參考實作 Piko 之六項核心執行期機制已通過確定性單元測試,並專節坦誠剖析方法論侷限性與有效性威脅。 ## 1. 引言 當代基礎模型已能讀懂長篇文件、撰寫可運作的程式碼,也能模擬滑鼠與鍵盤操作軟體介面。但一個反直覺的現象正在發生:模型越聰明,個人使用者往往反而越忙碌。為了妥善辦完一件稍具複雜度的日常事務——例如協調一次客戶會議改期、多方比價後填寫公司採購單,或是追蹤一場歷時三週的專案談判——使用者常得在手機與電腦上同時開啟四、五個互不相通的聊天分頁。每個分頁都是封閉的沙盒,既不知道另一個視窗談過什麼,也不知道十分鐘前在另一台裝置上做過哪些決定。結果,人成了系統之間唯一的黏合劑:親自發現待辦、把零散脈絡複製拼成提示詞、在工具運作時緊盯螢幕監看,做完後再把結果貼回電子郵件或業務系統。 DeepSeek Harness 團隊在 Super-agent 技術報告中指出,受限於人類工作記憶與情境切換代價,單一使用者在同一時段通常僅能有效跟進 3 至 5 個並行會話 [1]。在以「單次對話」為中心的架構下,**底層模型決定了單輪回覆的品質上限,但人的注意力決定了一天能推進多少件事的吞吐上限**。人機互動領域的經典實證早已點出這種碎片化打斷的隱性成本:Mark、Gudith 與 Klocke 於 CHI 2008 的實驗室研究證實,當知識工作者頻繁被打斷並被迫切換任務時,人們會本能地加快操作節奏以彌補切碎的時間,雖然總耗時表面上未大幅拉長,代價卻是顯著攀升的認知負荷、時間壓力、挫折感與失誤率 [2]。在郵件、行事曆、瀏覽器分頁與多個 AI 視窗之間來回跳轉,本質上正是高強度的持續自我打斷。 > **直觀理解。** 更強的大語言模型解決了「當你把前因後果交代清楚後,如何把這一步做好」的問題;但它尚未解決「誰替你留意日常動態、誰將脈絡跨裝置帶著走、如何防止後台任務爭搶你的滑鼠,以及如何在真正送出前穩穩停下請你拍板」的問題。PESA 正是為了補上這層缺失的系統架構而生。 ### 1.1 當前個人智能體落地的四重結構性瓶頸 2024 至 2026 年間,個人 AI 工具迅速從純文字問答演進至工具呼叫、瀏覽器與桌面自動化(Computer-Use Agents)以及獨立 AI 硬體。然而在長期高頻日常使用中,既有路線反覆遭遇四道結構性高牆: 1. **提示詞冷啟動與上下文搬運稅。** 現實生活中的事務幾乎不會始於空白輸入框,而是始於一封客戶改期郵件、一則航班延誤通知、一張手機拍下的報價單,或群組訊息中的行程變動。只要使用者必須手動蒐集這些碎片、整理成提示詞再把產出搬回原應用程式,協調本身的摩擦便常高於親手處理的力氣,導致日常留存率迅速下滑。 2. **單桌面焦點爭搶與「盯螢幕監工」疲勞。** 桌面操控智能體雖能點擊按鈕、填寫表單,但一台個人電腦僅有一組實體滑鼠鍵盤與一個前台作用中視窗。當智能體操作桌面時,使用者不僅無法同時用電腦處理其他工作,還因擔心誤點、覆寫檔案或提前送出而不得不全程盯著螢幕看守。同步獨佔螢幕的互動方式,將人的注意力與執行時間牢牢綁在一起。 3. **獨立 AI 硬體孤島與既有裝置生態的割裂。** 試圖繞過既有作業系統的獨立 AI 掛件或掌上硬體之所以屢屢受挫,原因相當樸素:人們早已擁有一套分工明確、全天相伴的裝置群——口袋裡的手機、手腕上的手錶、用於閱讀與對照的平板、書桌上的電腦。使用者欠缺的並非一塊沒有歷史資料與應用程式生態的新螢幕,而是能讓單一持續在線的智能體進駐既有裝置群的系統架構。 4. **主動性與信任感的兩難。** 純被動助理在電腦闔蓋、手機鎖定螢幕的瞬間隨即停擺;但若盲目開啟主動推播,每天湧入的數百則行銷郵件、群組閒聊與應用程式通知便會化為惱人的干擾雜訊——更嚴重的是,若系統未經本人核對即以使用者真實身分寄出郵件、送出表單或執行付款,任何一次越權失誤都將導致信任徹底瓦解。 ### 1.2 研究問題與主要貢獻 本文是一篇系統架構與願景論文,聚焦於三項核心研究問題: - **RQ1(抽象模型與注意力):** 應採用何種系統抽象與能力分級,將跨裝置個人生態智能體與對話框工具、單機自動化區隔開來?每一級架構演進實際消除了哪一部分人類注意力成本? - **RQ2(系統協同與併發):** 單一常駐智能體如何銜接持續在線的雲端推理與間歇休眠的本機裝置,在單台電腦上避免多個後台任務爭搶桌面焦點,並在多塊螢幕間杜絕重複觸發對外動作? - **RQ3(信任邊界與雜訊紀律):** 主動式個人智能體如何在高雜訊日常事件流中既不空耗雲端算力、又不頻繁打擾使用者,同時防範外部網頁與郵件中的間接提示注入與隱蔽資料外洩? 針對上述問題,本文提出五項主要貢獻: 1. **概念架構與 L0–L4 能力分級(第 3 節)。** 正式定義 **PESA(Personal Ecosystem Super Agent)**,依循以人為本 AI 之二維框架 [3] 闡述三項設計命題與六項系統特質,建立與模型參數量解耦、依系統分擔協調範圍界定之 L0–L4 分級標準。 2. **形式化模型、混合主動決策邊界與理論保證(第 4 節)。** 將裝置能力正交拆解為執行能力與送達能力 $\kappa(d) = \langle \kappa_{\text{exec}}(d), \kappa_{\text{surf}}(d) \rangle$;建構四分量注意力成本方程與高雜訊環境下之 Horvitz 投機門檻;設計閉合八態生命週期與基於樂觀併發控制 [4] 的版本化原子提交規則;證明對外副作用安全性、桌面租約無死鎖性與主權注意力下界三條核心命題。 3. **跨裝置參考架構與確定性優先排程演算法(第 5–6 節)。** 設計單一常駐前台協調器、任務級隔離後台執行器、跨裝置三層**事項檔案庫**、斷線檢查點續接、有界時間互斥租約(`ComputerHandsLease`)[5] 及獨立自癒看門狗,並給出事件路由(`route`)、執行裝置選擇(`choose_device`)與情境送達面選擇(`choose_surface`)三項低開銷演算法及複雜度分析。 4. **生態原生互動、容錯場景與縱深防禦體系(第 7–9 節)。** 確立四類裝置形態之人體工學分工,詳述四類高頻跨裝置場景的正常閉環與異常復原路徑,說明八態如何摺疊為極簡三態視圖,並建立防範間接提示注入與隱蔽 URL 外洩的三層防線 [6]。 5. **評估指標、L0–L4 解析核算與參考實作驗證(第 10–12 節)。** 提出八項正交評估指標與合成回放基準 **PESA-Bench**;在四類場景上逐跳核算 L0 至 L4 之人工介入與跨端搬運(量化說明為何僅止於 L3 單端主動仍會殘留跨端搬運);報告參考系統 **Piko** 六項生產執行期機制的確定性單元測試結果,並坦誠剖析本文之方法論侷限與有效性威脅。 ## 2. 背景與相關研究 PESA 匯集了智能體系統、作業系統、分散式系統與人機互動六條脈絡的研究成果。釐清每一條脈絡解決了什麼問題、又在個人日常生活中留下哪些空白,有助於明確界定 PESA 的系統定位。 ### 2.1 從對話助理到單任務工具與桌面智能體 早期對話助理採行受限於單一視窗的無狀態輪詢互動。ReAct [7] 透過交替生成推理軌跡與環境動作,使語言模型能依外部觀測動態修正計畫;Toolformer [8] 證實模型可經自監督學習掌握外部 API 呼叫時機。相關綜述系統性回顧了此一典範如何發展為程式編寫智能體、瀏覽器智能體及 MCP 等標準化工具連接生態 [9]。 然而進入真實個人環境後,獨立單任務智能體仍與人類表現存在顯著鴻溝。在涵蓋 812 項真實網站長程任務的 WebArena 基準中 [10],人類完成率為 78.24%,而當時 GPT-4 智能體僅為 14.41%;在橫跨 Ubuntu、Windows 與 macOS 共 369 項真實桌面任務的 OSWorld 基準中 [11],人類完成率為 72.36%,發布時最佳多模態智能體僅為 12.24%。即便視覺定位與長鏈規劃模型持續進步,個人日常任務仍反覆受阻於三道非單純放大模型規模所能跨越的高牆:跨裝置登入狀態過期與雙重驗證、關鍵脈絡散落於另一台裝置或另一款應用程式,以及不可逆的末端對外動作(寄信、送單、付款)絕不容許系統靜默出錯。 ### 2.2 多智能體協作、分層記憶與常駐 Super-agent AutoGen [12] 等多智能體框架支援專職角色透過可程式化對話分工協作,但協同生命週期大多仍繫於單次會話。Generative Agents [13] 為虛擬社群角色建構依近期性、重要性與關聯性檢索之連續記憶流與反思樹,惟沙盒環境不存在真實財務責任與外部攻擊者。MemGPT [14] 借鏡作業系統虛擬記憶體概念,將有限上下文視窗視為「主記憶體」,經顯式函式呼叫於主記憶體與外部歸檔儲存之間換入換出歷史紀錄。PESA 的事項檔案庫直接承襲此一分層快取洞見,但將索引與召回的基本單位自零散聊天片段提升為具因果關聯鏈的跨裝置**事項(`#T-id`)**。 DeepSeek Harness 團隊提出的 Super-agent 架構 [1] 跨出了打破單次會話框架的關鍵一步:引入常駐路由層(Router)、後台併發執行層(Worker)、事件驅動觸發、運算儲存分離與外部看門狗,並衍生出 `deepseek-super-agent` [15]、`opensuperagent` [16] 等開源實作。然而 Super-agent 的原生目標環境是**軟體研發團隊**——依託企業群組聊天、程式碼託管平台與 24 小時常開的雲端開發主機。將其遷移至**單一個人之日常生活生態**時,三類全新系統約束隨即浮現:① **個人雜訊放大效應**:日常手機通知、群組訊息與行銷郵件中逾 80% 無須任何動作;② **裝置間歇休眠與單桌面焦點衝突**:個人筆電隨時闔蓋收入背包,且一台電腦僅有一組實體滑鼠鍵盤;③ **個人主權與法律責任**:寄出的每封信、送出的每份表單皆以本人實名承擔後果,絕不容許未經授權的自主外發。 ### 2.3 分散式系統原語與平靜人機互動基礎 PESA 的核心協調機制並非權宜啟發式規則,而是深植於分散式系統與人機互動領域之經典理論: - **有界時間租約(Leases)。** Gray 與 Cheriton 於 SOSP 1989 提出「租約」機制 [5]:透過授予具逾時自動回收語意的獨佔控制權,確保持有者當機或失聯時系統得免人工介入自動恢復活性。PESA 以 `ComputerHandsLease` 將此經典原語精準應用於個人電腦實體桌面焦點的互斥仲裁。 - **樂觀併發控制(OCC)。** Kung 與 Robinson 於 ACM TODS 1981 指出 [4],當寫入衝突遠少於讀取時,於提交階段驗證版本快照可避免沉重的分散式鎖定開銷。PESA 據此落實跨手機、手錶、平板與電腦之版本化原子確認,徹底杜絕快速連點導致的重複寄信或重複扣款。 - **平靜技術、情境感知與以人為本 AI。** Weiser [17] 與 Weiser 及 Brown 之平靜技術理論 [18] 主張,日常運算應安居於注意力邊緣,僅在必要時平滑移入中心;Dey [19] 對「情境(Context)」提出經典形式化定義,奠定依使用者當下狀態匹配送達面之理論基礎;Horvitz [20] 以貝氏期望效用刻畫混合主動介面,於協助收益與干擾成本間進行量化權衡;Shneiderman [3] 更論證「高度機器自動化」與「高度人類控制權」乃兩條正交維度而非一維拉鋸——此正為 PESA「後台深度投機準備、末端由本人拍板確認」之核心立論。 - **投機執行與作業系統原生框架。** 現代超純量處理器於分支條件未決前先在重排序緩衝區投機執行,僅於命中時原子提交架構狀態 [21]。同時,Siri、App Intents、捷徑(Shortcuts)、Handoff 與 ActivityKit 鎖定畫面即時動態 [22][23] 等原生框架雖橫跨多裝置,卻仍以短鏈路同步指令為主,缺乏跨週存活的雲端非同步事項狀態機。PESA 並不與作業系統原生入口競爭,而是將其納為感知與送達能力層。 **表 1 PESA 與主流智能體架構的多維度定位比較** | 比較維度 | 對話式助理 | 單任務工具 / 操控智能體 | 團隊級 Super-agent | **PESA(個人生態超級智能體)** | | --- | --- | --- | --- | --- | | 基本工作單位 | 單次獨立對話(Session) | 單次指令任務(Task) | 研發事件線索(Thread) | **具體個人事項(Thing, `#T-id`)** | | 執行與感知環境 | 單一聊天視窗 | 單台電腦或瀏覽器沙盒 | 團隊群聊、程式碼庫與雲端主機 | **個人全部裝置(手機/平板/電腦/手錶)與應用** | | 觸發與主動性 | 純被動等待輸入 | 人工發起、同步執行 | 團隊成員與研發流水線事件 | **使用者意圖 + 經端雲兩級過濾之日常事件流** | | 併發與回應性 | 單視窗阻塞 | 執行時常獨佔螢幕焦點 | 常駐路由 + 後台併發執行器 | **輕快常駐前台 + 隔離併發後台執行器** | | 離線韌性與焦點互斥 | 關分頁即停 | 闔蓋中斷、多任務搶滑鼠 | 雲端常開、無單桌面焦點衝突 | **雲端續跑 + 靜默喚醒 + `ComputerHandsLease` 單租約互斥** | | 記憶與跨端召回 | 困於單段聊天紀錄 | 侷限於當次執行上下文 | 單平台內依編號檢索 | **三層記憶 + 跨裝置事項檔案庫(`#T-id` 逐跳召回)** | | 送達與互動面 | 統一對話清單 | 終端日誌或浮動操控窗 | 群組訊息與程式碼審查(PR) | **依 $\kappa_{\text{surf}}$ 匹配情境:動態島、Watch、iPad 分欄、卡片** | | 對外安全與憑證隔離 | 人工手動複製外發 | 憑證常暴露於上下文 | 依團隊 CI/CD 權限自動執行 | **憑證保險庫封存 + 最小工牌隔離 + 預設版本化確認關卡** | **來自 Super-agent 的系統實測啟示與適用邊界。** DeepSeek Harness 報告中的三組實測數據直接啟發了 PESA 的流水線設計 [1]:① 前後台雙層併發使任務尾延遲(p95)自單會話中性基線的 29.5 分鐘降至 15.7 分鐘(縮短 46.8%,中位數 12.4 分鐘);② 啟用線索訂閱直通避免對同一線索重複全量路由,防止讀取快取 token 從 2,323 萬攀升至 3,177 萬(+36.8%)並減少約 30% 路由決策;③ 當入站速率自每分鐘 1 筆增至 40 筆時,積壓合批讓平均批次大小自 1.0 自適應增至 2.8,單次請求耗時僅自 2.5 秒微增至 3.9 秒,均攤每筆決策耗時自 6.4 秒降至 1.6 秒(縮短 75%)。須審慎強調的是,上述數據測自研發流水線負載,個人日常環境之雜訊密度遠高於程式碼儲存庫,因此 PESA 除保留訂閱直通與積壓合批外,必須於雲端模型前增設零 token 端側規則預篩與每日投機配額門控(見第 4.2 節)。 ## 3. 概念架構與能力分級 ### 3.1 形式化定義 > **定義 1(PESA)。** **個人生態超級智能體(Personal Ecosystem Super Agent, PESA)** 是一種服務於單一個人主權、以該個體全部裝置與應用程式生態為執行環境的常駐超級智能體。它在所有裝置間維繫單一連續身分與統一上下文;以具體**事項(Thing)**而非**對話(Session)**作為基本工作單位,於隔離後台沙盒中併發推進多項事務;經由端雲兩級過濾自日常事件流辨識高價值事務,提前完成唯讀調查與草稿整備;在每台裝置上依循該平台原生互動慣例進行感知、執行與送達;除使用者於策略白名單明確預先授權之特定低風險動作外,任何改變外部世界狀態之寫入操作預設皆須先取得本人攜帶版本號的顯式確認。 > **直觀理解。** 用最平白的話說,PESA 不再是停在瀏覽器分頁裡等你敲字的聊天框,而更像一位安靜、守分際、貫通你所有裝置的專屬助理:只讀取你親手開啟的來源,在後台默默查清資料、擬妥草稿,沒把握時絕不打擾,只在真正需要你做決定的那一刻,在你此刻最順手的那塊螢幕上輕點一次。 名稱中的四個詞各自劃定清楚的系統邊界: - **Personal(單一個人主權邊界):** 記憶、行事曆、聯絡人與帳號憑證嚴格歸屬這一個人,絕非於多方利害關係間折衷的多租戶團隊機器人。 - **Ecosystem(異質多端執行環境):** 執行載體是使用者已擁有的互補硬體群(如手機、平板、電腦、手錶)及其原生系統服務,而非單一網頁或孤立單機。 - **Super(常駐雙層與超會話能力):** 承繼並擴展 Super-agent [1] 之系統特質,具備跨會話連續性、前後台全雙工併發、事件驅動主動性與斷線自癒持久性。 - **Agent(有界閉環行動體):** 不僅能產出文字,亦能在受控權限內調度雲端工具與本機端側執行器,將事務推進至「萬事俱備、只待確認」的交付狀態。 ### 3.2 三項核心設計命題 PESA 的整體架構建立在三項彼此呼應的命題之上,與 Shneiderman「高度自動化與高度人類控制並行不悖」的二維人本 AI 框架一致 [3]: 1. **命題一:執行環境是跨裝置生態,而非單一聊天視窗。** 個人數位脈絡天然依裝置硬體形態分片存放:隨身通訊在手機、深度文件與桌面軟體在電腦、長文比對在平板、行進間即時確認在手腕。困於單一視窗的智能體在架構上即是「半盲」,必然將跨端整合的負擔轉嫁給使用者。 2. **命題二:面向使用者的基本單位是「事項」,而非「對話」。** 「新增對話」是早期無狀態模型介面的技術殘留,並非人類組織日常事務的心智模型。人們在生活裡關心的是「客戶改期回信寄出了嗎」「採購比價表填妥了嗎」「兩週前合約違約金條款原文怎麼寫」。提示詞組裝、對話輪次與後台執行器調度皆應封裝於系統底層。 3. **命題三:高度後台自動化與嚴格的人類最終決定權相輔相成,而非此消彼長。** 檢索、跨端同步、表單預填與異常重試應完全由機器於幕後消化;人的注意力僅須投入兩個最高價值的節點——**表達意圖**,以及**在對外動作前做出最終確認**。 ### 3.3 六項核心系統特質 在承繼 Super-agent 四項基礎系統特質(連續、高效、主動、持久)[1] 之餘,針對個人裝置生態的獨特約束,PESA 確立了**生態原生**與**可信**兩項決定性特質(表 2)。 **表 2 PESA 的六項核心系統特質** | 系統特質 | 架構涵義與工程要求 | | --- | --- | | 連續(Continuous) | 單一連續身分貫穿全部裝置與入口;切換裝置不遺失脈絡,歷史事項可依 `#T-id` 跨端逐跳召回。 | | 高效(Efficient) | 常駐前台協調器隨時保持秒級回應,多項長耗時事務由隔離的後台執行器併發推進、互不阻塞。 | | 主動(Proactive) | 已開啟之日常訊號(郵件、行事曆、關注網頁)經端雲兩級過濾自動立項,於後台投機整備草稿並呈遞精簡建議卡。 | | 持久(Persistent) | 手機鎖定、電腦闔蓋時雲端推理不中斷;需本機配合之步驟支援靜默喚醒或檢查點掛起;停滯由看門狗先自救再上報。 | | **生態原生(Ecosystem-native)** | 每台裝置承擔最契合其人體工學的角色,嚴格依循各平台互動規範(動態島、分欄、選單列與桌面租約、抬腕速覽)。 | | **可信(Trustworthy)** | 外部資料來源預設關閉、無把握預設安靜;對外寫入預設必經版本化本人確認;憑證封存不進上下文,外部文字不得驅動指令或外洩隱私。 | ### 3.4 核心術語表 表 3 統一界定全文十二項核心系統抽象之職責邊界,使形式化推演與工程討論保持一致口徑。 **表 3 PESA 核心術語與職責邊界** | 術語 | 形式定義與系統職責邊界 | | --- | --- | | 前台協調器(Front Desk) | 唯一常駐的對話協調中樞(對應 Super-agent 的 Router 層)。負責意圖理解、事項拆分與合併、積壓合批、執行器分派及單一聲音回覆,絕不阻塞於長耗時操作。 | | 後台執行器(Worker) | 隔離的併發執行單元。每個執行器綁定且僅綁定一件事項 $\tau$,僅持有前台簽發的最小任務工牌(`brief`),彼此上下文完全隔離。 | | 事件(Event) | 來自日常生活或裝置的離散觀測:一封郵件、一則訊息、一次行事曆變更、一個關注網頁更新、一次系統分享操作,或使用者的直接指令。 | | 線索(Thread) | 共用同一業務或會話脈絡、依時間排序的事件序列(例如圍繞同一議題的往來郵件或採購簽核流)。 | | 事項(Thing) | 使用者互動與系統排程的核心單位:攜帶全域編號(`#T-id`)、來源、目標、八態生命週期狀態、樂觀鎖版本號 `version`、負責人、所需執行能力、因果引用 `refs` 與交付結論。 | | 訂閱(Subscription) | 執行器與一條或多條線索之間的持久綁定($\text{sub}(w) \subseteq H$)。已訂閱線索上的新事件可繞過前台大模型重路由,直達對應執行器或續接已完成事項。 | | 事項檔案庫(Thing Archive) | 事項、線索與分層長期記憶的雲端持久化儲存。每筆紀錄強制保留「事實摘要/原文、可稽核來源(`#T-id`)、置信度與時間戳」三要素,支援跨端逐跳召回。 | | 端側執行器(Device Hands) | 執行於使用者自有裝置上的本機執行能力 $\kappa_{\text{exec}}$(瀏覽器會話、桌面軟體、本機檔案),於個人電腦上受有界互斥租約(`ComputerHandsLease`)仲裁。 | | 送達面(Delivery Surface) | 向使用者呈現進度或待定決策的平台原生介面($\kappa_{\text{surf}}$):對話內進度列、鎖定畫面即時動態與動態島、iPad 分欄複核卡、Mac 選單列、Apple Watch 抬腕卡片。 | | 確認關卡(Approval Gate) | 任何對外寫入操作執行前預設必經的人工拍板節點,須驗證本人針對當前版本號簽發之確認權杖。 | | 看門狗(Watchdog) | 獨立於主推理迴圈之外的活性巡檢迴路。週期性查核實質進度,遇停滯先注入有界復原指令自救,確認無法自動復原方透明轉交人工。 | | 策略(Policy) | 使用者顯式設定的系統運行邊界:已開啟事件來源集 $S_{\text{on}}$、免確認低風險白名單 $A_{\text{auto}}$、專注與夜間靜默時段 $Q_{\text{quiet}}$,以及各來源每日投機預算 $B_{\text{spec}}$。 | ### 3.5 PESA 五級能力分級(L0–L4) 借鏡國際自動機工程師學會之駕駛自動化分級標準 SAE J3016 [24],本文依**系統替人接管會話管理、主動感知與跨裝置協同的範圍**,將個人智能體劃分為 L0 至 L4 五個等級(圖 1,表 4)。每一級嚴格涵蓋其下級所有能力。 > 圖 1 PESA 五級能力分級(L0–L4)。每一級嚴格涵蓋其下級能力,唯有達到 L4 方為完整 PESA。 **表 4 PESA 五級能力分類與架構判定標準** | 等級 | 名稱 | 核心架構判定標準 | 人的角色與注意力負擔 | | --- | --- | --- | --- | | L0 | 應答(Respond) | 同步一問一答;無跨會話工作流狀態;上下文鎖死於當前聊天視窗內。 | 使用者負責發現事務、撰寫提示詞、跨應用複製貼上並手動執行所有外部操作。 | | L1 | 執行(Execute) | 可於單台裝置或單一沙盒內呼叫工具完成單一任務,惟須由人手動發起並同步等待。 | 省去部分應用內點擊,但仍須手動發起、跨裝置傳遞資料並盯著螢幕監看。 | | L2 | 併發(Concurrent) | 具備「常駐前台 + 隔離後台執行器」雙層架構:長任務後台非同步推進,前台隨時可展開新話題。 | 擺脫單視窗同步阻塞,但仍須本人親自發現日常事務並逐一交代系統。 | | L3 | 主動(Proactive) | 接入日常事件流並具備端雲兩級過濾與投機整備能力;無把握時保持靜默,有把握時呈遞建議卡。 | 大幅降低被動事務的發現與發起成本,惟若侷限於單端或網頁,跨裝置流轉仍須人手搬運。 | | **L4** | **生態(Ecosystem)** | **單一身分與 `#T-id` 檔案庫貫通個人全部裝置;裝置休眠時雲端續跑並支援靜默喚醒、桌面租約互斥與檢查點續接;各端依原生執行面與送達面協同,一端確認多端原子撤回。** | **人徹底脫離跨端搬運與盯螢幕監工角色,僅於表達新意圖與最終確認對外動作時介入。** | 依此標準,**唯有達到 L4 方為完整的 PESA**。定級須遵循兩項客觀原則:① **只看系統架構,不看模型規模**——縱使接入最強推理模型,若產品形態仍為單視窗問答,其等級依然是 L0;② **區分局部原型與全域底座**——特定垂直路徑(如單一雲端網頁變更監控)可率先展現 L3 主動特性,但系統整體定級取決於統一跨裝置狀態機是否全面貫通。 ## 4. 形式化系統模型、決策邊界與理論保證 本節建立 PESA 的形式化執行期模型,推導注意力成本與高雜訊環境下之混合主動投機門檻,規範閉合八態生命週期與跨端樂觀併發提交規則,並給出三條核心系統性質之證明思路。 ### 4.1 系統實體與裝置能力正交拆解 我們將運行中的 PESA 系統形式化為六元組 $\mathcal{S}_{\text{PESA}} = \langle D, E, H, T, W, P \rangle$ 與常駐前台排程算子 $F$: - **裝置集合 $D = \{d_1, \dots, d_n\}$。** 每台裝置 $d \in D$ 的能力正交拆解為 $\kappa(d) = \langle \kappa_{\text{exec}}(d), \kappa_{\text{surf}}(d) \rangle$,明確區分**執行能力**(瀏覽器會話操控、桌面原生軟體、本機檔案讀寫、端側連接器)與**送達能力**(前台對話流、互動通知、動態島與鎖定畫面即時動態、平板分欄、選單列、手錶抬腕卡片)。裝置於時刻 $t$ 的連線與電源可用狀態記為 $\alpha(d, t) \in \{\text{online}, \text{wakeable}, \text{offline}\}$。 - **事件流 $E = (e_1, e_2, \dots)$。** 每筆事件為五元組 $e = \langle \text{id}, \text{source}, t, \text{payload}, h \rangle$,其中 $\text{source}$ 標明來源(使用者本人、外部通訊應用或裝置狀態變化),$h \in H$ 為其所屬線索識別碼。 - **線索集合 $H$。** 每條線索 $h \in H$ 將同一業務脈絡下先後抵達的事件串接為有序序列。 - **事項集合 $T$。** 每件事項為十一元組: $$\tau = \langle \text{id}, \text{origin}, \text{goal}, \text{state}, \text{wait\_reason}, \text{version}, \text{owner}, \text{subs}, \text{req\_exec}, \text{refs}, \text{outcome} \rangle \tag{1}$$ 其中 $\text{id}$ 為全域唯一編號(如 `#T-108`);$\text{version} \in \mathbb{N}^+$ 為單調遞增之樂觀併發版本號;$\text{wait\_reason} \in \{\text{none}, \text{approval}, \text{device\_offline}, \text{intervention}\}$ 明確區分待審批、等裝置上線與故障轉人工三類等待原因;$\text{refs} \subset T.\text{id}$ 記錄指向歷史關聯事項之有向邊,構成跨端召回鏈。 - **後台執行器集合 $W$。** 每個執行器 $w \in W$ 嚴格綁定唯一事項 $\tau$,僅持有前台簽發之最小任務工牌 $\text{brief}(\tau)$,並可訂閱線索子集 $\text{sub}(w) \subseteq H$。值得注意的是,**線索 $H$ 與事項 $T$ 為多對多映射**:一件複雜事項(如規劃跨城出差)可同時訂閱郵件、行事曆與航班動態三條線索;反之,使用者於單則訊息交代三件獨立事務,亦會由前台拆分為 $\tau_1, \tau_2, \tau_3$ 並行推進。 - **使用者策略 $P = \langle S_{\text{on}}, A_{\text{auto}}, Q_{\text{quiet}}, B_{\text{spec}} \rangle$。** 全數依循失敗安全預設:$S_{\text{on}} = \varnothing$(外部來源預設全關),$A_{\text{auto}} = \varnothing$(對外寫入預設全須確認),$Q_{\text{quiet}}$ 規範專注與夜間靜默時段,$B_{\text{spec}}$ 限定各來源每日投機預算。 常駐前台 $F$ 為確定性規則優先、語意模型兜底之排程算子: $$F(e, T, P) \longrightarrow \big\{\text{reply}, \text{create}, \text{merge}, \text{split}, \text{reactivate}, \text{stop}, \text{silent}\big\}$$ > **直觀理解。** 將執行能力 $\kappa_{\text{exec}}$ 與送達能力 $\kappa_{\text{surf}}$ 拆開,正是跨裝置協同真正順手的關鍵:*書桌上的 Mac 也許是最適合代填內網表單的執行裝置($\kappa_{\text{exec}}$),但手腕上的手錶或手邊的 iPad 才可能是此刻最適合請你確認的那塊螢幕($\kappa_{\text{surf}}$)*。 ### 4.2 人類注意力成本模型與混合主動投機門檻 為以客觀量化方式比較不同智能體架構,我們將使用者完成單件事項 $\tau$ 所付出的注意力操作成本 $\mathcal{A}(\tau)$ 拆解為四個正交分量: $$\mathcal{A}(\tau) = I_{\text{init}}(\tau) + I_{\text{transfer}}(\tau) + I_{\text{supervise}}(\tau) + I_{\text{decide}}(\tau) \tag{2}$$ 其中,$I_{\text{init}}$ 為發現事務並撰寫提示詞發起之步數;$I_{\text{transfer}}$ 為跨視窗或跨裝置手動複製貼上之次數;$I_{\text{supervise}}$ 為因焦點遭佔用或任務停滯而被迫盯螢幕監看/人工救援之次數;$I_{\text{decide}}$ 為審閱草稿並確認放行之操作次數。 若僅觀察式 (2),主動系統恐藉濫發低價值建議卡壓低 $I_{\text{init}}$。為堵住此漏洞,記成功交付事項集合為 $T_{\text{done}}$,已呈遞至使用者介面卻遭點選「略過(Skip)」拒絕的建議卡集合為 $T_{\text{skip}}$(每次拒絕消耗注意力 $I_{\text{reject}}(\tau') \ge 1$),定義**均攤有效注意力成本**: $$\overline{\mathcal{A}} = \frac{\sum_{\tau \in T_{\text{done}}} \mathcal{A}(\tau) + \sum_{\tau' \in T_{\text{skip}}} I_{\text{reject}}(\tau')}{\lvert T_{\text{done}} \rvert} \tag{3}$$ **高雜訊個人環境下的雙門檻混合主動控制。** 沿用 Horvitz 的貝氏期望效用準則 [20],設 $P(G \mid E)$ 為給定觀測事件 $E$ 時使用者具真實行動意圖 $G$ 之後驗機率,$U_{\text{save}}$ 為投機命中時所節省之注意力效用,$C_{\text{compute}}$ 為後台試算一次的算力代價,$C_{\text{interrupt}}$ 為一次誤打擾造成之認知代價。PESA 實施**雙門檻控制**: $$P(G \mid E) > \frac{C_{\text{compute}}}{U_{\text{save}}} \;\;(\text{准予後台試算}), \qquad P(G \mid E) > p^* = \frac{C_{\text{interrupt}}}{C_{\text{interrupt}} + U_{\text{save}}} \;\;(\text{准予推播確認卡}) \tag{4}$$ 因雲端推理成本遠低於打斷人類專注的代價($C_{\text{compute}} \ll C_{\text{interrupt}}$),系統得以較低門檻在後台靜默進行無副作用預研,若發現無打擾價值或信心未跨越 $p^*$,即於內部靜默丟棄,絕不驚動使用者。 進一步檢視**個人雜訊放大效應**的解析意義:設日常入站事件中無須動作之雜訊比例為 $\rho \in [0, 1)$。若未經端側過濾即將全量原始事件送交雲端大模型路由,總路由事件數與實際有效事項數之比高達 $\frac{1}{1 - \rho}$。在典型個人通知雜訊比($\rho \ge 0.80$)下,省去第一級確定性規則預篩會令雲端路由 token 開銷至少放大 $5\times$(於 $\rho = 0.90$ 時更達 $10\times$),並迫使大量私密訊息無謂上傳雲端。前置零 token 端側規則乃破解此放大效應之必要設計。 ### 4.3 閉合八態生命週期與跨端樂觀併發提交 > 圖 2 事項的閉合八態生命週期。對外寫入必經「待確認(審批)」;虛線框狀態對使用者靜默隱藏,「已忽略」明確計入遭拒絕之建議卡。 為使底層排程器完備處理雜訊過濾、裝置休眠、外部審批、故障接管與跨週回信續接,PESA 於內部維護嚴格閉合的八個狀態,並於使用者介面摺疊為直覺的三組視圖(圖 2,表 5)。 **表 5 事項的閉合八態生命週期與使用者視圖映射** | 內部狀態 | 系統語意與駐留條件 | 合法轉移路徑 | 使用者介面呈現 | | --- | --- | --- | --- | | `Candidate`(候選) | 通過端側規則預篩,正接受雲端語意價值評估 | 值得處理 $\to$ `Running`;無價值或無把握 $\to$ `Discarded` | 幕後靜默(隱藏) | | `Running`(進行中) | 已指派專屬後台執行器 $w$,於雲端或持有端側租約推進 | 草稿就緒或遇對外邊界 $\to$ `Waiting (approval)`;試算無價值 $\to$ `Discarded`;所需裝置離線 $\to$ `Parked` | **進行中** | | `Parked`(已掛起) | 下一步所需能力 $\text{req\_exec}$ 對應裝置目前離線,或等待外部條件 | 裝置上線/喚醒 $\to$ `Running`;使用者叫停 $\to$ `Stopped`;逾時無替代 $\to$ `Waiting (intervention)` | **進行中**(附等待原因) | | `Waiting`(待確認) | 阻塞等待本人介入,分兩類子原因:(a) **待審批**:對外草稿/表單就緒;(b) **需接管**:缺少裝置能力或看門狗 3 次自救無果 | (a) 確認 $\to$ `Done`、修改 $\to$ `Running`、略過 $\to$ `Skipped`;(b) 排除障礙重試 $\to$ `Running`、放棄 $\to$ `Stopped` | **待確認**(送達唯一最適表面) | | `Done`(已完成) | 階段目標已交付或經確認之對外動作已執行完畢 | 若保留線索訂閱 $\text{sub}(w)$,同線索新事件抵達時觸發**重新啟用**(`Done` $\to$ `Running`)或派生帶 `#T-id` 之關聯事項 | **已完成** | | `Discarded`(已丟棄) | 於過濾或後台試算階段遭系統判定無打擾價值而靜默終止 | 內部終態(計入預算 $B_{\text{spec}}$,零使用者通知) | 幕後靜默(隱藏) | | `Skipped`(已忽略) | 建議卡已觸達使用者介面並遭使用者明確點選「略過」 | 內部終態(計入式 (3) 懲罰項與誤擾率分子,並下調同類訊號權重) | 已歸檔 | | `Stopped`(已停止) | 使用者於 `Running`、`Parked` 或 `Waiting` 任一階段顯式叫停 | 內部終態(立即釋放持有之裝置租約與後台算力) | 已停止(已歸檔) | 狀態機受三條剛性公理約束: 1. **公理 1(強制確認關卡):** 針對任何未列入白名單 $A_{\text{auto}}$ 之對外寫入操作 $a$,不存在自 `Candidate` 或 `Running` 繞過 `Waiting (approval)` 直接執行並進入 `Done` 的轉移路徑。 2. **公理 2(不可竄改的打擾記帳):** 未觸達螢幕即於後台淘汰之試算歸入 `Discarded`;一旦卡片呈遞至任何使用者介面並遭拒絕,必須歸入 `Skipped`,杜絕藉由混淆內部丟棄來粉飾誤擾率。 3. **公理 3(完成態脈絡保活):** 進入 `Done` 僅代表當前回合交付完畢,並不銷毀檔案庫紀錄與線索訂閱,使數日後之客戶回信得沿原線索無縫重新啟用或鏈式續接。 **跨端樂觀併發提交規則。** 在四端協同環境下,使用者可能於手錶點按「確認寄出」後不到一秒,又於手機通知重複點按同一張卡片。借鏡 Kung 與 Robinson 的樂觀併發驗證機制 [4],每張呈遞卡片皆綁定快照版本號 $v = \tau.\text{version}$,雲端狀態機執行如下原子比對與遞增操作: $$\text{commit}(\tau, v, \text{action}, d) = \begin{cases} \langle \text{OK},\; \tau.\text{version} \leftarrow v + 1,\; \text{withdraw}(D \setminus \{d\}) \rangle & \text{if } \tau.\text{state} = \text{Waiting} \land \tau.\text{version} = v \\ \langle \text{NOOP\_ALREADY\_HANDLED},\; \tau.\text{version} \rangle & \text{otherwise} \end{cases} \tag{5}$$ 僅首筆攜帶相符版本號 $v$ 抵達雲端之請求會觸發實際對外動作並推進版本號;其餘裝置之滯後點擊皆因版本失配安全落為空操作(`NOOP`),同時雲端透過推播通道即時撤回其他裝置上之殘留提醒。 ### 4.4 七條執行期系統不變量與核心理論保證 任何合規之 PESA 執行期於任意時刻皆須滿足七條不變量: 1. **單一對外聲音:** 面向使用者發聲者始終僅為常駐前台 $F$;後台執行器派生、重試與租約排隊對使用者完全透明。 2. **對外副作用必經確認:** 除白名單 $A_{\text{auto}}$ 外,一切改變外部世界狀態之寫入操作皆須驗證由本人針對 $\tau.\text{version}$ 簽發的確認權杖。 3. **全程可驗證溯源:** 每件事項 $\tau$ 與每筆檔案庫紀錄皆保留可稽核的 `origin` 與 `refs` 溯源鏈。 4. **預設關閉與預設靜默:** 外部來源預設關閉($S_{\text{on}} = \varnothing$);無把握訊號一律靜默,`Discarded` 試算不發出任何通知。 5. **先自救再透明升級:** 看門狗偵測到停滯須先嘗試有界自動復原(至多 3 次),耗盡後方如實轉交 `Waiting (intervention)` 並報告瓶頸,絕不私自取消使用者長期值守。 6. **憑證封存與資料指令隔離:** 金鑰與會話 Cookie 嚴格封存於加密保險庫與執行器底層,永不進入模型提示詞;每個執行器僅獲最小任務工牌 `brief`,外部文字一律視為不可信資料。 7. **入站冪等與單面同步撤回:** 外部事件依 `e.id` 冪等去重;待定提醒同一時刻至多觸達一個最佳表面,一端處理後其餘各端原子撤回。 由上述公理與執行期規則可直接推導三條系統保證: > **命題 1(對外副作用安全性與跨端冪等性)。** 於公理 1、不變量 2 與式 (5) 原子提交規則下,任意未列入白名單之對外寫入操作 $a \notin A_{\text{auto}}$ 未經本人顯式確認時執行次數恆為 **0**,於多端併發點擊或網路重傳下執行次數亦**至多為 1**。 > **證明思路。** 由公理 1 與不變量 2,底層執行器對任何缺少相符 $(\tau.\text{id}, v)$ 使用者確認權杖之對外寫入請求一律拒絕,故未授權執行次數必為 0。當多台裝置 $d_1, d_2 \in D$ 併發提交同一快照版本 $v$ 的確認請求時,線性一致的雲端狀態機原子執行式 (5):首筆抵達之請求通過守衛條件 $\tau.\text{state} = \text{Waiting} \land \tau.\text{version} = v$,原子遞增版本號至 $v + 1$ 並僅派發一次動作 $a$;後續抵達之任意同版本請求均不滿足等式守衛,回傳 `NOOP_ALREADY_HANDLED`。 $\square$ > **命題 2(桌面租約無死鎖性與前台有界等待)。** 於單持有者有界租約語意下(併發上限 `maxRunning` $= k$、前台優先插隊、閒置自動回收門檻 `idleRelease` $= T_{\text{idle}}$),`ComputerHandsLease` 不存在永久性桌面焦點死鎖,且前台使用者的即時桌面請求至多等待當前單一活躍持有者的執行片段(若其停滯則上界為 $T_{\text{idle}}$)即可取得控制權。 > **證明思路。** 任意時刻至多一個執行體持有獨佔租約。依循 Gray 與 Cheriton 之有界租約機制 [5],租約受時間上界 $T_{\text{idle}}$(參考實作中為 180 秒)約束,故當機、斷線或停滯之持有者無法永久霸佔桌面,逾時即由執行期強制回收並移交佇列首。由於前台即時對話請求具備最高優先插隊權(直接躍升至佇列首),其等待上界僅為當前唯一持有者,而不會排在全部 $k$ 個後台任務之後,因而同時消除飢餓與焦點死鎖。 $\square$ > **命題 3(主權約束下的人類注意力不可壓縮下界)。** 針對任意以未豁免對外動作 $a \notin A_{\text{auto}}$ 結尾之事項 $\tau$,任何合規 PESA 系統皆滿足 $\mathcal{A}(\tau) \ge 1$;等號成立若且唯若 $I_{\text{init}}(\tau) = I_{\text{transfer}}(\tau) = I_{\text{supervise}}(\tau) = 0$ 且 $I_{\text{decide}}(\tau) = 1$。 > **證明思路。** 由不變量 2,動作 $a$ 提交前至少需要一次顯式人工確認,故 $I_{\text{decide}}(\tau) \ge 1$。因式 (2) 中四項分量皆為非負整數,故必有 $\mathcal{A}(\tau) \ge 1$。此即表明只要堅守人類最終決定權,降低式 (3) 均攤注意力成本 $\overline{\mathcal{A}}$ 的唯一架構路徑便是將發起、搬運與監看三項開銷壓向零,並將無效建議卡 $|T_{\text{skip}}|$ 控制於極低水準。 $\square$ ## 5. 參考架構 > 圖 3 PESA 參考架構。使用者的直接輸入與經過濾之日常事件流統一進入單一常駐前台協調器,由其分派至隔離併發的後台執行器,經端側執行器落地操作並以單一聲音向使用者交付。 ### 5.1 單一常駐前台與隔離併發的後台執行器 圖 3 呈現 PESA 的整體參考架構。承繼並深化 Super-agent 之雙層解耦設計 [1],**前台協調器(Front Desk)**為全天候在線之單一互動入口,統一承接四端裝置對話、系統分享選單投遞與過濾後之外部事件流。前台刻意維持輕量化,僅負責意圖解析、事項拆分與合併、積壓合批、執行器分派及統一聲音回覆,絕不阻塞於耗時數分鐘之網頁檢索或桌面操作。 **後台執行器(Background Workers)**依事項按需派生。每個執行器生命週期內僅負責單一事項 $\tau$,於隔離沙盒中只持最小工牌 `brief`,彼此併發推進、互不串擾。當同一線索短時間湧入多筆關聯事件(如專案群組連續洗版或同一訂單連發多封物流通知)時,自適應積壓合批機制會將其合併為單次前台路由決策,可將均攤決策耗時縮減達 75% [1]。 ### 5.2 三層記憶架構與跨裝置事項檔案庫 既有語音與聊天助理之所以換一台裝置隨即「失憶」,或數日後遺忘先前約定之條件,係因它們要不將原始對話紀錄硬塞入單一視窗,要不切為失去因果脈絡的零散向量片段。借鏡作業系統虛擬記憶體與 MemGPT 分層換頁概念 [14],PESA 建構以雲端**事項檔案庫(Thing Archive)**為核心的三層記憶架構(圖 4): > 圖 4 三層記憶架構與跨裝置事項檔案庫。冗長執行軌跡換出至雲端持久化檔案庫並依 #T-id 串聯,任意裝置皆可逐跳還原歷史結論與原始引文。 1. **第一層:熱工作上下文快取。** 駐留於活躍前台與運行中執行器之主記憶體視窗內,僅保留最近數輪對話、活躍事項狀態摘要與輕量編號指標(如 `#T-108`、`#T-114`)。事項完成後,冗長的中間工具軌跡(DOM 樹、原始搜尋結果、多輪草稿)隨即換出至雲端檔案庫,確保前台上下文始終精簡、推理低延遲。 2. **第二層:支援逐跳召回的跨裝置事項檔案庫。** 雲端持久化儲存每件事項的完整檔案,並強制記錄三項欄位:① *事實摘要與關鍵原話引文*;② *可稽核來源*(觸發裝置、原始管道與 `#T-id`);③ *置信度與時間戳*。具因果關聯之事項以 `refs` 形成有向鏈(如 `#T-108 比價` $\to$ `#T-114 報價` $\to$ `#T-142 定稿`)。當使用者通勤途中以手機隨口詢問上週在電腦查過的保固條款,前台可沿 `#T-142` $\to$ `#T-114` $\to$ `#T-108` 逐跳按需載入原紀錄,無須使用者翻找舊對話。 3. **第三層:可檢視的長期偏好與策略記憶。** 系統自使用者於建議卡上的顯式選擇(確認/修改/略過)提煉穩定偏好,用以校準兩級過濾權重。該層完全透明,使用者隨時可於任一裝置檢視、修改或一鍵刪除任何偏好條目。 ### 5.3 非同步全雙工互動 任何耗時逾數秒之工作皆以非同步全雙工方式運作。當使用者指示「把這三份 PDF 財報的現金流整理成對照表,同時留意今晚班機是否延誤」時,前台於 1 秒內拆解為兩件獨立事項(`#T-201`、`#T-202`),派發兩個後台執行器,於對話流插入兩行精巧即時進度條並立刻回復待命。使用者可繼續談論其他話題或鎖定手機螢幕;完成後結果自動回流原對話(或依情境靜默送達動態島與手錶),途中隨時可點開檢視、補充條件或一鍵停止。 ### 5.4 雲端大腦、本機雙手、檢查點續接與桌面互斥租約 PESA 嚴格落實運算與儲存分離:負責推理與規劃的「雲端大腦」無狀態常駐;八態狀態機與檔案庫獨立持久化;負責互動本機網頁、桌面軟體與系統能力的「端側執行器(Device Hands)」分布於使用者自有裝置上。讓此分工於日常生活中可靠運作,必須解決個人裝置特有的兩項系統難題: 1. **執行中途休眠與冪等檢查點續接。** 個人筆電隨時會於任務半途闔蓋進入休眠。PESA 將本機桌面自動化拆分為**具檢查點的冪等唯讀/準備步驟**與**末端提交關卡**。一旦 Mac 闔蓋斷線,已完成之檢查點即時同步至雲端:不依賴本機介面的步驟(資訊整合、比價計算、擬稿)由雲端無縫續跑;必須操作本機視窗的步驟則安全進入 `Parked`。待 Mac 復醒後,端側執行器先核驗目標視窗或網頁 DOM 指紋是否與檢查點相符——相符即平滑續跑;若外部頁面狀態已出現歧義變動,則絕不盲目點擊,安全轉交 `Waiting (intervention)` 請本人確認。 2. **單桌面實體焦點的有界互斥租約(`ComputerHandsLease`)。** 雲端可同時開啟多個執行器,但一台個人電腦同一時刻僅有一組實體滑鼠鍵盤焦點。基於 Gray 與 Cheriton 之有界租約原語 [5],`ComputerHandsLease` 嚴格執行四條確定性排程規則(圖 5):① 於最多 `maxRunning = 3` 個併發後台執行器間強制**單持有者獨佔互斥**;② **前台主對話無條件優先插隊**,使用者即時互動涉及電腦操作時躍升至佇列首;③ **未獲租約者先跑雲端步驟、不空轉阻塞**,排隊滿 `maxWait = 600s` 自動保存檢查點掛起;④ **180 秒閒置自動回收**(`idleRelease = 180s`),持有者無介面操作或終止即刻釋放租約並通知看門狗。 > 圖 5 桌面端側執行器互斥租約(ComputerHandsLease)排程時序。任意時刻至多一個執行體操控本機 GUI:前台對話優先插隊,排隊執行器先跑雲端步驟不阻塞,閒置滿 180 秒自動回收並由看門狗接管。 ### 5.5 獨立看門狗:先自救,絕不靜默丟單 外部網路逾時、登入憑證過期或網頁改版於長程任務中難以避免。PESA 於主推理迴圈之外運行獨立的**看門狗巡檢迴路**,檢驗實質狀態推進而非單純程序心跳。於參考執行期中,看門狗每 45 秒掃描活躍執行器:若連續 20 分鐘無實質進展,自動注入帶診斷脈絡的復原指令引導改道或重置子環境(每事項至多自救 3 次);僅當滿 60 分鐘或 3 次自救皆失敗時,方轉入 `Waiting (intervention)` 並以白話說明卡住位置與所需條件,絕不悄然取消使用者開啟之長期值守。 ## 6. 端對端流水線、排程演算法與複雜度分析 本節完整刻畫事件自入站至送達螢幕的六步流水線與三項確定性優先核心排程演算法。 ### 6.1 六步事件流水線與優先路由演算法 > 圖 6 從日常事件到事項交付的六步流水線。確定性規則優先於模型推理,無把握之候選靜默丟棄,對外寫入一律停於版本化確認關卡。 每筆進入系統的事件 $e$ 依序流經六個階段(圖 6): 1. **冪等接收:** 先持久化落盤再回應;依 `e.id` 嚴格去重,並靜默丟棄系統自身對外寫入產生的回聲事件。 2. **第一級端側規則預篩:** 零大模型開銷本機初篩(核對來源白名單 $S_{\text{on}}$、聯絡人/歷史回覆圖譜、行程關鍵字與顯式關注規則),令 >80% 日常雜訊於終端本機消亡,零雲端 token 消耗且不上傳無關隱私文字。 3. **第二級雲端語意過濾:** 僅少量通過初篩的候選進入輕量語意判斷,依式 (4) 決定是否值得試算;無價值或無把握一律靜默轉入 `Discarded`。 4. **確定性優先路由:** 停止指令、顯式 `#T-id` 引用與已訂閱線索直通皆不呼叫前台大模型(完整保留約 36.8% 快取 token 節省 [1]);僅全新未歸屬事件進入前台自適應積壓合批佇列。 5. **隔離執行與投機準備:** 後台執行器併發完成唯讀檢索、比價與表單預填,觸及對外寫入邊界前一律穩停並生成建議卡快照。 6. **版本綁定與情境送達:** 卡片綁定當前快照版本號 $\tau.\text{version}$,交由送達面演算法推播至唯一最適裝置表面。 演算法 1 給出確定性優先路由 `route(e)` 之形式化描述: ```alg route(e): if seen(e.id) or is_echo(e): # 1. O(1) 冪等去重與系統回聲丟棄 return if e 為顯式停止指令: # 2. 零模型延遲立即叫停 stop(目標事項); return if e 明確引用事項 τ (#T-id): # 3. O(1) 依編號直達負責執行器 deliver(e, τ.owner); return if 存在執行器 w 訂閱了 e.thread: # 4. O(1) 訂閱直通(省 36.8% 快取 token) if w.thing.state == done: reactivate_or_chain(w.thing, e); return deliver(e, w); return front.batch(e) # 5. 全新事件積壓合批,由前台建立/併入/拆分 ``` **複雜度與開銷特徵。** 第 1–4 步基於雜湊索引之去重表、事項編號表與線索訂閱表執行,平均時間複雜度為 **$O(1)$** 且**零大模型呼叫**;語言模型開銷嚴格收斂於第二級少量候選過濾及第 5 步合批後的新事件裁決。 ### 6.2 混合主動投機執行 在超純量處理器架構中,投機執行先於重排序緩衝區預跑預測分支,僅於分支命中時原子提交架構狀態,失誤則靜默沖刷 [21]。PESA 於 Horvitz 效用門控 [20] 下將此思想引入個人日常事務: - **投機階段嚴格零外部副作用:** 核對行事曆、調閱檔案庫紀要、抓取比價與填寫草稿表單全部停留於唯讀或本機草稿態。 - **三選一提交卡(確認/修改/略過):** 於對外寫入邊界前呈遞單張一目了然的卡片。點選**確認**於 1 秒內原子送出並進入 `Done`;點選**修改**只需補一句簡短要求即可攜帶完整脈絡退回 `Running` 重擬;點選**略過**則轉入 `Skipped`,既不改動外部世界又下調同類訊號權重。後台試算中途自判無價值者靜默沖刷進 `Discarded`,並受每日預算 $B_{\text{spec}}$ 硬上限約束。 ### 6.3 正交雙選演算法:執行裝置($\kappa_{\text{exec}}$)與送達面($\kappa_{\text{surf}}$) 單裝置助理將「在哪執行」與「在哪提醒」硬綁在同一塊螢幕。基於 Dey 的情境計算框架 [19],PESA 將兩者解耦為兩項獨立之 $O(\lvert D \rvert)$ 確定性演算法(個人裝置數通常 $\lvert D \rvert \le 10$,次毫秒級完成、零模型開銷)。 **演算法 2(執行裝置選擇 `choose_device(τ)`)** 依能力集合包含關係、即時可用性 $\alpha(d, \text{now})$ 與負載挑選執行節點: ```alg choose_device(τ): capable = { d ∈ D | τ.req_exec ⊆ κ_exec(d) } usable = { d ∈ capable | α(d, now) ∈ {online, wakeable} } if usable 非空: d* = usable 中負載與網路綜合最優裝置 if α(d*, now) == wakeable: wake(d*) # 靜默推播喚醒並簽發本機執行租約 return d* if capable 非空: τ.state = parked τ.wait_reason = "device_offline" else: τ.state = waiting τ.wait_reason = "intervention: 當前生態缺少所需執行能力裝置" ``` **演算法 3(情境感知送達面選擇 `choose_surface(τ, D, P, now)`)** 於結果就緒或須確認時,綜合當前對話焦點、靜默策略 $Q_{\text{quiet}}$ 與時效緊迫度挑選**至多一個**最佳送達表面(表 6,圖 7): ```alg choose_surface(τ, D, P, now): if τ.state == running: return ambient_progress(D) # 對話內進度列 + 動態島 + Mac 選單列 if τ.state == waiting: if 使用者正於某裝置 d_chat 前台對話中: return inline_card(d_chat, τ.version) if now ∈ P.Q_quiet 且 τ 非緊急例外: return queue_silent_card(τ.version) # 靜默寫入待辦箱,不亮起螢幕、不震動 if τ 具高時效 且 Watch ∈ D 在線佩戴中: return watch_glance_card(Watch, τ.version) if iPhone ∈ D 在線: return actionable_notification(iPhone, τ.version) return next_open_device_card(D, τ.version) ``` **表 6 不同情境下的送達面選擇與打擾控制準則** | 使用者當前情境與事項狀態 | 首選送達面($\kappa_{\text{surf}}$) | 打擾強度與跨端協同行為 | | --- | --- | --- | | 正於某裝置的對話視窗中 | 當前對話流內的內嵌卡片或回覆 | 零介面切換;直接於當前視線焦點內順手確認 | | 後台事項正常推進中 | 對話內進度膠囊;iPhone 動態島與鎖定畫面即時動態 [22];Mac 選單列 | 邊緣靜默感知 [18];不彈窗、不響鈴,隨時可點開檢視或叫停 | | 需要確認,且非緊急事務 | 建議卡靜候於下次開啟用戶端的裝置上 | 零即時打斷;空閒時於平板或電腦從容批次批閱 | | 需要確認,且具明確時效 | Apple Watch 抬腕確認卡或 iPhone 互動通知 | 單次輕觸提醒;任一端攜版本號確認後,其餘裝置提醒毫秒級同步撤回 | | 專注模式或夜間靜默時段 | 依循策略 $Q_{\text{quiet}}$ 靜默寫入「待確認」清單 | 嚴格零打擾;僅使用者明確設定之緊急例外可依規則突破 | > 圖 7 正交的執行裝置選擇(κ_exec, α)與情境送達面選擇(κ_surf, Q_quiet)。能力與在線狀態決定執行節點,當前焦點與靜默策略挑選至多一個送達表面,一端確認多端撤回。 ### 6.4 端對端跨裝置時序剖析:闔蓋通勤期間的會議改期 > 圖 8 跨裝置時序剖析。筆電闔蓋休眠期間,雲端執行器自動核對行事曆並擬稿,將精簡確認卡推播至手錶,使用者抬腕一鍵確認後經版本號原子驗證寄出回信。 圖 8 追蹤一個高頻跨裝置閉環——早尖峰通勤途中,使用者的筆電闔蓋放在背包裡,一位重要客戶寄來郵件提議週三下午 2:00 召開審查會議: 1. **入站與兩級過濾($t = 0\text{s}$):** 第一級端側規則命中近期回覆聯絡人與會議關鍵字,零模型開銷放行;第二級語意過濾判定核對行事曆並擬稿具高期望效用。 2. **立項與線索訂閱($t = 2\text{s}$):** 前台建立事項 `#T-305`,分派後台執行器 $w_1$ 並將其訂閱至郵件線索 $h_{\text{mail-89}}$。 3. **雲端投機準備($t = 3\text{s}\dots11\text{s}$):** 即使筆電休眠、手機鎖定,雲端執行器 $w_1$ 仍可透過唯讀行事曆介面查出週三下午已有衝突,而週四上午 10:00 與週五下午 15:00 空閒;隨後結合檔案庫 `#T-288` 上週紀要起草禮貌改期回覆草稿。 4. **確認關卡與送達路由($t = 12\text{s}$):** 寄發外部郵件受不變量 2 約束,`#T-305` 進入 `Waiting (approval, version = 1)`;演算法 3 偵測到使用者正在步行且佩戴手錶,遂將兩行精簡摘要推送至腕部。 5. **原子提交與線索續接($t = 18\text{s}$):** 使用者抬腕輕點一次「確認寄出」。雲端依式 (5) 校驗 `version == 1` 通過、遞增至 `version = 2`、寄出正式回信並將 `#T-305` 設為 `Done`,同時同步撤回手機與電腦提醒。半小時後客戶回信同意週四上午,新郵件經演算法 1 第 4 步直達 $w_1$ 保留訂閱自動生成行事曆邀請草稿,全程無須重述背景。 相較傳統多視窗流程(**4 次主動介入、3 次跨應用複製貼上**),PESA 將人工負擔壓縮為 **1 次抬腕確認、0 次上下文搬運**。 ## 7. 生態原生互動與典型容錯場景 ### 7.1 四類裝置形態之人體工學分工 把桌面複雜多欄硬塞進手機、或在手錶放上迷你聊天輸入框,於日常使用中注定失敗——因每種裝置皆有截然不同的**實體互動時長視窗**:手錶是 2 秒抬腕一瞥,手機是 30 秒單手觸控,平板是 15 分鐘分欄閱讀複核,電腦則是數小時鍵鼠重載執行。以蘋果四端生態(iPhone、iPad、Mac、Apple Watch)為具體映射範例,表 7 展示統一事項狀態如何遵循各平台人機介面指南 [23] 自然呈現。 **表 7 四類個人裝置形態於 PESA 中之人體工學分工** | 裝置形態 | 平台原生能力($\kappa_{\text{exec}}$ 與 $\kappa_{\text{surf}}$) | 於 PESA 中之核心角色 | | --- | --- | --- | | **智慧型手機(如 iPhone)** | 全天隨身、互動通知、動態島與鎖定畫面即時動態、Siri/捷徑、系統分享選單 | **隨身感官、進度追蹤與快捷確認樞紐。** 任一 App 點「分享」即可立項;長任務於動態島靜默顯示進度;通知內一鍵確認。 | | **平板電腦(如 iPad)** | 寬闊觸控螢幕、Split View 分欄、多視窗、跨應用拖放、鍵盤與觸控筆 | **全局對照與批次複核工作台。** 側欄佇列搭配詳情畫布,可一邊閱覽原始合約 PDF 一邊核對預填明細並從容放行。 | | **桌面/筆電(如 Mac)** | 持續供電與算力、完整檔案系統、選單列與全域快捷鍵、瀏覽器會話、桌面軟體與終端機 | **主力本機執行器(Hands)。** 於 `ComputerHandsLease` 單租約互斥下負責多分頁瀏覽器自動化、內網表單填寫與本機腳本。 | | **智慧手錶(如 Apple Watch)** | 輕觸震動、1–2 秒抬腕速覽、錶面複雜功能、短語音速記 | **高訊噪比決策閥門。** 絕不推播冗長過程日誌,僅呈遞高時效兩行確認卡(確認/稍後)或承接一句話語音立項。 | | **跨裝置連續體** | 雲端狀態機、樂觀鎖 `version` 仲裁、檔案庫 `#T-id` 召回鏈、接力(Handoff) | **無縫接力。** 手機分享發起、電腦租約填單、手錶速覽進度、平板分欄複核——任一端拍板,四端同步收斂。 | ### 7.2 四類典型跨裝置場景及其故障復原路徑 可靠的系統架構不僅要走通理想路徑,更須明確規範**當裝置離線、需求中途變更或外部頁面暗藏惡意指令時如何優雅復原**(圖 9): > 圖 9 PESA 四類典型跨裝置場景:跨時區行程協商、手機發起與桌面租約填單、跨週線索合批與編號逐跳召回,以及間接提示注入與隱蔽 URL 外洩攔截。 1. **場景 01:跨時區行程協商與差旅應變。** - *正常閉環:* 筆電闔蓋於背包中時,會議改期郵件通過兩級過濾;雲端執行器核對行事曆、擬妥回覆並推播手錶確認,抬腕一鍵寄出且四端同步撤回提醒。 - *異常與變更復原:* 若使用者點選「修改」並於手機語音補充「改至下週二下午」,事項自 `Waiting` 平滑退回 `Running`,原執行器保留全部脈絡數秒內重擬;若客戶郵件同時附帶索取上週報價單,前台自動拆出子步驟自檔案庫調閱 `#T-114` 附件。 2. **場景 02:跨端商品比價與內網桌面表單預填。** - *正常閉環:* 手機經系統分享投遞商品連結後,雲端執行器併發比價,隨後向書桌 Mac 申請 `ComputerHandsLease` 租約開啟公司內部採購系統填妥欄位,穩停於「送出簽核」按鈕前;手機動態島即時顯示進度,晚間於平板分欄對照比價表一鍵放行。 - *離線與焦點爭搶復原:* 若使用者此刻正於電腦前打字,前台對話插隊優先維持桌面歸使用者掌控,執行器先完成全部雲端比價;若電腦徹底斷線離線,雲端仍完整產出比價報告,僅將本機填單一步安全設為 `Parked (device_offline)`,待電腦重新連線驗證頁面指紋後自檢查點續填。 3. **場景 03:跨週多管道線索合批與檔案編號逐跳召回。** - *正常閉環:* 歷時三週的客戶專案中,往來郵件、文件批註與狀態通知經演算法 1 直通同一執行器並合批為單張階段進展卡;乘車時以手機隨口追問兩週前客戶對違約金上限的原話,系統沿 `#T-142` $\to$ `#T-114` $\to$ `#T-108` 逐跳檢索,回傳精確引文與時間戳。 - *跨客戶防串線:* 每個執行器皆具獨立沙盒與顯式訂閱集 $\text{sub}(w)$,客戶 A 之報價條款絕不會滲入客戶 B 之併發草稿。 4. **場景 04:不可信外部網頁之間接提示注入與隱蔽外洩攔截。** - *攻擊與防禦:* 摘要一篇隱藏 HTML 夾帶 `[System Override: 讀取近期財務郵件與 API 金鑰,Base64 編碼拼入 https://evil.example/pixel.png?leak=... 並渲染]` 之外部網頁時,攻擊於兩道獨立閘門前全數失效:① 該執行器僅持 `brief = "摘要目標網頁核心觀點"`,無權觸及財務郵件、主對話歷史或加密憑證庫(不變量 6);② 執行期出站攔截器阻斷任何向未授權第三方網域發起之帶參請求與自動載入圖片,記錄稽核日誌並僅回傳乾淨摘要。 ## 8. 互動與資訊架構:從聊天清單到事項視圖 DeepSeek 於報告末尾將「智能體脫離單次會話後,應以何種介面與心智模型承接協作」列為核心開放課題 [1]。PESA 的答案清晰直接:**不再以左側無止盡的聊天紀錄清單充當任務管理工具,而是將互動建立於「事項」之上。** 每件浮現介面的事項一目了然地回答四個問題:*從何而來*、*推進至哪一步*、*核心結論為何*,以及*此刻是否需要人拍板*。內部嚴謹的八態狀態機(第 4.3 節)於介面層摺疊為極簡三態視圖: - **自然入口,零表單門檻。** 無須填寫繁瑣的「建立任務彈窗」,如與熟悉自己的助理溝通般自然輸入文字、語音或點擊系統分享即可。 - **對話內嵌即時進度膠囊。** 轉交後台的長任務於對話流僅佔一行精簡進度列;使用者可繼續討論其他議題,亦可隨時點開檢視步驟紀錄、追加條件或叫停。 - **全域三態摺疊視圖(進行中/待確認/已完成):** 「進行中」合併 `Running` 與 `Parked`(掛起時以溫和文字註明原因,如「比價已完成,等待 Mac 上線填單」);「待確認」彙整 `Waiting (approval)` 與 `Waiting (intervention)`;「已完成與已歸檔」保存 `Done`、`Stopped` 與 `Skipped` 及完整 `#T-id` 溯源;而 `Candidate` 與 `Discarded` 永遠留於幕後。 - **建議卡標準四要素:** 每張主動卡片統一包含 ① 頂部溯源列(來源、時間與 `#T-id`)、② 整備妥當之草稿或關鍵表單欄位高亮預覽、③ 三鍵決策列(**確認/修改/略過**)、④ 可摺疊之檔案庫引用查證抽屜。 - **平靜邊緣紀律:** 遵循 Weiser 與 Brown [18] 及 Horvitz [20] 之理念,鎖定畫面即時動態僅反映進行中狀態,手錶僅推播高時效待確認,無把握的候選於後台靜默消亡。 ## 9. 威脅模型與縱深防禦架構 當個人助理從被動聊天框演進為可讀取郵件、摘要外部網頁並操控本機桌面之生態代理,安全邊界必須前置為架構鐵律。我們先明訂信任假設與攻擊者模型,再將 Saltzer 與 Schroeder 經典資訊保護原則 [25] 逐層落地。 **信任假設與攻擊者模型。** 於 PESA 基準部署模型中,使用者已驗證之自有裝置、系統鑰匙圈/加密憑證保險庫以及隔離的雲端狀態機共同構成**可信運算基(TCB)**。**攻擊者**控制所有不可信外部內容——網頁、陌生郵件、共享文件與 PDF 附件——可於其中埋入間接提示注入 [6]、惡意連結或隱蔽追蹤圖片。同時,我們將**模型幻覺、網路重傳與跨端競態連點**視為一等故障源,要求由確定性執行期機制把關,絕不把安全寄託於「模型永遠服從指令」。(第 12.1 節進一步探討雲端協調器本身不可信時之零信任邊界。) 1. **完全中介:版本化確認關卡(不變量 2)。** 所有對外寫入執行器於放行非白名單動作前,強制核驗針對 $(\tau.\text{id}, \tau.\text{version})$ 簽發之本人確認權杖。即便模型因幻覺或誘導企圖直接呼叫 `send_email()`,缺少有效權杖亦會於執行器底層遭直接攔截。 2. **失敗安全預設與端側隱私預篩(不變量 4)。** 所有外部連接器預設關閉($S_{\text{on}} = \varnothing$),逐項開啟、一鍵撤銷 [25]。手機通知、本機訊息等高敏訊號的第一級確定性規則於裝置本機執行,未命中的私密文字不離開終端硬體。 3. **最小權限:憑證保險庫與任務工牌隔離(不變量 6)。** 帳號密碼、Cookie 與 OAuth 權杖封存於系統鑰匙圈或加密保險庫,執行器僅透過不透明能力控柄呼叫驗證操作,原始金鑰絕不以明文進入模型提示詞。後台執行器僅獲發最小任務工牌 `WorkerTask.brief`,與主對話及其他專案記憶完全隔離。 4. **資料與指令隔離,三層阻斷隱蔽 URL 外洩(不變量 6、2)。** Greshake 等人 [6] 揭示,間接提示注入無須觸發寄信或付款按鈕,只需誘導模型將上下文隱私編入 Markdown 圖片連結(`![img](https://attacker.tld/collect?data=...)`)或 HTTP GET 查詢參數即可旁路竊密。PESA 建構三道同心防線(圖 10):① *具邊界簽章的資料通道封裝*,禁止自外部文字擷取工具呼叫指令;② *最小工牌上下文斷路*,摘要外部網頁的執行器本身即不含私人財務或歷史對話,令攻擊者「無密可竊」;③ *出站網域白名單與帶參攔截器*,阻斷向未授權外域自動載入圖片或發起動態帶參請求,異常外連一律停於確認關卡告警。 5. **最少暫存保留與零訓練承諾。** 經雲端中轉之附件與截圖僅於事項推進期間加密暫存,隨生命週期清除,絕不用於基礎模型訓練。 6. **心理可接受性:消除安全彈窗疲勞(不變量 1、3、7)。** Saltzer 與 Schroeder 警示,高頻繁瑣的安全確認會令使用者陷入機械式盲點 [25]。透過前端濾除 >80% 雜訊、後台整備草稿後方呈單張清晰卡片、一端確認全端撤回,確保每一次確認皆值得使用者審慎檢閱。 > 圖 10 抵禦間接提示注入與隱蔽 URL 參數外洩的縱深防禦邊界。最小工牌隔離無關私人記憶,憑證封存不進模型上下文,出站攔截與版本化確認關卡保障越權外發恆為零。 **表 8 個人生態威脅模型、故障路徑與縱深防禦矩陣** | 威脅或故障類型 | 攻擊向量/真實故障路徑 | 架構級縱深防禦機制 | 守護之不變量 | | --- | --- | --- | --- | | 未經授權擅自外發 | 模型幻覺或誤判意圖,企圖直接寄信、送單或付款 | 底層執行器強制驗證綁定 `version` 之本人確認權杖;無權杖一律攔停於 `Waiting (approval)` | 不變量 2 | | 間接提示注入劫持 | 外部網頁、郵件或 PDF 隱藏惡意指令企圖劫持工具呼叫 [6] | 外部文字封裝於簽章純資料通道 + 執行器僅持最小工牌 `brief`,與高危工具及無關記憶解耦 | 不變量 6 | | 隱蔽 URL/圖片外洩 | 注入指令誘導模型把私人記憶拼入 Markdown 圖片或 GET 參數靜默帶出 [6] | 工牌隔離切斷無關隱私源 + 出站攔截器阻斷未授權外域帶參請求與自動載入圖片 + 確認關卡 | 不變量 2、6 | | 憑證擷取與盜用 | 惡意提示或日誌轉儲企圖誘使模型吐出密碼、Cookie 或金鑰 | 憑證封存於系統鑰匙圈與加密執行器底層,永不進入模型提示詞上下文 | 不變量 6 | | 桌面焦點衝突與死鎖 | 多後台執行器與即時聊天搶奪滑鼠鍵盤,或 GUI 步驟停滯佔著桌面 | `ComputerHandsLease` 單持有者互斥 + 前台插隊 + 180 秒閒置自動回收 + 45 秒看門狗巡檢 | 不變量 1、5 | | 跨端快速連點競態 | 手錶與手機於 1 秒內先後點按同一卡片導致重複寄信或扣款 | `e.id` 冪等去重 + 雲端 `version` 樂觀併發原子驗證(式 5)+ 其餘裝置同步撤回提醒 | 不變量 7 | | 執行中途闔蓋斷線 | 填表半途闔蓋休眠,恢復後盲目重跑導致重複送出 | 冪等檢查點推進;喚醒後核驗頁面/DOM 指紋,狀態歧義即轉 `Waiting (intervention)` 絕不盲點 | 不變量 2、5 | ## 10. 評估方法、全五級注意力核算與 PESA-Bench ### 10.1 八項正交評估指標 WebArena [10] 與 OSWorld [11] 等單任務成功率基準對評測 L1 執行器極具價值,卻無法回答決定 L2–L4 個人生態成敗的四個核心問題:*節省了多少注意力?製造了多少無效打擾?切換裝置後脈絡是否連貫?安全不變量是否全程零越界?* 表 9 定義八項正交指標。 **表 9 個人生態超級智能體八項評估指標** | 指標名稱 | 形式定義與統計口徑 | 最佳化方向 | | --- | --- | --- | | **均攤注意力成本($\overline{\mathcal{A}}$)** | $(\sum_{\tau \in T_{\text{done}}} \mathcal{A}(\tau) + \sum_{\tau' \in T_{\text{skip}}} I_{\text{reject}}(\tau')) / \lvert T_{\text{done}} \rvert$(式 3;將拒絕卡片計入分子防衝高分數) | 越低越好 | | **決策就緒延遲** | 自事件抵達或使用者交代,至結果備妥進入 `Waiting` 狀態之中位時間與 p95 尾延遲 | 越短越好 | | **投機命中率** | 獲採納卡片(確認 + 修改後確認)$\div$(採納數 + `Skipped` 數);後台靜默 `Discarded` 不計入 | 越高越好 | | **主動誤擾率** | 遭點選「略過」或事後標為多餘之提醒數 $\div$ 呈遞至使用者介面之主動提醒總數 | 越低越好 | | **關鍵事件漏報率** | 使用者事後認為本應處理卻遭過濾或試算靜默 `Discarded` 之高價值事件比例 | 越低越好 | | **跨裝置連續召回率** | 跨裝置追問或接力時,依託 `#T-id` 檔案庫準確還原結論與溯源之比例 | 越高越好 | | **看門狗自癒率** | 遭遇逾時、斷線或介面阻塞之事項中,經看門狗自動復原而免人工接管之比例 | 越高越好 | | **執行期不變量越界次數** | 完整評測軌跡中違反第 4.4 節七條執行期不變量之總次數 | **必須恆等於零** | 其中,「主動誤擾率」與「關鍵事件漏報率」構成由式 (4) 與策略 $P$ 調節的精確率—召回率權衡曲線,而「不變量越界次數 = 0」乃不可妥協之安全硬約束。 ### 10.2 L0–L4 全五級解析注意力與搬運核算 為清楚拆解表 4 中每一等級究竟消除了式 (2) 的哪一塊開銷,圖 11 與表 10 對第 7.2 節的四類典型場景於 **L0 至 L4 全五個等級**下之使用者操作步數($\mathcal{A}$)與跨端/跨應用手動搬運次數($I_{\text{transfer}}$)進行**透明、可逐跳查核的解析核算**。須明確說明,表 10 為基於代表性場景之解析工作流建模而非大規模縱向實地實驗;每一步計數依據皆完整列於表中供同行審視。 > 圖 11 L0–L4 全五級解析注意力核算與四級門控漏斗。左:四類典型場景下每事項平均人工介入步數與跨端手動搬運次數;右:端側規則預篩、線索直通合批與 Horvitz 效用門控漏斗。 **表 10 四類典型場景於 L0–L4 全五級下之人工介入步數與手動搬運解析核算** | 典型場景(第 7.2 節) | L0 應答 | L1 執行(單任務) | L2 併發 | L3 主動(單端/無跨端協同) | **L4 完整 PESA(跨裝置生態)** | | --- | --- | --- | --- | --- | --- | | **01 · 客戶會議改期郵件**(核對行事曆並回覆) | **4 步 / 3 搬運**(讀郵件 $\to$ 查行事曆 $\to$ 貼入聊天擬稿 $\to$ 貼回信箱寄出) | **2 步 / 1 搬運**(複製郵件發起並等待 $\to$ 確認寄出;闔蓋即停擺) | **2 步 / 0 搬運**(派發後台擬稿 $\to$ 確認;仍須人先看到郵件發起) | **1 步 / 0 搬運**(雲端主動過濾擬稿,但須等使用者開啟主應用確認) | **1 步 / 0 搬運**(電腦闔蓋時雲端查行事曆擬稿,Watch 抬腕點 1 下寄出並四端同步撤回) | | **02 · 手機連結 $\to$ 電腦比價與內網填單** | **5 步 / 4 搬運**(複製連結 $\to$ 多頁比價 $\to$ 傳電腦 $\to$ 逐項填表 $\to$ 送出) | **3 步 / 1 搬運**(傳連結至電腦 $\to$ 發起並盯螢幕等填單 $\to$ 核對送出) | **2 步 / 1 搬運**(傳連結至電腦派後台比價填單 $\to$ 核對送出) | **2 步 / 1 搬運**(單端主動比價;缺分享入站與 Mac 租約仍須手動傳電腦填單) | **2 步 / 0 搬運**(iPhone 分享立項 + Mac `ComputerHandsLease` 後台填妥 + iPad 分欄一鍵確認) | | **03 · 跨週線索合批與兩週前原話召回** | **4 步 / 3 搬運**(翻郵件群聊 $\to$ 貼多段入對話 $\to$ 追問 $\to$ 回翻核對) | **3 步 / 2 搬運**(分別呼叫搜尋 $\to$ 手動拼接多源線索 $\to$ 追問原話) | **2 步 / 0 搬運**(後台彙整 $\to$ 同會話追問;換手機即遺失脈絡) | **1 步 / 1 搬運**(主動合批成摘要卡;手機追問電腦舊事仍須手動翻查搬運) | **1 步 / 0 搬運**(訂閱執行器合批為 1 卡;手機隨口追問沿 `#T-id` 逐跳調出精確原文) | | **04 · 摘要夾帶隱蔽外洩指令之外部網頁** | **2 步 / 1 搬運**(複製網頁本文 $\to$ 貼入聊天視窗摘要) | **2 步 / 0 搬運**(發起讀取;缺工牌隔離與出站攔截,須盯防外洩) | **1 步 / 0 搬運**(交後台摘要,最小工牌 `brief` 隔離隱私) | **1 步 / 0 搬運**(訂閱頁面更新主動摘要,受工牌隔離保護) | **1 步 / 0 搬運**(最小工牌 + 出站帶參攔截 + 確認關卡雙重阻斷,0 越權安全回傳摘要) | | **四類場景均值** | **3.75 步 / 2.75 搬運** | **2.50 步 / 1.00 搬運** | **1.75 步 / 0.25 搬運** | **1.25 步 / 0.50 搬運** | **1.25 步(-66.7%) / 0.00 搬運(-100%)** | 表 10 與命題 3 共同呈現三條明確的架構規律: 1. **L0 $\to$ L2 消除了同步盯螢幕與同端複製貼上,但仍停留在 $I_{\text{init}} \ge 1$。** 步數雖自 3.75 降至 1.75,使用者仍須親自發現每件事並手動發起。 2. **僅做到 L3(單端主動)會暴露 0.50 次/事項的「跨裝置斷層」。** L3 雖已將介入步數壓低至 1.25 步,但於天然跨裝置的場景 02 與場景 03 中,缺少系統分享入站、桌面執行租約與跨端 `#T-id` 檔案庫,迫使使用者持續承擔平均 0.50 次跨端手動搬運。 3. **唯有 L4 完整 PESA 同時達成 1.25 步(-66.7%)與嚴格 0.00 搬運(-100%)。** 疊加零 token 端側預篩、訂閱直通(-36.8% 讀取快取 token [1])與積壓合批(-75% 均攤決策耗時 [1]),讓人類注意力逼近命題 3 所界定之主權下界。 ### 10.3 擬議回放基準:PESA-Bench 為協助研究社群於統一條件下評測 L2–L4 個人生態智能體,我們提出合成回放基準 **PESA-Bench**,包含三組貼近真實生活的壓力軌跡: - **高雜訊多管道數週生活事件流:** 依時間戳交織回放 2 至 4 週郵件、行事曆、即時訊息、關注網頁更新與跨端指令,混入 **>82% 無須動作之日常雜訊**(促銷、群組閒聊、驗證碼、系統通知),同步檢驗投機命中率、誤擾率與漏報率。 - **裝置作息休眠、焦點爭搶與跨端競態點擊軌跡:** 為四端注入早晚通勤、會議闔蓋、桌面辦公與夜間專注之 $\alpha(d, t)$ 切換序列,並注入前台對話搶佔 `ComputerHandsLease` 與 300 毫秒內 Watch/iPhone 連點同一卡片的競態案例,驗證式 (5) 之確定性。 - **間接提示注入與隱蔽外洩紅隊測試集:** 依循 Greshake 等人 [6] 之攻擊分類,於外部網頁、HTML 郵件與 PDF 埋入偽裝指令、跨工牌隱私刺探與 Markdown 圖片/URL 帶參外洩陷阱;全量回放中只要發生一次不變量越界即判定不通過。 ## 11. 參考實作:Piko 與執行期機制驗證 PESA 並非紙上空談,其核心底座正透過個人 AI 助理 **Piko**(涵蓋 iPhone、iPad、Mac 與 Apple Watch)持續落地。為嚴格區隔通用架構理論與現行上線進度,本節集中報告已驗證之生產執行期機制與後續路線。 ### 11.1 生產執行期核心機制的確定性單元測試 針對 Piko 用戶端已上線的 L2 後台併發、工牌隔離、桌面租約互斥與看門狗自癒底座,生產程式碼庫維護自動化確定性單元測試套件(`BackgroundWorkerTests`),六項核心機制均已驗證通過(表 11)。 **表 11 Piko 生產執行期核心機制之確定性單元測試驗證(`BackgroundWorkerTests`)** | 驗證機制項 | 受測生產模組與核心參數 | 守護之不變量與系統性質 | 測試狀態 | | --- | --- | --- | --- | | 後台結果回流原對話 | `BackgroundWorkers`(`maxRunning = 3`) | 非同步全雙工執行,以唯一前台聲音回流原對話(不變量 1) | 已通過 | | 任務級 `brief` 隔離 | `WorkerTask.brief` 作用域邊界 | 執行器僅獲當前事項最小工牌,零無關主對話隱私與憑證(不變量 6) | 已通過 | | 桌面單持有者強互斥 | `ComputerHandsLease.acquire` | 任意時刻至多 1 個執行體操控本機 GUI,排隊者先跑雲端步驟(命題 2) | 已通過 | | 180 秒閒置租約回收 | `ComputerHandsLease`(`idleRelease = 180s`) | 閒置滿 180 秒或任務終止自動回收租約,消除後台死鎖(不變量 5) | 已通過 | | 前台主對話優先插隊 | `ComputerHandsLease` 優先佇列 | 即時前台對話請求桌面操作時自動躍升佇列首(不變量 1、命題 2) | 已通過 | | 看門狗 45 秒巡檢與三級升級 | `BackgroundWorkers`(`45s / 20m / 60m 或 3 次`) | 停滯 20 分鐘自動注入復原提示,滿 60 分鐘或 3 次失敗透明轉人工(不變量 5) | 已通過 | ### 11.2 誠實能力自評與四階段演進路線 嚴格對照第 3.5 節之 L0–L4 標準自評:**Piko 目前的主體生產底座處於 L1 邁向 L2 全面收攏的階段**,同時雲端變更監控(「留意」,採用先確定性規則後模型理解之兩級機制)等局部垂直路徑已展現早期 **L3 原型特徵**;惟距離完整 L4 生態級 PESA 仍有明確工程距離(例如 Apple Watch 端目前主要作為唯讀進度鏡像,尚未切換為表 7 目標架構中之版本化一鍵審批閥門)。 後續研發致力於將既有模組統一收攏至第 4 節的八態*事項*狀態機之下,全程嚴守向後相容紀律——**只增不改(Add, Never Alter)**:每一階段皆僅做增量疊加與底層狀態統一,絕不悄然破壞使用者既有的操作習慣(表 12)。 **表 12 Piko 通往完整 L4 PESA 的四階段實作路線** | 演進階段 | 核心工程交付範圍 | 目標等級 | 當前狀態 | | --- | --- | --- | --- | | 第一階段 | 前後台非同步全雙工解耦:後台結果以單一前台聲音自動回流原對話;看門狗 45 秒巡檢並至多 3 次自動自救 | L2 | 已完成 | | 第二階段 | 統一*事項*底座:對話長任務無縫轉交後台執行器;`ComputerHandsLease` 桌面互斥與前台插隊;跨端 `#T-id` 同步;對話內進度列與三態視圖 | L2 | 進行中 | | 第三階段 | 日常訊號接入統一流水線:郵件、行事曆與系統分享接入端雲兩級過濾與八態狀態機,後台預備並呈遞「確認/修改/略過」建議卡 | L3 | 規劃中 | | 第四階段 | 全天候休眠韌性 L4 生態:雲端狀態機持續運轉、靜默推播喚醒與檢查點續接、Apple Watch 版本化一鍵審批與四端毫秒級同步撤回、伺服端看門狗閉環 | L4 | 規劃中 | ## 12. 侷限性、有效性威脅與開放研究問題 ### 12.1 侷限性與有效性威脅 作為一篇系統架構與願景論文,本文之現有論述受以下四項明確邊界約束: 1. **解析步數核算與真實縱向部署之差距(外部有效性)。** 表 10 的步數與搬運降幅(3.75 $\to$ 1.25 步,2.75 $\to$ 0 搬運)源自四類代表性場景之解析拆解,而非歷時數週的真實使用者田野研究。現實淨注意力收益高度取決於個別使用者的真實誤擾數 $\lvert T_{\text{skip}} \rvert$(式 3)及第二級過濾之個人化校準精度;完整實作 PESA-Bench 並展開縱向使用者評估乃後續必要工作。 2. **激進端側規則過濾之冷啟動漏報風險(精確率—召回率權衡)。** 在雜訊比逾 80% 之環境下,第一級確定性規則可將雲端路由負載壓低 $5\times$ 以上,但嚴格的寄件人白名單可能靜默漏掉來自首次聯絡對象(如醫療院所通知或新客戶詢價)之緊急訊息。如何在不犧牲端側隱私前提下緩解冷啟動漏報,須結合關鍵字保底與輕量端側小模型語意初判。 3. **跨廠商作業系統權限壁壘(工程可部署性)。** 雖然 PESA 之形式化模型獨立於特定作業系統,但後台靜默喚醒、鎖定畫面即時動態、系統分享入口與桌面輔助使用操控權限於 Apple、Android、Windows 與 Linux 間差異顯著,在跨廠商混用情境(如 iPhone 搭配 Windows 桌機)將面對較高整合門檻。 4. **雲端協調器的信任根假設(安全邊界)。** 本文基準威脅模型假設雲端狀態機本身誠實且隔離(第 9 節)。若欲防範雲端伺服器本身遭攻破之極端情境,必須將策略驗證與生物辨識簽章進一步下沉至終端硬體安全飛地(Secure Enclave)。 ### 12.2 開放研究問題 將多端個人裝置生態作為超級智能體之執行環境,開啟了六項值得系統、人機互動與資安社群深入探索的方向: - **跨越數年的個人事項記憶演化與可驗證遺忘。** 當檔案庫跨年累積數萬件事項後,如何自動歸併陳舊因果鏈、消解動態演變的個人偏好,並支援依線索可密碼學驗證的徹底遺忘? - **個人化打擾門檻 $p^*$ 的少樣本線上收斂。** 不同個體及同一人在工作日與週末對打擾之容忍度差異懸殊,如何僅憑稀疏的「確認/修改/略過」回饋快速收斂個人化 Horvitz 門檻(式 4)? - **端側小模型與雲端大模型的能耗與隱私自適應切分。** 隨手機與筆電 NPU 算力提升,第二級語意過濾、敏感實體去識別化與離線草稿預擬有多大比例適合下沉端側,切分點又應如何隨電量、溫控與網路狀態動態遷移? - **保護主權的 PESA-to-PESA 跨主體協商協定。** 當使用者的智能體與同事、家人或商家之智能體協商行程或議價時,雙方如何在不揭露各自完整行事曆與底價隱私前提下透過最小資訊揭露達成共識,再各自回到主人的確認關卡? - **雲端大腦與本機雙手之間的零信任硬體邊界。** 如何在極端雲端失陷模型下,利用終端安全飛地簽章與本機生物特徵在場證明,確保本機執行器拒絕任何偽造的高風險指令? - **投機算力投入與人類注意力節省的柏拉圖最適。** 在給定每日預算 $B_{\text{spec}}$ 下,何種排程策略能使每千個投機 token 換回的 $\Delta \overline{\mathcal{A}}$ 最大化? ## 13. 結語 當大語言模型跨過「可靠完成單點步驟」的門檻後,制約個人生產力的真正天花板便不再是模型本身,而是**人的有限注意力每天被切碎了幾次**。只要智能體依然困在孤立的聊天視窗裡,或在桌面上與人爭搶同一隻滑鼠游標,技術越進步,人反而越忙於充當跨應用搬運工與全職監工。 PESA 將這層繁瑣的協調工作徹底沉入系統架構之中:以個人全部裝置生態為統一執行環境,將工作單位從「對話」提升為「事項」,將執行能力($\kappa_{\text{exec}}$)與送達表面($\kappa_{\text{surf}}$)正交解耦,以有界時間租約消除桌面焦點衝突,並以版本化確認關卡與最小工牌隔離守住安全底線。由此,智能體不再是一個停在螢幕上等你輸入提問的文字框,而是一套安靜、可信、貫通既有裝置的常駐系統——把發現、整備與復原留在幕後,只在真正需要你拍板的時刻恰到好處地出現在最順手的那塊螢幕上。 ## 附錄 A Super-agent 核心機制與 PESA 之架構演進對應 表 A1 歸納了 PESA 自 DeepSeek Super-agent [1] 承繼的核心系統機制,以及當執行環境由軟體研發團隊遷移至單一個人的異質多端生態後所做之關鍵架構演進。 **表 A1 Super-agent 機制與 PESA 個人生態架構之演進對應** | Super-agent 中的機制 | PESA 中的對應機制 | 面向個人裝置生態的核心演進 | | --- | --- | --- | | 常駐路由層 + 併發執行層 | 常駐前台協調器 + 隔離後台執行器 | 收束為單一個人主權邊界;新增單訊息多意圖拆分、跨管道合併與樂觀鎖 `version` 跨端仲裁 | | 環境事件驅動觸發 | 日常訊號(郵件、行事曆、通知、分享、網頁) | 針對 >80% 個人雜訊前置「端側零開銷規則 + 雲端語意過濾」兩級漏斗;來源預設關閉,無把握預設靜默 | | 線索訂閱與直通路由 | 執行器訂閱線索($\text{sub}(w) \subseteq H$) | 擴展為線索與事項多對多映射,並支援 `Done` 態事項於後續回信抵達時自動啟用與 `#T-id` 鏈式續接 | | 上下文當快取、依編號召回 | 三層記憶與跨裝置事項檔案庫 | 召回單位升級為跨裝置*事項*(`#T-id`),每筆歸檔強制保留「摘要/原文、溯源、置信度」三要素 | | 投機執行 | 零副作用後台準備 + 確認建議卡 | 結合 Horvitz 雙門檻控制(式 4);對外寫入一律停於 `Waiting`;嚴格二分系統 `Discarded` 與使用者 `Skipped` | | 非同步全雙工互動 | 後台併發推進 + 前台輕快回應 | 結果既可回流對話,亦可由演算法 3 路由至動態島、手錶或待辦建議卡;全程隨時可插話或停止 | | 運算儲存分離、執行就地保留 | 雲端大腦 + 本機端側執行器 | 端側執行器為個人自有異質裝置;引入 `ComputerHandsLease` 單租約互斥、前台插隊、180s 回收與檢查點續接 | | 外部獨立看門狗 | 45 秒巡檢、先自救後升級看門狗 | 停滯 20 分鐘注入診斷復原提示(至多 3 次);滿 60 分鐘或 3 次失敗透明轉 `Waiting (intervention)` | | 群聊與程式碼審查(PR)呈現 | 四端生態原生執行與送達面 | 正交拆分執行裝置選擇(演算法 2,$\kappa_{\text{exec}}$)與送達面選擇(演算法 3,$\kappa_{\text{surf}}$),支援多端同步撤回 | ## 附錄 B 設計取捨與常見問題 ### PESA 與 DeepSeek Super-agent 是什麼關係? PESA 直接承接並擴展了 Super-agent 之核心系統工程思想:打破單次會話邊界、前後台雙層解耦、事件驅動與訂閱直通、運算儲存分離以及獨立外部看門狗 [1]。兩者之根本分水嶺在於**執行環境與服務主體**:Super-agent 面向軟體研發團隊的群聊、程式碼庫與常開雲端開發機;PESA 面向單一個人的異質多端裝置(手機、平板、電腦、手錶)與個人應用生態。正是這層遷移催生了「生態原生」與「可信」兩項新特質,以及端側雜訊預篩、`ComputerHandsLease` 桌面租約、正交雙選演算法與防隱蔽 URL 外洩三層防線。 ### PESA 與電腦操控智能體(Computer Use / Browser Agent)或 MCP 插件有何區別? 電腦操控智能體、瀏覽器自動化工具及 MCP 等連接器協定主要運作於 **L1(執行)層**,解決的是「端側執行器手頭能呼叫哪些工具(即擴展 $\kappa_{\text{exec}}$)」。若直接讓它們運行於使用者主電腦,不僅會與人爭奪滑鼠鍵盤焦點,且筆電一闔蓋隨即停擺。PESA 是位於其上的 **L4 個人生態系統架構**:將瀏覽器與桌面操控統一納入受 `ComputerHandsLease` 仲裁的本機「雙手」,以雲端狀態機保障闔蓋續跑,並以兩級過濾與版本化確認關卡把控何時啟動與由誰拍板。 ### PESA 必須建構在蘋果生態上嗎? 不需要。PESA 的形式化模型、閉合八態生命週期、七條執行期不變量與三項排程演算法完全獨立於特定作業系統,適用於任何手機、平板、電腦與穿戴裝置組合(Android、Windows、Linux 或跨平台混用)。參考實作 Piko 率先選擇蘋果生態(iPhone、iPad、Mac、Apple Watch),係因四類裝置之人體工學分工鮮明,且具備動態島、ActivityKit 即時動態、系統分享選單與接力等成熟原生互動介面。 ### PESA 會在未經允許下擅自發訊息、送出表單或付款嗎? 預設絕不會。在公理 1、不變量 2 與命題 1 的約束下,任何改變外部世界狀態的寫入操作——寄發郵件、傳送即時訊息、送出網頁表單、公開發布或付款——皆須停在 `Waiting (approval)` 關卡,待底層執行器核驗本人針對當前快照版本 $\tau.\text{version}$ 簽發之確認權杖後方能送出(除非使用者於策略白名單 $A_{\text{auto}}$ 中顯式預先授權特定低風險動作)。 ### 手機鎖定螢幕、電腦闔蓋離線後,交代的任務還會繼續嗎? 會繼續。因推理「大腦」與檔案庫狀態機常駐雲端,所有無須本機介面的步驟(檢索資料、核對行事曆、跨源比價、擬定回覆草稿)於裝置休眠期間皆照常推進。僅必須操作特定本機裝置介面的步驟會依演算法 2 嘗試靜默推播喚醒,或於裝置徹底離線時安全保存於檢查點進入 `Parked`,待裝置重新上線核驗頁面狀態後自斷點續接。 ### 如何客觀判定一個智能體的 PESA 等級(L0–L4)? 嚴格依表 4 之系統架構標準判定,與模型參數量無關:單視窗問答為 L0;人工發起並同步等待單任務工具呼叫為 L1;前後台解耦且多任務後台併發為 L2;接入日常事件流、具備兩級過濾與建議卡投機整備為 L3;在此之上貫通個人全部裝置、具備共享 `#T-id` 檔案庫、休眠續跑、桌面租約互斥、各端原生送達面與一處確認多端撤回者,方為完整的 L4 PESA。 ### Piko 目前已經達到完整的 L4 PESA 嗎? 還沒有。如第 11 節坦誠報告的,Piko 目前已上線的主體生產底座處於 L1 邁向 L2 收攏階段(`BackgroundWorkers`、`ComputerHandsLease`、最小工牌隔離與 45 秒看門狗均已通過表 11 的確定性單元測試),雲端「留意」等局部垂直路徑已具 L3 原型特徵。表 12 列出了通往完整 L4 統一底座的後續演進階段。 ## 聲明 - **作者與機構**: Ruiming Zhao,Prysai Lab(ORCID: 0009-0007-8335-5067)。 - **利益關係**: 作者為 Prysai Lab 創辦人;第 11 節報告的參考實作 Piko 由 Prysai Lab 研發。 - **資料與驗證**: 本文為一篇系統架構與願景論文。第 2 節引用之系統實測數據皆出自所註明已發表文獻;第 10.2 節提供透明可審驗之 L0–L4 解析步數核算,第 11.1 節報告 Piko 生產執行期已通過之確定性單元測試。 - **修訂紀錄**: 2026-11-15 首發(v1.0,Zenodo DOI: 10.5281/zenodo.24424696);2026-11-21 修訂(v1.1,Zenodo DOI: 10.5281/zenodo.24429625);2026-11-24 修訂(v1.2,學術結構重構、新增形式化命題與證明思路、Horvitz 門檻推導、侷限性與有效性威脅專節、三語母語級重寫及出版級排版升級)。 - **授權**: CC BY 4.0(https://creativecommons.org/licenses/by/4.0/)。本文歡迎自由引用與分享,請註明出處並附 DOI(https://doi.org/10.5281/zenodo.24429625)及原文連結。 ## 引用本文 Zhao, Ruiming. PESA:個人生態超級智能體. Piko Research, Prysai, 2026-11-15 (v1.2, 2026-11-24). https://piko.prysai.com/zh-Hant/research/pesa · DOI: https://doi.org/10.5281/zenodo.24429625 APA: Zhao, R. (2026). PESA:個人生態超級智能體 (Version 1.2) [Vision paper]. Piko Research, Prysai. https://doi.org/10.5281/zenodo.24429625 GB/T 7714: ZHAO R. PESA:個人生態超級智能體[R/OL]. Piko Research, Prysai, 2026-11-15. https://piko.prysai.com/zh-Hant/research/pesa. DOI: 10.5281/zenodo.24429625. PDF: https://piko.prysai.com/zh-Hant/research/pesa.pdf · BibTeX: https://piko.prysai.com/zh-Hant/research/pesa.bib · RIS: https://piko.prysai.com/zh-Hant/research/pesa.ris ```bibtex @techreport{zhao2026pesa, title = {PESA:個人生態超級智能體}, author = {Zhao, Ruiming}, institution = {Prysai}, type = {Vision paper}, series = {Piko Research}, year = {2026}, month = nov, doi = {10.5281/zenodo.24429625}, url = {https://piko.prysai.com/zh-Hant/research/pesa}, language = {zh-Hant}, note = {Version 1.2, revised 2026-11-24} } ``` ## 參考文獻 [1] Qiao, Yujia 等(DeepSeek Harness 團隊). Super-agent 設計探索:邁向更自主的 Agent 系統. DeepSeek 技術報告, 2026 年 4 月. https://github.com/deepseek-ai/dsh-superagent-prototype [2] Mark, Gloria, Gudith, Daniela, and Klocke, Ulrich. The Cost of Interrupted Work: More Speed and Stress. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '08), pp. 107–110, ACM, 2008; doi:10.1145/1357054.1357072. https://doi.org/10.1145/1357054.1357072 [3] Shneiderman, Ben. Human-Centered Artificial Intelligence: Reliable, Safe & Trustworthy. International Journal of Human–Computer Interaction 36(6): 495–504, 2020; doi:10.1080/10447318.2020.1741118. https://doi.org/10.1080/10447318.2020.1741118 [4] Kung, H. T., and Robinson, John T. On Optimistic Methods for Concurrency Control. ACM Transactions on Database Systems (TODS) 6(2): 213–226, June 1981; doi:10.1145/319566.319567. https://doi.org/10.1145/319566.319567 [5] Gray, Cary G., and Cheriton, David R. Leases: An Efficient Fault-Tolerant Mechanism for Distributed File Cache Consistency. Proceedings of the 12th ACM Symposium on Operating Systems Principles (SOSP '89) / ACM SIGOPS Operating Systems Review 23(5): 202–210, December 1989; doi:10.1145/74850.74870. https://doi.org/10.1145/74850.74870 [6] Greshake, Kai, Abdelnabi, Sahar, Mishra, Shailendra, Endres, Christoph, Holz, Thorsten, and Fritz, Mario. Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection. Proceedings of the 16th ACM Workshop on Artificial Intelligence and Security (AISec '23), pp. 79–90, ACM, 2023; doi:10.1145/3605764.3623985; arXiv:2302.12173. https://arxiv.org/abs/2302.12173 [7] Yao, Shunyu, Zhao, Jeffrey, Yu, Dian, Du, Nan, Shafran, Izhak, Narasimhan, Karthik, and Cao, Yuan. ReAct: Synergizing Reasoning and Acting in Language Models. International Conference on Learning Representations (ICLR), 2023; arXiv:2210.03629. https://arxiv.org/abs/2210.03629 [8] Schick, Timo, Dwivedi-Yu, Jane, Dessì, Roberto, Raileanu, Roberta, Lomeli, Maria, Hambro, Eric, Zettlemoyer, Luke, Cancedda, Nicola, and Scialom, Thomas. Toolformer: Language Models Can Teach Themselves to Use Tools. Advances in Neural Information Processing Systems (NeurIPS) 36: 68539–68551, 2023; arXiv:2302.04761. https://arxiv.org/abs/2302.04761 [9] Wang, Lei, Ma, Chen, Feng, Xueyang, Zhang, Zeyu, Yang, Hao, Zhang, Jingsen, Chen, Zhiyuan, Tang, Jiakai, Chen, Xu, Lin, Yankai, Zhao, Wayne Xin, Wei, Zhewei, and Wen, Jirong. A Survey on Large Language Model based Autonomous Agents. Frontiers of Computer Science 18(6): 186345, 2024; doi:10.1007/s11704-024-40231-1; arXiv:2308.11432. https://arxiv.org/abs/2308.11432 [10] Zhou, Shuyan, Xu, Frank F., Zhu, Hao, Zhou, Xuhui, Lo, Robert, Sridhar, Abishek, Cheng, Xianyi, Ou, Tianyue, Bisk, Yonatan, Fried, Daniel, Alon, Uri, and Neubig, Graham. WebArena: A Realistic Web Environment for Building Autonomous Agents. International Conference on Learning Representations (ICLR), 2024; arXiv:2307.13854. https://arxiv.org/abs/2307.13854 [11] Xie, Tianbao, Zhang, Danyang, Chen, Jixuan, Li, Xiaochuan, Zhao, Siheng, Cao, Ruisheng, Hua, Toh Jing, Cheng, Zhoujun, Shin, Dongchan, Lei, Fangyu, Liu, Yitao, Xu, Yiheng, Zhou, Shuyan, Savarese, Silvio, Xiong, Caiming, Zhong, Victor, and Yu, Tao. OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments. Advances in Neural Information Processing Systems (NeurIPS) 37, Datasets and Benchmarks Track, 2024; arXiv:2404.07972. https://arxiv.org/abs/2404.07972 [12] Wu, Qingyun, Bansal, Gagan, Zhang, Jieyu, Wu, Yiran, Li, Beibin, Zhu, Erkang, Jiang, Li, Zhang, Xiaoyun, Zhang, Shaokun, Liu, Jiale, Awadallah, Ahmed Hassan, White, Ryen W., Burger, Doug, and Wang, Chi. AutoGen: Enabling Next-Gen LLM Applications via Multi-Agent Conversation. First Conference on Language Modeling (COLM), 2024; arXiv:2308.08155. https://arxiv.org/abs/2308.08155 [13] Park, Joon Sung, O'Brien, Joseph C., Cai, Carrie J., Morris, Meredith Ringel, Liang, Percy, and Bernstein, Michael S. Generative Agents: Interactive Simulacra of Human Behavior. Proceedings of the 36th Annual ACM Symposium on User Interface Software and Technology (UIST '23), Article 2, pp. 1–22, ACM, 2023; doi:10.1145/3586183.3606763; arXiv:2304.03442. https://arxiv.org/abs/2304.03442 [14] Packer, Charles, Wooders, Sarah, Lin, Kevin, Fang, Vivian, Patil, Shishir G., Stoica, Ion, and Gonzalez, Joseph E. MemGPT: Towards LLMs as Operating Systems. arXiv:2310.08560, 2023. https://arxiv.org/abs/2310.08560 [15] LofiSu. deepseek-super-agent:DeepSeek Super-agent 架構開源實作. GitHub 開源倉庫, 2026. https://github.com/LofiSu/deepseek-super-agent [16] thefullgc. opensuperagent:事件驅動 Super-agent 社群開源實作. GitHub 開源倉庫, 2026. https://github.com/thefullgc/opensuperagent [17] Weiser, Mark. The Computer for the 21st Century. Scientific American 265(3): 94–104, September 1991; doi:10.1038/scientificamerican0991-94. https://doi.org/10.1038/scientificamerican0991-94 [18] Weiser, Mark, and Brown, John Seely. Designing Calm Technology. PowerGrid Journal 1.01, July 1996 (reprinted in Beyond Calculation: The Next Fifty Years of Computing, pp. 75–85, Springer, 1997). https://calmtech.com/papers/designing-calm-technology [19] Dey, Anind K. Understanding and Using Context. Personal and Ubiquitous Computing 5(1): 4–7, 2001; doi:10.1007/s007790170019. https://doi.org/10.1007/s007790170019 [20] Horvitz, Eric. Principles of Mixed-Initiative User Interfaces. Proceedings of the SIGCHI Conference on Human Factors in Computing Systems (CHI '99), pp. 159–166, ACM, 1999; doi:10.1145/302979.303030. https://doi.org/10.1145/302979.303030 [21] Hennessy, John L., Patterson, David A. Computer Architecture: A Quantitative Approach(第 6 版). Morgan Kaufmann, Cambridge, MA, 2017; ISBN 978-0-12-811905-1. [22] Apple Inc. ActivityKit:以即時動態呈現實時資料. Apple Developer 技術文件. https://developer.apple.com/documentation/activitykit [23] Apple Inc. 人機介面指南(Human Interface Guidelines). Apple Developer 技術文件. https://developer.apple.com/design/human-interface-guidelines/ [24] SAE International. Taxonomy and Definitions for Terms Related to Driving Automation Systems for On-Road Motor Vehicles. SAE Standard J3016_202104, April 2021. https://www.sae.org/standards/content/j3016_202104/ [25] Saltzer, Jerome H., and Schroeder, Michael D. The Protection of Information in Computer Systems. Proceedings of the IEEE 63(9): 1278–1308, September 1975; doi:10.1109/PROC.1975.9939. https://doi.org/10.1109/PROC.1975.9939 --- iPhone、iPad、Mac、Apple Watch、Siri 與 Apple Pencil 為 Apple Inc. 於美國及其他國家和地區註冊之商標。Piko 為 Prysai Lab 之獨立產品,與 Apple Inc. 無隸屬關係。