Skip to content
Open
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
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

**There is no downgrade from this build.** A node that has run it cannot go back to 0.1.19 or earlier: the older plugin reads the new checkpoint `sub` as a failed COSE check (`failed to load checkpoint state ... the checkpoint's COSE does not verify: CWT subject ...`), and because `capsules` is a required plugin the whole node stops. Before upgrading, stop the node and copy the whole data directory (by default `~/.local/share/capsules`); that copy is the only way back. `keys/` holds the node's private keys: keep that copy as private as the keys themselves, and never attach it to an issue or share it. `capsules export-flat` does not change this: it copies the checkpoints as they are, and an earlier plugin refuses the new ones (#308).

- **mesh-llm-plugin is taken from the mesh-llm v0.80.0 release commit, so a build uses the `PROTOC` it is given (Mesh-LLM/mesh-llm#2448).** The commit pinned before predates that change, and its build script always ran its bundled protoc. Still plugin protocol 3. crates.io has no mesh-llm-plugin past 0.78.1 yet, so the git pin stays (#52).

### Added

- **The ledger carries a format marker, and a build refuses a ledger written in a newer format (#308).** The plugin writes `ledger/format` (this release writes `1`, the checkpointed-local-log 0.6 stack) when it opens the ledger. A build that meets a higher number stops at start (the node does not start, since `capsules` is a required plugin) with `this ledger was written by a newer plugin (ledger format N, this build reads up to M); downgrade is not supported`, and leaves the ledger as it was, instead of failing in the checkpoint check. Builds before this one do not read the marker, so it does not make a rollback to them safe: back the data directory up before upgrading (the checkpointed-local-log 0.6 entry under Changed says how). Nothing a peer reads changes.
Expand Down
34 changes: 18 additions & 16 deletions crates/evidence-plugin/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions crates/evidence-plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ mutant-referee-hold-skips-asked-check = []
mutant-referee-ignores-split-margin = []

[dependencies]
mesh-llm-plugin = "0.78"
mesh-llm-plugin = "0.80"
tokio = { version = "1", features = ["full"] }
# The ledger's re-entrant append turn (`capsule_emit::CapsuleState`): std's
# `ReentrantLock` is not stable. Already in the tree through tokio and others.
Expand Down Expand Up @@ -265,8 +265,9 @@ strip = true
opt-level = 3

# `PluginContext::announce_plugin_key` (host capability `plugin_keys.v1`,
# mesh-llm #2299) is on mesh-llm main but in no published mesh-llm-plugin yet:
# 0.78.1 predates it. Taken from the commit the hosts run until a release
# carries it; then this goes and the requirement above moves to that release.
# mesh-llm #2299) is in mesh-llm 0.79.0 and later, but crates.io has no
# mesh-llm-plugin past 0.78.1. Taken from the v0.80.0 release commit until a
# published mesh-llm-plugin carries it; then this goes and the requirement
# above moves to that release.
[patch.crates-io]
mesh-llm-plugin = { git = "https://github.com/Mesh-LLM/mesh-llm", rev = "a39211e78f3dd73cf9a94b08417c0da17e5fa5d9" }
mesh-llm-plugin = { git = "https://github.com/Mesh-LLM/mesh-llm", rev = "2b9e64aecdcebaa4242d0718e257bbd59cbf2575" }
2 changes: 2 additions & 0 deletions crates/evidence-plugin/tests/admission_interop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ impl Host {
host_version: "admission-interop".to_string(),
host_info_json: "{}".to_string(),
mesh_visibility: proto::MeshVisibility::Private as i32,
settings_json: String::new(),
}))
.await;
match self.answer(id).await {
Expand All @@ -133,6 +134,7 @@ impl Host {
kind: proto::ServiceKind::OpenaiExchange as i32,
service_name: handler.to_string(),
input_json: event.to_string(),
invocation_id: None,
}))
.await;
match self.answer(id).await {
Expand Down
2 changes: 2 additions & 0 deletions crates/evidence-plugin/tests/commitment_interop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ impl Harness {
host_version: "commitment-interop-test".to_string(),
host_info_json: "{}".to_string(),
mesh_visibility: proto::MeshVisibility::Private as i32,
settings_json: String::new(),
}))
.await;
let envelope = self.recv().await;
Expand Down Expand Up @@ -215,6 +216,7 @@ impl Harness {
.send(Payload::RpcRequest(proto::RpcRequest {
method: "tools/call".to_string(),
params_json: json!({"name": name, "arguments": arguments}).to_string(),
invocation_id: None,
}))
.await;
if let Some((channel, endpoint)) = mesh {
Expand Down
1 change: 1 addition & 0 deletions crates/evidence-plugin/tests/interop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ impl Harness {
host_version: "interop-test".to_string(),
host_info_json: "{}".to_string(),
mesh_visibility: proto::MeshVisibility::Private as i32,
settings_json: String::new(),
}))
.await;
let envelope = self.recv().await;
Expand Down
2 changes: 2 additions & 0 deletions crates/evidence-plugin/tests/ledger_fetch_bridge_interop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ impl Harness {
host_version: "ledger-fetch-interop-test".to_string(),
host_info_json: "{}".to_string(),
mesh_visibility: proto::MeshVisibility::Private as i32,
settings_json: String::new(),
}))
.await;
let envelope = self.recv().await;
Expand Down Expand Up @@ -224,6 +225,7 @@ impl Harness {
.send(Payload::RpcRequest(proto::RpcRequest {
method: "tools/call".to_string(),
params_json,
invocation_id: None,
}))
.await;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ impl Harness {
host_version: "mesh-evidence-interop-test".to_string(),
host_info_json: "{}".to_string(),
mesh_visibility: proto::MeshVisibility::Private as i32,
settings_json: String::new(),
}))
.await;
let envelope = self.recv().await;
Expand Down Expand Up @@ -219,6 +220,7 @@ impl Harness {
.send(Payload::RpcRequest(proto::RpcRequest {
method: "tools/call".to_string(),
params_json,
invocation_id: None,
}))
.await;

Expand Down
3 changes: 2 additions & 1 deletion plugin.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version = "0.1.19"
# The oldest MeshLLM host this release works with (inclusive), as MAJOR.MINOR.PATCH. The
# host retains it with the install and judges a host upgrade against it (mesh-llm#2971,
# #2978). 0.78.0 is the first host with the events and plugin APIs the README lists as "in
# 0.78.0", and the plugin builds on mesh-llm-plugin 0.78. No max_host_version: none is known.
# 0.78.0", and the plugin builds on mesh-llm-plugin 0.80, still protocol 3. No max_host_version:
# none is known.
# Checked by scripts/check-plugin-toml.sh, which package.sh runs.
min_host_version = "0.78.0"
Loading