Files
hakorune/docs/private/roadmap/phases/phase-20.27/PLAN.md

40 lines
1.7 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.

# Phase20.27 — PLAN
## Tracks
1) mir_call 完全化Core
- ModuleFunction 受理String/Array/Map 代表 + SSOT名の別名統一
- Method 受理receiver→第1引数の正規化を統一
- Constructor 受理new Box → birth/0 or host slot init; FailFast方針を固定
- Closure は v0 で FailFast安定メッセージ
2) Box 基本意味論Core 実装の安定化)
- Array: size/get/set/push/pop/clear の正/負OOB/型不一致)
- Map: size/get/set/has/delete/keys/values欠落/型不一致)
- String: length/indexOf/lastIndexOf/substring/charAt/replace境界/負例含む)
3) 委譲の収束hakorunevm → Core
- 1:1 対応のハンドラは Core へ再委譲(残りは TODO ラベルを付与)
- HostSlot/Extern の SSOT 準拠(呼名と arity の正規化)
4) GateC(JSON→Core) の回帰拡張
- file/pipe×plugins ON/OFF の対称性カナリアを追加
- rc 伝搬のテーブル化(数値/文字列の代表)
## Milestones
- M1: mir_call ModuleFunction/Method 実装 + String/Array 正例 PASS
- M2: Array/Map の負例OOB/型)タグ安定 + GateC 対称カナリア PASS
- M3: hakorunevm の代表ハンドラを Core へ再委譲diff 小)
- M4: quickoptinで Core canaries 10本以上 緑、ドキュメント更新
## ENV/Flags開発用
- `SMOKES_ENABLE_CORE_CANARY=1`Core canaries 有効)
- `HAKO_CORE_MAX_ITERS`Dispatcher ループ上限。既定 10000
- `HAKO_GATE_C_CORE=1`GateC→Core 直行)
## Risks / Mitigations
- 並列テストでのフォーク増幅 → RunnerPlan から子依存を撤退ExecuteBoxes はローカル決定済)
- タグの揺れ → 安定タグ表を docs に明記canary で固定