Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adcontextprotocol/adcp-client-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.8.0
Choose a base ref
...
head repository: adcontextprotocol/adcp-client-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.9.0
Choose a head ref
  • 9 commits
  • 92 files changed
  • 5 contributors

Commits on Mar 11, 2026

  1. fix: use default JSON separators for webhook HMAC signing

    get_adcp_signed_headers_for_webhook() was signing over compact JSON
    (no spaces) but callers send the body via json= kwarg which uses
    default separators (with spaces), causing HMAC verification failures
    on receivers. Aligns with JS reference implementation's JSON.stringify().
    
    Fixes #151
    EmmaLouise2018 committed Mar 11, 2026
    Configuration menu
    Copy the full SHA
    0dd495f View commit details
    Browse the repository at this point in the history
  2. fix: add raw_body support for verification and use Unix timestamps

    Addresses PR review feedback:
    - _verify_webhook_signature now accepts optional raw_body param to avoid
      re-serializing the payload, preventing cross-language JSON mismatches
    - Timestamp format changed from ISO 8601 to Unix seconds to match the
      AdCP spec and JS reference implementation
    - Added test for raw_body signature verification path
    
    Fixes #151
    EmmaLouise2018 committed Mar 11, 2026
    Configuration menu
    Copy the full SHA
    4a663e5 View commit details
    Browse the repository at this point in the history
  3. feat: add RootModel __getattr__ proxy and minimal sales agent example (…

    …#150)
    
    RootModel union types (PricingOption, Deployment, etc.) now proxy attribute
    access to the wrapped inner type, so `po.pricing_option_id` works directly
    without needing `.root`. Added as a post-generation fix that survives schema
    regeneration.
    
    Also adds examples/minimal_sales_agent.py — a single-file FastMCP server
    implementing the AdCP:Buy flow (capabilities → products → media buy) for a
    fictional local news publisher with 4 products.
    
    Closes #145
    Closes #148
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    bokelley and claude authored Mar 11, 2026
    Configuration menu
    Copy the full SHA
    f1c3990 View commit details
    Browse the repository at this point in the history
  4. test: validate webhook HMAC against official AdCP test vectors

    Add TestHMACTestVectors class with parametrized tests against all 10
    official test vectors from adcontextprotocol/adcp PR #1383. Validates
    signing, verification via raw_body, and rejection of tampered signatures.
    EmmaLouise2018 committed Mar 11, 2026
    Configuration menu
    Copy the full SHA
    72f8f4b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #152 from adcontextprotocol/EmmaLouise2018/fix-iss…

    …ue-151
    
    fix: use default JSON separators for webhook HMAC signing
    EmmaLouise2018 authored Mar 11, 2026
    Configuration menu
    Copy the full SHA
    2223f6e View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2026

  1. fix: set AdCPBaseModel extra='ignore' and remove obsolete generate_mo…

    …dels.py (#157)
    
    * fix: default AdCPBaseModel to extra='forbid' per schema semantics
    
    Types without explicit additionalProperties in their JSON schema now
    reject unknown fields instead of silently accepting them. Types whose
    schemas set additionalProperties: true continue to use extra='allow'
    via their generated model_config override.
    
    Also removes the obsolete generate_models.py script (replaced by
    generate_types.py which already respects per-schema additionalProperties).
    
    Closes #153
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * fix: address review feedback on extra policy tests
    
    - Add config sanity assertion (test_base_model_config_is_forbid)
    - Replace synthetic test with test_forbid_inherited_without_explicit_config
    - Handle both quote styles for extra='allow' / extra="allow"
    - Document _schema_allows_extra traversal approach
    - Extract _load_schemas helper to reduce duplication
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    * fix: use extra='ignore' instead of extra='forbid' per review feedback
    
    Constantine correctly pointed out that 'ignore' is a better default
    for a protocol library: it provides forward compatibility when servers
    return fields from newer spec versions, without crashing consumers.
    Consumers who want strict validation can opt in with extra='forbid'
    on their subclasses (the dev/prod pattern salesagent already uses).
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
    bokelley and claude authored Mar 13, 2026
    Configuration menu
    Copy the full SHA
    21077d9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8fd7b92 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e5562c1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    35740b3 View commit details
    Browse the repository at this point in the history
Loading