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: v9.4.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: v9.5.0
Choose a head ref
  • 8 commits
  • 50 files changed
  • 3 contributors

Commits on Nov 2, 2026

  1. test(reporting): run the row-upload lease test at the wall clock (#1813)

    Backport of #1767 (c1c6d6e) from `next`. Since 2026-11-01 every
    `main`-based CI run fails
    `test_the_producer_stages_object_uploads_outside_its_publication_transaction`
    with `STATE_UNAVAILABLE: no live worker lease covers this row upload`
    (#1792): the settling harness pins its clock at 2026-11-01T02:10Z, the
    producer stamps `lease_expires_at` from that clock, and `row_write.py`
    checks the lease against the database's `clock_timestamp()`. Once real
    time passed the frozen instant plus the lease, no upload was covered.
    
    Run the producer's turn at the wall clock so the stamped lease lies in
    the database's real future. The lease check keeps its production
    semantics; only the test's clock moves.
    
    Refs #1792
    
    Co-authored-by: Claude Fable 5.1 <[email protected]>
    bokelley and claude authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    1fcc331 View commit details
    Browse the repository at this point in the history
  2. fix(server): return task and workflow handoffs uncached from Idempote…

    …ncyStore.wrap (#1795)
    
    A method that may hand off to a workflow could not use the SDK's
    idempotency: IdempotencyStore.wrap coerced every completed result to a dict
    for the replay cache, and a TaskHandoff or WorkflowHandoff is a control
    marker for the dispatcher, not a response, so the call raised
    "Cannot coerce WorkflowHandoff to dict for idempotency caching" (#1781).
    Adopters copied the private wrapper to work around it.
    
    wrap now returns a handoff uncached, after the key, conflict, lock and
    cancellation handling, so the dispatcher allocates the task as usual. It
    also accepts cache_response=, a predicate a seller can use to keep its own
    control results out of the cache: @store.wrap(cache_response=...) caches a
    result only when the predicate returns True, and a handoff is never cached.
    Both forms register the wrapper for validate_idempotency_wiring.
    
    An uncached result stores no replay entry, so a retry with the same key runs
    the method again; the docs say to deduplicate the enqueued work on the key.
    Replaying the task id the dispatcher allocated needs dispatcher support and
    is left for a follow-up.
    
    Closes #1781
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    bokelley and claude authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    126f905 View commit details
    Browse the repository at this point in the history
  3. fix(types): make the domain package roots lazy so a types package imp…

    …orts first in any order (#1798)
    
    Backport of the SDK 10 fix for #1784 to the 9.x line, where the cycle
    reproduces identically: ``from adcp.types.domains.formats import Slot`` raised
    ImportError when it was the first adcp import in a process, because the domain
    roots imported every schema module eagerly and ``formats/canonical/_base.py``
    re-entered ``formats/canonical`` through ``core/__init__`` while half built.
    
    Each domain root is now a PEP 562 module: ``__all__`` and a TYPE_CHECKING
    import block keep the static surface, ``_DECLARED_IN`` names each name's
    schema module, and ``__getattr__`` imports the declaring module on first read
    and caches the binding. Nothing is renamed and every name still resolves.
    
    Co-authored-by: Claude Fable 5.1 <[email protected]>
    bokelley and claude authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    7447d00 View commit details
    Browse the repository at this point in the history
  4. feat(decisioning): let a raised AdcpError reject a request with every…

    … error (#1780) (#1810)
    
    A seller that validates a whole request could only raise one AdcpError,
    so the payload errors[] carried one entry even when the caller listed
    every problem in details["errors"].
    
    AdcpError takes errors=[...] (AdcpError, generated Error or wire mapping
    entries) and AdcpError.from_errors([...]) builds the raise from the list,
    the first entry filling adcp_error. build_mcp_error_result, the A2A
    failed-task builder and translate_error write the whole list to errors[];
    adcp_error is unchanged. A details["errors"] list whose entries carry a
    string code and message is lifted into errors[] as well. An entry
    without recovery takes the raised error's; entry details are sanitized
    like to_wire().
    
    A single-error raise still mirrors adcp_error into errors[] (#1558).
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
    bokelley and claude authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    272fced View commit details
    Browse the repository at this point in the history
  5. fix(canonical-formats): read versions from typed legacy formats (#1757)

    * fix(canonical-formats): read version constraints from typed legacy formats
    
    * test(a2a): isolate context ID handler registration
    bokelley authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    6714203 View commit details
    Browse the repository at this point in the history
  6. fix(canonical-formats): check narrowing on seller-asserted references (…

    …#1758)
    
    * fix(canonical-formats): check narrowing on seller-asserted references
    
    * test(a2a): isolate context ID handler registration
    bokelley authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    617762e View commit details
    Browse the repository at this point in the history
  7. ci(release): gate publishes on a companion the built distribution wor…

    …ks with, on main (#1790)
    
    * ci(release): gate publishes on a companion the built distribution works with
    
    scripts/check_companion_releases.py refused an adcp release only when no
    published adcp-reporting-storage *range* accepted it. adcp 10.0.0b4 changed
    the ledger column lists while the published storage (adcp>=9.0.0,<11) still
    accepted it, so the pair installed cleanly and failed every reporting turn
    (#1763). Range compatibility is not contract compatibility.
    
    The gate now proves the pair works. With --dist, it installs the wheel just
    built together with the published companion into a private environment and
    runs scripts/companion_smoke.py there, which compares the storage contract
    each side declares (adcp.reporting.ledger.storage_contract versus
    adcp_reporting_storage.contract; releases predating the declaration are
    classified by their column lists) and, with ADCP_PG_TEST_URL, creates the
    ledger schema and round-trips a configuration, obligation and revision
    through the installed stores on PostgreSQL, the calls that failed on the
    incompatible pair. Storage publishes are gated too, in the other direction:
    the built storage wheel is smoked with the oldest and the newest published
    adcp its own requirement accepts, so a floor that admits an adcp of another
    contract is refused.
    
    release-publish.yml builds first, runs the gate for both packages against a
    PostgreSQL service, then uploads. Verified locally against PyPI and
    PostgreSQL 16: the adcp wheel built from next is refused against the
    published 0.2.0b0 (contract 2 versus 1), the storage wheel from #1787
    (floor 10.0.0b4) passes with 10.0.0b4, and the published 0.1.0b4 passes with
    adcp 9.0.0 and 9.3.1.
    
    Co-Authored-By: Claude Fable 5.1 <[email protected]>
    (cherry picked from commit 7b40f34)
    
    * test(release): assert the gate smokes both packages and classify stubbed contracts
    
    The release configuration test expected the companion gate to run only for
    adcp publishes; it now runs for both packages after the build, with a
    PostgreSQL service. The smoke classification test stubs both declaration
    modules instead of assuming the workspace pair agrees, which it does not
    until the storage declaration (#1787) lands.
    
    Co-Authored-By: Claude Fable 5.1 <[email protected]>
    (cherry picked from commit 876faa5)
    
    * test(release): classify the smoke's undeclared adcp from patched column lists
    
    The test asserted this checkout's column lists carry offering_id, which is
    true on next and false on main; both classifications are now driven by
    patched lists so the test is branch-agnostic.
    
    Co-Authored-By: Claude Fable 5.1 <[email protected]>
    
    ---------
    
    Co-authored-by: Claude Fable 5.1 <[email protected]>
    bokelley and claude authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    f49ffc5 View commit details
    Browse the repository at this point in the history
  8. chore(main): release 9.5.0 (#1815)

    Co-authored-by: aao-ipr-bot[bot] <279263549+aao-ipr-bot[bot]@users.noreply.github.com>
    aao-ipr-bot[bot] authored Nov 2, 2026
    Configuration menu
    Copy the full SHA
    e45e1b8 View commit details
    Browse the repository at this point in the history
Loading