Skip to content

Let a Task choose its snapshot scope, and document what survives a suspend #486

Open

Description

@mayawang

Problem

AX hardcodes the snapshot fidelity for every Task (PreferredFidelity: SNAPSHOT_FIDELITY_VOLUMES in internal/substrate/client.go). With Substrate main, a resume from a volumes-only snapshot starts the containers fresh from the image and restores only the durable directories. Anything running at suspend time is gone: an agent comes back with its files under /workspace, but the tool call it was running shows as interrupted.

A plain Substrate actor with full fidelity keeps its processes across suspends, including a wake on another node. AX tasks can't ask for that, and the docs don't say which behavior a Task gets.

#457 described volumes fidelity as equivalent to the previous behavior. On Substrate main it isn't: since agent-substrate/substrate#2105, the golden snapshot's memory no longer comes back on a data resume either. Combined with #428, the task command also starts again on every resume.

Reproduce

Apply a Task whose command is sleep 60, suspend it 20 s in, wait, and resume it. The command is not running after the resume.

Ask

  • Document what survives ax suspend and ax resume today: files, memory, processes.
  • Add a snapshot scope on the Task (volumes or full), passed to the ActorTemplate, defaulting to today's behavior.

The Substrate v0.5 bump (#484) changes the snapshot fields, so this should build on that.

Activity

  1. added
    devx
    on Oct 15, 2026
  2. siyuanfoundation commented on Oct 23, 2026

    @siyuanfoundation
    Collaborator

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    devx

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions