Skip to content

Name the threads the active revision moved in page check - #3382

Merged
max-sixty merged 3 commits into
mainfrom
agent-a5a9443e10d192b44
Oct 20, 2026
Merged

max-sixty merged 3 commits into
mainfrom
agent-a5a9443e10d192b44

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

page check predicted 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, though threads.md tells the agent page check lists those threads.

page check now names the threads the active revision moved, read from the log's reanchor events, 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 for page 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 check now lists moves before the source's drift, as the reply does.

test_a_reply_names_the_threads_a_save_already_moved now checks page check after a save, and again after a reply re-anchors one of the threads. test_page_check_names_no_move_of_a_withdrawn_reaction covers a thread whose opening reaction was taken back, which a review probe crashed with a KeyError before the fix.

This was written by Claude Code on behalf of max-sixty

max-sixty and others added 3 commits October 20, 2026 15:19
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]>
@max-sixty
max-sixty merged commit b7ae2d9 into main Oct 20, 2026
3 checks passed
@max-sixty
max-sixty deleted the agent-a5a9443e10d192b44 branch October 20, 2026 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants