Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion loopx/control_plane/turn_driver/driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ def build_loopx_turn_plan(
if (not selected_todo and identity_error is None
and (settlement_identity is None or (session_scope != "agent"
and not (settlement_identity.request_subject is not None and iteration_context_policy == "fresh")))):
route = LoopXTurnRoute.BLOCKED
# Keep a normal host route with no identity ready long enough for
# _session_plan to return its typed missing-lineage contract error.
# Replan and invalid request-session combinations remain holds.
if route is not LoopXTurnRoute.READY_FOR_HOST or settlement_identity is not None:
route = LoopXTurnRoute.BLOCKED
lineage = _turn_lineage(envelope, selected_todo=selected_todo,
settlement_identity=settlement_identity, projection=projection)
session, session_error = _session_plan(
Expand Down
Loading