Skip to content

Route durable continuation through conversation execution #877

Closed

Description

@dcramer

Objective

Route every durable continuation through conversation execution rather than a Slack-specific continuation lifecycle or destination-specific callback path.

This follows #876: the shared turn runtime exists first, then queue callbacks, timeout/yield recovery, and completion adapters converge on it.

Scope

  • Make the conversation work queue the durable wake-up path for suspended asynchronous turns.
  • Replace Slack-owned continuation orchestration with a thin adapter over the shared runtime.
  • Resolve the completion adapter from durable conversation/work context rather than assuming Slack delivery from the continuation endpoint.
  • Keep queue payloads as wake-up hints; mailbox, lease, conversation events, and session records remain authoritative.
  • Preserve expected-version fencing, stale-callback rejection, lease recovery, and missing-wake repair.
  • Keep platform reply delivery separate from internal terminal-result delivery.

Completion

  • Root provider conversations can resume timeout, yield, authorization, and retry continuations through the normal conversation work callback.
  • A resumed run restores its durable model profile, reasoning level, actor, authority context, artifacts, sandbox, and agent history.
  • Queue redelivery and stale continuation callbacks are idempotent.
  • Worker loss after a safe checkpoint can be recovered without repeating committed agent work.
  • Slack delivery and authorization behavior remain compatible.
  • The continuation endpoint contains no independent Slack run lifecycle.
  • Integration tests cover queue redelivery, missing wake-up repair, stale callbacks, and terminal delivery fencing.

Non-goals

Activity

  1. changed the title [-]Make agent continuation and final delivery conversation-neutral[/-] [+]Route durable continuation through conversation execution[/+] on Jul 22, 2026
  2. dcramer commented on Jul 23, 2026

    @dcramer
    MemberAuthor

    Folded into #876 after tracing the current implementation. Continuation is not a separate architectural layer: #876 now covers the full leased worker decision loop for both new mailbox input and active-turn resume, including restoration, outcome handling, terminalization, recovery, and Slack compatibility.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions