Agency

Configure local COW checkpoints

The default checkpoint backend is image_commit. Optional cow_zfs uses a private latest-only filesystem snapshot for the same sandbox; optional checkpoint_fast_resume adds a best-effort CRIU process cache. The checkpoint architecture defines capture/restore ordering and fallback.

Requirements and configuration

Use explicit host setup or separately managed compatible Linux rootful Docker/Podman and ZFS storage. Do not run provisioning merely to read/build documentation. Normal native onboarding does not require this optional backend.

from agency.configs.agconfig import agconfig, sandboxconfig

cfg = agconfig(sandboxconfig(
    backend="podman",
    checkpoint_backend="cow_zfs",
    checkpoint_zfs_parent="YOUR_EXISTING_POOL/sandboxes",
    checkpoint_fast_resume=False,
))

For Docker, the parent must match the native ZFS graphdriver beneath DockerRootDir; the containerd overlay snapshotter is not that driver. For Podman, use the parent under which Agency may create private seeds and per-sandbox datasets. Explicit launcher-selected host profiles can supply defaults, while explicit namespace arguments override them.

Enable checkpoint_fast_resume only on a checkpoint-capable host. GPU sandboxes reject it. Docker additionally requires host networking, experimental daemon/runtime checkpoint support and compatible mounts/cgroups. A successful process restore reestablishes tracing before retained tasks resume; failed capture/restore falls back to stopped filesystem state and fresh processes. It is not guaranteed reuse on every run.

Guarantees and exclusions

See sandbox API for exact calls. Specialized integration commands remain in host setup; this documentation stage did not provision or test a ZFS/CRIU host.