- AdvancePhaseTool calls engine.advance_phase(), returns new phase or error - ReActEngine.__init__ accepts phase_policy param (None = no enforcement, backward compat) - _current_phase + _steps_in_phase fields track state machine - advance_phase() transitions PLANNING → BUILDING → VERIFICATION → DELIVERY - _check_phase_permission() returns structured error dict if tool blocked - _execute_tool checks phase before dispatch (advance_phase name bypasses) - Auto-advance safety net via _maybe_auto_advance() + auto_advance_after_steps - Phase reset in reset() method - 27 unit tests covering characterization, permission, transitions, auto-advance, tool integration |
||
|---|---|---|
| .. | ||
| documents | ||
| e2e | ||
| integration | ||
| routes | ||
| tools | ||
| unit | ||
| __init__.py | ||
| conftest.py | ||
| test_routing_chain.py | ||