Repository navigation
feat: adopt signed AdCP 3.3.0-beta.2 for SDK 17 beta - #3541
Conversation
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]>
There was a problem hiding this comment.
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
fileslist, 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):
bindEnvelopeSchemaLoaderavoids 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]>
There was a problem hiding this comment.
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, notescalate(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.
There was a problem hiding this comment.
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.jsmodified) 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.
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]>
…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]>
…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]>
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.
fa39ca874b10ab7cf17d5cfa52abdce58b2dd274d75dc90192a2d13ffae2103f30bd505040a7ff0a40f8a7946d82730428dd6e8a, cosign-verified (ADCP_REQUIRE_SIGNATURE=1 ADCP_GITHUB_FALLBACK=0)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 advertises3.3-beta.1. A peer still on beta.1 (SDK17.0.0-beta.5throughbeta.9) won't select the 3.3 preview with this release. The pair settles on a shared stable release instead. An explicitadcpVersion: '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_accountgainsallow_separate_account, and change requests can resolve ascreatedormatched. Adds the new correctable error codeACCOUNT_CHANGE_REQUIRES_NEW_ACCOUNT.proposal_initiator,offer_reasonandproposal.offered.proposal.offeredjoinsACCOUNT_NOTIFICATION_TYPES, because it is account-anchored.CollectionMechanism,counting_mechanismsandvendor_metric_provenance.standard_dimensionsandunmapped_dimensions, per-offeringoffering_idon exceptions, gaps and cutovers,previous_timezone,prior_versions[].configurationandinactive_intervals.principal_kindandexpected_principal_kindare 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, thedefinition_changedrefinement reason, thepaid_amplificationandcontent_reuseright uses,installment_changesand 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 reviewed3.3.0-beta.2semantics entry equals beta.1 minus the three withdrawn contracts (checked mechanically against the bundle). As a result, against beta.2:definition_pinscurrent-source fail-closed path ('definition_pins' in schema.properties) and thepin_projection/installment_membershiprefusals never fire;definition_pinsand purchaseinstallments[]are rejected as unknown terms by the closedcommercial_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
omitsEnvelopeStatusForReleaselazilyrequire()dschema-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, andstatuswas kept on a 3.2-styledecline_proposals.schema-loadernow binds its own module instance (CJS or ESM) intoenvelope-status-compatwhen it loads. The lazyrequireremains 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.SingleAgentClienthad the same lazyrequirefor the artifact-webhook validator, even though it already imports the loader statically. It now uses the static import.test/lib/envelope-status-esm-loader.test.jscovers ESM registered roots, ESM scoped roots and CJS. Disabling the binding indistmakes 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
principal.yamlandreporting-core.yamlbytes are unchanged.llms.txt/ TYPE-SUMMARY / worksheet.check-package-size.mjsis unchanged.Test plan
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-fixturesallow_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 artifactstest:nodein CI. Locally the fast lane hit Postgres-only failures (no local database) and ran out of time.🤖 Generated with Claude Code