mirror of
https://github.com/kvcache-ai/AgentENV.git
synced 2026-11-05 01:17:36 +00:00
[GH-ISSUE #183] Introduce explicit snapshot types for pause/resume, local forks, and distributed durability #58
Labels
No labels
bug
documentation
enhancement
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/AgentENV#58
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @yingdi-shan on GitHub (Aug 18, 2026).
Original GitHub issue: https://github.com/kvcache-ai/AgentENV/issues/183
Summary
AgentENV currently uses "snapshot" for workflows with materially different lifecycle, availability, and durability requirements. Introduce four explicit snapshot types so each workflow pays only the storage and distribution cost it needs:
Motivation
The current pause path seals the active read/write state and creates new disk and memory layers. Repeated pause/resume cycles can therefore produce long layer chains, increase metadata overhead, and require garbage collection of many short-lived layers.
Pause/resume does not normally require an immutable, reusable snapshot. It only needs enough state to continue the same sandbox. Forking, cluster-wide creation, and durable recovery have progressively stronger requirements and should use explicit snapshot types with matching costs.
Proposed snapshot types
1. Temporal snapshot
A temporal snapshot is an ephemeral continuation point for pausing and resuming the same sandbox.
The single-use rule is required because resumed writes mutate the same layers represented by the continuation point.
2. Local snapshot
A local snapshot is an immutable snapshot materialized on the current node.
3. Distributed snapshot
A distributed snapshot is resolvable across the cluster.
Lifecycle and promotion
Supported paths:
Promotion should reuse existing immutable artifacts rather than recapturing the running sandbox.
API direction
Make snapshot intent explicit instead of inferring it only from repository configuration. For example:
Suggested defaults: