Repository navigation
feat(schema): add operation_id to reporting-webhook for delivery correlation - #7895
Conversation
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated path touched without required approval.
This PR modifies static/schemas/source/core/reporting-webhook.json, which matches the deterministic hard approval gate (static/schemas/source/**). gated_paths is true and review_decision is REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: the gate is not satisfied and a human / CODEOWNERS approval is required before this can merge.
Change assessment (informational): The change adds an optional operation_id to core/reporting-webhook.json, mirroring push_notification_config.operation_id exactly. Schema↔docs coherence, changeset scope/type (correct minor), oneOf discriminator, and immutability all check out — this is a clean, non-breaking, additive change with no blocking findings.
Medium follow-up (non-blocking, not pinnable inline): The canonical buyer-facing docs (create_media_buy.mdx:890 and optimization-reporting.mdx:250/265) still omit operation_id, so they teach a registration flow that now fails-closed and silently does not deliver. Worth addressing, but those lines are outside the diff.
Escalation reason:
- Modifies
static/schemas/source/core/reporting-webhook.json— gated protocol-source path requiring human/CODEOWNERS review;review_decisionisREVIEW_REQUIRED, notAPPROVED.
Why human review
- Modifies static/schemas/source/core/reporting-webhook.json — a gated protocol-source path under a hard approval gate; review_decision is REVIEW_REQUIRED (not APPROVED), so human/CODEOWNERS review is required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-webhook.json (modified) matches
static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
|
Noted the Ladon escalation — this touches the gated schema path ( Followed up on the Medium finding: the three buyer-facing |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated protocol-source path requires human/CODEOWNERS approval.
This PR makes an additive change to static/schemas/source/core/reporting-webhook.json (adds an operation_id field) and propagates the example into two docs pages, with a correct minor-scoped changeset. The reviewer reported a clean pass: no schema↔docs drift, no oneOf discriminator regression, no dist artifact edits, and schema constraints matching the existing push_notification_config.operation_id. There are no Critical/High/Medium findings.
However, the change touches a file under a hard, non-overridable approval gate (static/schemas/source/**) and the current GitHub review decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, the gate is not satisfied and Ladon cannot auto-approve regardless of how clean the diff is. A human/CODEOWNERS approval must be recorded before merge.
This continues the prior escalate decision; the escalation persists solely due to the unsatisfied gated-path gate, not because of any new actionable finding.
Escalation reasons
- Modifies
static/schemas/source/core/reporting-webhook.json— a gated protocol-source path under a hard approval gate;review_decisionisREVIEW_REQUIRED(notAPPROVED), so human/CODEOWNERS review is required before merge.
Why human review
- Modifies static/schemas/source/core/reporting-webhook.json — a gated protocol-source path (static/schemas/source/**) under a hard approval gate; review_decision is REVIEW_REQUIRED, not APPROVED, so human/CODEOWNERS review is required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/core/reporting-webhook.json (modified) matches
static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
…elation docs Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… scoping, create_media_buy row Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Fixes #7885.
media_buy_deliverywebhook payloads requireoperation_id, but a buyer who registered onlyreporting_webhookincreate_media_buyhad no channel to supply one — sellers had to invent a value (spec-forbidden), emit a schema-invalid payload, or send nothing (the Embedded Sales Agent currently fails closed and skips these reports entirely).What changed:
static/schemas/source/core/reporting-webhook.json: adds optionaloperation_idwith the same constraints aspush_notification_config.operation_id(minLength: 1,maxLength: 255,^[A-Za-z0-9_.:-]{1,255}$). The description specifies the seller MUST echo it verbatim into every webhook payload'soperation_idon eachmedia_buy_deliveryreport sent to that registration, MUST NOT derive it by parsing the URL, and MUST NOT emitmedia_buy_deliverywebhooks to a registration that omits it (the fail-closed behavior becomes specified behavior; expected to become required in 4.0).docs/building/by-layer/L3/webhooks.mdx: short note in the Reporting webhooks section documenting the new field and the fail-closed rule.adcontextprotocol.How it was tested:
$refs resolve.operation_idstill validates (optional preserved); a registration with a validoperation_idvalidates; empty/space-containing/over-255 values are rejected.push-notification-config.operation_idverified programmatically (minLength/maxLength/pattern/type identical).node scripts/check-changeset-protocol-scope.cjs origin/mainpasses;changeset status --since=origin/mainreports the expected minor bump.Decision for human review (Option C)
This PR implements Option C from the #7885 triage:
operation_idis an optional schema field, and sellers MUST NOT sendmedia_buy_deliveryreports to a registration that omits it (fail-closed becomes specified behavior; expected to become required in 4.0). It was chosen over Option B (seller synthesizes a stable ID) because a synthesized value contradicts the existing "MUST NOT derive" rule and the buyer cannot correlate it.Open questions from protocol-expert review (not changed here, to keep scope):
operation_idwithINVALID_REQUEST(aspush_notification_configdoes) instead of silent suppression only? A 3.2.x buyer omitting the field on a 3.3 seller currently gets no reports and no error.reporting_webhookonupdate_media_buy/control_media_buy: if it replaces, an update omittingoperation_idwould suppress a working stream.Update (merge with main / #7900)
origin/main; reconciled the 3.2 "interim reporting correlation" section: kept it, reworded to "standardized as an optional field in 3.3; the 3.2 interim wire shape is identical", fail-closed MUST NOT scoped to 3.3.update_media_buyandcreate_media_buyparameter tables and notes inbuy_products,accept_proposal,control_media_buy.canonical-*schema mirrors thereporting-webhookshape (only theupdate_reporting_webhookaction enum), so none needs the field.build:schemas,test:schemas,test:doc-compliance-drift,test:compliance-snippets, changeset scope check (minor).🤖 Generated with Claude Code