Skip to content

feat(reporting): add managed reporting status schemas - #6953

Merged
bokelley merged 30 commits into
mainfrom
review-adcp-issue-6911
Sep 1, 2026
Merged

bokelley merged 30 commits into
mainfrom
review-adcp-issue-6911

Conversation

@bokelley

@bokelley bokelley commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add experimental get_reporting_status summary, period-ledger, and exact-revision views
  • stage reporting into three explicit tiers over one data model:
    • reporting.core: obligations, revisions, five health states, and authoritative polling over existing API transports, with no destination, materialization, manifest, canonicalization, or receipt machinery
    • managed_delivery: file transfer, dataset sharing, warehouse delivery, materializations, and retention/revocation bounds
    • reconciled_billing: canonical-digest verification plus durable consumer receipts through sync_reporting_receipts
  • enforce tier boundaries bidirectionally in schemas so higher-tier fields cannot leak into Core declarations or status
  • add optional reporting.status_changed health invalidation for every tier and keep materialization-specific reporting.delivery_ready managed-delivery-only
  • require stable reporting issue_id values so consumers can project unresolved conditions into durable work items
  • publish a protocol-owned, byte-exact reconciliation scenario index for cross-SDK conformance
  • enforce machine-identifiable canonicalization vectors, typed control values, and SHA-256/SHA-512 checksum lengths
  • publish the Reporting Core implementation guide

Reconciliation 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

  • reconciled with current main, including the principal layer from feat(protocol): the principal layer — unified webhooks, declarations, principal.changed #7110
  • complete schema gate: 34/34 schema-validator checks, 221/221 Node contract tests, 10/10 premium-format tests, and 6/6 geo tests
  • Reporting Core/status/reconciliation contracts: 34/34
  • principal contract: 17/17
  • MCP projection and context-budget contracts: 29/29; media-buy model context remains bounded at 410 KiB (approximately 407 KiB generated)
  • schema and compliance builds pass; training-agent capability-discovery canary passes with 49 clean storyboards and 86 steps against floors of 45/80

