Skip to content

feat: adopt signed AdCP 3.3.0-beta.2 for SDK 17 beta - #3541

Merged
bokelley merged 2 commits into
mainfrom
bokelley/adopt-3.3.0-beta.2
Oct 30, 2026
Merged

bokelley merged 2 commits into
mainfrom
bokelley/adopt-3.3.0-beta.2

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Summary

Adopts the signed AdCP 3.3.0-beta.2 release for the SDK 17 beta line, replacing 3.3.0-beta.1. Also fixes #3529.

  • Release: v3.3.0-beta.2, spec commit fa39ca874b10ab7cf17d5cfa52abdce58b2dd274
  • Bundle SHA-256: d75dc90192a2d13ffae2103f30bd505040a7ff0a40f8a7946d82730428dd6e8a, cosign-verified (ADCP_REQUIRE_SIGNATURE=1 ADCP_GITHUB_FALLBACK=0)
  • The stable 3.2.7, 3.1.31 and 3.0.25 bundles are still packaged
  • adcp#8547 (protocol envelope composed on every task response) merged after beta.2, so it is not in this bundle and not adopted here

Warning

Beta-channel break. The SDK now advertises and negotiates only 3.3-beta.2 (3.3.0-beta.2). It no longer packages or advertises 3.3-beta.1. A peer still on beta.1 (SDK 17.0.0-beta.5 through beta.9) won't select the 3.3 preview with this release. The pair settles on a shared stable release instead. An explicit adcpVersion: '3.3.0-beta.1' pin now throws a configuration error. Buyers and sellers need to upgrade together to keep testing 3.3 preview features. The changeset and the 16 → 17 migration guide both say this.

What changes

Protocol surface (regenerated from the signed bundle)

  • request_account gains allow_separate_account, and change requests can resolve as created or matched. Adds the new correctable error code ACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT.
  • Experimental seller offers: proposal_initiator, offer_reason and proposal.offered. proposal.offered joins ACCOUNT_NOTIFICATION_TYPES, because it is account-anchored.
  • Experimental measurement provenance: CollectionMechanism, counting_mechanisms and vendor_metric_provenance.
  • Reporting subscriptions: standard_dimensions and unmapped_dimensions, per-offering offering_id on exceptions, gaps and cutovers, previous_timezone, prior_versions[].configuration and inactive_intervals.
  • principal_kind and expected_principal_kind are deprecated.

