Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [4.10.0b0] — 2026-11-29

> **Pre-release for Base Sepolia testing.** `pip install agirails` keeps
> resolving to 4.8.0; install this build with `pip install --pre agirails`
> or `agirails==4.10.0b0`. Version 4.9.0 was never published, so this section
> covers every change since 4.8.0. This build targets the v2 kernel and is
> **not compatible with the current Base mainnet kernel**: its delivery paths
> send a 64-byte delivery proof, and the mainnet kernel accepts only the
> 32-byte window proof. Do not use it for mainnet transactions.

### Breaking

- **The DELIVERED transition proof is now 64 bytes:**
`abi.encode(uint256 window, bytes32 result_hash)`, as the v2 kernel
requires. The delivery paths no longer build a window-only proof or a
placeholder result hash; a delivery without a real result hash fails before
any transaction is sent.
- `AIRuling` has nine fields (adds `evidence_ref_hash` and
`reasoning_ref_hash`), and `BondEscalationClient.submit_ai_ruling()` takes
the evidence and reasoning CIDs as separate arguments. A ruling whose
reference hashes do not match the CIDs is refused.

### Added

- **Dispute client surface** (`agirails.dispute`): `BondEscalationClient`,
the CompositeMediator client, `EvaluatorClient`, `UMAHelper` and the
`DisputeClient` facade; EIP-712 `AIRuling` signing; the canonical
evidence-bundle and Schema-2.0.0 evidence-artifact serializers. All hashed
and signed outputs are byte-identical to `@agirails/sdk`, checked against
shared golden vectors.
- Stalled-work recovery helpers on `ACTPKernel`: `recovery_grace()`,
`get_recovery_deadline(transaction_id)` and
`recover_stalled_in_progress(transaction_id)`.
- `AgentRegistry.connect()` read-only factory. The negotiate CLI uses it to
read the provider's on-chain price band by default; the buyer rejects an
out-of-band amount before escrow is locked and again at commit time.
- The level-0 request result exposes `escrow_id` on the requester side.
- `ACTPKernel.retry_reputation(transaction_id)` sends `retryReputation(bytes32)`,
the one function the `b08c0c6` kernel adds. It re-runs the reputation write
for a SETTLED transaction, or for a disputed CANCELLED one with no committed
Expand Down Expand Up @@ -43,6 +78,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Await asynchronous AgentRegistry transaction construction before signing.
- Restrict the standard-library HTTP fallback to HTTP(S), including redirects,
while preserving fractional request timeouts.
- `quote_initial_bond()` caps the bond at `MAX_ESCALATION_BOND`, matching the
contract, instead of quoting more than the chain charges on large escrows.

### Security

- **CIDs sent to BondEscalation are validated first.**
`submit_ai_ruling()`, `escalate_to_uma()` and
`UMAHelper.requester_force_dvm()` check the evidence and reasoning CIDs
(CIDv0 or CIDv1 base32, at most 256 characters) and raise `InvalidCIDError`
naming the field before any read, approval or transaction. No released
version contained this code. `validate_cid()` now matches the whole string,
so a value with a trailing newline is rejected.

## [4.8.0] — 2026-06-19

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "hatchling.build"

[project]
name = "agirails"
version = "4.9.0"
version = "4.10.0b0"
description = "AGIRAILS Python SDK - Agent Commerce Transaction Protocol"
readme = "README.md"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/agirails/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""AGIRAILS SDK version information."""

__version__ = "4.9.0"
__version_info__ = (4, 9, 0)
__version__ = "4.10.0b0"
__version_info__ = (4, 10, 0, "b0")
2 changes: 1 addition & 1 deletion tests/fixtures/cross_sdk/python_signed_manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"generated_by": "agirails.builders (CounterOfferBuilder + CounterAcceptBuilder)",
"python_sdk_version": "4.9.0",
"python_sdk_version": "4.10.0b0",
"pinned_now_sec": 1700000000,
"buyer_address": "0x19E7E376E7C213B7E7e7e46cc70A5dD086DAff2A",
"provider_address": "0x1563915e194D8CfBA1943570603F7606A3115508",
Expand Down
Loading