Skip to content

feat: adopt AdCP 3.3.0-beta.4 - #3620

Merged
bokelley merged 8 commits into
mainfrom
claude/adopt-3-3-beta-4
Nov 5, 2026
Merged

bokelley merged 8 commits into
mainfrom
claude/adopt-3-3-beta-4

Conversation

@bokelley

@bokelley bokelley commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Adopts AdCP 3.3.0-beta.4 (adcontextprotocol/adcp#8718, #8717, #8724) in @adcp/sdk, pinned to the signed bundle (tag v3.3.0-beta.4, commit 763c2d75, sha256 3525423d…, cosign-verified).

What changed

  1. Per-package added_at (#8718).
    • owedSubscriptionPeriodsV1, the seller engine and the buyer runtime treat a package's added_at as its own confirmed_at.
    • A period is owed when at least one resolving package is owed it.
    • A package resolves at the later of accepted_at and its own confirmed_at. Adding a package is never a cutover.
    • package_ids exceptions compose with it. New reason before_package_added.
    • ReportingSubscriptionBuyPackageV1.added_at is on the buy-facts hook types (subscriptions.buys, listAccountBuys). The managed path, the buyer reconcile and the reference kit read or serve it.
  2. Reduced grant without get_reporting_status (#8718). This is a loss of authority: accounts_unauthorized at the reduction, and get_reporting_status is refused with SCOPE_INSUFFICIENT. Restoring it is a re-grant.
  3. SUBSCRIPTIONS_REQUIRE_ACCOUNT_ID_KEY replaces the PLATFORM_CONFIG_INVALID fallback. checkReportingSubscriptionOfferingsV1 passes the offering-checks.json vectors.
  4. Regenerated from the beta.4 bundle.
    • ReportingSubscription.destination_overrides[] is one object type with account_ids, operator_domains, destination_id and path_template. The Zod schema is one object as well.
    • Schema-enforced no-mixed-durations, added_at, SetAccountTimezoneResult, and the other beta.4 additions.
  5. tzdata 2026f: on ICU 2026f the vectors pass 188/188 (coverage plus offering checks).
  6. Controller/runner (#8717).
    • reset_state support: TestControllerStore.resetState, ComplyControllerConfig.resetState and RESET_STATE_SCENARIO. createComplyController refuses the probe without a reset.
    • The kit's reset unpins its sandbox clock (it reads the wall clock until the next advance_time). It keeps the probe-changed accounts with their grants and timezones restored, and rolls the engine's account records back, so the coverage history those changes recorded is discarded.
    • SetAccountTimezoneResult is emitted.
    • The owed_periods_match window follows the spec. It starts at the later of period.start and ledger_retained_from, with ledger_retained_from capped at ledger_as_of − status_retention_days, and failures report the bound that set it.

Also fixed: two coverage disagreements with the reference model that the spec's differential harness found. A package exclusion was modelled as a resolution change. An excluded_by_buyer entry edited every version instead of the overlapping ones. The managed service now dates an account timezone change at the observation.

Pin: ADCP_VERSION, version.ts, package.json (adcp_version, compliance files), commercial-terms semantics for beta.4, canonical storyboard provenance (fixtures unchanged), vectors re-pinned to the tag, regenerated llms.txt and worksheet, and a beta.4 section in the 16→17 migration guide. Package size: 25,308,916 packed / 8,245 files, within the ceilings. Changesets: adopt-adcp-3-3-beta-4, reporting-subscription-beta4-engine, compliance-probe-reset-beta4.

Vectors / differential

  • Canonical vectors (v3.3.0-beta.4): 138 coverage cases, 8 offering checks and 3 differential-regression cases. All pass on tzdata 2026f and on Node 24's 2026b.
  • Differential harness, TS against the reference model (20,000 scenarios, tzdata 2026f): 19,997 agree. The 3 that disagree are billing stubs at an account-timezone cutover. The SDK follows the cutover text, which applies the stub rule to timezone changes on billing offerings, but the reference model emits no stub. This is a reference-model issue.

🤖 Generated with Claude Code

bokelley added a commit to adcontextprotocol/adcp-client-python that referenced this pull request Nov 3, 2026
…reference model does

Two disagreements with the spec's reference model, found by its differential
generator (adcontextprotocol/adcp 8ee1bfa2) and fixed the same way in the
TypeScript SDK (adcontextprotocol/adcp-client#3620):

- A package_ids exception was modelled as a resolution change: it took the
  package out of resolution and started a regime, so a window naming every
  package of a buy reset the E a later resolution inherited. It now removes a
  period only when one entry covering the period start names every package
  resolving the offering that is owed the period, and never splits a regime.
- One excluded_by_buyer entry put every version under in-place membership.
  Only the versions whose span an entry overlaps are now; another version
  keeps its own account_ids and exclude_account_ids.

The three minimized differential scenarios are vendored from the TypeScript
SDK and pass. explain writes the before_package_added facts
(packages_added_at), sentence and buy facts (packages[].added_at) exactly as
the TypeScript SDK does, and reports a period a package_ids entry removes
under that entry's reason. A test pins the billing stub at an
account-timezone cutover, which both SDKs owe per the cutover text where the
8ee1bfa2 reference model emits none (fixed in the spec for beta.5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
bokelley and others added 3 commits November 5, 2026 09:45
… the probe's coverage history

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Replace the 3.3.0-beta.3 pin with the signed 3.3.0-beta.4 bundle (spec commit
763c2d75, sha256 3525423d..., cosign-verified). Regenerate types, Zod schemas,
manifest constants, wire-spec fields and docs; destination_overrides[] is now one
object type with all four fields. Re-pin the canonical vectors and storyboard
fixture provenance to v3.3.0-beta.4, carry the beta.3 commercial-terms
semantics, and add the beta.4 migration notes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@bokelley
bokelley marked this pull request as ready for review November 5, 2026 10:16
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Nov 5, 2026

@aao-secretariat aao-secretariat Bot 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.

Ladon verdict: Approve

Approve — AdCP 3.3.0-beta.4 adoption with no blocking or medium findings.

Checked:

  • No findings at any severity (Critical/High/Medium) from the reviewer.
  • Witness-not-translator: reporting-subscription engine/coverage/capabilities changes preserve wire shapes; empty-array guards verified (Math.min over unsupported packages, non-empty resolved.packages).
  • Changeset-vs-wire-impact: three correctly-scoped minor changesets cover the wire changes and documented behavior shifts; no hand-edited package.json version.
  • get_reporting_status reduced-grant refusal fails closed via SCOPE_INSUFFICIENT with no legacy over-refusal; reset_state gate and retention window verified.
  • Generated types/schemas and sha256-pinned vendored fixtures correctly excluded per mandatory-coverage rules.

Decision trace: no critical/high (row 1 n/a); gated_paths false (row 2 n/a); high_risk true only via bin/adcp.js (modified) but with zero medium findings (rows 3-5 n/a); no prior decision (row 6 n/a); no no-auto-approve team match (row 7 n/a); fewer than three medium findings (row 8 n/a) → row 9 approve. The high_risk flag on bin/adcp.js is a modification with no reviewer concerns, presumed safe.

bokelley added a commit to adcontextprotocol/adcp-client-python that referenced this pull request Nov 5, 2026
…reference model does

Two disagreements with the spec's reference model, found by its differential
generator (adcontextprotocol/adcp 8ee1bfa2) and fixed the same way in the
TypeScript SDK (adcontextprotocol/adcp-client#3620):

- A package_ids exception was modelled as a resolution change: it took the
  package out of resolution and started a regime, so a window naming every
  package of a buy reset the E a later resolution inherited. It now removes a
  period only when one entry covering the period start names every package
  resolving the offering that is owed the period, and never splits a regime.
- One excluded_by_buyer entry put every version under in-place membership.
  Only the versions whose span an entry overlaps are now; another version
  keeps its own account_ids and exclude_account_ids.

The three minimized differential scenarios are vendored from the TypeScript
SDK and pass. explain writes the before_package_added facts
(packages_added_at), sentence and buy facts (packages[].added_at) exactly as
the TypeScript SDK does, and reports a period a package_ids entry removes
under that entry's reason. A test pins the billing stub at an
account-timezone cutover, which both SDKs owe per the cutover text where the
8ee1bfa2 reference model emits none (fixed in the spec for beta.5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@aao-secretariat aao-secretariat Bot 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.

Ladon verdict: Approve

Approve.

The reviewable delta is a single file, src/lib/reporting/subscriptions/explain.ts, which removes a redundant confirmedAt !== undefined branch in the classify adcp#8718 package-added block. The preceding confirmation guard (if (confirmedAt === undefined || end <= confirmedAt) return done()) already narrows confirmedAt to a number, making the removed branch dead code and keeping the at > confirmedAt comparison sound. Behavior is preserved — a clean simplification.

No critical, high, or medium findings. The PR ships changesets (.changeset/adopt-adcp-3-3-beta-4.md, .changeset/compliance-probe-reset-beta4.md, .changeset/reporting-subscription-beta4-engine.md) covering the src/lib/** and bin/** touches, satisfying changeset-vs-wire-impact.

Decision table walk-through:

  • Rows 1 (critical/high): no such findings.
  • Row 2 (gated_paths): gated_paths is false — does not apply even though review_decision is REVIEW_REQUIRED.
  • Row 3 (deleted high-risk path): bin/adcp.js is (modified), not deleted.
  • Rows 4–5 (medium findings): none exist.
  • Row 6 (sticky escalate): prior decision was approve, not escalate.
  • Row 7 (no-auto-approve team): no team match.
  • Row 8 (≥3 medium): zero medium findings.
  • Row 9: approve.

The high_risk flag is true only because bin/adcp.js matches bin/** and was modified; with no medium-or-higher finding on that file, the modification is presumed safe and the flag alone does not escalate.

@bokelley
bokelley merged commit cf19067 into main Nov 5, 2026
45 checks passed
@bokelley
bokelley deleted the claude/adopt-3-3-beta-4 branch November 5, 2026 10:51
bokelley added a commit to adcontextprotocol/adcp-client-python that referenced this pull request Nov 5, 2026
…er rules and the signed bundle (#1851)

* feat(reporting): adopt the AdCP 3.3.0-beta.4 coverage and controller rules

Per-package added_at (adcp#8718). SubscriptionBuyPackage carries the
get_media_buys packages[].added_at, read by SubscriptionBuy.from_media_buy
and kept by the managed path also under buy_offerings. Each package is owed
from the later of the buy's confirmed_at and its added_at
(SubscriptionBuy.package_confirmed_at), and resolves at the later of the
version's accepted_at and that instant. A period of a resolved offering is
owed when it ends after that instant for at least one package resolving the
offering, so the period containing added_at is owed in full and adding a
package is never a cutover; package_ids exceptions compose with it. explain
reports the new before_package_added reason (rule confirmation), and judges a
package_ids exception against the packages owed the period, as the reference
model does. The test kit gains buys.add_package, which serves added_at.

Reduced grants (adcp#8718, #8724). A grant reduced to allowed_tasks without
get_reporting_status was already a loss of authority at the reduction
(accounts_unauthorized, withheld periods, a re-grant when it is added back).
The engine now keeps the reduced grant's tasks, so get_reporting_status
refuses the still-visible account with SCOPE_INSUFFICIENT; only a revoked
account is unknown (ACCOUNT_NOT_FOUND).

SUBSCRIPTIONS_REQUIRE_ACCOUNT_ID_KEY. check_subscription_offerings runs the
spec's offering-checks.json (standard_dimensions, then the primary_keys and
row-schema parts of the account_id rule, every failure in offering order).
The managed service now refuses a managed-delivery offering whose
primary_keys omit account_id with this code, where beta.3 only logged it.
ReliableReportingConfigurationError gains context (offering_id, missing).

Compliance controller (adcp#8717). reset_state is a scenario and a
TestControllerStore hook; register_test_controller and the A2A server refuse
a store that implements reporting_subscription_probe without it. Probe
results are nested under simulated as SimulationSuccess requires. The
reference seller serves reset_state (unpins its clock, restores the caller's
default grant and the original timezone and discards what the probe recorded
through ReportingSubscriptionEngine.discard_sandbox_changes) and returns
SetAccountTimezoneResult from set_account_timezone (account_id,
previous_timezone, timezone, changed_at when changed, timezone_cutovers[]).

The vendored coverage vectors move to adcontextprotocol/adcp 8ee1bfa2e9:
138 cases, 18 more than before, all passing, including the new
Pacific/Auckland, Pacific/Chatham, Asia/Kolkata and America/Mexico_City zones
under the pinned tzdata 2026.6 (2026f).

BREAKING CHANGE: a managed-delivery offering (one with method) whose
reporting_profile.primary_keys omit account_id is refused with
SUBSCRIPTIONS_REQUIRE_ACCOUNT_ID_KEY instead of logged. After a reduction
that drops get_reporting_status, get_reporting_status answers
SCOPE_INSUFFICIENT instead of ACCOUNT_NOT_FOUND. A TestControllerStore that
implements reporting_subscription_probe must implement reset_state, and
probe results reach the wire under simulated. The reference controller's
set_account_timezone result replaces cutovers with timezone_cutovers.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* fix(reporting): model package exclusions and membership edits as the reference model does

Two disagreements with the spec's reference model, found by its differential
generator (adcontextprotocol/adcp 8ee1bfa2) and fixed the same way in the
TypeScript SDK (adcontextprotocol/adcp-client#3620):

- A package_ids exception was modelled as a resolution change: it took the
  package out of resolution and started a regime, so a window naming every
  package of a buy reset the E a later resolution inherited. It now removes a
  period only when one entry covering the period start names every package
  resolving the offering that is owed the period, and never splits a regime.
- One excluded_by_buyer entry put every version under in-place membership.
  Only the versions whose span an entry overlaps are now; another version
  keeps its own account_ids and exclude_account_ids.

The three minimized differential scenarios are vendored from the TypeScript
SDK and pass. explain writes the before_package_added facts
(packages_added_at), sentence and buy facts (packages[].added_at) exactly as
the TypeScript SDK does, and reports a period a package_ids entry removes
under that entry's reason. A test pins the billing stub at an
account-timezone cutover, which both SDKs owe per the cutover text where the
8ee1bfa2 reference model emits none (fixed in the spec for beta.5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* feat(protocol)!: adopt the signed AdCP 3.3.0-beta.4 bundle

Pin src/adcp/ADCP_VERSION to 3.3.0-beta.4 from the audited, cosign-verified
release: schemas/releases/3.3.0-beta.4.json, source commit 8ee1bfa2e9e7 from
the Fulcio certificate (the commit the vendored coverage vectors already come
from), bundle sha256 3525423d25bc. Resync the schema cache, packaged
compliance inputs and request-signing vectors with --require-signed-release,
then regenerate the types and the public API snapshot. The wheel ships the
3.3.0-beta.4 schemas and compliance tree; the beta.3 trees stay in the
repository as history and leave distributions.

Generated: get_media_buys Package.added_at, SetAccountTimezoneResult on the
controller response, the budget_too_low details and creative
supports_provenance; create_media_buy drops the Opportunity / Status
branches (adcp#8709). DestinationOverride stays one model with account_ids,
operator_domains, destination_id and path_template under the item's new
if/then/else. Schedules under a local alignment now reject durations mixing
date and time, so the vectors' local-duration-cannot-mix-date-and-time case
is wire-invalid. The reference seller advertises 3.3-beta.4. The schema-parity
synthesizer reads a composition branch with the root's property schemas even
when the branch declares its own (create_media_buy's branches now constrain
opportunity).

BREAKING CHANGE: the SDK no longer advertises or accepts AdCP 3.3-beta.3.
get_supported_adcp_versions is 3.0, 3.1, 3.2, 3.3-beta.4 and 3.2-rc.7; an
adcp_version pin of 3.3-beta.3 or 3.3.0-beta.3 raises ConfigurationError, and
a peer that advertises only 3.3-beta.3 for the 3.3 line negotiates down to
3.2. Re-pin to 3.3-beta.4 or omit the pin. Numbered generated names renumber
(Status54 to Status53, Status97 to Status96, Status77 to Status76).

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* test(conformance): drop the discriminator_emitted class the beta.4 schemas no longer produce

test_every_accepted_class_still_occurs requires deleting an accepted
round-trip difference once it stops occurring; under the AdCP 3.3.0-beta.4
schemas no document routes into an arm whose discriminator it lacks.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant