Files
hakorune/docs/development/current/CURRENT_TASK.md
Moe Charm 080458d4d4 fix: Correct HttpRequestBox method_id mapping in nyash.toml
Fixed the method ID order in HttpRequestBox configuration to match plugin implementation:
- path: method_id 1 (was incorrectly 2)
- readBody: method_id 2 (was incorrectly 3)
- respond: method_id 3 (was incorrectly 1)

This resolves the 45-day debugging issue where req.respond(resp) was calling
the wrong plugin method, causing HTTP responses to have empty bodies.

All E2E tests now pass:
- e2e_http_stub_end_to_end 
- e2e_http_multiple_requests_order 
- e2e_http_post_and_headers 
- e2e_http_server_restart 
- e2e_http_server_shutdown_and_restart 

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-22 12:09:06 +09:00

59 lines
2.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 🎯 CURRENT TASK - 2025年8月20日
## 📊 現在の状況
### ✅ 完了したタスク
1. **ドキュメント再編成** - 完全完了!
- 283ファイル → 4大カテゴリに整理
- Phaseファイルも統合済み
- 説明書/予定フォルダ削除済み
2. **プラグインBox基本実装** (Phase 9.78c)
- FileBoxプラグイン実装済み
- インタープリター経由の呼び出し成功
- 基本的な引数/戻り値サポート追加ChatGPT5による
### 🚧 現在の課題
1. **Bashコマンドエラー問題**
- docs整理で現在のディレクトリが削除された影響
- セッション再起動が必要かも
2. **E2Eテスト状況**tests/e2e_plugin_filebox.rs
- インタープリターテスト: ✅ 成功FileBox.close()が"ok"を返す)
- デリゲーションテスト: ❓ 未実装の可能性
- VMテスト: ❌ 失敗VMはまだプラグインBox未対応
### 🎯 次のタスクMIR→VM チェック / 命令最適化)
1) MIR→VM 変換の健全性チェック(短期)
- 現行 MIR 命令 → VM 命令のマッピング表を作成
- E2E/サンプルを VM バックエンドで実行し、MIR→VM 変換ログを収集
- 例外系・Result正規化returns_resultの経路を VM で確認
2) 命令使用実績の計測(短期)
- 実際に使用されている VM 命令を計測(実行ログ/カウンタ)
- 現行宣言33命令 → 実使用コア命令の抽出
3) 命令セットのダイエット検討(中期)
- 目標: 26命令docsの合意値
- 代替可能/統合可能な命令の提案と互換性影響の洗い出し
- 実験フラグで26命令版のVMを試作段階移行
4) ドキュメント更新(短期)
- 現状の命令一覧と目標26命令の整合reference/architecture/
- 計測結果(使用頻度)と統合方針を追記
### 📝 メモ
- ChatGPT5がプラグインBoxメソッド呼び出しに引数/戻り値サポートを追加
- TLV (Type-Length-Value) エンコーディングで引数をプラグインに渡す実装
- Rustの借用チェッカーとの格闘の跡が見られる複数回の修正
### 🔧 推奨アクション
1. VMバックエンドでの実行ログ化命令発行ログ/カウンタ)
2. マッピング表作成MIR→VMと欠落/冗長命令の洗い出し
3. 26命令案のPoCブランチ作成→E2Eで回帰確認
4. docs更新命令一覧、設計意図、移行戦略
---
最終更新: 2025年8月22日 03:30MIR→VM/命令最適化タスク追加)