Skip to content

feat(reporting): revocation means no access; wind down with a reduced grant - #8607

Merged
bokelley merged 1 commit into
mainfrom
bokelley/revocation-means-no-access
Oct 30, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/revocation-means-no-access

Conversation

@bokelley

@bokelley bokelley commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Owner decision for 3.3.0-beta.3: access means access.

Before: after a caller lost authority for an account, sync_reporting_receipts and sync_reporting_status kept accepting receipts and statuses, for revisions it had read, for status_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:

  • Revocation stops everything. Once authority ends, every reference to the account resolves like an unknown identifier, receipts included.
  • Winding down is a reduced grant, not a carve-out. A seller that wants the buyer to finish reconciling, for example after an agency-of-record change, keeps an authorization whose allowed_tasks lists only the reconciliation tasks (such as get_reporting_status, sync_reporting_receipts, sync_reporting_status), with read_only: false. The account stays in reporting-subscription coverage while that grant lists get_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:

  • the sync-reporting-receipts-request and sync-reporting-status-request descriptions and their after_revocation rules;
  • get_reporting_status "When authorization ends";
  • the sync_reporting_receipts and sync_reporting_status task pages;
  • the test.

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

… 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]>
@bokelley
bokelley marked this pull request as ready for review October 30, 2026 14:16

@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-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:

  1. Gated paths (row 2). The diff modifies static/schemas/source/media-buy/sync-reporting-receipts-request.json and static/schemas/source/media-buy/sync-reporting-status-request.json, both under the deterministic hard approval gate (static/schemas/source/**). review_decision is REVIEW_REQUIRED, not APPROVED, so the gate is unsatisfied — human/CODEOWNERS review is required before this can merge.

  2. Breaking-class governance hard gate. Removing the status_retention_days grace 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 a minor changeset. Per the repo's "Breaking-class changes are never auto-approved" hard gate, ratification is a human act; escalate unless review_decision is APPROVED.

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) matches static/schemas/source/**) and the current GitHub review decision is 'REVIEW_REQUIRED', not APPROVED. This is a hard gate enforced in code — Ladon cannot auto-approve until a human/CODEOWNERS approval is recorded, regardless of how clean the diff is.

@aao-secretariat aao-secretariat Bot added the ladon/needs-human-review Ladon has escalated this PR for human review. label Oct 30, 2026
@bokelley
bokelley merged commit 1f08104 into main Oct 30, 2026
70 checks passed
@bokelley
bokelley deleted the bokelley/revocation-means-no-access branch October 30, 2026 14:47
bokelley added a commit to adcontextprotocol/adcp-client that referenced this pull request Oct 30, 2026
…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]>
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.

1 participant