agent-substrate / agent-substrate/substrate

First resume from golden snapshot always restores FULL scope regardless of onSuspend/onResume settings

Abierto
#1,567 1 comentario 0 reacciones 0 asignados Ver en GitHub
area/api area/api-machinery kind/design
Lenguaje dominante
Go
Estrellas
1.8k
Forks
316
Merge medio
2 d 43 min
PR fusionados (30 d)
287

Descripción

After the actor has its own snapshot (ignore upgrades for now), the snapshot that the Actors are restoring from has its scope equal to `actorTemplate.onSuspend.Scope` (or the onPause equivalent), but the first resume using golden snapshot is an exception.

Because the golden snapshot is always "FULL" scoped, regardless of the value of onSuspend and onResume settings, the first resume using golden snapshot always restores the full snapshot. Is this ok?

This means, for an actor whose template has `onSuspend: Data` and `onResume.fromData: data_only`, the first resume still restores the full golden snapshot.

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.