From 19ff3724edc2278b9900a39efd44b40d431700e0 Mon Sep 17 00:00:00 2001 From: Hare Date: Thu, 25 Jun 2026 05:43:58 +0900 Subject: [PATCH] ticket: record legacy wasm removal report --- .yoi/tickets/00001KVXK0WD3/item.md | 2 +- .yoi/tickets/00001KVXK0WD3/thread.md | 40 ++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/.yoi/tickets/00001KVXK0WD3/item.md b/.yoi/tickets/00001KVXK0WD3/item.md index 7115167c..4cd4fa2c 100644 --- a/.yoi/tickets/00001KVXK0WD3/item.md +++ b/.yoi/tickets/00001KVXK0WD3/item.md @@ -2,7 +2,7 @@ title: 'Remove legacy raw WASM Plugin runtime' state: 'inprogress' created_at: '2026-06-24T19:51:56Z' -updated_at: '2026-06-24T20:14:56Z' +updated_at: '2026-06-24T20:43:50Z' assignee: null queued_by: 'workspace-panel' queued_at: '2026-06-24T20:11:56Z' diff --git a/.yoi/tickets/00001KVXK0WD3/thread.md b/.yoi/tickets/00001KVXK0WD3/thread.md index 4b76638b..28e5a96d 100644 --- a/.yoi/tickets/00001KVXK0WD3/thread.md +++ b/.yoi/tickets/00001KVXK0WD3/thread.md @@ -133,3 +133,43 @@ Implementation orchestration update: - Coder には root/original workspace と orchestration worktree で read/write/validation/git operation を行わないよう明示した。 --- + + + +## Implementation report + +Implementation report: + +実装概要: +- `PluginInstanceRuntime::LegacyToolAdapter` 相当の raw core-WASM fallback 実行経路を削除した。 +- `wasm-component` の Tool world は `ComponentToolAdapter` として明示的に扱い、ToolRegistry 経由の実行は `run_plugin_component_tool` のみを使うよう変更した。 +- raw `wasm` runtime metadata は static inspection / instance startup の両方で非対応として扱い、実行 fallback しないようにした。 +- Component Model Plugin Tool / Component Instance 実行経路、host API grant boundary、ToolRegistry 登録経路は維持した。 +- raw WASM 実行用の `wasmi` 依存・テスト・古い helper を削除した。 +- `package.nix` の `cargoHash` を更新した。 +- Component Model design doc の現状記述を active runtime に合わせて更新した。 + +変更ファイル: +- `crates/pod/src/feature/plugin.rs` +- `crates/pod/Cargo.toml` +- `Cargo.lock` +- `package.nix` +- `docs/design/plugin-component-model.md` + +Validation: +- `cargo test -p pod feature::plugin --lib`: success +- `cargo check -p yoi`: success +- `git diff --check`: success +- `nix build .#yoi --no-link`: success +- `cargo test -p pod`: failed in unrelated prompt snapshot tests: + - `workflow::tests::workflow_usage_guidance_contract_snapshot_matches_prompt_resource` + - `tests::companion_prompt_matches_resource_snapshot` + +Commit: +- `741d71327aec213e564d47a4b4c37141c727803c refactor: remove legacy wasm plugin runtime` + +Residual risks / notes: +- Full `cargo test -p pod` failure appears unrelated to this Plugin runtime change and was not fixed here. +- Follow-up Ticket `00001KVXK0WDH` remains responsible for manifest / CLI legacy runtime rejection UX. This implementation only removes active runtime fallback and minimal static inspection consistency. + +---