vhaudiquet 38292b6344 feat(claw): pause, resume and abort a key's dispatch
The inventory could show a key's queue and delete the key, and nothing
in between: a key wedged on a long turn, or a queue filling from a
source the operator wanted stopped, had no control short of a restart.
Three routes now sit beside the delete.

Pause is an operator's hold, not a dispatcher state: rhema-rsd has
idle, leased and re-acquire, and none of them means "keep the events,
run nothing". So the hold lives beside the store, a set of keys the
drivers' ownership predicates decline, persisted as `paused:<key>` rows
in the settings table and reloaded at boot. A held key ingests as
always, its inbox accumulates, `admit` offers it, and every driver
passes it by until resume lifts the hold. Deleting a key drops its
hold with it, so a name created again starts clean.

Abort stops what a pause cannot: a live turn is a dispatch minutes deep
in tool rounds, and only the dispatch itself can end it. An abort
registry carries the signal to the handler's own select, which drops
the turn future at its current await — a streaming request, or a
running shell command whose child dies with the drop. What the turn
committed is already the session (the commit hook), so the handler
repairs the dangling calls and releases as superseded rather than
failed: the work is no longer wanted. The chat closes on an `aborted`
end marker, the forge thread gets no half-answer, and a coding job's
row lands failed with `aborted`. An idle key's queued work is drained
and dropped under a throwaway lease instead, and a job row moves with
the queue it lost, or it would sit queued forever with nothing left to
run it.

The jobs handler arms its listener at dispatch entry rather than after
the agent is built: the route signals the moment it sees the lease, and
a listener arriving later would let an early abort fall through as a
no-op. Signalling a key with no listener stays a no-op, which is what
lets the route call it unconditionally before its idle path.

GET /v1/sessions carries `paused` beside the state, and the abort
answer says which shape it took: `{"key", "cut", "dropped"}`.

Verified with fmt, clippy -D warnings and the suite (266 lib, 40 http,
including a surface test for the three routes and one proving a dropped
queued job key lands its row aborted). The three sandbox deps still pin
unpublished 0.4.2, so the gates ran against a temporary 0.4.1 pin with
the one 0.4.2 call stubbed, then reverted.
2026-11-23 22:38:22 +01:00
2026-11-12 17:43:08 +01:00
2026-11-19 23:25:16 +01:00

ῥῆμα, "the spoken word": words that do things.

Rhema Claw

Rhema Claw is the resident tier of the Rhema agent framework: a claw-shaped daemon that watches forges (GitHub, Gitea, GitLab) and calendar feeds, dispatches work to its agents, and serves a chat surface over HTTP — native routes plus an OpenAI-compatible shim, with a web UI and an Android client talking to it.

The framework it embeds (the crates under crates/ it pulls from crates.io: rhema-autonomous-agent, rhema-host-agent, rhema-rsd, and friends) lives in the rhema repository.

Layout

  • crates/rhema-claw/ — the daemon: forge watches, session dispatch, the chat surface, MCP wiring, and the vision helper. See its README.
  • integrations/ — the feed adapters that normalize forge and calendar activity into rhema-rsd dispatch.
  • tools/ — what runs on the user's machine: the rhema-claw-tools-contract (the scoped agent-token allowlist the auth middleware enforces), the shared thin-client code, and rhema-claw-tools-notify.
  • web/claw/ — the Nuxt web UI.
  • android/ — the Compose Android client.
  • deploy/ — the Docker images and the Helm chart.
S
Description
No description provided
Readme MIT
4.4 MiB
0 Stars 1 Watchers 1 Forks
Languages
Rust 76.8%
Kotlin 12%
Vue 7.2%
TypeScript 3%
Dockerfile 0.5%
Other 0.4%