Repository navigation
feat(compliance): advisory AdCP 4.0 compatibility checks for 3.x agents - #8335
Merged
Merged
Conversation
Add a registry of AdCP 4.0 compatibility checks so a 3.x agent learns which 4.0 removals and new requirements it still depends on (#8332). Each check has a stable id, its tracking issue, a one-line detection rule, the fix, and the validation or runner notice that observes it. A report joins run output against the registry to show each check as passed, failing, or not observable. Checks ride on storyboard steps that already run, as advisory validations with permanent_advisory or as existing required validations, so none can fail a 3.x conformance run. First checks: format_ids removal (#7629), version declaration and echo (#3572), and the three canonical 4.0 notice codes. Adds the all_fields_present check kind (absent or empty arrays grade not_applicable), a build lint that keeps the registry, storyboards, notice codes, and migration guide anchors in step, and the migration page reference/migration/v4-compatibility. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
There was a problem hiding this comment.
Ladon verdict: Approve
Approve — advisory AdCP 4.0 compatibility checks.
Checked:
- Change is additive (new
all_fields_presentcheck kind, advisorypermanent_advisoryvalidations that never flip 3.x pass/fail, a new registry, and a lint enforcing registry↔storyboard↔notice↔migration-guide coherence with tests). - Carries a correct
minorchangeset — non-breaking, so changeset type/scope is correct per repo rules. - Reviewer verified all six check ids resolve to real storyboard step pairs, migration-guide anchors match, the three effective_version "4.0" notice codes are registry ids, and reused version-negotiation validations remain blocking-but-unchanged.
- No schema↔docs drift, no oneOf regression, no immutable-artifact edits, no hand-edited package.json version.
Decision table: no critical/high/medium findings. gated_paths is false. high_risk is true but reasons are (added)/(modified) on docs with no medium-or-higher finding — not escalation-worthy on the flag alone. No no-auto-approve team match. Falls through to row 9 → approve.
This was referenced Oct 19, 2026
bokelley
added a commit
that referenced
this pull request
Oct 21, 2026
….2.x (#8340) 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]>
This was referenced Oct 22, 2026
TekWorx
pushed a commit
to TekWorx/adcp
that referenced
this pull request
Oct 24, 2026
Merge the published v3.2.6 maintenance release (tag v3.2.6, 3523bdc, the adcontextprotocol#8274 Version Packages merge on 3.2.x) into main as a record-only merge, following adcontextprotocol#8278 for 3.2.5. The merge keeps main's tree (ours strategy) and adds only the 3.2.6 release records: - dist/schemas/3.2.6/, dist/compliance/3.2.6/ and the signed dist/protocol/3.2.6.tgz{,.crt,.sha256,.sig} tuple, byte-identical to the tag. - CHANGELOG.md: the 3.2.6 block, verbatim from the tag, inserted below main's 3.3.0-beta.0 section. (The workflow's take-3.2.x rule would have dropped that section.) - static/compliance/published-versions.json: register 3.2.6, matching the 3.2.x manifest. - dist/schemas/index.json and latest.json: regenerated by build:schemas; latest_stable, v3 and v3.2 now 3.2.6. main's 3.3.0-beta.0 entry and v3.0 (3.0.28) are kept; taking 3.2.x's copy would have regressed both. The 3.2.5..3.2.6 source changes are all backports of work already on main in its main form (adcontextprotocol#8335, adcontextprotocol#8402, adcontextprotocol#8218, adcontextprotocol#8216, adcontextprotocol#8341/adcontextprotocol#8387, adcontextprotocol#8327/adcontextprotocol#8334, adcontextprotocol#8260, adcontextprotocol#8261, adcontextprotocol#8263, adcontextprotocol#8244), so no 3.2.x source is taken. The second parent records that reconciliation so the next 3.2.x forward merge does not re-conflict on it. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the first slice of #8332: a 4.0 compatibility check in the compliance suite that tells a 3.x agent which 4.0 removals and new requirements it still depends on. It is advisory throughout 3.x.
What's here
static/compliance/source/universal/v4-compatibility.yaml. Each check has a stable id, the tracking issue, a one-line detection rule, the fix, and what observes it: a validation at a storyboard step, a canonical runner notice, or nothing (not observable). A report joins one run's output against the registry and shows each check as passed, failing (with the fix), or not observable. The file ships in the compliance bundle, so registries and SDKs can do the join themselves.severity: advisorywithpermanent_advisory.expires_after_versionis not allowed, because it promotes on runner version, not on the spec version being graded.all_fields_present. Every item of an array carries a field (products[*].format_options). An absent or empty array grades not_applicable, never a vacuous pass. Documented instoryboard-schema.yamlandrunner-output-contract.yaml, and covered by the path lint.scripts/lint-v4-compatibility-registry.cjs, wired intobuild:complianceand covered by tests. It keeps four things in step: the registry, the observing validations, the canonical notice codes witheffective_version: "4.0", and the<a id>anchors on the migration page. It runs in both directions.docs/reference/migration/v4-compatibility.mdx, with one section per check id, linked from the migration index.First checks
format_ids_removed_in_4_0all_fields_presentonmedia_buy_sellerbrief steps (both timezone branches)major_versions_removed_in_4_0adcp.supported_versionsvalidation inversion_negotiation(3.2 cert already requires it)adcp_version_echo_required_in_4_0adcp_versionecho inversion_negotiationrequest_signing_required_in_4_0field_valueonmedia_buy_sellerget_capabilitieslegacy_hmac_fallback_removed_in_4_0field_value_or_absentoncapability_discoverysigned_requests_specialism_deprecatedeffective_version: "4.0")These are held back until their 4.0 change is decided: #7869 (
channels), #5668 (duration_ms), #7850 (account refs) and #4905 (media_buy_status). The migration page lists them as not yet checked.Follow-ups (not in this PR)
all_fields_present(runner: implement the all_fields_present storyboard check adcp-client#3343). Until thenformat_ids_removed_in_4_0grades not_applicable, reported as "not observable", under forward-compat.request_signing.requiredandwebhook_signing.legacy_hmac_fallback.removed, not the contract's canonicalrequest_signing_required_in_4_0/legacy_hmac_fallback_removed_in_4_0. This PR grades both as validations, so the report doesn't depend on the notices.3.2.xif 3.2 sellers need them sooner.x-removed-in: "4.0.0"on every schema node slated for 4.0 removal (about 47 today carry only prose), and lint those nodes against the registry.Testing
node scripts/build-compliance.cjs --checkpasses.test:v4-compatibility-registry(15 tests) and extendedtest:storyboard-validations-paths(35 tests) pass.ADCP_SKIP_STORYBOARD_MATRIX=1). CI'straining-agent-storyboardsis the gate.🤖 Generated with Claude Code
Open workspace in Conductor