From f17dc87800fcee27731fef857a2b90af21c069f6 Mon Sep 17 00:00:00 2001 From: "agirails-factory[bot]" <353505341+agirails-factory[bot]@users.noreply.github.com> Date: Sun, 29 Nov 2026 22:55:56 +0100 Subject: [PATCH] release: 4.10.0b0 Pre-release for Base Sepolia testing. pip installs it only with --pre or an exact pin, so the default stays on 4.8.0. It targets the v2 kernel and is not compatible with the current Base mainnet kernel (64-byte delivery proof). 4.9.0 was never published; the changelog lists the changes since 4.8.0. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 47 +++++++++++++++++++ pyproject.toml | 2 +- src/agirails/version.py | 4 +- .../cross_sdk/python_signed_manifest.json | 2 +- 4 files changed, 51 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32b55cc..2a33354 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 2193a68..d7bc2e6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/agirails/version.py b/src/agirails/version.py index e8481f2..0c1f6d9 100644 --- a/src/agirails/version.py +++ b/src/agirails/version.py @@ -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") diff --git a/tests/fixtures/cross_sdk/python_signed_manifest.json b/tests/fixtures/cross_sdk/python_signed_manifest.json index fbb9c7b..39bcc2a 100644 --- a/tests/fixtures/cross_sdk/python_signed_manifest.json +++ b/tests/fixtures/cross_sdk/python_signed_manifest.json @@ -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",