You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixes the Full Public Smokes regression on main where examples/skillsbench-loopx-turn-agent-cli-smoke.py crashed with ValueError: Turn transaction has no typed settlement plan.
Root Cause
Turn plans produced by older LoopX releases (for example plans read from a
scored-workspace image) do not carry transaction.settlement_plan. After the
typed settlement binding landed, turn_driver/settlement._effect_id raised ValueError for those legacy plans, crashing run_loopx_turn_once instead of
returning a typed receipt.
What Changed
loopx/control_plane/turn_driver/settlement.py: execute_turn_driver_settlement now resolves the typed effect id through a
new _settlement_effect_id helper that returns a typed SettlementResult.failed(...) (receipt_missing / invalid_identity,
step validation) instead of raising ValueError.
loopx/control_plane/turn_driver/executor.py: _typed_settlement_stage
upgrades legacy transaction plans by synthesizing settlement_plan from the
plan's own turn_envelope lineage (goal/agent/todo) and host fields, so
legacy and workspace-provided plans can still commit through the typed
closeout.
Tests: added unit coverage for the fail-closed path (plan without settlement_plan returns a typed failure and never invokes callbacks) and an
end-to-end test proving a legacy plan is upgraded and commits exactly once.
The typed fail-closed path remains as defense in depth: if lineage cannot be
reconstructed, the turn now returns validation_failed with a public-safe
reason instead of crashing.
GitHub:pytest SUCCESS、build SUCCESS、dependency-review SUCCESS;mergeable=MERGEABLE;复评前重读远端 head 仍为 ad0522a1a8d1063329e1dda2ec8f3f63946f608a。
我的整体评价
问题定位准确,修复分两层且各有测试兜底:typed fail-closed 是底线,legacy upgrade 是兼容性主线。批准;建议按仓库 merge policy 合入后由 Full Public Smokes 复验指纹。
English Verdict
APPROVE. Head ad0522a1a8d1063329e1dda2ec8f3f63946f608a. The fix resolves the ValueError: Turn transaction has no typed settlement plan regression with two layers: a typed fail-closed _settlement_effect_id that never raises and returns receipt_missing/invalid_identity, and a legacy-plan upgrade in _typed_settlement_stage that synthesizes settlement_plan from the plan's own turn_envelope lineage. 69 focused tests pass (unit fail-closed + E2E upgrade-and-commit), ruff and git diff --check are clean, and GitHub pytest/build/dependency-review are green with the branch mergeable. Author-owned PR; GitHub blocks formal self-review, so this comment records the approval conclusion.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
control-planeQuota, todo, scheduler, registry, state, goal, or runtime control-plane change.triageNeeds maintainer triage or routing.
1 participant
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes the Full Public Smokes regression on main where
examples/skillsbench-loopx-turn-agent-cli-smoke.pycrashed withValueError: Turn transaction has no typed settlement plan.Root Cause
Turn plans produced by older LoopX releases (for example plans read from a
scored-workspace image) do not carry
transaction.settlement_plan. After thetyped settlement binding landed,
turn_driver/settlement._effect_idraisedValueErrorfor those legacy plans, crashingrun_loopx_turn_onceinstead ofreturning a typed receipt.
What Changed
loopx/control_plane/turn_driver/settlement.py:execute_turn_driver_settlementnow resolves the typed effect id through anew
_settlement_effect_idhelper that returns a typedSettlementResult.failed(...)(receipt_missing/invalid_identity,step
validation) instead of raisingValueError.loopx/control_plane/turn_driver/executor.py:_typed_settlement_stageupgrades legacy transaction plans by synthesizing
settlement_planfrom theplan's own
turn_envelopelineage (goal/agent/todo) and host fields, solegacy and workspace-provided plans can still commit through the typed
closeout.
settlement_planreturns a typed failure and never invokes callbacks) and anend-to-end test proving a legacy plan is upgraded and commits exactly once.
Validation
tests/test_loopx_turn_executor.py+tests/test_loopx_turn_driver.py:69 passed.
ruff checkclean on touched modules.git diff --checkclean.Notes
The typed fail-closed path remains as defense in depth: if lineage cannot be
reconstructed, the turn now returns
validation_failedwith a public-safereason instead of crashing.