Repository navigation
fix(rollout): resend the task in chat refinement turns - #452
Open
Yiming Niu (neumyor) wants to merge 1 commit into
Open
Yiming Niu (neumyor) wants to merge 1 commit into
Yiming Niu (neumyor) wants to merge 1 commit into
Conversation
chat_target keeps no conversation history. With max_turns > 1, the SearchQA and LiveMathematicianBench chat rollouts sent later turns with only the previous answer, so the model was asked to review it against a question, context or choices it could no longer see. The Codex path already resent the task. Later chat turns now start with the task (without the diagnostic readout, which stays on the first turn as on the Codex path), followed by the previous attempt and the existing instruction.
Yiming Niu (neumyor)
force-pushed
the
fix/refinement-turn-context
branch
from
November 23, 2026 11:34
e5f9c6e to
314f790
Compare
Contributor
|
Yiming Niu (@neumyor) please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
chat_targetkeeps no conversation history. Withmax_turns > 1, the SearchQA and LiveMathematicianBench chat rollouts sent later turns with only the previous answer, so the model was asked to review it against a question, context or choices it could no longer see. The Codex path already resent the task.Changes
skillopt/envs/searchqa/rollout.py: later chat turns start with_build_user(question, context), then## Previous Attemptwith the previous answer and the existing instruction.skillopt/envs/livemathematicianbench/rollout.py: the same, with the question, choices and the configured theorem/sketch.max_turns: 1makes one call, as before.CHANGELOG.md: entry under Fixed.Tests
tests/test_rollout_refinement_turn_context.py: with a recordingchat_target, the SearchQA second turn contains the question, the context and the previous answer but not the diagnostic readout; a single-turn run makes one call; the LiveMathematicianBench retry contains the question and the choices.The new tests fail on main (2 of 3) and pass with the fix. Full suite on macOS, Python 3.11: 2430 passed, 3 failed, 11 skipped, 4 xfailed. The 3 failures also fail on main on this machine and are unrelated:
test_backend_pi.py::test_default_model_from_envfindspion PATH, and twotest_sleep_adopt_skill_subset.pytests hit the macOS/tmpsymlink.ruff checkpasses on the changed lines (the unusedget_target_backendimport in the LiveMathematicianBench rollout was already on main and is left as is).Fixes #450