hermes-cron-job-debugging
Debug Hermes cron jobs showing empty data; verify store.
- License 许可
- MIT
- 最近更新
- 2026-10-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- hermes-cron-job-debugging
- tags
- [ "hermes", "cron", "debugging", "journal", "troubleshooting" ]
- author
- Hermes Agent (curator)
- license
- MIT
- version
- 1.0.0
- metadata
- { "hermes": { "tags": [ "hermes", "cron", "debugging", "journal", "troubleshooting" ], "related_skills": [ "systematic-debugging" ] } }
- description
- Debug Hermes cron jobs showing empty data; verify store.
02 资源文件 1
- 参考文档references/session-store-check.md1.2 KB
03 SKILL.md 正文
Hermes Cron Job Debugging
When to use
A Hermes cronjob reports no data ("no structured journal entry recorded today",
"no sessions today", blank summary) but you KNOW work happened that day. Or a
summary cron silently drops a day's activity.
Core principle: trust-but-verify the negative
A cron's "nothing found today" is a SYMPTOM, not proof. The job's own detection
logic may point at a deprecated data source. Independently verify the live store
before accepting the negative. This session's bug: a journal job ls-ed
~/.hermes/sessions/*.jsonl (stale May data) and reported "no raw sessions
today" even though real August work existed in the live store.
Debugging checklist (root-cause first — no guessing)
- Read the job definition.
cronjob list, then read the prompt from/home/deeone/.hermes/cron/jobs.json(top-leveljobsarray; each entry hasid,name,prompt). Find what path/command it uses to locate "today's" data. - Identify the data-source assumption. Does it
lsa dir, glob files, read a flat file, or query a DB? That assumption may be stale. - Verify the live store independently. Do NOT trust the job's own
ls/glob (usesearch_filesif a filesystem scan is needed). Query the actual current store directly (see references/session-store-check.md). - Check for storage migration. Hermes' session/state store has moved across
versions. As of this user's setup the LIVE session store is
/home/deeone/.hermes/state.db(sessions+messagestables;started_atis a Unix epoch float). The legacy~/.hermes/sessions/*.jsonlandrequest_dump_*.jsonfiles hold only STALE pre-migration data and will miss all recent activity. Re-confirm after any Hermes upgrade — do not hardcode. - Fix at the source. Patch the job prompt to query the live store, then re-run to backfill the missed day.
Pitfalls
- A job that APPENDS a
# Daily Summarysection to a journal file is safe to re-run; it backfills the missed day. - Date math: session timestamps are epoch floats. Convert with
datetime.fromtimestamp(ts, datetime.UTC)(3.12+;utcfromtimestampdeprecated). Filterstarted_at >= start_of_day_epoch AND < start_of_day+86400. - Use the job's
$DATEvariable; never hardcode the date in a fix. cronjob listis the live source of truth for job IDs and schedules.
Verification before declaring fixed
Run the corrected detection query for the missed day and confirm it returns the real sessions, THEN re-run the job. If the query still returns nothing, the problem is elsewhere (permissions, empty journal, different store) — keep digging.
References
references/session-store-check.md— exact sqlite query to list a day's sessions.
04 同仓库更多 Skills
blocked-page-recovery
Use when a fetch fails: 403/429, paywall, WAF, bot wall.
gemini-vision-fallback
Vision fallback: Gemini REST API if vision_analyze blocked.
twitter-cli
Use twitter-cli for ALL Twitter/X operations — reading tweets, posting, replying, quoting, liking, retweeting, following, searching, user lookups. Invoke whenever user requests any Twitter interaction.
prism-scan
Structural analysis through dynamically generated cognitive lenses. Generates the optimal analytical lens for the specific code/artifact, then executes it. Finds conservation laws, structural invariants, and concrete bugs that vanilla analysis misses. Use on any code file, system design, or text artifact.
prism-reflect
Constraint transparency: analyzes an artifact structurally, then analyzes what its own analysis concealed. Produces a conservation law AND a constraint report showing what was maximized, what was sacrificed, and what to investigate next. The only AI skill that knows what it can't see.
prism-full
Full Prism: multi-pass structural analysis with mandatory adversarial self-correction. Designs custom analytical passes, executes them with chaining, then attacks its own findings before synthesizing. Use for maximum depth on important code or artifacts.