Skip to content

Validate Substrate's effective restore source, not only durable checkpoint evidence #192

Open

Description

@gambtho

Follow-up from #181 (#181 (comment)).

Sessions checks the latest completed durable checkpoint's URI and fidelity, but that isn't always what Substrate restores:

  • Out-of-band pause: Substrate prefers an actor-local checkpoint. A local-only MEMORY checkpoint is wrongly refused as lost memory, and an older durable VOLUMES checkpoint can pass WithVolumesOnly() while resume restores local MEMORY. (Sessions never calls PauseActor.)
  • Template replacement: if the snapshot's ActorTemplate UID differs from the current template's, Substrate restores VOLUMES only, so durable MEMORY evidence passes even though RAM isn't restored. This predates fix(substrate): report and enforce observed snapshot fidelity #181.

Proposal: get the effective restore source from Substrate and use it for Create/attach and Restore fidelity checks, keeping the durable URI/fidelity requirements for external Snapshot and tagging. Done when both cases have adapter/backend regressions with pinned refusal classes, memory-required recovery never proceeds without RAM, and the conformance docs are updated.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions