Hermes
Hermes sidecar observability: health, failure triage, cron, guard blocks, logs, traces. USE WHEN hermes, sidecar, hermes failed, hermes task failed, iMessage task failed, message task failed, why did hermes fail, hermes not calling LifeOS, hermes status, hermes health, trace hermes, hermes session, hermes logs, hermes cron, guard blocks, triage hermes, sidecar broken, update hermes, upgrade hermes, is hermes up to date, keep hermes updated. NOT FOR mounting (LIFEOS/HERMES/Mount.ts), LifeOS services (Services.ts), messaging (the communication skill).
By- name:
- Hermes
- description:
- Hermes sidecar observability: health, failure triage, cron, guard blocks, logs, traces. USE WHEN hermes, sidecar, hermes failed, hermes task failed, iMessage task failed, message task failed, why did hermes fail, hermes not calling LifeOS, hermes status, hermes health, trace hermes, hermes session, hermes logs, hermes cron, guard blocks, triage hermes, sidecar broken, update hermes, upgrade hermes, is hermes up to date, keep hermes updated. NOT FOR mounting (LIFEOS/HERMES/Mount.ts), LifeOS services (Services.ts), messaging (the communication skill).
Hermes
Observability over a mounted Hermes sidecar. The sidecar keeps its own records (session store, cron execution history, error logs, guard audit trail), and this skill turns them into answers: is it healthy, what failed and why, and exactly what happened inside one task.
Everything runs against the live install at $HERMES_HOME (default ~/.hermes) through deterministic tools in LIFEOS/HERMES/: Observe.ts status|failures|sessions|trace (the aggregator: sessions, failure classes, end-to-end traces), Health.ts (process health: up/degraded/flapping/down/absent, per-channel state), LogAnalysis.ts [--days N] (guard audit trail: hot rules, retry loops, taint findings) and Mount.ts --check (identity/config drift, report-only). Diagnosis mutates nothing: no config writes, no restarts, no cron edits. The Update intent is the one place the sidecar changes. Fixes route through Policy.ts + Mount.ts (the mount owns config), never hand-edits.
Ideal State
- Every answer about the sidecar is grounded in its own records through the
LIFEOS/HERMES/tools, and success is judged from traces, never from an execution status. - Whether sessions actually load the LifeOS soul is always answered, and a blocked soul leads any report it appears in.
- Every failure or fix names its owner (
Policy.tsor soul sources plus a re-mount, the approval allowlist, or upstream Hermes) and the sidecar is never mutated by a diagnosis.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Status | "hermes status", "is hermes healthy", "is the sidecar running LifeOS" | Intents/Status.md |
| Triage | "why do hermes tasks fail", "hermes failures", "triage hermes" | Intents/Triage.md |
| Trace | "trace that task", "what happened to my message", "show me that hermes session" | Intents/Trace.md |
| Update | "update hermes", "upgrade hermes", "is hermes up to date" | Intents/Update.md |
| File | Read when |
|---|---|
Setup.md |
first-time setup: installing and mounting the optional sidecar the skill observes, and a read-only check |
Data & Config
The sidecar lives in $HERMES_HOME (default ~/.hermes); its mount config is LIFEOS/USER/CONFIG/hermes-trusted-domains.json and heartbeat.json. First-time setup is in Setup.md; without a sidecar the skill reports absent.
Gotchas
- A "completed" run is not a successful run. Cron executions report
completedand sessions endcron_completeeven when every meaningful tool call inside was blocked or died on approval. Judge success from the trace, never from the execution status. - Use
Observe.ts statusas the soul-loaded check, never an ad-hocsystem_prompt LIKE '[BLOCKED:%'query. When Hermes' safety scanner flags the persona file (SOUL.md) and does not load it, the session runs with no LifeOS constitution, identity, or skills routing, and nothing else about it looks wrong; the Update intent says how to read which pattern matched and decide whether the file or the pattern is at fault. A healthy gateway whose sessions all reject the soul is the worst state, because it looks fine. A blocked soul is the usual single upstream cause behind skill-routing failures: every downstream oddity in a trace (no skill routing, no identity, no output contract) usually follows from that one fact. Since the 2026-08-15 Hermes update the inlinesessions.system_promptcolumn is blank and prompts live in thesystem_promptshash store, so a raw query on that column reads green while the soul is blocked;Observe.tsresolves through the store.status --assert-lifeosexits 2 "unproven" when it saw no sessions or could not read the DB. blocked.jsonlcarries no session id. Guard blocks correlate to sessions by time window only; concurrent sessions can cross-attribute. The agent error log ([session_id]tags) is the authoritative per-session record.- Open every sidecar database read-only.
state.dbbelongs to a live gateway; a stray write lock can wedge it.Observe.tsdoes this; ad-hocsqlite3must usefile:...?mode=ro(and note the sqlite3 CLI sometimes refuses URI mode — prefer the tool). - Some guard blocks are by design. Voice-notification denies (
*31337/notify*etc.) enforce the no-terminal-no-voice rule for sidecar sessions — they are policy working, not a defect. Triage separates by-design blocks from false positives before recommending policy changes. - Credential files are listed, never read.
.envandauth.jsonappear in reports as size+mtime only — same rule the guard enforces on the sidecar. - Config blocks reload differently: approvals are mtime-cached (live), the model block is read at gateway start. Changing
model.defaultdoes nothing to running channels until the gateway restarts (launchctl kickstart -kon its service label — never Hermes' in-process restart, which spawns the KeepAlive restarter loop). Verify the switch from the next session'smodelcolumn, not from the config file. - Channel sessions pin their system prompt at creation. A long-lived iMessage/chat session keeps the soul it was born with — soul fixes and doctrine changes only reach it after a session boundary (
/newfrom the user, or thesession_resetpolicy). A session can look soul-loaded while running a weeks-old soul. - An upstream update can silently re-block the soul. Hermes scans SOUL.md with its threat-pattern library at every session start; an update that adds patterns can reject a soul that scanned clean yesterday, and nothing visible changes except every session running without its constitution.
Mount.ts --checkre-runs their scanner and the--assert-lifeosBunker row watches live sessions — the Update intent's post-update battery exists because of this class.
Examples
Example 1: A task sent from a messaging channel failed
User: "My iMessage task to Hermes failed again — what happened?"
→ Trace intent
→ Returns: what was asked, every wall it hit (guard block / approval / soul state), where it died, the fix
Example 2: Recurring failures
User: "Hermes tasks keep failing — triage it"
→ Triage intent
→ Returns classified failure report with per-class root cause and concrete fix, worst first
Example 3: Health check
User: "Is the sidecar healthy?"
→ Status intent
→ Returns one-screen report: process state, whether sessions actually load LifeOS, mount drift, top failure classes
More in this playbook
Sf ai agentforce
Agentforce Builder metadata path for Builder-managed topics/actions, Prompt Builder templates, GenAiFunction/GenAiPlugin, Models API, and custom Lightning types. TRIGGER when: user maintains or configures Builder metadata agents, creates topics/actions, works with Prompt Builder templates, or touches .genAiFunction, .genAiPlugin, or .genAiPromptTemplate metadata XML files. DO NOT TRIGGER when: Agent Script DSL .agent files (use sf-ai-agentscript), agent testing (use sf-ai-agentforce-testing), or persona design (use sf-ai-agentforce-persona).
Agentic workflowsMITSf ai agentforce grid
Use this skill whenever users want to build, inspect, debug, automate, or publish workflows in Agentforce Grid (AI Workbench) using Salesforce plus the Grid MCP or direct Grid REST calls. Trigger it for Grid workbook creation, worksheet setup, Object/Reference/AI/Agent/AgentTest/Evaluation/PromptTemplate/InvocableAction column design, prompt drafting inside Grid, worksheet execution troubleshooting, Grid YAML `apply_grid` specs, and Windows-specific Grid setup issues. Also use it when users mention AI Workbench, Grid Studio, workbook IDs, worksheet IDs, Grid Connect, or ask for recipes like "top opportunities with AI email drafts", "agent test suite in Grid", or "build this worksheet from YAML". Do not use it for generic Salesforce work unrelated to Agentforce Grid.
Agentic workflowsMITSf ai agentforce observability
Agentforce session tracing extraction and analysis. TRIGGER when: user extracts STDM data from Data Cloud, analyzes agent session traces, debugs agent conversations via telemetry, or works with .parquet files from Agentforce. DO NOT TRIGGER when: testing agents (use sf-ai-agentforce-testing), Apex debug logs (use sf-debug), or building agents (use sf-ai-agentforce).

