Repository navigation
fix(roadmap): brain sync rewrites stale near lists of unchanged neighbours - #7629
Merged
Merged
Conversation
dan-petty
marked this pull request as ready for review
November 28, 2026 20:08
dan-petty-release Bot
added a commit
that referenced
this pull request
Nov 28, 2026
🤖 I have created a release *beep* *boop* --- ## [0.240.1](v0.240.0...v0.240.1) (2026-11-28) ### Bug Fixes * **docs:** fix stale statements found by the content census ([#7632](#7632)) ([7eed4ac](7eed4ac)) * **infra:** render infra.repos in ConfigMap and drift exit ([#7631](#7631)) ([24d2193](24d2193)) * **k8s:** delete late-bound move volume by claim UID ([#7633](#7633)) ([abeebd8](abeebd8)) * **roadmap:** brain sync rewrites stale near lists of unchanged neighbours ([#7629](#7629)) ([ac36afe](ac36afe)) ### Performance Improvements * **tests:** keep 4 heaviest invariant files under 15 s ([#7630](#7630)) ([724426f](724426f)), closes [#4890](#4890) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.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.
Rewrites stale
nearlists on unchanged items insrc/devops_cli/roadmap/brain_sync.pywhenever a changed item's tool or check timestamp changes soread_digeststays consistent with stored tools.Closes #7506
Summary
BrainIndexbefore overwriting so_copy_unitlearns its previoustool_id.nearlist differs fromchecks.related(...).written_neighbours,repaired_tools, andskip_numbers) so each affected item is written at most once per round._changed_batchbound on changed issues with check entries rather than neighbour writes, leaving the watermark behind any incomplete unit if Valkey fails.tests/roadmap/test_brain_sync.pycovering old/new tool near lists, check-time ordering,read_digestconsistency, deduplicated writes, issue-count limits, and store failure recovery.Verification
uv run devops ci test tests/roadmap/test_brain_sync.py tests/roadmap/test_brain_digest.py tests/roadmap/test_brain_index.py(57 passed)uv run devops ci fail-to-pass --base origin/main(5 new tests fail onorigin/mainand pass on head)uv run devops ci --check --no-cache --skip test,outdated(27/27 checks passed)Change:
openspec/changes/archive/2026-11-28-7506-brain-sync-stale-near-lists/