You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Reporting subscriptions: match selectors on dimension_systems (adcp#9049), and fix_postal_union_arm_order breaks on the new schema #1935
adcontextprotocol/adcp#9049 (merged 21 Nov as a1cebda977, landing in 3.3.0-rc.3 at the earliest) adds dimension_systems to reporting subscription selectors and delivery offerings. Two things in this SDK need to follow it.
1. Offering selection should honour selector.dimension_systems
A selector that names a metro or postal system matches only offerings that report in that system. The rule, from systemsMatch in the adcp reference (scripts/reference/reporting-coverage/coverage.cjs):
selector.dimension_systems.metro must equal the offering's dimension_systems.metro.
Every selector postal_area{country, system} entry must be in the offering's dimension_systems.postal_area.
A key the selector omits accepts any system.
It applies in the candidate filter, alongside feed_purpose, period_duration, finality, alignment, method and timezone, before match is resolved.
The canonical vectors at the #9049 merge add three cases: match-metro-system-named, match-metro-system-omitted and match-postal-systems-subset. In adcp CI, "Harness self-test and vectors through both SDKs" disagrees on match-metro-system-named and match-postal-systems-subset until both SDKs adopt the rule. The TypeScript SDK change is adcontextprotocol/adcp-client#3757.
2. fix_postal_union_arm_order fails on the #9049 schema
adcp's "Generate Python SDK" check fails on #9049's head (d302d0b174):
RuntimeError: generated postal_area.py has an unexpected outer union shape
(run). scripts/post_generate_fixes.pyfix_postal_union_arm_order string-matches PostalArea1 | PostalArea2. The failure started when reporting-dimension-systems.jsonpostal_area items began referencing core/postal-country-system.json, which most likely shifted datamodel-codegen's class numbering. The previous head, b7d0fd53, passed. That mechanism is a hypothesis: a local reproduction hit an unrelated $ref error first, so it isn't confirmed. Matching the union structurally, picking the legacy arm by its fields rather than its generated number, would survive future renumbering.
Both will surface as soon as the SDK pins a bundle that contains #9049.
Activity
fix(codegen): find postal union arms by shape and pin their names (#1939
bokelley commentedon Nov 23, 2026
Both parts are fixed on
next(the 10.0.0b* / AdCP 3.3 line) and shipped inadcp==10.0.0b23on PyPI:fix_postal_union_arm_ordernow finds the postal union arms by shape and keeps thePostalArea1/PostalArea2names: fix(codegen): find postal union arms by shape and pin their names #1939 (1ce27d92). The adcp "Generate Python SDK" check is green again.dimension_systems(adcp#9049), andpostal_areais a standard dimension: feat(protocol)!: adopt the signed AdCP 3.3.0-rc.3 bundle #1941 (aa0d8bb4), which also vendors the rc.3 coverage vectors.mainis the 9.x / AdCP 3.2 line and doesn't take 3.3 features, so nothing is needed there.