2025-12-04 14:19:48 +09:00
|
|
|
|
# Current Task
|
|
|
|
|
|
|
2025-12-10 01:40:18 +09:00
|
|
|
|
このファイルは「いま何に集中しているか」と「次にやり得る候補」だけを書く軽量ビューだよ。
|
2025-12-13 22:21:04 +09:00
|
|
|
|
詳細は `docs/development/current/main/` 以下の各 Phase 文書と、JoinIR の SSOT である
|
|
|
|
|
|
`docs/development/current/main/joinir-architecture-overview.md` を参照してね。
|
2025-12-04 10:52:10 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
最終更新: 2025-12-14
|
2025-12-11 13:13:08 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
過去ログ(肥大化した旧 CURRENT_TASK)はここに退避したよ:
|
|
|
|
|
|
- `docs/development/current/main/CURRENT_TASK_ARCHIVE_2025-12-13.md`
|
2025-12-04 12:06:34 +09:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
2025-12-14 00:59:58 +09:00
|
|
|
|
## 今の状態(Phase 74–89 まで到達)
|
2025-12-10 01:40:18 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
- 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 まで整備済み。
|
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
|
|
|
|
- **LLVM exe line SSOT 確立**: `tools/build_llvm.sh` を使用した .hako → executable パイプライン標準化完了。
|
2025-12-14 02:31:39 +09:00
|
|
|
|
- **Phase 88 完了**: continue + 可変ステップ(i=i+const 差分)を dev-only fixture で固定、StepCalculator Box 抽出。
|
|
|
|
|
|
- **Phase 89 完了**: P0(ContinueReturn detector)+ P1(lowering 実装)完了。
|
|
|
|
|
|
- `cargo test --release --lib` は PASS を維持(993 passed、退行なし)。
|
2025-12-04 12:06:34 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
参照:
|
|
|
|
|
|
- `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`
|
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
|
|
|
|
- `docs/development/current/main/phase87-selfhost-llvm-exe-line.md`
|
2025-12-12 04:19:06 +09:00
|
|
|
|
|
2025-12-04 12:06:34 +09:00
|
|
|
|
---
|
2025-12-05 16:00:31 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
## 次の指示書(優先順位)
|
2025-12-05 16:00:31 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
### P0: Phase 90 - _parse_string 合成 fixture
|
2025-12-14 00:59:58 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
**目的**: continue(escape) + return(close quote) の合成パターンを dev-only fixture で固定
|
2025-12-14 00:59:58 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
**実装順序**(最短・事故減):
|
|
|
|
|
|
1. 合成 fixture 設計(制御構造のみ、文字列処理なし)
|
|
|
|
|
|
- continue(escape) + return(close quote) + str += ... + p += 1/2
|
|
|
|
|
|
- 期待値が一意(例: n=10 で return 前に acc=4)
|
|
|
|
|
|
2. ShapeGuard 追加(誤爆防止)
|
|
|
|
|
|
- PatternParseStringCompositeMinimal (dev shape)
|
|
|
|
|
|
- P4/ContinueReturn と区別する条件
|
|
|
|
|
|
3. lowering 実装(新しい箱)
|
|
|
|
|
|
- parse_string_composite_pattern.rs(例)
|
|
|
|
|
|
- Fail-Fast: 対応形以外は即エラー
|
|
|
|
|
|
4. normalized_dev テスト(2本)
|
|
|
|
|
|
- structured vs canonical 一致
|
|
|
|
|
|
- 期待値一致
|
2025-12-14 00:59:58 +09:00
|
|
|
|
|
|
|
|
|
|
**受け入れ基準**:
|
|
|
|
|
|
- `NYASH_JOINIR_NORMALIZED_DEV_RUN=1 cargo test --features normalized_dev --test normalized_joinir_min` PASS
|
|
|
|
|
|
- `cargo test --release --lib` PASS(退行なし)
|
|
|
|
|
|
- dev-only のみ(canonical には入れない)
|
|
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
### P1: JoinIR / Selfhost depth-2 の前進(Phase 91 候補)
|
2025-12-13 06:14:00 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
目的:
|
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
|
|
|
|
- JsonParserBox の残り複合ループを JoinIR 対応する。
|
|
|
|
|
|
- または selfhost .hako コンパイラの他部分(Lexer/ASTBuilder 等)で JoinIR 適用範囲を拡大する。
|
2025-12-13 06:14:00 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
やること(設計→実装の順):
|
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
|
|
|
|
1. 候補ループの抽出(JsonParserBox or Lexer/ASTBuilder)
|
|
|
|
|
|
2. Pattern 判定(Pattern 1-4 のいずれか、または新 Pattern 提案)
|
|
|
|
|
|
3. JoinIR lowering 実装 + E2E テスト
|
2025-12-13 03:48:25 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
受け入れ基準:
|
|
|
|
|
|
- 代表ケースが 1 コマンドで再現可能(CI は増やさない、quick を重くしない)。
|
2025-12-13 16:20:33 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
### P2: Ownership/Relay runtime 対応の再開(Phase 92 候補)
|
2025-12-13 16:20:33 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
目的:
|
|
|
|
|
|
- multihop/merge relay を “runtime でも” 受理できるところまで契約を伸ばす(Fail-Fast の段階解除)。
|
2025-12-13 03:48:25 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
受け入れ基準:
|
|
|
|
|
|
- dev-only 既定OFF のまま、既存ラインを壊さない。
|
2025-12-05 16:00:31 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
### Done: Phase 88-89 完了
|
|
|
|
|
|
|
|
|
|
|
|
**Phase 88**:
|
|
|
|
|
|
- continue + 可変ステップ(i=i+const 差分)を dev-only fixture で固定
|
|
|
|
|
|
- StepCalculator Box 抽出(+6 unit tests、再利用可能)
|
|
|
|
|
|
- エラーメッセージ詳細化、Fail-Fast 仕様固定
|
|
|
|
|
|
|
|
|
|
|
|
**Phase 89 P0**:
|
|
|
|
|
|
- Pattern4 detector 締め(Select 必須 + conditional Jump exactly 1)
|
|
|
|
|
|
- LoopPattern::ContinueReturn enum + shape 追加
|
|
|
|
|
|
- canonical には入れない(dev-only、誤爆防止)
|
|
|
|
|
|
|
|
|
|
|
|
**Phase 89 P1**:
|
|
|
|
|
|
- continue_return_pattern.rs 実装(457行、StepCalculator 再利用)
|
|
|
|
|
|
- normalized_dev tests +2(vm_bridge + 期待値)
|
2025-12-14 00:05:16 +09:00
|
|
|
|
|
2025-12-14 02:31:39 +09:00
|
|
|
|
**Impact**: 993 lib tests + 61 normalized_dev tests 全パス、箱化スコア 10/10
|
2025-12-14 00:05:16 +09:00
|
|
|
|
|
2025-12-05 16:00:31 +09:00
|
|
|
|
---
|
2025-12-07 21:43:08 +09:00
|
|
|
|
|
2025-12-13 22:21:04 +09:00
|
|
|
|
## すぐ走らせる確認コマンド
|
|
|
|
|
|
|
|
|
|
|
|
- `cargo test --release --lib`
|
|
|
|
|
|
- `NYASH_JOINIR_NORMALIZED_DEV_RUN=1 cargo test --features normalized_dev --test normalized_joinir_min -- --nocapture`
|