Skip to content

feat(version): accept 3.3-rc.0 as an explicit alias for 3.3-rc.3 - #1964

Merged
bokelley merged 3 commits into
nextfrom
feat/adcp-33-rc0-bridge
Nov 25, 2026
Merged

bokelley merged 3 commits into
nextfrom
feat/adcp-33-rc0-bridge

Conversation

@bokelley

@bokelley bokelley commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds "3.3-rc.0" → "3.3-rc.3" to _ADCP_VERSION_ALIASES, next to the existing 3.2-rc.7 → 3.2 bridge. A seller on this wheel can then serve buyers still pinned to 3.3-rc.0 while both sides move to rc.3, instead of refusing one side with VERSION_UNSUPPORTED.

Why now. Production is stuck mid-move. agentic-api speaks only 3.3-rc.0, and the Scope3 ESA on adcp==10.0.0b24 serves only 3.3-rc.3. Each side's deploy check refuses to go first. The documented order is: first an ESA that serves both previews, then the API. No adcp wheel could serve both until now.

Behaviour. This is the same path as the 3.2-rc.7 bridge:

  • A request claiming 3.3-rc.0 (or 3.3.0-rc.0) validates against the rc.3 schemas.
  • The handler sees resolved_adcp_version = "3.3-rc.3".
  • The MCP and A2A responses echo adcp_version: "3.3-rc.0".
  • The alias is advertised in supported_versions only while rc.3 is the packaged release.
  • A seller whose explicit supported_versions leaves out the alias still refuses rc.0.

rc.0 → rc.3 compatibility

I compared every source schema that changed between the v3.3.0-rc.0 and v3.3.0-rc.3 tags (48 files).

