Skip to content

fix(compliance): backport advisory AdCP 4.0 compatibility checks to 3.2.x - #8340

Merged
bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-v4-compatibility-checks
Oct 21, 2026
Merged

bokelley merged 1 commit into
3.2.xfrom
backport/3.2.x-v4-compatibility-checks

Conversation

@bokelley

Copy link
Copy Markdown
Contributor

Backport of #8335 (merge commit 80c2aec) to 3.2.x, for #8332. 3.2 sellers are graded against 3.2.x compliance bundles, so without this they would not see the advisory AdCP 4.0 compatibility checks until 3.3 GA.

Why this is patch-eligible

It is an additive conformance-harness change plus non-normative docs (playbook, "Patch eligibility"):

  • New validations are all severity: advisory with permanent_advisory: format_ids_removed_in_4_0 on media_buy_seller get_products_brief / get_products_brief_buyer_selected_timezone, request_signing_required_in_4_0 on media_buy_seller get_capabilities, and legacy_hmac_fallback_removed_in_4_0 on capability_discovery get_capabilities.
  • version_negotiation get_capabilities_with_version only adds ids to its two validations, which 3.2.x already requires (adcp.supported_versions, adcp_version echo). Their grading does not change.
  • all_fields_present is an additive authored check kind. The @adcp/sdk runner pinned on 3.2.x does not implement it yet and grades unknown kinds not_applicable (passed: true), so it cannot change a verdict.
  • universal/v4-compatibility.yaml is a non-graded registry. signed_requests_specialism_deprecated gets effective_version: "4.0", as its two sibling 4.0 notice codes already have on 3.2.x.
  • The PR also adds the build lint and tests, plus the reference/migration/v4-compatibility page.

Verified on 3.2.x

  • Every referenced storyboard and step exists: media_buy_seller get_products_brief, get_products_brief_buyer_selected_timezone, and get_capabilities; capability_discovery get_capabilities; version_negotiation get_capabilities_with_version; signed_requests.
  • The 3.2.x source schemas have adcp.supported_versions, request_signing.supported, webhook_signing.legacy_hmac_fallback, and product format_options.
  • 3.2.x's runner-output-contract.yaml already has all three canonical notice codes: signed_requests_specialism_deprecated, request_signing_required_in_4_0, and legacy_hmac_fallback_removed_in_4_0.

Backport adaptations

  • Changeset is patch, not main's minor. 3.2.x is not in pre mode.
  • Docs wording: the checks ship in "compliance bundles 3.2.6 and later on the 3.2 line, and from 3.3 onward". 3.2.5 is the highest 3.2.x release in dist/compliance.
  • Conflict in docs/reference/migration/index.mdx: main's hunk sat next to a "3.3 migration guide" section that does not exist on 3.2.x. I kept only the new "Preparing for 4.0" section.
  • Conflict in package.json (test chain): kept 3.2.x's list and inserted test:v4-compatibility-registry after test:storyboard-doc-parity. Main's test:storyboard-context-resolution is not on this branch, so it is not in the chain.
  • No dist/**/<semver>/ artifact is touched.

Local checks

  • node scripts/build-compliance.cjs --check, which now runs the registry lint
  • npm run test:v4-compatibility-registry
  • npm run test:storyboard-validations-paths
  • every test:storyboard-* script
  • test:refine-finalize-validation-ids, test:error-codes, test:compliance-snippets, test:doc-compliance-drift, test:docs-nav, test:owned-links, test:release-docs-nav, test:unit
  • node scripts/check-changeset-protocol-scope.cjs origin/3.2.x
  • npx @changesets/cli@^3 status --since=origin/3.2.x, which reports a patch for adcontextprotocol

🤖 Generated with Claude Code

….2.x

Backport of #8335 (80c2aec) for #8332, so 3.2 sellers graded against
3.2.x compliance bundles see the advisory 4.0 compatibility checks before
3.3 GA.

Every added validation is severity: advisory with permanent_advisory, or an
id on a validation already required on 3.2.x, so no 3.2 pass/fail verdict
changes. Runners that predate all_fields_present grade it not_applicable.

Backport adaptations:
- changeset bump is patch (main used minor)
- migration docs name 3.2.6 as the first 3.2.x bundle carrying the checks
- migration index keeps only the "Preparing for 4.0" section; the 3.3
  migration guide section from main does not exist on 3.2.x
- package.json test chain keeps 3.2.x's list plus test:v4-compatibility-registry

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

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

Approve — clean backport of #8335 to 3.2.x.

Checked:

  • Additive advisory conformance tooling: all new validations are advisory/permanent_advisory or add ids to already-required version_negotiation checks, so no 3.x verdict changes.
  • New check kind and the three 4.0 notice codes satisfy the new registry lint; advisory_not_permanent guard at lint-v4-compatibility-registry.cjs:L478 is correct.
  • Storyboard/step/notice references all resolve in the 3.2.x base.
  • Non-normative migration docs under docs/reference/** are additive (one added, one modified); no wire-shape claims that diverge from schema.
  • Patch changeset present; no schema source or dist artifact edits — immutability intact.

High-risk flag is true only because of docs/reference/** (one added, one modified) with no medium-or-higher finding, so the modification is presumed safe. gated_paths is false, no author team gate, no prior decision. No Critical/High/Medium findings → decision table falls through to row 9.

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