Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Add stable semantic signatures to Hyperlight-JS host-function manifests

Đang mở
#339 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 6 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript, rust
Lĩnh vực
backend

Hướng nghiên cứu

Start by tracing host-function registration, snapshot metadata persistence, and both persistent and in-memory restoration validation. Decide how the stable contract ID or versioned schema is represented and compared, then verify that contracted functions reject incompatible snapshots while functions without contracts retain name-only validation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

lifecycle/needs-review
Problem

Hyperlight-JS snapshot compatibility currently validates only module and
function names.

Typed Rust callbacks are erased to a JSON bridge during registration, while
JavaScript callbacks are inherently dynamic. Hyperlight therefore sees only
the fixed CallHostJsFunction bridge signature and cannot verify that logical
functions such as database.query retain compatible argument and return
semantics.

Rust TypeId is process-local and type_name() is not a stable serialized
contract. Neither reliably describes Serde JSON representation.

Proposed solution

Allow host-function registration to include an explicit stable contract ID or
versioned schema, for example:

database.query: database.query/v1

Persist this identifier alongside each module/function name in snapshot
metadata and compare it during persistent and in-memory restoration.

Functions without a contract retain current name-only validation for backward
compatibility.

Ngôn ngữ chính
Rust
Star
13
Fork
5
Merge trung bình
6 ngày 6 giờ
Pull request đã merge (30 ngày)
17

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của hyperlight-dev/hyperlight-js

Tất cả issue của hyperlight-dev/hyperlight-js

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.