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)
3.1 KiB
3.1 KiB
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 74–87 まで到達)
- Scope/BindingId の段階移行(dev-only)は Pattern2/3/4 まで配線済み(dual-path 維持)。
- Pattern2 の promoted carriers(DigitPos/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.mddocs/development/current/main/phase73-scope-manager-design.mddocs/development/current/main/phase80-bindingid-p3p4-plan.mddocs/development/current/main/phase81-pattern2-exitline-contract.mddocs/development/current/main/phase78-85-boxification-feedback.mddocs/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 適用範囲を拡大する。
やること(設計→実装の順):
- 候補ループの抽出(JsonParserBox or Lexer/ASTBuilder)
- Pattern 判定(Pattern 1-4 のいずれか、または新 Pattern 提案)
- JoinIR lowering 実装 + E2E テスト
受け入れ基準:
- 代表ケースが 1 コマンドで再現可能(CI は増やさない、quick を重くしない)。
P2: Ownership/Relay runtime 対応の再開(Phase 88 候補)
目的:
- multihop/merge relay を “runtime でも” 受理できるところまで契約を伸ばす(Fail-Fast の段階解除)。
受け入れ基準:
- dev-only 既定OFF のまま、既存ラインを壊さない。
すぐ走らせる確認コマンド
cargo test --release --libNYASH_JOINIR_NORMALIZED_DEV_RUN=1 cargo test --features normalized_dev --test normalized_joinir_min -- --nocapture