Skip to content

test(listen): cover durable finalization recovery through Cloud Tasks #9985

Closed

Description

@Git-on-my-level

Problem

The existing listen → pusher stack proves inline finalization and pusher replay, but it does not execute the platform-key durable handoff through a Cloud Tasks-shaped boundary and the protected finalization worker.

Acceptance criteria

  • Start from the real /v4/listen recording path with Firestore emulator, isolated Redis, real pusher/router, and local Parakeet protocol stub.
  • Preserve production task construction and validate an opaque {job_id, dispatch_generation} payload, loopback handler URL, OIDC audience/service account, and dispatch deadline.
  • Deliver the captured task to the real protected finalization route with retry-count headers; replace only task OIDC crypto and provider-side finalizer leaves.
  • Cover early-shutdown pending-finalization recovery, retry-to-completion, terminal dead-lettering/fencing, and post-processing fanout retry without reprocessing.
  • Keep evidence sanitized and no cloud credentials or non-loopback providers reachable.

Related to #9809 and #9440; this coverage issue does not claim to resolve either broader incident/program.

Activity

  1. added a commit that references this issue on Jul 19, 2026
    7157d8e
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions