fix(claw): seed the bundled skills onto the state volume
android / release (push) Successful in 2m16s
android / debug (push) Successful in 2m19s
ci / checks (push) Successful in 2m51s
ci / test (push) Successful in 1m12s
ci / chart (push) Successful in 6s
ci / docker (push) Successful in 2m2s
ci / web (push) Successful in 14s
ci / publish-edge-images (deploy/docker/claw.Dockerfile, rhema-claw) (push) Successful in 1m59s
ci / publish-edge-images (deploy/docker/ui.Dockerfile, rhema-claw-ui) (push) Successful in 9s
ci / publish-edge-chart (push) Successful in 4s

/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.
This commit is contained in:
vhaudiquet committed 2026-12-02 18:02:17 +01:00
1 parent b9a633d0eb
commit ae69972e36
2 files changed
+10

No files matched your search

@@ -4,6 +4,13 @@
{{- $_ := set $cfg "db" "/data/claw.db" }} {{- $_ := set $cfg "db" "/data/claw.db" }}
{{- $_ := set $cfg "workspace_root" "/data/workspaces" }} {{- $_ := set $cfg "workspace_root" "/data/workspaces" }}
{{- $_ := set $cfg "listen" (printf "0.0.0.0:%v" .Values.service.port) }} {{- $_ := 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 }} {{- if .Values.token }}
{{- $_ := set $cfg "token" .Values.token }} {{- $_ := set $cfg "token" .Values.token }}
{{- else }} {{- else }}
+3
View File
@@ -23,6 +23,9 @@ token: ""
# The claw.yaml content. db, workspace_root, and listen are pinned by the # 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 # templates (the PVC is fixed at /data and the container must bind all
# interfaces for the Service); whatever these say here is overridden. # 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: config:
poll_interval_secs: 60 poll_interval_secs: 60
# Seed watches: imported once, while the watch table is still empty. # Seed watches: imported once, while the watch table is still empty.