Files
hakorune/CURRENT_TASK.md
nyash-codex cd12a2569e feat(llvm): Phase 87 - LLVM exe line SSOT + integration smoke
Established single pipeline for .hako → executable generation.

SSOT: tools/build_llvm.sh
- Standard procedure: build_llvm.sh input.hako -o output_exe
- Prerequisites: llvm-config-18, llvmlite, LLVM features enabled
- Pipeline: .hako → MIR → LLVM IR → .o → executable

New files:
- docs: phase87-selfhost-llvm-exe-line.md (SSOT procedure doc)
  * Full troubleshooting guide (llvm-config, llvmlite, linking)
  * Advanced usage (custom output, debugging, performance notes)
  * Anti-patterns documentation (no duplication/fragmentation)
- fixture: apps/tests/phase87_llvm_exe_min.hako (5 lines, return 42)
- smoke: integration/apps/phase87_llvm_exe_min.sh
  * Exit code verification (stdout-independent testing)
  * SKIP if LLVM unavailable (graceful degradation)
  * Integration profile only (not in quick)
- index: 10-Now.md, 01-JoinIR-Selfhost-INDEX.md (Phase 87 entries)
- task: CURRENT_TASK.md (Phase 74-87 status update)

Integration smoke: demonstrates full pipeline
- Build: .hako → .o → exe (successful )
- Runtime: Ring0 initialization issue (known limitation, out of scope)
Quick profile: unchanged (integration only, per policy)
Policy: No duplicate build paths, SSOT maintained

987/987 tests PASS (production stable)
2025-12-13 22:51:13 +09:00

3.1 KiB
Raw Blame History

Current Task

このファイルは「いま何に集中しているか」と「次にやり得る候補」だけを書く軽量ビューだよ。
詳細は docs/development/current/main/ 以下の各 Phase 文書と、JoinIR の SSOT である
docs/development/current/main/joinir-architecture-overview.md を参照してね。

最終更新: 2025-12-13

過去ログ(肥大化した旧 CURRENT_TASKはここに退避したよ:

  • docs/development/current/main/CURRENT_TASK_ARCHIVE_2025-12-13.md

今の状態Phase 7487 まで到達)

  • Scope/BindingId の段階移行dev-onlyは Pattern2/3/4 まで配線済みdual-path 維持)。
  • Pattern2 の promoted carriersDigitPos/Trimについて ExitLine 契約ConditionOnly を exit PHI から除外)を E2E で固定済み。
  • debug flag SSOT / DebugOutputBox 移行 / error tags 集約 / carrier init builder まで整備済み。
  • LLVM exe line SSOT 確立: tools/build_llvm.sh を使用した .hako → executable パイプライン標準化完了。
  • cargo test --release --lib は PASS を維持(退行なし)。

参照:

  • docs/development/current/main/10-Now.md
  • docs/development/current/main/phase73-scope-manager-design.md
  • docs/development/current/main/phase80-bindingid-p3p4-plan.md
  • docs/development/current/main/phase81-pattern2-exitline-contract.md
  • docs/development/current/main/phase78-85-boxification-feedback.md
  • docs/development/current/main/phase87-selfhost-llvm-exe-line.md

次の指示書(優先順位)

P0: SSOT の軽い追記docs-only

  • docs/development/current/main/10-Now.md の「Scope / BindingId」節に Phase 86 の到達点carrier init / error tagsを 2〜3 行で追記。
  • docs/development/current/main/joinir-architecture-overview.md の関連ドキュメントに Phase 86 の成果物(該当モジュール)を追記。

受け入れ基準:

  • docs-only でコミットできる粒度(コード差分ゼロ)。

P1: JoinIR / Selfhost depth-2 の前進Phase 88 候補)

目的:

  • JsonParserBox の残り複合ループを JoinIR 対応する。
  • または selfhost .hako コンパイラの他部分Lexer/ASTBuilder 等)で JoinIR 適用範囲を拡大する。

やること(設計→実装の順):

  1. 候補ループの抽出JsonParserBox or Lexer/ASTBuilder
  2. Pattern 判定Pattern 1-4 のいずれか、または新 Pattern 提案)
  3. JoinIR lowering 実装 + E2E テスト

受け入れ基準:

  • 代表ケースが 1 コマンドで再現可能CI は増やさない、quick を重くしない)。

P2: Ownership/Relay runtime 対応の再開Phase 88 候補)

目的:

  • multihop/merge relay を “runtime でも” 受理できるところまで契約を伸ばすFail-Fast の段階解除)。

受け入れ基準:

  • dev-only 既定OFF のまま、既存ラインを壊さない。

すぐ走らせる確認コマンド

  • cargo test --release --lib
  • NYASH_JOINIR_NORMALIZED_DEV_RUN=1 cargo test --features normalized_dev --test normalized_joinir_min -- --nocapture