Skip to content

[DOCS] Document HTTP push notification delivery in the TypeScript ADK #83

Closed

Description

@claude

Summary

The TypeScript ADK (@inference-gateway/adk) now ships HTTPPushNotificationSender, the delivery primitive that POSTs TaskUpdateNotification JSON payloads to webhooks configured via MessageSendConfiguration.pushNotificationConfig (inference-gateway/typescript-adk#38, merged in inference-gateway/typescript-adk#93). Documentation should cover the wire payload, the sender's retry/auth/concurrency contract, and how it mirrors the Go ADK's push sender.

Behavior shipped:

  • New HTTPPushNotificationSender class in @inference-gateway/adk (re-exported from the server barrel).
  • sendTaskUpdate(config, task) posts one delivery with exponential-backoff retry. Defaults: 3 attempts, 500 ms base, 30 s max. Retries 5xx, 429, network errors, and per-attempt timeouts. 4xx and caller aborts are non-retryable.
  • deliverTaskUpdate(configs, task, { concurrency }) is the fan-out helper. Never throws, logs failures via the structured logger, caps in-flight POSTs (default 8), and returns a per-config DeliveryResult array.
  • Wire payload: { type: 'task_update', taskId, state, timestamp, task }.
  • Auth header derived from config.token (bearer) or config.authentication.schemes (bearer or basic).
  • Per-attempt timeout via AbortSignal.timeout, composed with the caller-supplied AbortSignal using AbortSignal.any.
  • Uses globalThis.fetch (undici on Node 22+); a PushNotificationFetchLike alias is exported for test injection.
  • Exported tunables: DEFAULT_PUSH_NOTIFICATION_TIMEOUT_MS, DEFAULT_PUSH_NOTIFICATION_CONCURRENCY, DEFAULT_PUSH_NOTIFICATION_RETRY_CONFIG.

Reference implementations:

Acceptance Criteria

  • Document the TaskUpdateNotification wire payload (type, taskId, state, timestamp, task) and that POSTs are emitted on every task state transition.
  • Document HTTPPushNotificationSender usage: sendTaskUpdate for one-shot delivery and deliverTaskUpdate for fan-out, including the default concurrency cap and the "never throws, logs and returns results" contract for the fan-out helper.
  • Document the retry policy (default 3 attempts, exponential backoff with 500 ms base and 30 s cap, retryable vs non-retryable status classes) and how to override it via PushNotificationRetryConfig.
  • Document the auth header resolution order (config.token first, then config.authentication.schemes bearer or basic) and what happens when neither is provided.
  • Document how a client configures push notifications per task via MessageSendConfiguration.pushNotificationConfig on the initial message/send, with a minimal request/response example.
  • Note that the sender is the delivery primitive only; wiring it into the task-state-transition pipeline (subscribing to TaskEventBus TASK_STATUS_CHANGED and calling deliverTaskUpdate) is a follow-up integration step and not done automatically yet.
  • Cross-link from the TypeScript ADK docs section back to the Go ADK equivalent (server/push_notification_sender.go).

Activity

  1. edenreich commented on May 28, 2026

    @edenreich
    Contributor

    @claude Can you document it? use /maintainer

  2. claude commented on May 28, 2026

    @claude
    ContributorAuthor

    Claude finished @edenreich's task in 7m 15s —— View job • claude/issue-83-20260528-1707 • Create PR ➔


    Documenting HTTP Push Notification Delivery in the TypeScript ADK

    Done. Pushed c568e6f to claude/issue-83-20260528-1707.

    Todo

    • Load /maintainer skill and gather repo context
    • Explore existing TypeScript ADK docs structure
    • Cross-check source in inference-gateway/typescript-adk (HTTPPushNotificationSender, sendTaskUpdate / deliverTaskUpdate, exported tunables, PushNotificationFetchLike alias re-exported from server barrel, auth resolution order, retry classes, wire payload, PushNotificationSendError)
    • Draft documentation covering all acceptance criteria
    • Add a new "Push notifications" section into typescript-adk.md (### Wire payload, ### Outbound request shape, ### Constructor, ### sendTaskUpdate, ### deliverTaskUpdate, ### Retry policy, ### Auth header resolution, ### PushNotificationSendError, ### Configuring push notifications per task, ### Bridging into the state-transition pipeline (follow-up), ### Cross-reference)
    • Updated the "What ships today" table to add HTTPPushNotificationSender and added a parity bullet under "Parity with the Go ADK"
    • Updated the frontmatter description so the new surface is discoverable in search
    • npm run format (prettier wrote the new section in-place)
    • npm run lint:md (no warnings)
    • npm run build (VitePress SSR built clean, sitemap generated)
    • Commit and provide PR link

    Acceptance-criteria coverage

    Criterion Covered in
    TaskUpdateNotification wire payload + per-transition emission Wire payload
    sendTaskUpdate (one-shot) and deliverTaskUpdate (fan-out, default concurrency cap, never-throws contract) sendTaskUpdate + deliverTaskUpdate
    Retry policy (3 / 500 ms / 30 s, retryable vs non-retryable, overrides via PushNotificationRetryConfig) Retry policy
    Auth header resolution (config.token -> config.authentication.schemes; fallback to no header) Auth header resolution
    Per-task config via MessageSendConfiguration.pushNotificationConfig + minimal req/resp Configuring push notifications per task
    Delivery primitive only - follow-up integration noted Callout block + Bridging into the state-transition pipeline
    Cross-link to Go ADK server/push_notification_sender.go Cross-reference + parity bullet

    PR

    | Branch: claude/issue-83-20260528-1707

  3. added a commit that references this issue on May 28, 2026
    c568e6f
  4. added a commit that references this issue on May 28, 2026
    e9498c0
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