Repository navigation
Conversation
…l node The initial node copied every input field other than `input` and `front_matter` into its update. The graph had already written them when it was invoked, so a field with a reducer ran it twice: an appending one came out doubled. A caller seeding an author with the edit ids it had already applied got each id twice. The node now returns only the opening messages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The initial node copied every input field other than
inputandfront_matterinto its state update. The graph had already written those fields to state when it was invoked. So any field with a reducer ran that reducer twice, and an appending reducer doubled its value.In AutoProver, a CVLR author resumed from its last draft is seeded with the edit ids it had already applied (
version_history, whose reducer appends). Each id came out twice, and so did each edit in the run's report.The node now returns only the opening messages. Input fields still reach the state, because the graph writes them on invocation.
Tests:
tests/test_initial_node.pyruns the realinitial_nodein aStateGraph. The reducer test fails before this change and passes after it.-m "not expensive", passes against this branch.Getting it into AutoProver: AutoProver pins graphcore at f4221b6, which is on
eric/summary-nonempty. It will pick this fix up at its next re-pin.🤖 Generated with Claude Code