Skip to content

feat(types,decisioning): close salesagent migration export gaps#511

Merged
bokelley merged 2 commits into
mainfrom
bokelley/salesagent-feedback
May 4, 2026
Merged

feat(types,decisioning): close salesagent migration export gaps#511
bokelley merged 2 commits into
mainfrom
bokelley/salesagent-feedback

Conversation

@bokelley
Copy link
Copy Markdown
Contributor

@bokelley bokelley commented May 4, 2026

Summary

  • Add Dimensions and Renders to adcp.types (pair with the already-public Responsive triad).
  • Add MediaBuyFeatures and AiTool to adcp.types (referenced from 5+ adopter call sites).
  • Re-export validate_platform from adcp.decisioning.validate_capabilities and from the adcp.decisioning top level — the module name reads like the right home, but the function lived in adcp.decisioning.dispatch.

Motivation

Lifted directly from the salesagent v3.12 → 4.x migration write-up — items #1, #2, and #8 in SDK_FEEDBACK.md. These are pure mechanical wins that unblock six tests salesagent had to revert to mixed generated_poc imports, and align the module name validate_capabilities with the function adopters expect to find there.

No behavior change, no schema change. Existing import paths (generated_poc/*, adcp.decisioning.dispatch.validate_platform) continue to work.

Test plan

  • ruff check clean on touched files
  • mypy clean on touched files
  • pytest tests/test_capabilities_response_shape_validation.py tests/test_decisioning_dispatch.py — 45 passed
  • pytest -k "types_export or public_surface or aliases or generated" — 119 passed
  • Smoke imports verify the four new adcp.types symbols and the two validate_platform paths resolve to the same callable
  • Adopter (salesagent) confirms the reverted mixed imports can switch to clean adcp.types imports

Follow-ups (not in this PR)

The salesagent feedback list has 12 more items. I'll file them as separate issues for triage — the highest-leverage one is the codemod --auto-apply mode (78% of findings are mechanically rewritable today).

🤖 Generated with Claude Code

bokelley and others added 2 commits May 3, 2026 21:00
Adds public-surface exports for symbols adopters import in practice but
that previously required reaching into ``adcp.types.generated_poc.*`` or
``adcp.decisioning.dispatch``:

- ``adcp.types``: ``Dimensions``, ``Renders`` (paired with the already-public
  ``Responsive`` triad in core.format), plus ``MediaBuyFeatures`` and
  ``AiTool`` (both referenced from 5+ adopter call sites).
- ``adcp.decisioning.validate_capabilities``: re-export ``validate_platform``
  so the module name matches its purpose. Also added at
  ``adcp.decisioning`` top level for symmetry with the rest of the
  decisioning surface.

Driven by salesagent v3.12 → 4.x migration feedback (items #1, #2, #8).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Reflects the four additions from the previous commit (Dimensions,
Renders, MediaBuyFeatures, AiTool). Snapshot diff is purely additive.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bokelley bokelley merged commit 97a52e8 into main May 4, 2026
13 of 14 checks passed
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