Add stable semantic signatures to Hyperlight-JS host-function manifests
維護者通常 6 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 5/5
- 預估耗時
- 一週以上
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 活躍
- 技術堆疊
- javascript, rust
- 領域
- backend
研究方向
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.
由索引模型根據 Issue 內容生成。
描述
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.
- 主要語言
- Rust
- 星號
- 13
- 分支
- 5
- 平均合併
- 6 天 6 小時
- 30 天內合併 PR
- 17
環境準備
在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
hyperlight-dev/hyperlight-js 的其他 Issue
-
lifecycle/needs-review
難度 2/5 1-3 小時 新手友好度 68/100
hyperlight-dev/hyperlight-js#81 ·
維護者通常 6 天內回覆
-
lifecycle/needs-review
難度 4/5 3-5 天 新手友好度 48/100
hyperlight-dev/hyperlight-js#340 ·
維護者通常 6 天內回覆
-
lifecycle/needs-review
難度 4/5 3-5 天 新手友好度 52/100
hyperlight-dev/hyperlight-js#338 ·
維護者通常 6 天內回覆
-
lifecycle/needs-review
難度 3/5 1-2 天 新手友好度 55/100
hyperlight-dev/hyperlight-js#337 ·
維護者通常 6 天內回覆
-
lifecycle/needs-review
難度 5/5 一週以上 新手友好度 35/100
hyperlight-dev/hyperlight-js#312 ·
維護者通常 6 天內回覆
查看 hyperlight-dev/hyperlight-js 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 1 天內回覆
-
app enhancement
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 80/100
elodin-sys/elodin#890 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 85/100
guidance-ai/llguidance#391 ·