feat(llvm/phi): Phase 277 P1.5 - structured error handling + import organization

## Changes
- P1.5.1: import整理 - debug_helper imports をモジュールトップへ移動
- P1.5.2: PhiStrictError 箱化 - エラーハンドリング構造化 (error_helpers.py新規)
- P1.5.3: wiring.py で PhiStrictError を使用 - 3箇所のエラーパターン統一

## Benefits
-  エラーメッセージ生成の一元化(SSOT化)
-  Python import 慣習準拠(関数内import削除)
-  エラーコンテキスト構造化(block_id/dst_vid/next_file)

## Testing
 strict=OFF - passes without errors
 strict=ON - passes without errors
 debug mode - verification connected and running

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-22 14:59:24 +09:00
parent 757193891f
commit 939efbca9b
5 changed files with 157 additions and 35 deletions

View File

@ -29,7 +29,7 @@ Phase 275/276で完了したFloat型PHI対応・型取得SSOT化の後続改善
- 指示書Claude Code:
- `docs/development/current/main/phases/phase-277/P0-INSTRUCTIONS.md`
### Phase 277 P1: PHI順序検証強化予定)
### Phase 277 P1: PHI順序検証強化fail-fast
- 目的: PHI命令の配置順序検証を強化
- 内容:
@ -40,6 +40,8 @@ Phase 275/276で完了したFloat型PHI対応・型取得SSOT化の後続改善
- `docs/development/current/main/phases/phase-277/P1-VALIDATION.md`
- 指示書Claude Code:
- `docs/development/current/main/phases/phase-277/P1-INSTRUCTIONS.md`
- 完了報告:
- `docs/development/current/main/phases/phase-277/P1-COMPLETION.md`
### Phase 277 P2: PHI関連環境変数の統合・整理 ✅
@ -91,9 +93,12 @@ NYASH_LLVM_PHI_STRICT=1
```
phase-277/
├── README.md # 本ファイルPhase 277概要
├── P0-INSTRUCTIONS.md # P0指示書Claude Code
├── P2-COMPLETION.md # P2完了報告
├── P0-DESIGN.md # P0設計ドキュメントdocs
── P1-VALIDATION.md # P1検証強化ドキュメントvalidation
── P1-INSTRUCTIONS.md # P1指示書Claude Code
├── P1-VALIDATION.md # P1検証強化ドキュメントvalidation
└── P1-COMPLETION.md # P1完了報告
```
---