Skip to content

fix(client): send reporting_webhook.operation_id (#3823) - #3824

Merged
bokelley merged 1 commit into
mainfrom
fix/3823-reporting-webhook-operation-id
Nov 29, 2026
Merged

bokelley merged 1 commit into
mainfrom
fix/3823-reporting-webhook-operation-id

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Closes #3823

The SDK put the reporting operation ID in its callback URL but did not send it in the webhook registration. Sellers therefore had no supported way to echo it in delivery envelopes.

The client now uses the same ID for the callback URL and reporting_webhook.operation_id. A caller can supply reporting_webhook.operation_id and the client uses it for its generated URL as well. Version projection preserves the field for AdCP 3.1 and 3.2, whose reporting webhook schemas allow additional properties. Updates continue to pass caller-provided registrations through.

Validated with npm run lint, npm run typecheck, npm run build:lib, and 81 tests covering webhook registration, 3.1/3.2/3.3 request validation and projection, updates, and a month-boundary caller ID.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ladon verdict: Approve

Approve — clean PR, no blocking or medium findings.

Checked:

  • SingleAgentClient.ts: the fix makes reporting_webhook.operation_id agree with the callback URL (generated monthly id or caller-supplied), preserving witness fidelity.
  • translate.ts: new field's 3.1/3.2 backward pathway (DR-0033) is handled by preservation — wire-valid since published AdCP schemas default additionalProperties: true (DR-0009). Preservation strips the field from projected.dropped before drift/refusal logic, so no false drift and the mutating create_media_buy is not refused over it.
  • Tests cover projection across 3.1/3.2/3.3 plus the caller-override month-boundary case.
  • Changeset present (patch, additive) — consistent with the additive wire impact.

No Critical/High/Medium findings. gated_paths is false, high_risk is false, no author-team gate, no prior decision. Row 2 does not fire (gated_paths false despite REVIEW_REQUIRED). Falls through to row 9 → approve.

@bokelley
bokelley merged commit 20bbf93 into main Nov 29, 2026
45 checks passed
@bokelley
bokelley deleted the fix/3823-reporting-webhook-operation-id branch November 29, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include operation_id in reporting_webhook registrations

1 participant