Repository navigation
Name the threads the active revision moved in page check - #3382
Merged
Merged
Conversation
The server activates a valid save before anyone checks it, so page check's prediction of the moves (checked.advice) came up empty once the page was served. It now reads the log's reanchor events at the active revision through the reader the first reply on a revision already used (validation.source.moved_threads), and names a moved thread only while it still stands where the move put it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
leaf-agent
approved these changes
Oct 20, 2026
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.
page checkpredicted the threads a revision would move only for a source the server had not yet activated. The server activates a valid save as soon as it is written, so on a served page the prediction was usually empty, thoughthreads.mdtells the agentpage checklists those threads.page checknow names the threads the active revision moved, read from the log'sreanchorevents, through the reader the first reply on a revision already used since #3372 (validation.source.moved_threads). The two differ only in where the window starts: the active revision forpage check, the agent's last reply for the reply. The reader names a thread only while it still stands where the move put it. A reply that has since placed the thread, resolving it, or the user taking back the reaction that opened it leaves the move out. A move the unactivated source would make still comes from the prediction and takes that thread's place.page checknow lists moves before the source's drift, as the reply does.test_a_reply_names_the_threads_a_save_already_movednow checkspage checkafter a save, and again after a reply re-anchors one of the threads.test_page_check_names_no_move_of_a_withdrawn_reactioncovers a thread whose opening reaction was taken back, which a review probe crashed with aKeyErrorbefore the fix.