Withdrawn from 3.3 (adcp#8537)

  • Definition pins, purchase rights and installment selection are gone from the types and schemas. That includes DefinitionPin, DefinitionPinReferenceKind, REFERENCE_DEFINITION_CHANGED, the definition_changed refinement reason, the paid_amplification and content_reuse right uses, installment_changes and related fields.

  • src/lib/negotiation/ turns its pin handling off for beta.2 without any code removal. The verifier is schema-driven, and a new reviewed 3.3.0-beta.2 semantics entry equals beta.1 minus the three withdrawn contracts (checked mechanically against the bundle). As a result, against beta.2:

    • the definition_pins current-source fail-closed path ('definition_pins' in schema.properties) and the pin_projection / installment_membership refusals never fire;
    • publisher format references verify as ordinary snapshot terms;
    • definition_pins and purchase installments[] are rejected as unknown terms by the closed commercial_terms.

    The business-calendar SLA fail-closed rule stays. The beta.0 and beta.1 entries stay for retained external roots, following the feat: adopt signed AdCP 3.3.0-beta.1 for SDK 17 beta #3503 precedent.

Fix #3529: ESM envelope-status used the CommonJS schema loader

  • Cause: omitsEnvelopeStatusForRelease lazily require()d schema-loader, and in the ESM build that resolves the CJS module. The CJS module keeps its own external-root registry, so a root registered through the ESM loader (registerExternalSchemaRoot / withExternalSchemaRoot) looked unknown, and status was kept on a 3.2-style decline_proposals.
  • Fix: schema-loader now binds its own module instance (CJS or ESM) into envelope-status-compat when it loads. The lazy require remains only as a fallback for when no loader of that format has been loaded, which keeps AJV out of the eager graph. An unresolved release is no longer cached, so a root registered later still counts.
  • SingleAgentClient had the same lazy require for the artifact-webhook validator, even though it already imports the loader statically. It now uses the static import.
  • New test/lib/envelope-status-esm-loader.test.js covers ESM registered roots, ESM scoped roots and CJS. Disabling the binding in dist makes both ESM cases fail, and restoring it makes them pass. After this ships, the dual-loader workaround in the spec repo's storyboard runner (adcp#8604) can be removed.

Fixtures, docs, packaging

  • Canonical storyboard fixture provenance now points at the beta.2 tag and commit. The principal.yaml and reporting-core.yaml bytes are unchanged.
  • The vendored A2A vectors are byte-identical to beta.2; only the README provenance was updated.
  • Updated: README, AGENTS.md, WIRE-VERSION-COMPAT, v17 beta plan, migration guide (new "AdCP 3.3.0-beta.2" section), proposal-terms verification guide, CLI help, llms.txt / TYPE-SUMMARY / worksheet.
  • Package size: 25.1 MiB packed, 138.1 MiB unpacked, 8,427 files. That is within the existing budgets, so check-package-size.mjs is unchanged.

Test plan

  • Signed sync of 3.3.0-beta.2, 3.2.7, 3.1.31 and 3.0.25 with cosign verification
  • Generators rerun (generate-types, generate-registry-types --sync, agent docs, release worksheet)
  • typecheck, build:lib, format:check, ci:codegen-strict, check:skill-sync, lint:boundaries, check:package-size, check:publish-protocol-artifacts, ci:doc-links, check:canonical-storyboard-fixtures
  • Targeted suites: beta adoption (including new beta.2 tests for allow_separate_account / created, the new error code, and a beta.1 seller falling back to 3.2), version sync and translation, proposal negotiation, commercial terms, strict account references, sdk17 regressions, envelope status (gating, compat, ESM loader), canonical fixtures, publish artifacts
  • Full test:node in CI. Locally the fast lane hit Postgres-only failures (no local database) and ran out of time.
  • CI green

🤖 Generated with Claude Code

Replace the 3.3.0-beta.1 pin with the signed 3.3.0-beta.2 bundle
(spec commit fa39ca87, sha256 d75dc901...). The SDK now advertises and
negotiates only 3.3-beta.2; beta.1 peers fall back to a shared stable
release (beta-channel break).

- Regenerate types, Zod schemas, manifest constants and docs.
- adcp#8537 withdrew definition pins, purchase rights and installment
  selection: add a reviewed beta.2 commercial-terms semantics entry
  without those contracts, so the verifier's pin and installment
  fail-closed paths turn off for beta.2.
- proposal.offered joins ACCOUNT_NOTIFICATION_TYPES.
- Update compliance fixture provenance, A2A vector provenance, docs and
  version-pinned tests; add beta.2 adoption tests.

Fix #3529: the ESM envelope-status check used the CommonJS schema
loader and missed ESM-registered schema roots. schema-loader now binds
its own module instance into envelope-status-compat, unresolved
releases are not cached, and SingleAgentClient uses its static loader
import for the artifact-webhook validator.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
aao-secretariat[bot]
aao-secretariat Bot previously approved these changes Oct 30, 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 — clean AdCP 3.3.0-beta.1→beta.2 adoption.

What I checked:

  • Version strings, provenance (commit fa39ca8, bundle sha d75dc90), package.json files list, COMPATIBLE_ADCP_VERSIONS, and tests all move together consistently.
  • Logic change #1 (commercial-terms-semantics.ts): the beta.2 override is exactly the beta.1 block minus the three adcp#8537 withdrawals (definition_pins, definition-pin.json, installments); fail-closed pin/installment checks correctly stop firing.
  • Logic change #2 (#3529 envelope-status fix): bindEnvelopeSchemaLoader avoids the cross-build require() hazard with no static circular import, correct ESM eval ordering, and unresolved-version is no longer cached.
  • Changeset present (minor), acceptable in beta pre-mode where a major (display_tag) already drives the 17.0.0 bump — changeset-vs-wire-impact satisfied.
  • No witness-not-translator violations, no version-translation pathway gaps.

high_risk note: bin/adcp.js (modified) triggers the flag, but the reviewer found no medium-or-higher concern on it; the modification is presumed safe per the arbiter's change-kind guidance.

Medium findings: none.

Decision trace: No critical/high (row 1 n/a). gated_paths false (row 2 n/a). No deletions (row 3 n/a). No medium findings (rows 4, 5, 8 n/a). No prior decision (row 6 n/a). No no-auto-approve team match (row 7 n/a). Falls through to row 9 → approve.

One Low (omitted from blocking): v17-beta-plan.md states 3.1.29 maintained bundle while the packaged/correct value (3.1.31) appears everywhere else.

…EFERENCE_NOT_FOUND

The beta.2 signal-marketplace storyboard requires REFERENCE_NOT_FOUND (or
INVALID_REQUEST) for an unknown signal_agent_segment_id; SIGNAL_NOT_FOUND
is reserved for data-provider signal_id references. Update the marketplace
example, the SignalsPlatform doc comment and the decisioning skill.

Co-Authored-By: Claude Opus 5.5 (1M context) <[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 — clean delta since prior approve.

The change since the prior approve (head aa5843d) is a scoped 4-file error-code rename: the unknown signal_agent_segment_id case now throws REFERENCE_NOT_FOUND instead of SIGNAL_NOT_FOUND across one example, one SKILL.md table, and one interface JSDoc comment, plus a generated-schema timestamp bump. Both codes remain valid ErrorCode enum members (SIGNAL_NOT_FOUND reserved for data-provider signal_id, REFERENCE_NOT_FOUND for agent-internal segment IDs) and the rationale is captured inline. Published lib code (signals.ts) is comment-only — no behavior change — and the adcp-3.3-beta.2 changeset covers the PR.

Checks:

  • No critical/high/medium findings (row 1, 4, 5 do not fire).
  • gated_paths: false (row 2 n/a despite review_decision REVIEW_REQUIRED).
  • high_risk true only via bin/adcp.js (modified), but no medium finding on it (row 5 n/a); no (deleted) reason (row 3 n/a).
  • Prior decision was approve, not escalate (row 6 n/a).
  • No no-auto-approve team match (row 7 n/a).
  • Zero medium findings (row 8 n/a).

Falls through to row 9 → approve.

@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 — clean delta pass.

This PR swaps SIGNAL_NOT_FOUND for REFERENCE_NOT_FOUND on the unknown-signal_agent_segment_id path across an example (hello_signals_adapter_marketplace.ts), the signal-marketplace SKILL.md, and a JSDoc comment in signals.ts, plus a timestamp-only regeneration of wellknown-schemas.generated.ts. REFERENCE_NOT_FOUND is a valid AdCP ErrorCode (confirmed enums.generated.ts:112, inline-enums.generated.ts:540). No runtime library behavior changed, witness-not-translator posture is preserved, and the 3.3-beta.2 changeset is present.

Checks applied:

  • No critical/high findings (row 1 N/A).
  • gated_paths is false (row 2 N/A).
  • high_risk is true (bin/adcp.js modified) but no (deleted) reasons (row 3 N/A) and no medium findings on modified high-risk files (row 5 N/A).
  • No medium findings at all (rows 4, 8 N/A).
  • Prior decision was approve (row 6 N/A).
  • No no-auto-approve team match (row 7 N/A).

Falls through to row 9 → approve. Prior pass was also clean; this remains a net-clean delta.

@bokelley
bokelley merged commit a66b6b6 into main Oct 30, 2026
59 of 60 checks passed
@bokelley
bokelley deleted the bokelley/adopt-3.3.0-beta.2 branch October 30, 2026 18:06
bokelley added a commit that referenced this pull request Oct 30, 2026
Main's ci.yml went red after #3510 and #3541 landed:

- Package size: CI measured 26,363,856 packed bytes after #3510 and
  26,369,089 after #3541, over the 26,360,000 cap set for beta.1. Raise
  the cap to 26,420,000 with the measurement recorded; the unpacked,
  file-count, schema and declaration budgets are unchanged.
- test/lib/pre-dispatch-errors.test.js (#3507) pinned adcpVersion
  '3.3.0-beta.1', which #3541 retired, so the client constructor threw a
  ConfigurationError instead of reaching the feature gate. Use the SDK's
  own ADCP_VERSION so the test survives the next preview bump.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
bokelley added a commit that referenced this pull request Oct 30, 2026
…3548)

Main's ci.yml went red after #3510 and #3541 landed:

- Package size: CI measured 26,363,856 packed bytes after #3510 and
  26,369,089 after #3541, over the 26,360,000 cap set for beta.1. Raise
  the cap to 26,420,000 with the measurement recorded; the unpacked,
  file-count, schema and declaration budgets are unchanged.
- test/lib/pre-dispatch-errors.test.js (#3507) pinned adcpVersion
  '3.3.0-beta.1', which #3541 retired, so the client constructor threw a
  ConfigurationError instead of reaching the feature gate. Use the SDK's
  own ADCP_VERSION so the test survives the next preview bump.

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
bokelley added a commit that referenced this pull request Nov 1, 2026
…adroom (#3568)

* fix(packaging): stop shipping duplicate compliance and declaration bytes

Trim @adcp/sdk from 26,862,556 to 24,993,401 packed bytes (8,529 to
8,176 files) without changing runtime behavior:

- Exclude compliance/cache/*/domains/ from the package. Every bundle's
  domains/ is a byte-identical copy of protocols/, the only directory the
  storyboard loader reads (-286,556 bytes, -353 files).
- Emit one-line ESM facades for the type-only generated declarations
  (types/core.generated, types/tools.generated, registry/types.generated),
  as types/schemas.generated already did, instead of copying 5.7 MB of
  declarations (-1,174,602 bytes).
- Store the self-contained MCP tools/list request projections as compact
  JSON. They are only ever JSON.parse'd (-407,997 bytes).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* ci(packaging): size budgets with headroom and a per-PR growth check

The packed-byte and file-count budgets were pinned to the measurement, so
two PRs that each added a file or a few KB passed alone and broke main
together (#3510 + #3541, #3564 + #3559/#3560). Replace the pins with:

- Ceilings with headroom in scripts/package-size-budget.json: @adcp/sdk
  26,000,000 packed bytes / 135,000,000 unpacked / 8,450 files against a
  measured 24,993,401 / 129,047,083 / 8,176 (about 4%), and
  @adcp/reporting-storage 490,000 / 2,250,000 / 150. A warning fires when
  less than two PRs' allowance of headroom is left.
- A per-PR growth check. main caches each commit's measurement; a pull
  request compares itself with the record for its exact merge base and may
  add 100 KB / 25 files to the SDK (15 KB / 8 files to the storage
  package). More needs the same PR to raise the ceiling, so the growth is
  reviewed in the diff. A missing record skips only this comparison.
- The focused-client eager graph count becomes a ceiling (230, measured
  216) instead of an exact pin; the named heavy-module exclusions stay.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

---------

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ESM envelope-status-compat uses the CommonJS schema loader, missing ESM-registered schema roots

1 participant