Skip to content

Business operating system for Claude Code — 57 skills, 21 agents, smart daemon. Unified inbox (WhatsApp/Email/Slack/Telegram), autonomous PR merge, full-AWS monitoring, revenue (Stripe+RevenueCat), e-commerce (Shopify), marketing (Klaviyo/Meta/GA4), voice (Bland/ElevenLabs), APM (Datadog/NewRelic/OTEL), YOLO mode.

fix: map parallel-warm metrics to service config names + fix doubled PREFS_PATH

auroracapital7391e20bc7e0
diff --git a/claude-ops/scripts/ops-daemon.sh b/claude-ops/scripts/ops-daemon.sh
index 72110861..c0393da1 100755
--- a/claude-ops/scripts/ops-daemon.sh
+++ b/claude-ops/scripts/ops-daemon.sh
@@ -878,6 +878,14 @@ _run_parallel_warm() {
local _pids=()
local _fn_names=(prefetch_briefing_cache prefetch_calendar prefetch_project_health build_contact_activity_index prefetch_marketing_cache)
+ # Map function names → service config names used in SERVICE_STATUS / health JSON.
+ # Functions without a 1:1 service entry are stored under the function name and
+ # won't appear in per-service health (they are sub-components of the warm cycle).
+ declare -A _fn_svc_map=(
+ [prefetch_briefing_cache]="briefing-pre-warm"
+ [prefetch_marketing_cache]="marketing-prewarm"
+ )
+
local fn
for fn in "${_fn_names[@]}"; do
if ! declare -F "$fn" >/dev/null 2>&1; then continue; fi
@@ -899,15 +907,16 @@ _run_parallel_warm() {
wait "${_pids[@]}" 2>/dev/null || true
for fn in "${_fn_names[@]}"; do
+ local svc_key="${_fn_svc_map[$fn]:-$fn}"
if [[ -f "$tmpdir/${fn}.ms" ]]; then
- SERVICE_LATENCY_MS["$fn"]=$(cat "$tmpdir/${fn}.ms")
+ SERVICE_LATENCY_MS["$svc_key"]=$(cat "$tmpdir/${fn}.ms")
fi
if [[ -f "$tmpdir/${fn}.ok" ]]; then
- SERVICE_LAST_SUCCESS["$fn"]=$(cat "$tmpdir/${fn}.ok")
+ SERVICE_LAST_SUCCESS["$svc_key"]=$(cat "$tmpdir/${fn}.ok")
fi
if [[ -f "$tmpdir/${fn}.fail" ]]; then
- SERVICE_ERROR_COUNT["$fn"]=$(( ${SERVICE_ERROR_COUNT[$fn]:-0} + 1 ))
- SERVICE_LAST_ERROR["$fn"]=$(cat "$tmpdir/${fn}.fail")
+ SERVICE_ERROR_COUNT["$svc_key"]=$(( ${SERVICE_ERROR_COUNT[$svc_key]:-0} + 1 ))
+ SERVICE_LAST_ERROR["$svc_key"]=$(cat "$tmpdir/${fn}.fail")
fi
done
rm -rf "$tmpdir" 2>/dev/null || true
diff --git a/claude-ops/skills/setup/SKILL.md b/claude-ops/skills/setup/SKILL.md
index 41542639..51801617 100644
--- a/claude-ops/skills/setup/SKILL.md
+++ b/claude-ops/skills/setup/SKILL.md
@@ -81,7 +81,7 @@ The setup wizard accepts these flags (parsed from `$ARGUMENTS`):
### Incremental re-setup
-When Step 0b detects an existing `$PREFS_PATH/preferences.json` with ≥1 configured section AND no explicit arguments were passed, default Step 1's prompt to "Re-setup broken only" (instead of "Set up everything"). Skip every section where `/ops:status` reports green for that section's key integrations.
+When Step 0b detects an existing `$PREFS_PATH` with ≥1 configured section AND no explicit arguments were passed, default Step 1's prompt to "Re-setup broken only" (instead of "Set up everything"). Skip every section where `/ops:status` reports green for that section's key integrations.
### Progress panel
@@ -192,7 +192,7 @@ Use `✓` for present/set, `○` for missing/unset, `✗` for broken.
### Incremental re-setup routing
-If Step 0b finds `$PREFS_PATH/preferences.json` with ≥1 configured section and no `--fast`/`--profile` argument was passed:
+If Step 0b finds `$PREFS_PATH` with ≥1 configured section and no `--fast`/`--profile` argument was passed:
1. Read `/ops:status` snapshot to build a per-section health map (`green`/`red`/`missing`).
2. Filter the Step 1 selector options to only sections where status is `red` or `missing`.