Repository navigation
feat(version): accept 3.3-rc.0 as an explicit alias for 3.3-rc.3 - #1964
Conversation
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>
There was a problem hiding this comment.
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_versionsgates ontarget 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 viaadditionalProperties:falserather 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>
There was a problem hiding this comment.
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.
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>
Summary
Adds
"3.3-rc.0" → "3.3-rc.3"to_ADCP_VERSION_ALIASES, next to the existing3.2-rc.7 → 3.2bridge. 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 withVERSION_UNSUPPORTED.Why now. Production is stuck mid-move. agentic-api speaks only 3.3-rc.0, and the Scope3 ESA on
adcp==10.0.0b24serves 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. Noadcpwheel could serve both until now.Behaviour. This is the same path as the 3.2-rc.7 bridge:
3.3-rc.0(or3.3.0-rc.0) validates against the rc.3 schemas.resolved_adcp_version = "3.3-rc.3".adcp_version: "3.3-rc.0".supported_versionsonly while rc.3 is the packaged release.supported_versionsleaves 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.0andv3.3.0-rc.3tags (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):buy_productspurchases the compact standard isadditionalProperties: false, so a request that sendsmetric_idthere fails validation.create_media_buy/update_media_buypackage standards andget_productsfilters,metric_idstill validates, but rc.3 no longer acts on it.agentic-api v5.2148.0 never sends
metric_idon the wire: it carries the field underext.apostraand stripsextbefore 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:postal_areareporting dimension: onepostal_areaoffering in capabilities fails a strict rc.0 buyer's validation. A seller bridging rc.0 buyers must not emit it. The ESA usespostal_areaonly for targeting.notto someoneOfbranches (content-standards responses, adagents, property-feature-result). An instance that matches both branches is valid in rc.3 and invalid in rc.0.error.codeis an open vocabulary, soPROPOSAL_TERMS_CHANGEDis 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_versionnow picks3.3-rc.0instead of3.2and validates responses against rc.3. A strict Python buyer then rejects that seller's canonical products if they carryperformance_standards[].metric_id.Discovery. The managed reporting fallback for
supported_versionsdropped every alias. It now keeps aliases that serve subscriptions, so3.3-rc.0is listed and3.2-rc.7still isn't.Operational.
adcp_versionis 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 getsIDEMPOTENCY_CONFLICT/REPORTING_FEED_VERSION_MISMATCH. The rc.7 bridge already behaved this way.Tests
tests/test_rc0_version_bridge.py(26 tests) covers:MCPToolSetecho;message/sendround trip;VERSION_UNSUPPORTED;metric_idgap;serves_subscriptionsseam and advertisement.tests/test_adcp_3_3_0_rc_3_adoption.pynow expects rc.0 to resolve to rc.3 instead of being refused.tests/test_reporting_subscription_managed.py: managed capabilities advertise3.3-rc.0and not3.2-rc.7.🤖 Generated with Claude Code