Skip to content

feat(compliance): advisory AdCP 4.0 compatibility checks for 3.x agents - #8335

Merged
bokelley merged 1 commit into
mainfrom
bokelley/adcp-issue-8332
Oct 19, 2026
Merged

bokelley merged 1 commit into
mainfrom
bokelley/adcp-issue-8332

Conversation

@bokelley

@bokelley bokelley commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

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

  • Registry: 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.
  • No new storyboard. Each check rides on a step that already makes the call it needs, so it adds no calls and no new failure modes. A task error in a new step would fail its step whatever the validation severity. New checks are severity: advisory with permanent_advisory. expires_after_version is not allowed, because it promotes on runner version, not on the spec version being graded.
  • New check kind 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 in storyboard-schema.yaml and runner-output-contract.yaml, and covered by the path lint.
  • Lint scripts/lint-v4-compatibility-registry.cjs, wired into build:compliance and covered by tests. It keeps four things in step: the registry, the observing validations, the canonical notice codes with effective_version: "4.0", and the <a id> anchors on the migration page. It runs in both directions.
  • Docs: docs/reference/migration/v4-compatibility.mdx, with one section per check id, linked from the migration index.

First checks

Check id Issue Observed by
format_ids_removed_in_4_0 #7629 new advisory all_fields_present on media_buy_seller brief steps (both timezone branches)
major_versions_removed_in_4_0 #3572 existing required adcp.supported_versions validation in version_negotiation (3.2 cert already requires it)
adcp_version_echo_required_in_4_0 #3572 existing required envelope adcp_version echo in version_negotiation
request_signing_required_in_4_0 #2307 new advisory field_value on media_buy_seller get_capabilities
legacy_hmac_fallback_removed_in_4_0 #4205 new advisory field_value_or_absent on capability_discovery
signed_requests_specialism_deprecated #3078 existing canonical notice (now declares effective_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)

  • @adcp/sdk: implement all_fields_present (runner: implement the all_fields_present storyboard check adcp-client#3343). Until then format_ids_removed_in_4_0 grades not_applicable, reported as "not observable", under forward-compat.
  • @adcp/sdk notice-code drift (runner: emit the canonical 4.0 notice codes (request_signing_required_in_4_0, legacy_hmac_fallback_removed_in_4_0) adcp-client#3344): the runner emits request_signing.required and webhook_signing.legacy_hmac_fallback.removed, not the contract's canonical request_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.
  • Registry agent page: render the joined 4.0 report next to the existing notices.
  • Backports: these checks first appear in 3.3 bundles. Additive harness changes are patch-eligible, so they could be cherry-picked to 3.2.x if 3.2 sellers need them sooner.
  • Completeness: require 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 --check passes.
  • New test:v4-compatibility-registry (15 tests) and extended test:storyboard-validations-paths (35 tests) pass.
  • Related suites pass: check-enum, advisory-expiry, doc-parity, compliance-snippets, doc-compliance-drift, source-authority, response-schema, contradictions, docs-nav, sdk-runner-capability-gates.
  • The pre-commit hook (full server unit suite and typecheck) passed.
  • The local storyboard matrix was skipped on push (ADCP_SKIP_STORYBOARD_MATRIX=1). CI's training-agent-storyboards is the gate.

🤖 Generated with Claude Code


Open workspace in Conductor

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]>

@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 — advisory AdCP 4.0 compatibility checks.

Checked:

  • Change is additive (new all_fields_present check kind, advisory permanent_advisory validations 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 minor changeset — 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.

@bokelley
bokelley merged commit 80c2aec into main Oct 19, 2026
65 checks passed
@bokelley
bokelley deleted the bokelley/adcp-issue-8332 branch October 19, 2026 14:32
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]>
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]>
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