Repository navigation
feat(reporting): revocation means no access; wind down with a reduced grant - #8607
Conversation
… grant sync_reporting_receipts and sync_reporting_status no longer accept receipts and statuses after the caller loses authority. A seller that wants reconciliation to finish after a relationship ends keeps a reduced grant (reconciliation tasks only) instead of revoking; coverage continues while it lists get_reporting_status. Owner decision. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
There was a problem hiding this comment.
Ladon verdict: Escalate to human review
Escalate — gated-paths hard gate unsatisfied, and a breaking-class change on an experimental surface.
This PR tightens Reliable Reporting semantics to "revocation means no access": after unauthorized_at, sync_reporting_receipts and sync_reporting_status refuse all references to a revoked account, dropping the prior status_retention_days grace for already-read revisions. The reviewer verified schema↔docs coherence across both request schemas, all three task-reference docs, the test, and the minor changeset — all consistent, no Critical/High/Medium findings.
Two independent escalation triggers fire:
-
Gated paths (row 2). The diff modifies
static/schemas/source/media-buy/sync-reporting-receipts-request.jsonandstatic/schemas/source/media-buy/sync-reporting-status-request.json, both under the deterministic hard approval gate (static/schemas/source/**).review_decisionisREVIEW_REQUIRED, notAPPROVED, so the gate is unsatisfied — human/CODEOWNERS review is required before this can merge. -
Breaking-class governance hard gate. Removing the
status_retention_daysgrace so already-read revisions become inaccessible after revocation is a wire-behavior tightening — a breaking-class change in posture even on an experimental surface and even carrying aminorchangeset. Per the repo's "Breaking-class changes are never auto-approved" hard gate, ratification is a human act; escalate unlessreview_decisionisAPPROVED.
Both conditions point to the same action: a human reviewer must ratify. Clean diff otherwise.
Gated schema files requiring review: static/schemas/source/media-buy/sync-reporting-receipts-request.json, static/schemas/source/media-buy/sync-reporting-status-request.json.
Why human review
- Gated paths: static/schemas/source/media-buy/sync-reporting-receipts-request.json and sync-reporting-status-request.json are under a hard approval gate (static/schemas/source/**); review_decision is REVIEW_REQUIRED, not APPROVED — human/CODEOWNERS review required.
- Breaking-class governance: dropping the status_retention_days grace so already-read revisions become inaccessible after revocation is a breaking-class wire tightening. Per the repo hard gate, breaking-class changes are never auto-approved and require human ratification unless review_decision is APPROVED.
- This PR touches a path under a hard, non-overridable approval gate (static/schemas/source/media-buy/sync-reporting-receipts-request.json (modified) matches
static/schemas/source/**; static/schemas/source/media-buy/sync-reporting-status-request.json (modified) matchesstatic/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.
…nt_configs to once per version - Remove engine.acceptsReceipt. adcontextprotocol/adcp#8607 makes revocation mean no access: once authority is lost the account is unknown to every task, receipts and statuses included. - Test that resending replace_account_configs: true (identical resends, dry runs, writes that add another subscription, an active toggle) never reapplies the host hook for the same subscription_version, and that the flag changing to true applies again, as the spec says. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Owner decision for 3.3.0-beta.3: access means access.
Before: after a caller lost authority for an account,
sync_reporting_receiptsandsync_reporting_statuskept accepting receipts and statuses, for revisions it had read, forstatus_retention_days. That's an implicit post-revocation window, so a seller responding to fraud or a compromised agent couldn't stop everything at once.After:
authorizationwhoseallowed_taskslists only the reconciliation tasks (such asget_reporting_status,sync_reporting_receipts,sync_reporting_status), withread_only: false. The account stays in reporting-subscription coverage while that grant listsget_reporting_status, so the outgoing buyer keeps receiving final revisions and adjustments. This also addresses the protocol review's P0 Improve documentation framework and remove premature certification references #3, billing liability on an agency change, without a special mechanism.Updated:
sync-reporting-receipts-requestandsync-reporting-status-requestdescriptions and theirafter_revocationrules;get_reporting_status"When authorization ends";sync_reporting_receiptsandsync_reporting_statustask pages;Draft until 3.3.0-beta.2 publishes. Its recovery release is in progress, and a merge to main now would interfere. SDK follow-ups: TS adcontextprotocol/adcp-client#3528 is being reworked to drop its post-loss fallback, and the Python receipts PR will enforce normal grant checks only.
🤖 Generated with Claude Code
Open workspace in Conductor