feat: return completed handoffs to Agent Chat (#14408)

Return completed Agent Chat handoffs through a durable outbox and scope each generated update to its supplied tasks. Add recovery, browser delivery, result access, and calibrated quality coverage.

Validated with two consecutive ten-case Claude/Codex campaigns, all CI checks, and a 5/5 review.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-09-29 10:25:52 -05:00
1 parent 3b4b270650
commit 83076d7e7c
59 files changed
+2696 -83

No files matched your search

@@ -167,6 +167,9 @@ export interface WakeQueueTransaction {
commentIds: string[];
}): Promise<boolean>;
reopenIssue(input: { companyId: string; issueId: string; runId: string }): Promise<IssueSnapshot | null>;
/** Verifies a Done onboarding parent's completion wake against its own completed children. */
isCompletedOnboardingHandoffWake(input: { companyId: string; issueId: string; agentId: string;
reason: string | null; contextSnapshot: Record<string, unknown> }): Promise<boolean>;
/**
* Atomically claims the wake for promotion, guarded on its current
* `deferred_issue_execution` status. Call this before any other write in