|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to `execlave-sdk` (Python) will be documented in this file. |
| 4 | + |
| 5 | +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), |
| 6 | +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 7 | + |
| 8 | +## [Unreleased] |
| 9 | + |
| 10 | +## [1.4.0] - 2026-06-08 |
| 11 | + |
| 12 | +### Added |
| 13 | + |
| 14 | +- **Optional HMAC request signing.** New `sign_requests` client argument (default |
| 15 | + `False`). When enabled, every request body is signed with HMAC-SHA256 keyed by |
| 16 | + the API key and sent with `X-Execlave-Timestamp` and `X-Execlave-Signature` |
| 17 | + (`sha256=<hex>`) headers. Implemented as a `requests` session auth callable, so |
| 18 | + it covers every call from a single point and signs the exact serialized body |
| 19 | + bytes (`${timestamp}.${body}`) the server verifies. Defense-in-depth on top of |
| 20 | + TLS + API-key auth; opt-in and fully backward-compatible (unsigned requests are |
| 21 | + unaffected when the server has not made signing mandatory). |
| 22 | + |
| 23 | +## [1.3.0] - 2026-06-03 |
| 24 | + |
| 25 | +### Added |
| 26 | + |
| 27 | +- **Agent identity stamping.** New `stamp_identity` client argument (default |
| 28 | + `False`). When enabled, the client issues and caches a short-lived RS256 |
| 29 | + `exe_agt_` credential per agent and attaches it to each trace on ingest |
| 30 | + (`agentCredential` field), so the platform can cryptographically stamp who |
| 31 | + produced the trace. Best-effort and non-breaking: if a credential cannot be |
| 32 | + issued, traces are still sent unstamped — stamping never blocks or drops ingest. |
| 33 | +- **MCP tool-integrity surfaces.** Optional, backwards-compatible additions for |
| 34 | + MCP tool-supply-chain governance: |
| 35 | + - `tool_descriptor(server, tool, descriptor, description=None)` — computes the |
| 36 | + stable SHA-256 descriptor hash (canonical, key-order independent) used to pin |
| 37 | + and diff a tool. |
| 38 | + - `report_tool_baseline(agent_id, descriptors, reason="manual")` — pins the |
| 39 | + approved set of `(server, tool, descriptorHash)` tuples for an agent; re-pin |
| 40 | + with `reason="baseline_update"` after a reviewed tool update. |
| 41 | + - `enforce_policy()` accepts an optional `tool_descriptors` argument that is |
| 42 | + diffed against the agent's pinned baseline at runtime. |
| 43 | + - New `ToolIntegrityError` (subclass of `PolicyBlockedError`) is raised when an |
| 44 | + enforcement is denied by a `tool_integrity` policy. Callers that do not use |
| 45 | + these fields are unaffected. |
| 46 | + |
| 47 | +### Changed |
| 48 | + |
| 49 | +- No telemetry. The SDK does not phone home, emit anonymous usage events, or |
| 50 | + fetch remote configuration. Every network call goes to the Execlave backend |
| 51 | + URL configured by the caller. |
| 52 | + |
| 53 | +## [1.2.1] - 2026-05-29 |
| 54 | + |
| 55 | +### Added |
| 56 | + |
| 57 | +- **AI Agent Management Platform (AMP) surfaces.** Optional, backwards-compatible |
| 58 | + additions for the governance features: |
| 59 | + - `register_agent()` accepts an optional `autonomy_level` |
| 60 | + (`observe` | `advise` | `act_with_approval` | `autonomous`) that maps the |
| 61 | + agent onto a tiered-governance template. |
| 62 | + - New `report_agent_metadata()` method that records a version snapshot in the |
| 63 | + agent registry (`version_label` / `git_commit` / `deployed_at` / `notes` / |
| 64 | + `activate`) — call it from a deploy pipeline to build version history for |
| 65 | + diff/rollback. |
| 66 | + - Available on both `ExeclaveClient` and `AsyncExeclaveClient`. Callers that do |
| 67 | + not set these fields are unaffected. |
| 68 | + |
| 69 | +## [1.2.0] - 2026-05-28 |
| 70 | + |
| 71 | +### Added |
| 72 | + |
| 73 | +- **Framework auto-instrumentation modules** (opt-in via `execlave.integrations`, |
| 74 | + each with its own install extra): LangChain (`[langchain]`), OpenAI Agents SDK |
| 75 | + (`[openai-agents]`), CrewAI (`[crewai]`), LlamaIndex (`[llamaindex]`), Model |
| 76 | + Context Protocol (`[mcp]`), OpenAI Chat Completions (`[openai]`), and AutoGen |
| 77 | + (`[autogen]`). Each routes the framework's tool calls / completions through |
| 78 | + policy enforcement and trace ingestion without changing the host app's call |
| 79 | + sites. |
| 80 | + |
| 81 | +## [1.1.5] - 2026-05-05 |
| 82 | + |
| 83 | +### Added |
| 84 | + |
| 85 | +- `ValidatorDeniedError` (extends `PolicyBlockedError`) for programmatic handling |
| 86 | + of denials originating from a Custom Validator (BYOV). The `from_violations()` |
| 87 | + factory returns a `ValidatorDeniedError` when any violation is validator-sourced |
| 88 | + and a plain `PolicyBlockedError` otherwise, so existing `except` sites keep working. |
| 89 | + |
| 90 | +### Fixed |
| 91 | + |
| 92 | +- `http://api.execlave.com` is normalized to `https://api.execlave.com` so |
| 93 | + POST-based calls are not downgraded to GET by an HTTP-to-HTTPS redirect. |
| 94 | +- `enforce_policy()` now sends the client environment by default, matching |
| 95 | + `register_agent()` and avoiding accidental production-policy enforcement from |
| 96 | + development SDK clients. |
| 97 | + |
| 98 | +## [1.1.4] - 2026-05-05 |
| 99 | + |
| 100 | +### Fixed |
| 101 | + |
| 102 | +- `register_agent()` now handles agent responses wrapped as `{ "data": [...] }` |
| 103 | + by selecting the matching `agentId` instead of passing the list into `Agent`. |
| 104 | + Malformed list responses now raise `ExeclaveError` with a clear response-shape |
| 105 | + message instead of surfacing `AttributeError: 'list' object has no attribute 'get'`. |
| 106 | + |
| 107 | +## [1.0.0] — 2026-04 |
| 108 | + |
| 109 | +### Added |
| 110 | + |
| 111 | +- Initial public release of `execlave-sdk` on PyPI. |
| 112 | +- `ExeclaveClient` class with `enforce()`, `ingest_trace()`, and |
| 113 | + `register_agent()` methods. |
| 114 | +- Async variants via `AsyncExeclaveClient` (httpx-based). |
| 115 | +- Type hints throughout the public API, verified with `mypy --strict`. |
| 116 | +- PEP 621 `pyproject.toml` with a hatchling build backend. |
| 117 | +- Python 3.10+ supported; tested against 3.10, 3.11, and 3.12. |
| 118 | +- Support for API keys via the `exe_` / `exe_test_` prefix. |
| 119 | + |
| 120 | +### Security |
| 121 | + |
| 122 | +- TLS certificate verification is always enabled. Callers who need to |
| 123 | + target a self-signed local environment must set `verify=False` on the |
| 124 | + client explicitly and are warned on construction. |
| 125 | +- The SDK refuses to accept API keys that do not match the `exe_*` prefix, |
| 126 | + preventing accidental use of unrelated credentials. |
| 127 | + |
| 128 | +[Unreleased]: https://github.com/rishitmavani/agentguard/compare/sdk-python-v1.3.0...HEAD |
| 129 | +[1.3.0]: https://github.com/rishitmavani/agentguard/compare/sdk-python-v1.2.1...sdk-python-v1.3.0 |
| 130 | +[1.2.1]: https://github.com/rishitmavani/agentguard/compare/sdk-python-v1.2.0...sdk-python-v1.2.1 |
| 131 | +[1.2.0]: https://github.com/rishitmavani/agentguard/compare/sdk-python-v1.1.5...sdk-python-v1.2.0 |
| 132 | +[1.1.5]: https://github.com/rishitmavani/agentguard/compare/sdk-python-v1.1.4...sdk-python-v1.1.5 |
| 133 | +[1.1.4]: https://github.com/rishitmavani/agentguard/compare/sdk-python-v1.1.3...sdk-python-v1.1.4 |
| 134 | +[1.0.0]: https://github.com/rishitmavani/agentguard/releases/tag/sdk-python-v1.0.0 |
0 commit comments