Skip to content

Retry parent notices after dispatch status changes - #6243

Merged
ymichael merged 1 commit into
mainfrom
slopcop/issue-6241
Oct 26, 2026
Merged

ymichael merged 1 commit into
mainfrom
slopcop/issue-6241

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human 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

  • Two deterministic regression cases pause real command preparation and post actual turn events through the server harness, backed by migrated SQLite.
  • Both fail against unchanged trusted main at 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.
  • Both pass after the fix: exactly one system request, preserved taxonomy, one correctly targeted host command, and no queued residue.
  • 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, and git diff --check pass.
  • git diff --numstat origin/main: 195 changed text lines (193 additions + 2 deletions), 2 files; no binary changes.

Fixes #6241

AGENT GENERATED

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.

A child's completion notice is dropped when the parent's status changes while the notice is being prepared

2 participants