Skip to content

webhook_emission storyboard: 9421 signature + retry dedupe + payload shape failing (framework) #2843

Closed

Description

@bokelley

Problem

The webhook_emission storyboard (outbound webhook conformance — signing + idempotency) fails three invariants in framework dispatch:

webhook_emission:
  × Webhook arrives within 30 seconds. Payload validates against
    mcp-webhook-payload.json. idempotency_key is present and matches
    the pattern ^[A-Za-z0-9_.:-]{16,255}$.
  × At least 2 deliveries of the same logical event observed within
    90 seconds; all deliveries carry byte-identical idempotency_key.
    Fails with insufficient_retries
  × Signature verifies under the 9421 webhook profile. Fails with the
    specific webhook_signature_* error code on any checklist failure
    (e.g., signature_invalid, sig...)

And a similar failure shows up for sales_broadcast_tv (framework) which uses the same webhook envelope contract.

Three distinct sub-issues:

  1. Payload shape / timing — webhook arrives but either times out, fails schema, or has a bad idempotency_key.
  2. Retry dedupe — the retry window delivers fewer than 2 copies, or deliveries don't carry byte-identical idempotency_key.
  3. RFC 9421 signature — webhook-side 9421 verification isn't producing the expected webhook_signature_* error codes on checklist failure.

Why this matters for 3.0

Outbound webhooks + 9421 signing are a tier-1 3.0 capability. This is the mechanism sellers use to notify buyers of async state transitions (creative approval, media buy status flips, delivery reports). Without a clean reference implementation:

  • Buyers can't lock down their receiver against spoofing via 9421 verification (no canonical example to grade against).
  • Retry dedupe regressions in production are invisible to the spec suite.

Legacy dispatch passes most of these invariants; framework dispatch needs parity before we flip the default.

Repro

TRAINING_AGENT_USE_FRAMEWORK=1 \\
  PUBLIC_TEST_AGENT_TOKEN=storyboard-ci-token \\
  npx tsx server/tests/manual/run-storyboards.ts --filter webhook_emission

Priority

3.0-important. Blocker for framework default-flip; tier-1 webhook signing delivery.

Related

Activity

  1. added a commit that references this issue on Apr 28, 2026
    ec3e3e8
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