Allow precise host-function requirements for snapshot/restore
メンテナーはふだん 6 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 52/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript, rust
- 領域
- backend
調査の方向性
Start by locating the handler and module registration APIs, then trace how snapshot and restore state tracks available and required host functions. Define the optional per-item requirement declarations and verify that omitted declarations retain conservative promotion while removals recompute the union of declared requirements.
索引モデルが issue の本文から書いたものです。
説明
Problem
Hyperlight-JS snapshots distinguish:
available: callbacks installed in the destination hostrequired: callbacks exposed to the current guest state and recorded in snapshots
Consider:
- Snapshot requires function A.
- Destination provides A and B.
- Restore preserves
required = {A}andavailable = {A, B}. - A new handler that calls B is staged.
- The next snapshot must require both A and B.
Hyperlight-JS cannot reliably infer host-function dependencies from arbitrary
JavaScript. Imports and property access can be dynamic, and runtime observation
would miss unexecuted branches.
The current safe behavior conservatively promotes required to the complete
available manifest whenever a handler or module is added after restoration.
This is correct but can overstate requirements and reduce snapshot portability.
Proposed solution
Add an optional API for declaring host-function requirements when registering
handlers and modules. Track requirements per registered item so removals can
recompute the resulting union.
Callers that omit declarations retain the conservative promotion behavior.
- 主要言語
- Rust
- スター
- 13
- フォーク
- 5
- 平均マージ
- 6日 6時間
- マージ済み PR(30日)
- 17
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- 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
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
hyperlight-dev/hyperlight-js#339 ·
メンテナーはふだん 6 日以内に返信
-
lifecycle/needs-review
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
hyperlight-dev/hyperlight-js#337 ·
メンテナーはふだん 6 日以内に返信
-
lifecycle/needs-review
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
hyperlight-dev/hyperlight-js#312 ·
メンテナーはふだん 6 日以内に返信
hyperlight-dev/hyperlight-js の issue をすべて見る
似ている issue
-
contribution
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
tree-sitter/tree-sitter#6005 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
agent:triaged bug bughunt pm:pipenv priority:p1
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
SocketDev/socket-patch#744 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
maplibre/maplibre-tile-spec#1844 ·
メンテナーはふだん 1 日以内に返信