Skip to content

Reject repointing an actor that owns a snapshot to a different storage location - #2014

Merged
Zoe Zhao (zoez7) merged 1 commit into
agent-substrate:mainfrom
laoj2:repoint-storage-location
Oct 1, 2026
Merged

Zoe Zhao (zoez7) merged 1 commit into
agent-substrate:mainfrom
laoj2:repoint-storage-location

Conversation

@laoj2

Copy link
Copy Markdown
Collaborator

This is needed because DeleteActor cleans up all snapshots under the actor's location.

If we were to allow repointing an actor's snapshot location, we risked leaking historical snapshots upon actor deletion.

@mayawang Maya Wang (mayawang) added kind/bug Something isn't working / bugfixes area/api User-facing API changes area/storage labels Sep 30, 2026
Comment on lines +425 to +428
// Tag-owned snapshot
if !currentURI.OwnedBy(actorSnapshotOwner(actor)) {
return nil
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see so this will happen when I

  1. Create an actor from a Tag
  2. Do NOT resume it
  3. immdiately update the actor template.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a correction: 2) should be: Do NOT SUSPEND it

The actor borrows the external snapshot of a tag (golden/source) until its first suspend.

@zoez7

Copy link
Copy Markdown
Collaborator

needs rebase

…different storage location

This is needed because DeleteActor cleans up all snapshots under the actor's location.
If we were to allow repointing an actor's snapshot location, we risked leaking historical snapshots upon actor deletion.
@laoj2

Copy link
Copy Markdown
Collaborator Author

rebased

@zoez7
Zoe Zhao (zoez7) added this pull request to the merge queue Oct 1, 2026
Merged via the queue into agent-substrate:main with commit e8cad55 Oct 1, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api User-facing API changes area/storage kind/bug Something isn't working / bugfixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants