Repository navigation
fix(client): send reporting_webhook.operation_id (#3823) - #3824
Merged
Merged
Conversation
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — clean PR, no blocking or medium findings.
Checked:
SingleAgentClient.ts: the fix makesreporting_webhook.operation_idagree 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 defaultadditionalProperties: true(DR-0009). Preservation strips the field fromprojected.droppedbefore drift/refusal logic, so no false drift and the mutatingcreate_media_buyis 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 supplyreporting_webhook.operation_idand 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.