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

@ -2,9 +2,6 @@
## Current Focus (next)
- Phase 277 P0/P1docs+validation: `docs/development/current/main/phases/phase-277/README.md`
- PHI型推論の導線/責務/SSOT を docs に固定Phase 275/276 の実装を「読める形」にする)
- PHI順序PHI → non-PHI → terminator検証の fail-fast を強化
- Phase 278cleanup: `docs/development/current/main/phases/phase-278/README.md`
- Phase 277 P2 の後方互換旧PHI env varを撤去して、1セットに収束させる
- Phase 279impl: `docs/development/current/main/phases/phase-279/README.md`
@ -16,6 +13,7 @@
- Phase 275 P0A1/B2/C2 coercion SSOT: `docs/development/current/main/phases/phase-275/README.md`
- Phase 276 P0quick wins / type_helper SSOT: `docs/development/current/main/phases/phase-276/README.md`
- Phase 277 P1PHI strict fail-fast: `docs/development/current/main/phases/phase-277/README.md`
- Phase 277 P2PHI env var 統合): `docs/development/current/main/phases/phase-277/README.md`
---