Requests (rc.0 buyer → rc.3 validation). Almost every change loosens the contract. The exception is performance-standard metric_id, which rc.3 withdrew (adcp#8854):

  • On buy_products purchases the compact standard is additionalProperties: false, so a request that sends metric_id there fails validation.
  • On create_media_buy / update_media_buy package standards and get_products filters, metric_id still validates, but rc.3 no longer acts on it.

agentic-api v5.2148.0 never sends metric_id on the wire: it carries the field under ext.apostra and strips ext before sending.

Responses (rc.3 seller → rc.0 buyer). Responses are rc.3-shaped and stamped 3.3-rc.0. Most rc.3 additions sit on open objects, which rc.0 accepts. The exceptions:

  • Values rc.3 added to closed enums. The live case is the postal_area reporting dimension: one postal_area offering in capabilities fails a strict rc.0 buyer's validation. A seller bridging rc.0 buyers must not emit it. The ESA uses postal_area only for targeting.
  • rc.3 added not to some oneOf branches (content-standards responses, adagents, property-feature-result). An instance that matches both branches is valid in rc.3 and invalid in rc.0.

error.code is an open vocabulary, so PROPOSAL_TERMS_CHANGED is fine.

Client side. ADCPClient(adcp_version="3.3-rc.0") now constructs and means rc.3, the same as the rc.7 alias does. Against an rc.0-only seller, negotiate_version now picks 3.3-rc.0 instead of 3.2 and validates responses against rc.3. A strict Python buyer then rejects that seller's canonical products if they carry performance_standards[].metric_id.

Discovery. The managed reporting fallback for supported_versions dropped every alias. It now keeps aliases that serve subscriptions, so 3.3-rc.0 is listed and 3.2-rc.7 still isn't.

Operational. adcp_version is part of the idempotency hash and the reporting feed snapshot. A request retried, or a feed walk continued, across the buyer's rc.0 → rc.3 switch gets IDEMPOTENCY_CONFLICT / REPORTING_FEED_VERSION_MISMATCH. The rc.7 bridge already behaved this way.

Tests

  • tests/test_rc0_version_bridge.py (26 tests) covers:
    • the resolvers, advertising, and validator identity with rc.3;
    • the MCP tool caller and MCPToolSet echo;
    • the A2A executor plus a real message/send round trip;
    • explicit exclusion → VERSION_UNSUPPORTED;
    • other prereleases still refused;
    • the metric_id gap;
    • the reporting serves_subscriptions seam and advertisement.
  • tests/test_adcp_3_3_0_rc_3_adoption.py now expects rc.0 to resolve to rc.3 instead of being refused.
  • tests/test_reporting_subscription_managed.py: managed capabilities advertise 3.3-rc.0 and not 3.2-rc.7.
  • Independent review ran the full suite: 22215 passed.

🤖 Generated with Claude Code

bokelley and others added 2 commits November 25, 2026 00:56
A seller on the rc.3 wheel can now serve buyers still pinned to 3.3-rc.0,
so the ESA can bridge a lockstep preview move instead of refusing one side
with VERSION_UNSUPPORTED. rc.0 requests validate against rc.3 and responses
echo the claimed 3.3-rc.0, the same shape as the 3.2-rc.7 bridge.

rc.3 accepts rc.0 requests except performance-standard metric_id, which
rc.3 withdrew (adcp#8854); the compact standard on buy_products purchases
rejects it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d validators

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@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 additive version-bridge change.

This PR adds a single alias entry "3.3-rc.0": "3.3-rc.3" to _ADCP_VERSION_ALIASES (_version.py:59), reusing the established 3.2-rc.7 bridge machinery, plus supporting docs and tests. Verified against repo gates:

  • Semver signal: Correct feat: prefix — accepting an additional version pin is non-breaking; no public export removed/renamed, no field optionality flip, no enum member removal.
  • Advertising self-cleans: get_supported_adcp_versions gates on target in versions, so the alias drops automatically when the wheel moves off rc.3.
  • Wire-change pathway (DR-0032/0033): The one rc.3 narrowing — withdrawn performance-standard metric_id — fails closed via additionalProperties:false rather than being silently dropped, which is the correct pathway handling. A pathway test is included (test_rc0_version_bridge.py:360).
  • No hand-edits to generated code, no import-layering violations, no credential-in-metadata concerns, no disabled tests or blanket type-ignores.

No blocking or medium findings. Not high-risk, no gated paths, no author-team gate, no prior decision. Falls through to row 9.

The managed reporting fallback dropped every compatibility alias from
supported_versions, so a buyer pinned to 3.3-rc.0 could not discover the
bridge on a seller that leaves supported_versions to the SDK. Keep aliases
that serve subscriptions; 3.2-rc.7 still stays out.

Also state both directions of the rc.0 bridge in the alias comment and
README (metric_id is rejected on buy_products and ignored elsewhere; rc.0
buyers cannot read values rc.3 added to closed enums such as the
postal_area reporting dimension), name the new alias in the version
docstrings, and replace a reporting test that passed without the alias.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@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 — focused refinement of the rc.0 subscription bridge.

No critical/high/medium findings. Row-by-row: no critical/high findings (row 1 N/A); gated_paths is false and review_decision is APPROVED (rows 1-2 N/A); high_risk is false (rows 3,5 N/A); no medium findings at all (rows 4,8 N/A); prior decision was approve not escalate (row 6 N/A); no no-auto-approve team match (row 7 N/A). Falls through to row 9 → approve.

What I checked: service.py:2048 now admits subscription-serving aliases into the fallback supported_versions via or serves_subscriptions(item), correctly adding 3.3-rc.0 (resolves to 3.3-rc.3, ≥ 3.3.0-beta.3) while keeping 3.2-rc.7 out. serves_subscriptions is in scope at that call site. The new managed-capability test covers the added behavior, and README/_version.py doc updates match. This is a clean net improvement over the prior approve.

@bokelley
bokelley merged commit 64dfa3c into next Nov 25, 2026
41 checks passed
@bokelley
bokelley deleted the feat/adcp-33-rc0-bridge branch November 25, 2026 02:22
bokelley added a commit that referenced this pull request Nov 25, 2026
The alias from #1964 let the managed sales agent serve buyers still pinned
to 3.3-rc.0 while agentic-api moved to rc.3. agentic-api production now
speaks 3.3-rc.3 (v5.2153.0), so the bridge has done its job. A buyer that
pins 3.3-rc.0 is refused with VERSION_UNSUPPORTED again, like any other
superseded prerelease.

The managed reporting fallback keeps leaving out aliases that never serve
subscriptions; that part of #1964 stays.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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