refactor(goal): sustain one ReAct run until the goal closes (#6538)
* refactor(goal): sustain one ReAct run until the goal closes Keep active goals in the same runner beyond the ordinary iteration limit, with a final answer after successful closure. Remove cross-turn goal handoffs, continuation allowances and rollback bookkeeping while preserving input authorization, recovery, cancellation and terminal lifecycle ownership. Contributes to NAN-392 Co-authored-by: chengyongru <chengyongru.ai@gmail.com> * test(goal): consolidate sustained-run regression coverage Retain lifecycle, history, usage, provider-state privacy and checkpoint cancellation assertions in the existing long-run scenarios. Remove duplicate smoke cases and parameter combinations that do not exercise distinct behavior; keep real Gateway, authorization and generation regressions.
This commit is contained in:
1 parent
3545539128
commit
62c2ed4e7e
68 files changed
+2683
-1421
No files matched your search
@@ -101,7 +101,7 @@ async def test_hydration_events_restore_goal_and_running_turn(
|
||||
)
|
||||
|
||||
|
||||
async def test_hydration_events_are_quiet_without_actionable_state(
|
||||
async def test_hydration_clears_stale_goal_without_an_active_goal(
|
||||
monkeypatch: pytest.MonkeyPatch,
|
||||
) -> None:
|
||||
sessions = MagicMock()
|
||||
@@ -115,7 +115,7 @@ async def test_hydration_events_are_quiet_without_actionable_state(
|
||||
assert await WebUISessionProjection(sessions).hydration_events(
|
||||
"websocket:chat-1",
|
||||
"chat-1",
|
||||
) == ()
|
||||
) == ({"event": "goal_state", "chat_id": "chat-1", "goal_state": {"active": False}},)
|
||||
|
||||
|
||||
async def test_hydration_yields_during_metadata_read_and_reads_live_turn_on_loop(
|
||||
@@ -157,4 +157,5 @@ async def test_hydration_yields_during_metadata_read_and_reads_live_turn_on_loop
|
||||
finally:
|
||||
release.set()
|
||||
events = await task
|
||||
assert events[0]["status"] == "running"
|
||||
assert events[0]["goal_state"] == {"active": False}
|
||||
assert events[1]["status"] == "running"
|
||||
Reference in new issue
Block a user