Merge dev to main#1359
Merged
Merged
Conversation
The visibility-poll added in commit fad4dda throws "Linear description visibility timed out for issue X after 1000ms" whenever Linear's read replica is slower than 1s — which is routine under load. Three planning runs failed back-to-back on prod (2026-05-12) on this signal: MNG-741 run 44c1bc3f 11m "no PM write recorded" (visibility throw propagated up; CLI exited; sidecar never written; gate failed) MNG-736 run 98ae7010 13m same MNG-739 run 1534ab74 16m same The 1s wait was always advisory — it only guarded against in-process consecutive `updateDescription` calls reading a stale GET between PUTs. The new contract removes the wait entirely and adds an in-process recent-description cache (60s TTL, keyed on issueId). After each successful PUT, the cache stores the new description. The next `updateDescription` call consults the cache before mutating — if GET returned a stale pre-PUT value (Linear's eventual-consistency window), the cached fresh value wins. This gives the same in-process read-after-write guarantee the wait was supposed to provide, without throwing on slow Linear days. The wait never solved cross-process consistency (the existing withDescriptionMutationLock is process-local too); the cache doesn't either, but that scope was never claimed. TDD test pins the worst case: Linear GET continues to return the stale pre-PUT description forever; createChecklist + addChecklistItem must still produce a correct PUT containing the appended item via the cache. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Cascade Bot <bot@cascade.dev>
…tion-visibility-advisory fix(linear): replace visibility-poll with in-process cache (MNG-741)
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
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.
Routine dev → main promotion.
Commits
🤖 Generated with Claude Code