- Add HAKO_TRACE_EXECUTION to trace executor route - Rust hv1_inline: stderr [trace] executor: hv1_inline (rust) - Hakovm dispatcher: stdout [trace] executor: hakovm (hako) - test_runner: trace lines for hv1_inline/core/hakovm routes - Add HAKO_VERIFY_SHOW_LOGS and HAKO_DEBUG=1 (enables both) - verify_v1_inline_file() log passthrough with numeric rc extraction - test_runner exports via HAKO_DEBUG - Canary expansion under phase2170 (state spec) - Array: push×5/10 → size, len/length alias, per‑recv/global, flow across blocks - Map: set dup-key non-increment, value_state get/has - run_all.sh: unify, remove SKIPs; all PASS - Docs - ENV_VARS.md: add Debug/Tracing toggles and examples - PLAN.md/CURRENT_TASK.md: mark 21.7 green, add Quickstart lines All changes gated by env vars; default behavior unchanged.
Hako Check — Rule Tests (MVP)
構成(1 ルール = 1 ディレクトリ)
- tools/hako_check/tests/<rule_name>/
- ok.hako … 検出なし
- ng.hako … 最低 1 件の検出
- edge.hako … 端境(任意)
- expected.json …
--format json-lspの期待ダイアグノスティクス
実行(MVP)
bash tools/hako_check/run_tests.shで全テストを走査- 差分があれば終了コード 1、詳細を提示
注意
- 21.4 は AST JSON 優先。Text fallback の差異は expected に反映
- ルール名は HCxxx を推奨(例: HC002)