Super Agent Architecture: Cross-Session Execution and Multi-Task Scheduling

    This article describes a continuously running super agent architecture that treats tasks as independently managed objects rather than session-bound conversations. It explains a two-layer design with a routing layer for coordination and an execution layer for isolated task work, then covers event-driven waiting, asynchronous interaction, storage-compute separation, watchdog-based recovery, and a practical workflow for validating cross-session execution, recovery, isolation, and human authorization before expanding autonomy.

    Super Agent Architecture: Cross-Session Execution and Multi-Task Scheduling

    1. From Conversational Assistant to Continuously Running Task System

    Traditional conversational assistants usually organize context by session: a user sends a request, and the assistant calls tools, processes information, and returns a result within the current session. This model works well for question answering and short operations. However, when a task must wait for external materials, span multiple working periods, or run alongside other tasks, the session is no longer suitable as the only execution boundary. A conversation record can show what each side said, but it may not show how far task execution has progressed, which operations have taken effect, and which decisions still require human confirmation.

    A super agent can be understood as a continuously running agent architecture. It is not a product, nor is it a rating of model intelligence. It treats tasks as independently managed objects and uses sessions as entry points for submitting requests, checking progress, and adding information. Closing a window does not cancel a task, and opening a new session does not mean the background must be explained from scratch. As long as identity and permission checks pass, the user can continue the same work from another entry point.

    This concept can be summarized by four characteristics: continuous, meaning tasks can connect across sessions; efficient, meaning multiple independent tasks can proceed in parallel, not that every scenario will be faster; proactive, meaning the system can initiate follow-up actions within agreed events and authorization boundaries; and persistent, meaning critical state does not depend on the memory of a single execution process. In particular, persistent operation does not mean letting the model reason continuously. When there are no executable steps, a task can be suspended and resumed when a new event arrives.

    2. Two-Layer Architecture: Routing Coordinates, Execution Performs Work

    Routing Layer: Maintaining Task Ownership and External Interaction

    The routing layer receives requests and events from different entry points, verifies the initiator’s identity and operation permissions, and determines whether an event should create a new task or belong to an existing task. For example, when a user says in a new session, “include the supplementary materials in the review,” the system must confirm which review task this instruction corresponds to. If multiple candidates exist, it should ask the user to confirm rather than assigning the materials to a task based only on language similarity.

    The routing layer also handles task dispatch and status aggregation. It can schedule work according to task priority, execution resources, and business constraints, and it can report back to the user when confirmation is needed, a task is complete, or an exception occurs. “Resident” means the coordination service remains continuously available; it does not mean that a single never-restarted process must hold all state. Instead, coordination information should also be persisted so that task ownership or dispatch records are not lost after the routing service restarts.

    Execution Layer: Advancing Tasks in Isolated Contexts

    The execution layer consists of independently schedulable execution units responsible for specific work such as material organization, rule verification, and report generation. Each unit receives only the inputs, context, and permissions required for the current step. This reduces interference between prompts and temporary results from different tasks, and it limits the scope within which a single execution unit can read materials or modify business data.

    Execution-context isolation does not mean there are no conflicts between tasks. For example, two tasks may try to update the same record at the same time. For such shared resources, writes can be serialized by resource identifier, or the record version can be checked at commit time, with conflicts handled by rereading and deciding whether to continue. The choice depends on whether the business allows merged changes and on the cost of handling conflicts. Parallel execution must not be interpreted as requiring no coordination.

    3. Making Tasks Wait, Recover, and Be Traceable

    Event-Driven: Wake Tasks Only When There Is Work to Do

    A user adding materials, external processing completing, an approval passing, or a wait timing out can all be events that move a task forward. Consider material review: when an attachment is missing, the task should enter a “waiting for materials” state and record what is missing, who should supply it, and when to remind them. When the attachment arrives, the system should check whether the material belongs to that task and whether it meets the conditions for continued execution. Compared with having the model repeatedly check whether an attachment has been uploaded, this approach separates waiting from computation.

    Engineering design must account in advance for duplicate, delayed, and out-of-order events. Receiving the same “approval passed” event twice should not trigger two external submissions, and an upload notification for an old material version should not overwrite a new version that has already been confirmed. Events can carry unique identifiers, and processing can validate the task’s current state and the relevant material version. The goal is not to eliminate all duplicate delivery, but to ensure that duplicate processing does not create additional business effects.

    Asynchronous Bidirectional Interaction: Neither User nor Task Must Wait Online

    After a user submits a request, the system can first return an acceptance result, and the user can check progress as needed. During execution, the system can also proactively send items that need confirmation, and the user can respond later from an authorized entry point. Unlike synchronous question answering, a task may have multiple pending confirmation requests at the same time. Each confirmation should therefore be linked to a specific task, pending item, and current version. Otherwise, when a draft has already been updated, a late confirmation might be mistakenly applied to a new version.

    Asynchronous interaction must also define the semantics of pausing, cancellation, and priority adjustment. A cancellation request can prevent steps that have not yet started, but it may not be able to retract an operation already accepted by an external system. For reversible actions, there should be an explicit retraction process. For irreversible actions, the result must be recorded accurately, and an appropriate confirmation threshold should be set before execution.

    Storage-Compute Separation: Persist Recovery Information, Not Chat Logs

    Execution processes perform computation, while persistent storage retains task records, input references, intermediate artifacts, and key decisions. A recoverable task checkpoint must answer at least three questions: what has been completed, where the next step can begin, and whether there are external operations whose results have not been confirmed. A natural-language summary can help a new execution unit understand the background, but it is not sufficient for reliable recovery.

    Different kinds of information should be managed according to their purpose. Task state and approval results are process evidence and should have clear update rules and audit records. Conversation summaries assist understanding and should allow the original evidence to be consulted when necessary. Preferences reused across tasks should have explicit scope and retention periods, and they must not automatically become operation authorization. When restoring a task, the system should first read structured state and necessary evidence rather than giving all historical messages to the model for re-inference.

    External Watchdog: Detect Anomalies Without Blind Reruns

    An external watchdog runs independently of the execution units it supervises. It can use heartbeats, execution deadlines, and observable progress signals to identify loss of contact or timeouts. Waiting for human approval and a stuck executor may both look like “no output for a long time,” but they require different handling: the former is suited to reminders or escalation, while the latter may require reclaiming execution resources and rescheduling.

    Before rescheduling, the system must also determine whether the previous operation has already taken effect. For example, if an execution unit submits a record but receives no receipt, the system cannot conclude that the submission failed. It should first query the external result, or retry with the same idempotency identifier if the external system supports it. If the result cannot be verified and safe repeated execution cannot be guaranteed, the relevant steps should be paused for human review. The value of a watchdog is controlled recovery, not maximizing the number of retries.

    4. Testing the Architecture with a Business Workflow

    A useful validation starting point is a periodic material aggregation process inside an enterprise. After a user initiates an aggregation task, the routing layer creates a task record and dispatches material organization and format verification to different execution units. Materials that have arrived continue processing, while branches with missing attachments enter a waiting state. When the user supplies an attachment from another entry point, the upload event resumes only the corresponding branch and triggers affected checks; parts that have already been verified with unchanged inputs do not need to be recomputed.

    After the aggregation draft is generated, the system binds the confirmation request to a specific draft version. Before authorization is obtained, the task can continue checks that have no external impact, but it must not formally submit results. If new materials change the draft while confirmation is pending, the system should reassess whether the old confirmation is still valid. After final submission, the system retains a verifiable submission result rather than only generating a “completed” chat reply.

    This workflow tests three critical boundaries at the same time: whether a task can still be located after a session switch, whether other branches continue to progress while some branches are suspended, and whether human authorization always corresponds to the correct object and version. For actions that may have external impact, permission checks should occur at the actual operation, not only when a plan is generated. The fact that a user changes interaction entry points does not mean authorization from the old entry point can be inherited directly.

    5. Validate Recovery and Isolation Before Expanding Autonomy

    A prototype does not need to begin by integrating many entry points and tools. A more valuable first step is to choose a workflow with clear boundaries and define its task states, event sources, waiting conditions, retryable steps, and human approval points. Then deliberately test abnormal situations: an execution process exits before or after saving a checkpoint, a confirmation message arrives twice, two tasks modify the same record at the same time, or a user revokes authorization during execution. Only when the system can explain why a task continued, why it paused, and which operations have occurred under these conditions does it have a foundation for expanding its operating scope.

    During evaluation, beyond comparing task completion time, teams should also track human intervention count, recovery time after failure, duplicate business operations, interference among concurrent tasks, and compute and storage cost per task. When comparing a single-session approach with a continuously running approach, task load, available tools, and permission conditions should be kept as consistent as possible, and waiting time and actual execution time should be recorded separately. Tests in a simplified environment are suitable for validating mechanisms, but they cannot directly serve as production performance conclusions.

    The engineering value of a super agent is not in routing every request through a complex scheduling system. It is in giving tasks that truly require long-running execution clear ownership, recoverable progress, and constrained action capabilities. For short question-answering interactions, a single session remains direct and effective. Independent task state and scheduling mechanisms are worth introducing when work spans sessions and people and includes waiting or parallel steps.