This 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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 new reporting-* schemas) — protocol source of truth under a hard approval gate. review_decision is REVIEW_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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-revision.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-schedule.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-verification.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-write-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matches static/schemas/source/**; static/schemas/source/enums/notification-type.json (modified) matches static/schemas/source/**; static/schemas/source/enums/reporting-finality.json (added) matches static/schemas/source/**; static/schemas/source/enums/reporting-health.json (added) matches static/schemas/source/**; static/schemas/sour

…(truncated)…

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Aug 27, 2026

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-revision.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-schedule.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-status-issue.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-verification.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-write-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/x-entity-types.json (modified) matches static/schemas/source/**; static/schemas/source/enums/notific

…(truncated)…

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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) while review_decision is 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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-reconciliation-mode.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matches static/schemas/source/**; static/schemas/source/core/

…(truncated)…

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 with review_decision: REVIEW_REQUIRED, not APPROVED. 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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-reconciliation-mode.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-resource.json

…(truncated)…

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 new reporting-* schemas, sync-accounts-request/response.json, get-reporting-status-*.json, sync-reporting-receipts-*.json) while review_decision is REVIEW_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 keeps additionalProperties: false, hard-rejecting the adcp_version negotiation 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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matches static/schemas/source/**;

…(truncated)…

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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) while review_decision is 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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-manifest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-materialization.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-obligation.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-receipt.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-reconciliation-mode.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-resource.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-revision.json (added) mat

…(truncated)…

@bokelley

bokelley commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor Author

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: (delivery config, period) is not a sufficient obligation identity. If several campaigns share a feed and period, one campaign's publication could otherwise satisfy another campaign's expected result. The SDKs now match the complete coordinates—configuration generation, report definition, feed purpose, reporting profile, exact applicable media-buy set, and period—and reject a revision whose campaign scope differs from its obligation.

The resulting agreement boundary is now concrete:

  1. The seller's obligation ledger says what should have existed, including zero-row periods.
  2. An immutable revision plus verified materialization says exactly what the seller published.
  3. The consumer independently observes row count, control totals, and the negotiated evidence profile.
  4. sync_reporting_receipts records accepted or rejected agreement for that authenticated consumer.
  5. Receipt readback proves the seller durably recorded that consumer's result.

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.

@aao-secretariat

Copy link
Copy Markdown
Contributor

Ladon cannot review this PR until merge conflicts are resolved.

@sarah-hord-db sarah-hord-db 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.

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: false looks only half-enforced on the periods view. The top-level rule ties incomplete coverage to health: action_required and a required issues[]. That works for summary, where health is required, but periods neither requires nor forbids top-level health, so that half of the rule is vacuous there. Either require health on periods too, or scope the rule to summary.
  • provider is required for every offering method via {"if": {"required": ["pattern"]}, "then": {"required": ["provider"]}}. Since pattern is always required, an S3 or GCS file_transfer offering has to name a provider.domain. If that's intended, provider may as well move into required; if not, the if/then needs a real discriminator.

@bokelley

Copy link
Copy Markdown
Contributor Author

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.

@bokelley

Copy link
Copy Markdown
Contributor Author

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.

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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) while review_decision is not APPROVED. 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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-canonicalization-contract.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-coverage.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-entry.json (added) matches static/schemas/source/**; s

…(truncated)…

@bokelley

Copy link
Copy Markdown
Contributor Author

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 $refs (single profile enum, single provider object, shared destination-coordinate fragments) before merge, so the vocabularies can't drift once both are released. #6966 also now advertises per-pattern reporting_destination_offerings and a suspension_interval_seconds kill-switch bound in capabilities — worth cross-checking against this PR's per-feed delivery capabilities so the two layers stay coherent.

🤖 Generated with Claude Code

@bokelley

Copy link
Copy Markdown
Contributor Author

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 destination_ref only after a separate account/feed configuration authorizes disclosure." The dependency arrow already runs #6966 → #6953; merge order should match.

What #6953 needs before merge (assuming #6966 lands first):

  1. Verification-profile enum — replace the inline native_commit / manifest_checksums / canonical_digest enum in reporting-verification-profile.json with a $ref to feat(protocol): add agent configuration sync #6966's /schemas/core/reporting-verification-profile-set.json. Any future enum addition then touches one file.
  2. Provider-domain constraint — align inline provider objects to require dotted domains, matching feat(protocol): add agent configuration sync #6966's delivery-provider.json. Single-label domains should be rejected at both layers or neither.
  3. Destination-coordinate fragments — replace inline pattern / access_mode / provider coordinates with $refs to feat(protocol): add agent configuration sync #6966's destination fragments.
  4. reporting_destination_offerings vs per-feed delivery capabilities — feat(protocol): add agent configuration sync #6966's per-pattern offerings and this PR's per-feed delivery capabilities likely represent the same concept at different granularity. Verify a feed's capabilities are a subset of the pattern's offerings (or document the layer distinction explicitly).
  5. suspension_interval_seconds — confirm whether this PR's delivery scheduling layer should honor or propagate this kill-switch, or whether it's purely a configuration-sync concern invisible to reporting.

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 main, the drift becomes live vocabulary.


Generated by Claude Code

@bokelley
bokelley marked this pull request as draft August 30, 2026 03:46
auto-merge was automatically disabled August 30, 2026 03:46

Pull request was converted to draft

@bokelley

Copy link
Copy Markdown
Contributor Author

Converted to draft per the staging decision on #6911 (comment): the data model stands, but conformance splits into three tiers (reporting.core / reporting.managed_delivery / reporting.reconciled_billing), and this PR does not merge until the four gates hold — WG agreement on #6122's finality model, vocabulary consolidation onto #6966's principal-layer $refs, independent human protocol review of scope, and a demonstrated webhook/polling seller passing Core conformance without warehouse/hashing/receipt code.

🤖 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]>
@bokelley

Copy link
Copy Markdown
Contributor Author

Commit 87e2e4256f makes the staging enforced, not proposed:

  • Tier flags in schema: reporting-delivery-capabilities now carries managed_delivery and reconciled_billing with conditional requirements — managed_delivery: true requires the retention/revocation bounds, reconciled_billing: true requires receipt_task. Offering method and profile canonicalization_* are optional and tier-scoped; delivery-config method mirrors its offering.
  • Push is optional in every tier: readiness_notification is no longer required, and the capabilities conditional that forced RFC 9421 webhook signing on every reporting seller now triggers only when the doorbell is declared — a polling-only seller is fully Core-conformant.
  • Gate 4 has executable proof: tests/reporting-core-fixture.test.cjs — an in-memory polling-only seller serving schema-valid get_reporting_status responses for all five health states, with a source-scan assertion that the implementation contains none of destination|manifest|canonical|digest|receipt|readiness|webhook.
  • Graded conformance: new reporting-core universal storyboard validates the tier declaration, capability-gated on media_buy.reporting_delivery.supported.

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

@bokelley

Copy link
Copy Markdown
Contributor Author

Implementation review found the tiering incomplete one layer down — Core currently cannot satisfy its own schemas without managed delivery:

  1. The obligation schema requires a destination, materialization counts, and a successful retained materialization for healthy/complete; the config ready state and reporting.delivery_ready webhook likewise require managed-delivery identifiers. That contradicts the Core promise (API/reporting-webhook delivery, no destination machinery). The Core fixture validated summary views only, which is how this got through.
  2. There is no async signal for reporting becoming unhealthy — reporting.delivery_ready is positive-only, so clock-driven waiting → delayed → action_required transitions are poll-only.

Fix landing on this branch:

  • Destination/materialization fields become conditional on the managed-delivery tier throughout (obligation, status internals, config readiness, webhook).
  • Core healthy/complete defined around an authoritative readable revision (retained and readable over the existing API transports).
  • Destination-free configuration readiness for Core offerings.
  • reporting.delivery_ready declared managed-delivery-only; a new invalidation-only, account-anchored reporting.status_changed covers all tiers — fires on health-state transitions (including recovery), payload carries identifiers plus a stable issue id, repair through get_reporting_status. The stable issue identifier also lets consumers project AdCP reporting issues into durable work items.
  • Core fixture extended beyond summaries: periods view, destination-free configuration state, and the optional webhook payloads.

🤖 Generated with Claude Code

bokelley and others added 3 commits August 30, 2026 15:37
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
@bokelley
bokelley marked this pull request as ready for review September 1, 2026 01:06

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 new static/schemas/source/core/reporting-*.json, static/schemas/source/enums/*.json, static/schemas/source/protocol/get-adcp-capabilities-response.json — while review_decision is not APPROVED. 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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-canonicalization-contract.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-coverage.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches `static/s

…(truncated)…

@aao-secretariat aao-secretariat Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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/**, including static/schemas/source/account/sync-accounts-request.json, static/schemas/source/core/account.json, many new static/schemas/source/core/reporting-*.json, static/schemas/source/enums/*.json, and static/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) matches static/schemas/source/**; static/schemas/source/core/account.json (modified) matches static/schemas/source/**; static/schemas/source/core/notification-config.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-canonical-content-digest.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-canonicalization-contract.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-capabilities.json (modified) matches static/schemas/source/**; static/schemas/source/core/reporting-control-total.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-coverage.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-dataset-share-destination.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-capabilities.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config-state.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-config.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-method.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-offering.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-delivery-ready-webhook.json (added) matches static/schemas/source/**; static/schemas/source/core/reporting-file-compression.json (added) matches `static/schemas/

…(truncated)…

@bokelley
bokelley enabled auto-merge (squash) September 1, 2026 01:55
@bokelley
bokelley disabled auto-merge September 1, 2026 02:00
@bokelley
bokelley enabled auto-merge (squash) September 1, 2026 02:00
@bokelley
bokelley disabled auto-merge September 1, 2026 02:20
@bokelley
bokelley merged commit b7b6ba9 into main Sep 1, 2026
62 checks passed
@bokelley
bokelley deleted the review-adcp-issue-6911 branch September 1, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ladon/needs-human-review Ladon has escalated this PR for human review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants