Skip to content

fix: move onto the v2 SDK and protocol - #3

Merged
raffaelschneider merged 1 commit into
mainfrom
fix/sdk-0.3
Aug 21, 2026
Merged

raffaelschneider merged 1 commit into
mainfrom
fix/sdk-0.3

Conversation

@raffaelschneider

Copy link
Copy Markdown
Contributor

Turns this repo's CI green again. It has been red because it is the one agent repo taking zentinel-agent-sdk from crates.io rather than a path dependency, and the only published release was 0.2.0 — code targeting the v1 protocol removed in 26.02, which cannot compile against any current zentinel-agent-protocol.

zentinel-agent-sdk 0.3.0 is now published (zentinelproxy/zentinel-agent-rust-sdk#3), so this bumps to it, along with zentinel-agent-protocol 0.5 → 0.6.

The dependency bump alone was not enough

This agent also referenced zentinel_agent_protocol::PROTOCOL_VERSION — a crate-root export that no longer exists. It was reachable in protocol 0.5.11 (what the old lockfile resolved) but is not re-exported at the root in 0.5.13 or 0.6.x.

The v2 equivalent is v2::PROTOCOL_VERSION_2, which this same file already imports its other v2 types from. Same value (2), so no wire-behaviour change — 4 call sites in AgentResponse { version: … }.

Worth noting for anyone hitting the same thing: the other five agent repos using the SDK take it as a path dependency, so they never saw this.

Verification

Built against the published 0.3.0 (not a local patch): cargo fmt --check, cargo clippy --workspace --all-targets -- -D warnings, and cargo test --workspace (71 passed) all clean.

Once this lands, #2 (the README install-path fix, parked behind this) can merge too.

CI has been red because this is the one agent repo taking
zentinel-agent-sdk from crates.io, where the only release was 0.2.0 — code
targeting the v1 protocol removed in 26.02. That release cannot compile
against any current zentinel-agent-protocol.

Bumps to the freshly published zentinel-agent-sdk 0.3.0 and protocol 0.6.

The dependency bump alone is not enough: this agent also referenced
zentinel_agent_protocol::PROTOCOL_VERSION, a crate-root export that no
longer exists. The v2 equivalent is v2::PROTOCOL_VERSION_2, which the rest
of this file already imports from. Same value (2), same wire behaviour.
@raffaelschneider
raffaelschneider merged commit fbae856 into main Aug 21, 2026
3 checks passed
This was referenced Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant