From 347316c4641156264652245edec2919c3cfe8f96 Mon Sep 17 00:00:00 2001 From: Tymofii Pidlisnyi Date: Sat, 28 Nov 2026 13:54:53 -0800 Subject: [PATCH] release 5.0.0: budget reservations require a verified authority chain Signed-off-by: Tymofii Pidlisnyi --- CHANGELOG.md | 6 +++--- MIGRATION.md | 3 +-- README.md | 2 +- pyproject.toml | 2 +- src/agent_passport/__init__.py | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f03497c..3d799d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Changelog -## Unreleased +## 5.0.0 (2026-11-28) -### Breaking change, proposed 5.0.0 +### Breaking change - Budget reservations require an opaque verified chain from the ledger's own configured verifier, matching TypeScript 9.0.0. Create the verifier with `create_authority_chain_verifier`, verify with `verify_authority_chain_for_budget`, and pass the successful result's `chain` to `reserve`. Record lists no longer qualify. - The ledger checks registered handle identity, verifier identity and consumer time before arguments, footprint and idempotency. Refusals return `AUTHORITY_UNVERIFIED`, `AUTHORITY_CONTEXT_MISMATCH` or `AUTHORITY_STALE` without changing ledger state. Optional `now` and `max_verification_age_ms` control consumption time. @@ -13,7 +13,7 @@ - The consumer clock runs under the ledger lock and must not call back into the same ledger. - Verified records are `FrozenMapping` objects instead of `types.MappingProxyType`, whose comparison hands the backing `dict` to the other operand. The registry keeps records and context separate from the handle's public view, and consumption returns copies. - Chain selection checks dictionary key types before its presentation lookup and reads a custom reserver's result inside the exception guard, so neither runs caller code unguarded. -- See [MIGRATION.md](MIGRATION.md). The package version remains unchanged pending a human release decision. +- See [MIGRATION.md](MIGRATION.md). ## 4.3.2 (2026-11-28) diff --git a/MIGRATION.md b/MIGRATION.md index 47bcede..6602ed7 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,7 +1,6 @@ -# Proposed 5.0.0 API, verified chains for budget reservations +# 5.0.0, verified chains for budget reservations This is a breaking API change matching the TypeScript 9.0.0 budget boundary. -The version in `pyproject.toml` remains 4.3.2 until a human decides the release. Share one configured verifier between verification, chain selection and the ledger. Replace record list arguments to `reserve` with a handle from successful verification. diff --git a/README.md b/README.md index 8c9a2a3..055a1a2 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,6 @@ pytest tests/ Apache-2.0 -Budget callers migrating to the proposed 5.0.0 API should follow +Budget callers migrating to the 5.0.0 API should follow [MIGRATION.md](MIGRATION.md). Reservations now require a handle issued by the same configured verifier used by the ledger. diff --git a/pyproject.toml b/pyproject.toml index 5249236..2fcf2af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "agent-passport-system" -version = "4.3.2" +version = "5.0.0" description = "Python SDK for the Agent Passport System. Identity, delegation, governance, attribution, mutual authentication, evidentiary type safety, accountability receipts, Cognitive Attestation, Instruction Provenance. Byte parity with the TypeScript SDK." readme = "README.md" license = "Apache-2.0" diff --git a/src/agent_passport/__init__.py b/src/agent_passport/__init__.py index ad2000a..07f6c82 100644 --- a/src/agent_passport/__init__.py +++ b/src/agent_passport/__init__.py @@ -28,7 +28,7 @@ Docs: https://agent-passport.org/llms-full.txt """ -__version__ = "4.3.2" +__version__ = "5.0.0" # Crypto from .crypto import generate_key_pair, sign, verify, public_key_from_private