From ae69972e3613da891835836e21f52bba0b97f418 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Wed, 2 Dec 2026 18:02:17 +0100 Subject: [PATCH] fix(claw): seed the bundled skills onto the state volume /config is a read-only ConfigMap mount and the skills root defaulted into it ($XDG_CONFIG_HOME/rhema/skills), so every boot logged "the bundled skills were not seeded: cannot create the folder ... Read-only file system" and the agent ran without commit-message and unslop. The chart points skills_root at /data/state/rhema/skills, beside the bootstrap and memory stores: the seed can write there and a user's edit survives a restart. An explicit skills_root still wins, for a root that only needs reading. helm lint --strict and the template render pass. --- deploy/helm/rhema-claw/templates/configmap.yaml | 7 +++++++ deploy/helm/rhema-claw/values.yaml | 3 +++ 2 files changed, 10 insertions(+) diff --git a/deploy/helm/rhema-claw/templates/configmap.yaml b/deploy/helm/rhema-claw/templates/configmap.yaml index 25ae8e3..ef657e0 100644 --- a/deploy/helm/rhema-claw/templates/configmap.yaml +++ b/deploy/helm/rhema-claw/templates/configmap.yaml @@ -4,6 +4,13 @@ {{- $_ := set $cfg "db" "/data/claw.db" }} {{- $_ := set $cfg "workspace_root" "/data/workspaces" }} {{- $_ := set $cfg "listen" (printf "0.0.0.0:%v" .Values.service.port) }} +{{- /* The skills root defaults to the state volume: /config is a read-only + ConfigMap mount, and the daemon seeds the bundled skills + (commit-message, unslop) into this root on boot. An explicit + skills_root still wins, for a root that only needs reading. */ -}} +{{- if not (hasKey $cfg "skills_root") }} +{{- $_ := set $cfg "skills_root" "/data/state/rhema/skills" }} +{{- end }} {{- if .Values.token }} {{- $_ := set $cfg "token" .Values.token }} {{- else }} diff --git a/deploy/helm/rhema-claw/values.yaml b/deploy/helm/rhema-claw/values.yaml index 7b329f4..ebb62ff 100644 --- a/deploy/helm/rhema-claw/values.yaml +++ b/deploy/helm/rhema-claw/values.yaml @@ -23,6 +23,9 @@ token: "" # The claw.yaml content. db, workspace_root, and listen are pinned by the # templates (the PVC is fixed at /data and the container must bind all # interfaces for the Service); whatever these say here is overridden. +# skills_root defaults to /data/state/rhema/skills, on the same volume, +# because /config is a read-only mount and the daemon seeds the bundled +# skills there; set it to point discovery at a read-only root instead. config: poll_interval_secs: 60 # Seed watches: imported once, while the watch table is still empty.