Files
hakorune/docs/development/current
nyash-codex bf81488c67 feat(selfhost): Phase 150 - Selfhost Stage-3 Depth-1 baseline strengthening
Completed all 5 tasks for Phase 150 implementation:

Task 1: Consolidated selfhost pipeline diagram
- Updated selfhost_stage3_expected_flow.md with unified flow diagram
- Documented all stages: Stage-B, Stage-1, Stage-3, dev_verify
- Added +120 lines of detailed pipeline documentation

Task 2: Expanded representative cases (3 → 5)
- Added 3 new test cases:
  - string_method_chain.hako: method chaining (substring().length())
  - joinir_min_loop.hako: loop with break control
  - joinir_if_select_simple.hako: if with early return
- All 5 cases pass with NYASH_FEATURES=stage3 NYASH_USE_NY_COMPILER=1
- Created comprehensive results document (+400 lines)

Task 3: Created selfhost smoke test script
- New: tools/smokes/v2/profiles/integration/selfhost_phase150_depth1_smoke.sh
- Automated testing of all 5 representative cases
- All tests passing:  Passed: 5,  Failed: 0

Task 4: Classified failures for Phase 151+
- Phase 151 (High): ConsoleBox selfhost support (2-3 hours)
  - Affects: esc_dirname_smoke.hako, string_ops_basic.hako
- Phase 152-A (Medium): Parenthesized assignment expression (1-2 hours)
- Phase 152-B (Medium): static method syntax support (1-2 hours)

Task 5: Updated CURRENT_TASK.md
- Added Phase 150 completion entry with full implementation details
- Updated roadmap section with Phase 150 completion
- Documented next steps: Phase 151-152 bug fixes

Results Summary:
- Selfhost depth-1 baseline: 3 → 5 cases (67% increase)
- JoinIR Strict mode: 100% pass rate on all 5 cases
- Smoke test infrastructure: fully automated verification
- Documentation: pipeline diagram + results + failure analysis

🎉 Generated with Claude Code (https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-04 12:40:01 +09:00
..