Skip to content

feat(decisioning): boot-time validate_capabilities_response_shape against spec invariants #422

@bokelley

Description

@bokelley

Context

protocol/get-adcp-capabilities-response.json requires account.supported_billing when seller claims media_buy. The framework's projection wasn't checking this, so the v3 ref seller was non-conformant until PR #402 fixed it manually.

Add a boot-time validator that exercises the capabilities response shape against the spec; refuse to start if the projection violates an invariant.

Acceptance Criteria

  • New validate_capabilities_response_shape() invoked from create_adcp_server_from_platform
  • Failing platform fails fast at boot with a descriptive error
  • Test covers account.supported_billing invariant when media_buy is claimed

Refs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions