|
|
996925ebaf
|
fix(joinir): Phase 196 Select double-remap bug in instruction_rewriter
Root cause: PHI inputs were being remapped twice in instruction_rewriter.rs
- Line 304: remap_instruction() already remapped JoinIR → Host ValueIds
- Line 328: remap_value() attempted to remap again → undefined ValueIds
Fix: Only remap block IDs, use already-remapped ValueIds as-is
Test results:
- phase195_sum_count.hako → 93 ✅ (multi-carrier P3)
- loop_if_phi.hako → sum=9 ✅ (single-carrier P3)
- loop_min_while.hako → 0,1,2 ✅ (Pattern 1)
- joinir_min_loop.hako → RC:0 ✅ (Pattern 2)
- No [joinir/freeze], no regressions
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
2025-12-09 14:45:04 +09:00 |
|
|
|
3ca84e8d59
|
docs: Phase 194 JsonParser P1/P2/P5 deployment plan
Phase 194 instruction document for production deployment:
- Goal: Validate Phase 170-193 infrastructure with real code (JsonParser)
- Scope: "What we can do now" only (no new Patterns)
Task breakdown:
- 194-1: Loop inventory (4 target loops, 4 deferred loops)
- ✅ Target: _skip_whitespace, _trim_*, _parse_string_simple
- ⚠️ Deferred: digits.indexOf, complex carriers, multiple MethodCalls
- 194-2: Routing whitelist expansion (function-name based)
- 194-3: E2E execution with NYASH_JOINIR_CORE=1
- Trace verification ([joinir/freeze] should not appear)
- 194-4: hako_check/selfhost connection (optional, if time permits)
- 194-5: Documentation updates (inventory + CURRENT_TASK.md)
Design principles:
1. Focus on "what works now" - P1/P2/P5 only
2. Fail-Fast strategy - deferred loops explicitly documented
3. Incremental expansion - whitelist-based gradual rollout
4. Box theory validation - quality check of existing infrastructure
Success criteria:
- 4/8 JsonParser loops running on JoinIR route
- No regressions in phase190-193 tests
- Clear inventory of deferred loops with reasons
Next phases:
- Phase 195: Pattern 3 expansion (if-in-loop)
- Phase 200+: ConditionEnv expansion (digits table support)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
2025-12-09 06:08:27 +09:00 |
|