Repository navigation
fix(sources): restore the declared EXCLUDED -> ACTIVE cursor transition - #4707
Merged
Merged
Conversation
#4704 stopped revive_replaced_exclusion clearing excluded, which removes the only declared actuator for that transition (cursor_lifecycle invariant 1) and turns two soundness-sweep assertions red. The 6q16u fix it belonged to lives entirely in the watcher, which no longer calls this method at notice time, so the store keeps its original behavior. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Sinity
enabled auto-merge (squash)
September 5, 2026 22:59
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
Restores
CursorStore.revive_replaced_exclusion'sexcluded=Falsewrite,which #4704 removed by accident.
Problem
sources/live/cursor_lifecycle.pydeclares, as its first preventiveinvariant, that
revive_replaced_exclusionis the only actuator permitted tomove a cursor
EXCLUDED -> ACTIVE, and only on a proved file-identity orparser-fingerprint change. #4704 dropped the
excluded=Falsewrite, so thattransition became unreachable and two soundness-sweep assertions in
tests/unit/sources/test_cursor_lifecycle.py— the proved-identity-change andparser-fingerprint-change cases — assert
ACTIVEagainst a store that staysEXCLUDED.The change was collateral: an earlier revert of it in the lane ran after the
commit that introduced it, so it restored the changed file rather than the
original.
Solution
Restore the store method to its pre-#4704 behavior. The polylogue-6q16u fix
this belonged to lives entirely in
LiveWatcher._needs_work_from_state_uncorroborated,which no longer calls this method when it merely notices a path deserves a
fresh attempt; nothing in the live path depends on the store's own behavior
changing too.
Verification
git show origin/master~1:polylogue/sources/live/cursor.pyand this branch'scopy of the method are identical, so the two soundness-sweep cases return to
the state they passed in.
Residual: the host
pytestpueue group is paused, so the focused selection(
tests/unit/sources/test_cursor_lifecycle.py) could not be run locally toconfirm. The restored file is byte-identical to the version those tests passed
against.
🤖 Generated with Claude Code
https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid