Repository navigation
feat(reporting): add managed reporting status schemas - #6953
Conversation
6a9f212 to
daefa63
Compare
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema paths require human/CODEOWNERS approval.
This PR touches static/schemas/source/** (both modified and newly added files), which is under a hard, deterministic approval gate (gated_paths: true). The current review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: the gate is not satisfied and the outcome cannot be approve.
No blocking (critical/high) or medium findings were surfaced by the reviewer. The change is an additive experimental managed-reporting delivery surface (#6911): new get_reporting_status task, reporting-delivery-* core schemas, two additive enum values, a capability block, and an mcp-schema-projection cleanup. It carries a correct minor changeset, leaves dist/** untouched, ships a 409-line contract test plus docs, and all four new oneOf sites are const-discriminated and disjoint with schema↔docs coherence intact. This looks clean on the merits — but ratification of protocol wire-shape changes is a human act, and the gated paths require an explicit CODEOWNERS/human approval before merge.
Escalation reasons
- Modifies/adds files under
static/schemas/source/**(e.g.core/account.json,protocol/get-adcp-capabilities-response.json, plus newreporting-*schemas) — protocol source of truth under a hard approval gate.review_decisionisREVIEW_REQUIRED; human/CODEOWNERS review is required to satisfy the gate.
Why human review
- Touches gated paths under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-verification.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-write-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-finality.json (added) matchesstatic/schemas/source/**; static/schemas/source/enums/reporting-health.json (added) matchesstatic/schemas/source/**; static/schemas/sour
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated schema-source paths require human/CODEOWNERS approval.
This PR modifies and adds files under static/schemas/source/**, which are under a hard, non-overridable approval gate (gated_paths: true). The current GitHub review_decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer found no blocking issues. Schema↔docs coherence holds, the changeset is a correct minor (additive experimental surface, no shipped enum removed), the response oneOf is disjoint and discriminated, and the contract test confirms the Unavailable lookup branch behavior. Only one non-blocking low observation exists:
- docs/media-buy/task-reference/get_reporting_status.mdx:34 — schema links switched to /schemas/latest/ vs the /schemas/v3/ convention.
This is a clean iteration on the prior escalate (which also had no actionable findings), but the gated-paths condition persists because approval has not yet been recorded. Once review_decision becomes APPROVED, this PR would fall through to approve.
Gated files needing human/CODEOWNERS review: the modified/added schema sources under static/schemas/source/** (account, core reporting-delivery-, enums, media-buy get-reporting-status-, protocol get-adcp-capabilities-response).
Why human review
- Touches gated paths under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS approval required before merge.
- Hard approval gate (gated_paths: true) is unsatisfied: modified/added schema-source files under static/schemas/source/** cannot auto-approve until a real GitHub/CODEOWNERS APPROVED review is recorded.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-schedule.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-verification.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-write-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matchesstatic/schemas/source/**; static/schemas/source/enums/notific
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on gated schema-source paths is unsatisfied.
This PR touches protocol wire-shape source of truth under static/schemas/source/** (both modified files like core/account.json, enums/task-type.json, protocol/get-adcp-capabilities-response.json, and many added reporting-* schemas). gated_paths: true and review_decision: REVIEW_REQUIRED (not APPROVED), so decision-table row 2 fires: outcome MUST be escalate, not approve.
The reviewer's subsequent delta pass found no Critical/High/Medium findings — changeset scope (minor, additive experimental surface) is correct, schema↔docs coherence verified, all new oneOfs discriminated by const, released artifacts untouched, idempotency coverage added for sync_reporting_receipts, and cross-reference integrity intact. The diff is mechanically clean. But a clean diff does not lift a hard, non-overridable path gate: only a real GitHub/CODEOWNERS APPROVED review does. Prior decision was also escalate for the same gate reason.
Escalation reasons
- PR modifies/adds files under the hard-gated path
static/schemas/source/**(protocol wire-shape source of truth) whilereview_decisionis REVIEW_REQUIRED, not APPROVED. Human/CODEOWNERS approval is required before this can merge.
Once a human/CODEOWNERS APPROVED review is recorded, this PR — with no blocking or medium findings — falls through to a normal approve.
Why human review
- Hard approval gate unsatisfied: PR touches gated paths under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is REVIEW_REQUIRED, not APPROVED. Human/CODEOWNERS approval required before merge (decision-table row 2).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reconciliation-mode.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on gated paths is unsatisfied.
This PR touches static/schemas/source/** (protocol wire-shape source of truth) — a hard, non-overridable approval gate (gated_paths: true) — while review_decision is REVIEW_REQUIRED, not APPROVED. Per decision-table row 2, the outcome must be escalate until a human/CODEOWNERS approval is recorded.
The reviewer delta since the prior run is a clean pass with no critical/high/medium findings: doc cross-links added, sync_reporting_receipts registered in the media-buy MCP role profile and mutating-tools set, an x-tool-summary added, and sync-reporting-receipts-response.json aligned to the standard version/protocol envelope + status:"completed" convention (the additionalProperties false→true flip is required for the allOf envelope refs to validate, consistent with DR-0009). Schema↔docs coherent.
No blocking findings exist, so this is not request-changes — but the gate cannot lift without a real approval.
Escalation reasons
- Gated paths under
static/schemas/source/**(protocol source of truth) modified/added withreview_decision: REVIEW_REQUIRED, notAPPROVED. Human/CODEOWNERS approval required before merge (decision-table row 2).
Why human review
- Hard approval gate unsatisfied: PR modifies/adds files under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is REVIEW_REQUIRED, not APPROVED. Human/CODEOWNERS approval required before merge (decision-table row 2).
- Gated files include static/schemas/source/media-buy/sync-reporting-receipts-response.json, static/schemas/source/protocol/get-adcp-capabilities-response.json, static/schemas/source/enums/task-type.json, and the new reporting-* core/enums schemas.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reconciliation-mode.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-resource.json
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate unsatisfied on gated schema paths.
This PR touches protocol wire-shape source of truth under static/schemas/source/**, which is under a hard, non-overridable approval gate (gated_paths: true). The current GitHub review decision is REVIEW_REQUIRED, not APPROVED, so decision-table row 2 fires: Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
Escalation reasons
- Gated paths: PR modifies/adds numerous files under
static/schemas/source/**(e.g.static/schemas/source/core/account.json, the newreporting-*schemas,sync-accounts-request/response.json,get-reporting-status-*.json,sync-reporting-receipts-*.json) whilereview_decisionisREVIEW_REQUIRED. Human/CODEOWNERS approval required before merge.
Medium finding (non-blocking, for reviewer awareness)
static/schemas/source/media-buy/sync-reporting-receipts-request.json— left behind on the envelope convention: omits version-envelope and keepsadditionalProperties: false, hard-rejecting theadcp_versionnegotiation field that all 21 sibling requests and its own enveloped response accept. Worth fixing for wire-shape consistency.
Note: this is a subsequent pass. The prior run was escalate for the same gated-paths gate; that gate remains unsatisfied, so the escalation stands. A human/CODEOWNERS approval lifts the gate and lets the PR fall through to the normal table.
Why human review
- Hard approval gate unsatisfied: PR touches gated paths under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is REVIEW_REQUIRED, not APPROVED. Human/CODEOWNERS approval required before merge (decision-table row 2).
- Modifies/adds many files under static/schemas/source/** including core account/notification/reporting schemas, new reporting-* schemas, and media-buy request/response schemas.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matchesstatic/schemas/source/**;
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate on gated paths unsatisfied.
This PR modifies/adds many files under static/schemas/source/** (the protocol wire-shape source of truth), which is under a hard, non-overridable approval gate. gated_paths is true and review_decision is not APPROVED (unknown/none) — decision-table row 2 forces escalation until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer reported a clean pass with no Critical/High/Medium findings. Delta since the prior escalate run is three files: reporting-resource.json merges duplicate top-level allOf keys (correctness fix restoring the manifest if/then conditional), a regression test exercising the manifest-required branch, and sync-reporting-receipts-response.json adds status const completed coherent with the protocol envelope and get_reporting_status response. This is additive experimental surface on a minor changeset.
Escalation reasons
- Gated paths under
static/schemas/source/**touched (core account/notification/reporting schemas, new reporting-* schemas, media-buy request/response schemas, get_adcp_capabilities response) whilereview_decisionis not APPROVED. Human/CODEOWNERS approval required before merge.
Once a real GitHub/CODEOWNERS approval is recorded, this clean diff can fall through to approval on a subsequent run.
Why human review
- Hard approval gate unsatisfied: PR touches gated paths under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is not APPROVED. Human/CODEOWNERS approval required before merge (decision-table row 2).
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-reconciliation-mode.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-revision.json (added) mat
…(truncated)…
|
Implemented the first reconciliation prototypes against this branch in both SDKs:
Both are draft PRs until this protocol work is released, but they now exercise the same end-to-end contract: stable-snapshot pagination, independent expected-period enumeration, immutable-ID deduplication, revision/finality selection, materialization verification, receipt submission with retry, receipt readback, retention checks, and durable checkpoints. The prototypes found and fixed one important ambiguity: The resulting agreement boundary is now concrete:
For billing, canonical digest equality makes the agreement about the exact logical rows, not merely matching aggregate totals. Buyer and governance consumers run the same algorithm and submit separate receipts, so neither one's acceptance stands in for the other. Focused local validation is green: 9 reconciliation scenarios in each SDK, including missing-first-obligation, same-period/different-campaign isolation, revision/obligation campaign mismatch, incomplete history, fan-out deduplication, false native evidence, rejected consumer evidence, receipt retry, and receipt readback. |
|
Ladon cannot review this PR until merge conflicts are resolved. |
There was a problem hiding this comment.
Reviewing from the Databricks side, since Delta Sharing is one of the delivery targets here.
The core model holds up well. Keeping revision identity independent of destination is what lets a single revision land in Delta Sharing, a warehouse, and a bucket without the counts drifting, and the two Delta Sharing gotchas are both accounted for: the recipient-visibility lag via a representative-consumer readiness check, and the minimum reader version that Deletion Vectors require (DBR 14.1+, or delta-sharing-spark 3.1+ for open clients) via reader_compatibility. That matches the current behavior.
One resolved-state ergonomics point for buyer-owned destinations. The setup handshake itself is well modeled: setup.action covers activate_recipient and grant_access with a setup URL, reporting-dataset-share-destination.json carries the recipient identity (including an open-sharing recipient email), and credentials are deliberately kept out. The gap I'd flag is that for a buyer-owned destination, resolved state signals grant_access but doesn't echo the structured producer_identity the offering defines as the grant target, so a programmatic buyer has to cross-reference the offering to complete the grant. Echoing that identity into the setup payload would make automated setup self-contained. Minor, and fine to defer.
One question on incremental reads: revisions and restatements imply buyers re-reading updated tables. Is the contract full-snapshot per revision, or can a buyer read incrementally? Incremental reads need the table shared WITH HISTORY and CDF enabled, which the provider configures and which is on by default only for recent Databricks-to-Databricks shares, so an open-client buyer can't assume it. If incremental is in scope, the offering probably needs to signal history/CDF availability.
Two smaller schema notes while I'm here:
coverage_complete: falselooks only half-enforced on theperiodsview. The top-level rule ties incomplete coverage tohealth: action_requiredand a requiredissues[]. That works forsummary, wherehealthis required, butperiodsneither requires nor forbids top-levelhealth, so that half of the rule is vacuous there. Either requirehealthonperiodstoo, or scope the rule tosummary.provideris required for every offering method via{"if": {"required": ["pattern"]}, "then": {"required": ["provider"]}}. Sincepatternis always required, an S3 or GCSfile_transferoffering has to name aprovider.domain. If that's intended,providermay as well move intorequired; if not, theif/thenneeds a real discriminator.
|
The SDK implementation exercise produced a concrete release-engineering follow-up: #6984. The important result is that protocol schema PRs need a deterministic pre-release bundle artifact and an automated compatibility matrix against both SDK generators before merge. During this RFC, manual schema overlays made both dependent SDK branches easy to stale as required fields changed. Generated artifacts should record the exact protocol commit and bundle digest they consumed. SDK-specific findings are tracked in:
None changes the reporting wire model by itself. They separate release safety and SDK “just works” work from this RFC's protocol review. |
563ecdd to
023b0db
Compare
|
Seller-side implementation evidence is now available in scope3data/embedded-sales-agent#456. The vertical slice uses the generated Python SDK contracts end to end: durable caller/account ledger, manifest-last delivery, destination-independent revision fan-out, rejected receipts, stable snapshot pagination, exact media-buy/package coverage, and a superseding billing restatement that invalidates the old accepted receipt until the consumer verifies the new revision. |
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate unsatisfied (gated paths).
This PR modifies/adds files under static/schemas/source/**, which is under a hard, non-overridable approval gate (gated_paths: true). The current review_decision is unknown/none — not APPROVED. Per decision-table row 2, the outcome MUST be escalate until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer reported a clean pass: no Critical/High/Medium findings. The schema changes are additive x-adcp-model-context-inline annotations only — no field/enum/required/type changes, no schema↔docs drift, no oneOf regression, no immutable-artifact edits. There is a changeset present (.changeset/add-managed-reporting-status.md). This is a net-clean iteration on the prior escalate.
Escalation reasons
- Hard approval gate unsatisfied: PR touches protocol wire-shape source of truth under
static/schemas/source/**(e.g.static/schemas/source/account/sync-accounts-request.json,static/schemas/source/core/reporting-*.json(many added),static/schemas/source/enums/*.json,static/schemas/source/protocol/get-adcp-capabilities-response.json) whilereview_decisionis notAPPROVED. Human/CODEOWNERS approval required before merge (row 2).
No blocking findings exist; the escalation is purely due to the deterministic gated-paths gate. The gate lifts automatically once a real GitHub/CODEOWNERS approval is recorded.
Why human review
- Hard approval gate unsatisfied (decision-table row 2): PR adds/modifies files under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is not APPROVED (currently unknown/none). Human/CODEOWNERS approval required before merge. Files include static/schemas/source/account/sync-accounts-request.json, static/schemas/source/core/account.json, static/schemas/source/core/reporting-.json (many added), static/schemas/source/enums/.json, and static/schemas/source/protocol/get-adcp-capabilities-response.json.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonicalization-contract.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-coverage.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matchesstatic/schemas/source/**; s
…(truncated)…
|
Merge-ordering precondition with #6966. A red-team pass on the agent-configuration PR found the two branches currently match vocabulary by hand, not by reference:
Proposal: whichever PR merges second consumes the first's 🤖 Generated with Claude Code |
|
The vocabulary-drift concern is accurate — both branches define overlapping types hand-matched rather than by reference, creating a real divergence risk on the billing-contract enum and destination shapes. Recommended merge order: #6966 first, #6953 second. #6966's own PR body states it is "intentionally separate from #6953; reporting delivery consumes the seller-issued What #6953 needs before merge (assuming #6966 lands first):
Both PRs are currently blocked on merge conflicts, so the ordering decision isn't urgent. But the $ref consolidation should land in #6953's merge commit — once both land independently on Generated by Claude Code |
Pull request was converted to draft
|
Converted to draft per the staging decision on #6911 (comment): the data model stands, but conformance splits into three tiers ( 🤖 Generated with Claude Code |
…mance Encode the staging decision from #6911: reporting.core is the only required tier, and the capability block now advertises managed_delivery and reconciled_billing as separate flags with schema-enforced boundaries — managed_delivery requires retention and revocation bounds, reconciled_billing requires receipt_task, offering method and profile canonicalization become optional and tier-scoped, and delivery config method mirrors its offering. Make the readiness doorbell optional in every tier so a polling-only seller is fully Core-conformant, and require webhook signing only when readiness_notification is declared. Add the reporting-core universal storyboard grading the tier declaration, and the Core fixture test proving a polling-only seller serves schema-valid responses for all five health states with no destination, manifest, canonicalization, digest, receipt, or webhook knowledge. Co-Authored-By: Claude Fable 5 <[email protected]>
|
Commit
The staging decision also now lives at the top of the #6911 issue body, not only in a comment. Remaining gates unchanged: #6122 finality agreement, #6966 vocabulary consolidation, independent human review. 🤖 Generated with Claude Code |
|
Implementation review found the tiering incomplete one layer down — Core currently cannot satisfy its own schemas without managed delivery:
Fix landing on this branch:
🤖 Generated with Claude Code |
Public 3.2 implementation guide for the required reporting tier: what Core is and is not, the seller build order from capability advertisement through obligation generation, revision commits, status projection, and honest escalation, how to verify with the reporting-core storyboard and fixture, and the separately advertised ladder to managed_delivery and reconciled_billing. Co-Authored-By: Claude Fable 5 <[email protected]>
# Conflicts: # package.json # scripts/mcp-schema-projection.cjs # static/schemas/source/enums/notification-type.json # static/schemas/source/enums/task-type.json # tests/mcp-schema-analysis.test.cjs # tests/mcp-schema-projection.test.cjs
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate unsatisfied (decision-table row 2).
This PR adds/modifies protocol wire-shape source of truth under static/schemas/source/** (gated_paths: true), and the current GitHub review_decision is unknown/none — not APPROVED. Row 2 fires: outcome MUST be escalate until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
The reviewer surfaced no Critical/High/Medium code-correctness defects — new reporting wire schemas verified (oneOf discriminators present, tier-boundary if/then logic, get-adcp-capabilities wiring, schema↔docs coherence, additive/experimental changeset correct, mcp-schema-projection build change tested). This is a large but clean additive/experimental protocol surface. The sole blocker is the ratification/approval gate.
Escalation reasons
- Gated path: PR modifies/adds files under
static/schemas/source/**(protocol source of truth) — e.g.static/schemas/source/account/sync-accounts-request.json,static/schemas/source/core/account.json, many newstatic/schemas/source/core/reporting-*.json,static/schemas/source/enums/*.json,static/schemas/source/protocol/get-adcp-capabilities-response.json— whilereview_decisionis notAPPROVED. Human/CODEOWNERS approval required before merge. - Per repo governance, new normative protocol surface (schema source) requires human ratification; it is never auto-approved on diff cleanliness alone.
This continues the prior escalate; the gate condition still holds (review not approved) and the schema source is still touched. No new actionable findings.
Why human review
- Hard approval gate unsatisfied (decision-table row 2): PR adds/modifies files under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is unknown/none, not APPROVED. Human/CODEOWNERS approval required before merge. Files include static/schemas/source/account/sync-accounts-request.json, static/schemas/source/core/account.json, many static/schemas/source/core/reporting-.json (added), static/schemas/source/enums/.json, and static/schemas/source/protocol/get-adcp-capabilities-response.json.
- New normative protocol surface (schema source) requires human ratification per repo governance; not auto-approvable on diff cleanliness alone until review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonicalization-contract.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-coverage.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches `static/s
…(truncated)…
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — hard approval gate unsatisfied (decision-table row 2).
This PR adds/modifies numerous files under static/schemas/source/** (the protocol wire-shape source of truth), so gated_paths: true. The current review_decision is unknown/none — not APPROVED — so the hard, non-overridable approval gate is not satisfied and the PR cannot be auto-approved regardless of diff cleanliness.
Escalation reasons
- Gated path touched without human/CODEOWNERS approval: modifications and additions under
static/schemas/source/**, includingstatic/schemas/source/account/sync-accounts-request.json,static/schemas/source/core/account.json, many newstatic/schemas/source/core/reporting-*.json,static/schemas/source/enums/*.json, andstatic/schemas/source/protocol/get-adcp-capabilities-response.json. Human/CODEOWNERS review (review_decision: APPROVED) is required before merge. - New normative protocol surface (schema source) requires human ratification per repo governance.
The reviewer's clean delta pass surfaced no critical/high/medium findings (the only change since the prior review extracts an inline enum into a named $ref definition with a codegen-name test, no wire-shape change). That means no blocking findings exist and this is not a request-changes. But the gate stands until a human approval is recorded, so the prior escalate is maintained.
Why human review
- Hard approval gate unsatisfied (decision-table row 2): PR adds/modifies files under static/schemas/source/** (protocol wire-shape source of truth) while review_decision is unknown/none, not APPROVED. Human/CODEOWNERS approval required before merge. Files include static/schemas/source/account/sync-accounts-request.json, static/schemas/source/core/account.json, many static/schemas/source/core/reporting-.json (added), static/schemas/source/enums/.json, and static/schemas/source/protocol/get-adcp-capabilities-response.json.
- New normative protocol surface (schema source) requires human ratification per repo governance; not auto-approvable on diff cleanliness alone until review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/account/sync-accounts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/account/sync-accounts-response.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/account.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-canonicalization-contract.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-coverage.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matchesstatic/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches `static/schemas/
…(truncated)…
Summary
get_reporting_statussummary, period-ledger, and exact-revision viewsreporting.core: obligations, revisions, five health states, and authoritative polling over existing API transports, with no destination, materialization, manifest, canonicalization, or receipt machinerymanaged_delivery: file transfer, dataset sharing, warehouse delivery, materializations, and retention/revocation boundsreconciled_billing: canonical-digest verification plus durable consumer receipts throughsync_reporting_receiptsreporting.status_changedhealth invalidation for every tier and keep materialization-specificreporting.delivery_readymanaged-delivery-onlyissue_idvalues so consumers can project unresolved conditions into durable work itemsReconciliation conformance
The fixture pins exact manifest, row, schema, report-definition, canonicalization, and receipt bytes. Its nine executable scenarios cover success, missing objects, physical checksum mismatch, row-count mismatch, control-total mismatch, canonical digest mismatch, transient pre-commit reads, rejected receipts, and uncertain-write checkpoint recovery. Each scenario pins the mutation, read trace/count, error code/classification, and receipt outcome.
The fixture records an immutable fixture-bearing protocol revision and enforces LF checkout for byte stability. Protocol CI validates every declared size, SHA-256, SHA-512, schema instance, canonical byte sequence, manifest-last invariant, and receipt acknowledgement.
Validation
main, including the principal layer from feat(protocol): the principal layer — unified webhooks, declarations, principal.changed #7110This implements the protocol prerequisite for #6911 and addresses the protocol-side work in #6993, #6994, and #6995. Cross-SDK closure remains gated on the TypeScript and Python SDK PRs consuming this pinned fixture revision in their own CI.