fix(claw): release the turns a restart cut as superseded
android / debug (push) Successful in 2m24s
android / release (push) Successful in 2m1s
ci / checks (push) Successful in 1m5s
ci / test (push) Successful in 37s
ci / chart (push) Successful in 5s
ci / docker (push) Successful in 1m51s
ci / web (push) Successful in 12s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m51s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 8s
ci / publish-edge-chart (push) Successful in 4s

A record keeps the outcome of its last release. A dispatch that was
checkpointing when the process died left nothing newer, so its thread
wore the outcome of the turn before it: a handled turn, ending on the
first line the model streamed. The mention had been drained before the
turn ran, so no reply was ever posted and nothing re-ran the key.

Boot now reads the leases the dead process left, recovers them as
before, and releases each one as superseded. The cut turn reads aborted
instead of borrowing the previous outcome, and the superseded outcome
says what the store knows: the work nobody finished is not wanted any
longer.
This commit is contained in:
vhaudiquet committed 2026-11-24 21:52:00 +01:00
1 parent d1c1e7c8d9
commit 9e3890c568
3 files changed
+127 -1

No files matched your search

+5 -1
View File
@@ -368,7 +368,11 @@ store, one dispatcher. Single-node is what makes restarts instant: at
boot the daemon releases every lease the previous process left —
outright, not at the dead lease's TTL — so a turn an update cut
mid-flight answers its next message instead of stalling behind a ghost
(the committed tool call revives at the top of that next dispatch).
(the committed tool call revives at the top of that next dispatch). The
cut turn is released as superseded on the way, so a thread it never
finished reads as aborted instead of wearing the outcome of the turn
before it. Nothing re-runs it: the mention was drained before the turn
ran, and the thread waits for the next activity.
The store and workspaces live on a PVC, `claw.yaml` in a ConfigMap (db
and workspace paths are pinned to the mounted volume), credentials in
a Secret, and the bearer token is the `token` value, required since