-
Notifications
You must be signed in to change notification settings - Fork 1.3k
fix(devin): carry reasoning signatures across turns (carry #6116) #6184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
48a713e
fix(devin): carry reasoning signatures across turns
wtfsayo 987d3c0
fix(devin): never replay a Claude signature, and pin the signature-on…
wtfsayo 7dc8087
docs(structure): note the withheld Anthropic signature in Devin replay
wtfsayo 122d987
fix(devin): replay Claude signatures and retry a refused turn without…
wtfsayo bd59ea5
fix(devin): retry a refused Claude turn even after it streamed reasoning
wtfsayo eeaafa1
docs(structure): the Claude signature retry ignores reasoning-only ou…
wtfsayo 661019b
fix(devin): hold the signed attempt's reasoning until its outcome is …
wtfsayo 3e2c847
fix(devin): heartbeat while signed reasoning is held, and keep the re…
wtfsayo 601af66
fix(devin): report the refused attempt's usage before the retry starts
wtfsayo 6560ca2
fix(devin): pair late signatures only with adjacent reasoning
lidge-jun df4a310
fix(devin): heartbeat while signed reasoning waits for trailer
lidge-jun 73e7c72
fix(devin): bound held signed reasoning before streaming
lidge-jun 9043ef4
test(devin): retry signed refusal before history overflow classification
lidge-jun acab73c
docs(devin): explain reasoning continuity and fallback bounds
lidge-jun 279eaf7
fix(devin): include held signatures in payload bound
lidge-jun bb9cab7
docs(devin): keep adapter inventory table intact
lidge-jun 0740ff7
fix(devin): stop held heartbeat before release on error
lidge-jun 82ffab3
docs(structure): carry the model and wire rules into the restacked De…
lidge-jun ff3a613
fix(devin): preserve signed refusal when retry budget is exhausted
lidge-jun c77a708
fix(devin): merge all held signature-attempt usage frames
lidge-jun File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 10014
🏁 Script executed:
Repository: lidge-jun/opencodex
Length of output: 13912
Do not count flushed reasoning as produced output for history-overflow classification.
When the held-event or payload cap flushes reasoning, the signed attempt becomes ineligible for the unsigned retry. If that attempt then returns
invalid_argument, the consumer setsproducedOutputtotruefor the flushed reasoning.isDevinHistoryOverflowthen skipscontext_length_exceeded, so Codex does not compact the history.Keep
producedOutputaligned with the retry gate. Count visible text and tool events, but not reasoning. Includetool_call_args, which the retry gate also treats as visible output.Suggested fix
Add a regression test that combines cap-flushed reasoning, a catalog window near the overflow threshold, and a signed
invalid_argument, then expectscode: "context_length_exceeded".🤖 Prompt for AI Agents