build: move the claw to rhema 0.5.0

The 0.5.0 line renames what the claw imports and deletes what it
wrapped. The autonomous agent is rhema-rsd now, driver and handler
trait included, so every import moves with the name. The MCP bridge is
gone outright: no crate, no socket, no generated bash functions. The
claw's mcp module stops proxying. It names the client's config file and
media directory in the shell env, runs `mcp prompt` once, and renders
that text as the prompt section. A session with no client on PATH
advertises no servers, which is the 0.5 rule.

The config follows. `host_agent.mcp_servers` is gone, `config.mcp` is
the client's rendered section, and the bare `claw mcp` subcommand gives
way to the standalone `mcp` binary. Secrets leave the OS keyring for
the encrypted file store the frontends write. The keyring is copied
into that store once, under the service name the claw used, so a
deployment that predates the file keeps its logins. rusqlite follows
rhema-identity to 0.43, because the framework links libsqlite3-sys 0.40
and two `links = "sqlite3"` packages cannot share a graph.

The image carries the toolbox the sessions' habits assume: ripgrep, fd,
jq, sd, python3, yq (the Go v4, not Debian's), the mcp client, and
lightpanda. Each release binary is pinned by version and by the
checksum of every arch's artifact, and the boot report inventories
them, so a session knows what it has. gob was already there.

0.5.0 is tagged but not on crates.io, since publishing is retried with
0.5.1, so the workspace carries a `[patch.crates-io]` onto the tag and
the lock pins its rev. Deleting the block and running `cargo update` is
the whole follow-up once 0.5.1 lands. The claw's own version travels
with the framework: the workspace and the chart become 0.5.0.

fmt, clippy with -D warnings over all features and targets, the
workspace tests, and the doc build pass.
This commit is contained in:
vhaudiquet committed 2026-11-27 18:18:45 +01:00
1 parent 9e3890c568
commit 9ac559616c
30 files changed
+1183 -848

No files matched your search

@@ -12,13 +12,12 @@ authors.workspace = true
publish = false
[dependencies]
rusqlite = { version = "0.40", features = ["bundled"] }
rusqlite = { version = "0.43", features = ["bundled"] }
# The reminder source: one `Source` over the feeds, detect-pass shaped
# like the task scheduler's
rhema-autonomous-agent = "0.4.2"
# The reminder source ingests its slots into a `Dispatcher`; the event
# and key-function shapes are the dispatcher's
rhema-rsd = "0.4.2"
rhema-rsd = { version = "0.5.0", features = ["driver"] }
serde = { workspace = true }
serde_json = { workspace = true }
thiserror = { workspace = true }
@@ -33,8 +33,8 @@
use std::sync::Arc;
use rhema_autonomous_agent::{Source, SourceError, async_trait};
use rhema_rsd::{Clock, Dispatcher, Event, KeyFn, ResourceKey};
use rhema_rsd::{Source, SourceError, async_trait};
use serde::{Deserialize, Serialize};
use serde_json::{Value, json};
use time::OffsetDateTime;