Skip to content

A message waiting for a future send-at reaches an active thread before its clock #4607

Open

Description

@CameronCrow

On BB 0.40.0 with the Codex provider, a message queued to the same active thread with a future send-at entered the ongoing turn before that time. Its future queue entry was then absent. The delivery did not expose whether an automatic drain or an external promotion released it early.

The queue had been read back and verified: sendAt was 2026-10-01T05:26:33Z, waitingOn.kind was time, groupWithNext was false, and failureReason was null. At 05:01:33Z, both the UTC clock tool and the host clock agreed; the matching scheduled prompt had already arrived, and a subsequent queue list was empty. The agent issued no send-now or send-all command. I cannot rule out an external promotion from the available delivery metadata.

Reproduction shape:

  1. Keep a Codex thread active.
  2. Use bb thread tell THREAD MARKER --mode steer --send-at FUTURE_UTC --json.
  3. Read the queue and verify the future sendAt/time wait, then continue handling ordinary incoming notices.
  4. Check whether MARKER enters the turn before FUTURE_UTC and whether its queue entry remains.

Expected: normal activity retains the time wait. If a user deliberately promotes a message, delivery should retain its queued id, original due time and promotion reason so the receiver can distinguish that override. Please cover active-turn draining, incoming child notices, and explicit promotion separately in a regression. A verified queue snapshot alone currently does not establish a durable future wake.

Activity

  1. added theissue type on Oct 1, 2026
  2. added
    threads
    partial-repro
    on Oct 1, 2026
  3. bb-slop-cop commented on Oct 1, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority: Medium · Effort: Medium · Area: threads.
    • Report: https://get-bb.github.io/reports/issues/4607.html
    • Verdict: PARTIALLY REPRODUCED · Confidence: high for the promotion-provenance gap · Label: partial-repro.
    • Root cause: Explicit promotion consumes the scheduled row without preserving its queue id, original deadline, or override reason in the durable outbound request. Automatic wakes and child notices retain the future wait in both trusted checkouts; automatic early delivery remains unverified.
    • Verification: The timing control and 31 existing queue tests pass; the focused provenance assertion fails on unchanged main in both checkouts.
    • No PR: Repairing the confirmed provenance gap requires a public schema change, outside this rule's simple-fix scope.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    partial-reprothreads

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions