Skip to content

Expose host-function requirements recorded in snapshots #1870

Description

@simongdavies

Problem

Hyperlight snapshots persist the host-function names and type signatures needed
to restore guest state, and SandboxBuilder::from_snapshot().build() validates
the restoring registry against them.

The persisted requirements are not exposed through the public Snapshot API.
Consumers therefore cannot inspect a loaded snapshot before building a sandbox
to discover requirements such as ResolveModule and LoadModule. They must
already know the contract or attempt restoration and parse the resulting
mismatch error.

Wrapper runtimes also cannot present a complete requirements API because the
underlying Hyperlight requirements are private.

Proposed change

Expose an immutable view of the host-function requirements recorded by a
Snapshot, including each function name and exact parameter and return types.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions