Repository navigation
Retry parent notices after dispatch status changes - #6243
Merged
Merged
Conversation
3 tasks done
mistakeknot
added a commit
to mistakeknot/aleph
that referenced
this pull request
Oct 27, 2026
Backport five upstream bb fixes (get-bb#6247, get-bb#6255, get-bb#6243, get-bb#6334, get-bb#6358)
2 of 13 tasks
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.
🚨 SLOP COP 🚨 ·
new-issue-autopilotHuman comments
What was wrong
Parent-notice delivery selected a dispatch path before asynchronous command preparation. An active-to-idle transition then returned false without delivery; an idle-to-active transition attempted an illegal lifecycle update and rolled back the notice.
Verified report: https://get-bb.github.io/reports/issues/6241.html
What changed
Revalidate parent state inside both dispatch transactions and retry from the current parent snapshot when it changes. Retries stay under the existing context-clear guard. Archived and deleted parents still decline delivery. The change stays within server thread dispatch; it adds no protocol, schema, dependency, configuration, or stored-data change.
How you verified
9eb0c09254a21482c0cfd935e0a9908049333e93: active-to-idle resolves false; idle-to-active rejects with an illegal lifecycle transition. Repeated in a second clean checkout by the same agent.pnpm exec turbo run test --filter=@bb/server -- test/threads/parent-system-message-dispatch.test.ts: 2 passed.pnpm exec turbo run test --filter=@bb/server -- test/threads/thread-send-dispatch.test.ts test/threads/child-outcome-gaps.test.ts test/threads/system-message-taxonomy-stamping.test.ts test/public/public-thread-context-clear-dispatch.test.ts test/services/threads/child-thread-notifications.test.ts: 70 passed.pnpm exec turbo run typecheck --filter=@bb/server, focused formatting, andgit diff --checkpass.git diff --numstat origin/main: 195 changed text lines (193 additions + 2 deletions), 2 files; no binary changes.Fixes #6241