Vesper
Skill indigokarasu/vesper
Daily briefing generator. Aggregates signals from across the system into concise morning and evening briefings. Surfaces outcomes, opportunities, and decisions in natural language without exposing internal processes. NOT for: deep research (use Sift), pattern analysis, message drafting (use Dispatch), or raw data queries (use Styx directly).From its SKILL.md
npx -y skills add indigokarasu/vesperAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its file declares
Copied from the file, not written here
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
39.2 KB, ~9.1k tokens by cl100k_base, as published. Nobody here has run it
Interactive Menu
When invoked interactively, present a two-level menu using the clarify tool. See references/interactive-menu.md for the full menu structure, response parsing, and platform adaptation.
Vesper is the system's daily voice — it aggregates signals from every other skill and presents what matters as a concise, conversational morning or evening briefing, surfacing concrete outcomes, upcoming decisions, and actionable opportunities without exposing any internal architecture or analysis processes. This skill exists because raw signal data from individual skills is not actionable — the owner needs a synthesized, natural-language summary.
When to Use
- Daily briefing generation (morning, evening, on-demand)
- Signal aggregation from all OCAS skills
- Morning summary of calendar, email, and system status
- End-of-day wrap-up and next-day preview
- Checking pending decision requests
- Configuring briefing schedule or sections
When NOT to Use
- Deep research — use Sift
- Pattern analysis
- Message drafting — use Dispatch
- Action execution — use relevant domain skill
- Real-time monitoring
- Calendar management (use Sands)
- Email sending (use Dispatch)
What this skill does not do
- Signal generation (no current skill for this)
- Portfolio management (Rally)
- Calendar management (Sands)
- Communications delivery (Dispatch)
- Research (Sift/Scout)
- Action decisions (Praxis)
Account isolation
See references/account-credentials.md for Google account isolation rules and OAuth credential configuration.
Responsibility boundary
Vesper owns briefing generation, signal aggregation, and decision presentation. It aggregates signals from Rally, Sands, Dispatch, and Calendar into morning and evening briefings, then writes completed briefings to its briefings/ directory for Dispatch to pick up and deliver.
Vesper does not own: signal generation, portfolio management (Rally), calendar management (Sands), communications delivery (Dispatch), research (Sift/Scout), or action decisions (Praxis). It surfaces outcomes; it does not act.
Signal filtering rules
Read references/signal_filtering.md for full rules.
Summary: Include actionable information, meaningful outcomes, plan-affecting changes, multi-signal opportunities, and preparation-useful information. Exclude routine background activity, already-experienced events, internal system reasoning, and speculative observations. Evening-specific: no past weather, no summaries of attended meetings.
Formatting rules
Read references/briefing_templates.md for structure and examples, references/html-templates.md for HTML layout, and references/weather-codes.md for weather rendering.
Key constraints:
- No markdown syntax (#, **, ---) — plain text or minimal HTML suitable for Gmail
- Conversational paragraphs, not bullet dumps
- Section headers: ▪ Today, ✉ Messages, ⚑ Logistics, ◈ Markets, ⟡ Decisions, ⚙ System
- Sections with no content are omitted entirely — no "nothing to report" placeholders
- Normal-state system health is silence — no "all clear" or "systems normal"
- Opening: "Good morning the owner" / "Good evening the owner" (no punctuation after greeting)
- Markets: morning shows yesterday's close; evening shows open and close. Notable movers only when material.
- Decision requests: option, benefit, cost — framed as optional
- Links are inline with meaningful anchor text; see URI formats in reference files
- When Vibes (ocas-vibes) is present, apply its voice and anti-AI rules to all briefing text
- No nagging, no internal terminology, no speculative observations, no architecture references
Commands
vesper.briefing.morning— generate morning briefingvesper.briefing.evening— generate evening briefingvesper.briefing.manual— on-demand briefingvesper.briefing.deliver— deliver undelivered briefings via email usingmcp_google_workspace_send_gmail_message(NOTbriefing_deliver.pywhich is broken). Scan individual briefing files for non-delivered status, convert content to HTML, send via MCP, update both the individual file andbriefings.jsonlon success. In cron sessions where the email MCP is unavailable,python3 scripts/delivery_check.py --type <morning|evening|all> --deliverperforms the same scan, delivers via the Telegram fallback, and updates both records — see Direct Telegram delivery gotcha.vesper.briefing.check— inspect the latest briefing file (scripts/check_briefing.py)vesper.decisions.pending— list unacted decision requestsvesper.config.set— update schedule, sections, deliveryvesper.status— last briefing time, pending decisions, schedulevesper.journal— write journal for the current run; called at end of every runvesper.update— pull latest from GitHub source; preserves journals and data
Invocation modes
- Automatic morning — during configured morning window
- Automatic evening — during configured evening window
- Manual — on user request
Run completion
- Apply Vibes rules — Apply voice rules from SOUL.md directly (no em dashes, no "the user", no meta-narration, no "Now I have…"). Do NOT load ocas-vibes via skill_view — its rules are already embedded in SOUL.md/AGENTS.md.
- Read InsightProposal files from Custodian
proposals/directory. Apply signal filtering. Track consumedproposal_idvalues insignals_evaluated.jsonlto avoid reprocessing. Read Dispatch summary and Rally daily report if present. For parallel signal gathering,delegate_taskworks for calendar queries but subagent Gmail OAuth may fail independently — always have a direct fallback. - Write briefing file to
{agent_root}/commons/data/ocas-vesper/briefings/YYYY-WXX/YYYY-MM-DD-{type}.jsonusingVesperBriefingFileschema. Create week directory if absent. Path is non-negotiable — the schemabriefings/YYYY-WXX/YYYY-MM-DD-{type}.jsonis the delivery contract. If user instructions specify a different path (e.g.,morning/orevening/), follow the schema for the canonical location AND save a copy to the requested path. The copy and the canonical file must be identical at write time; only delivery tracking (viabriefings.jsonl) applies to the canonical path. Note the divergence in the journal. - Briefing quality check: Re-read the generated briefing file and verify: (a) no internal system terminology leaked through (no skill IDs, database references, or technical jargon — use whole-word matching, not substring matching, to avoid false positives like "DB" matching inside "Handbuilding"), (b) all included sections have actual content — no empty sections, (c) the greeting matches the time-of-day format, (d)
signals_evaluated.jsonlwas updated with all consumed proposal IDs, and (e) every decision item traces to a real upstream signal — no fabricated or template-copied decisions. If any check fails, regenerate the briefing before marking the run complete. Tip: Runpython3 scripts/quality_check.py <briefing-file.json> [signals-evaluated.jsonl]for automated validation — it implements all five sub-checks with whole-word regex matching. - Only after the briefing passes quality check, persist the completed briefing record to
briefings.jsonland evaluated signals tosignals_evaluated.jsonl. Log material decisions todecisions.jsonl. (Do not append these files before the quality check succeeds — the JSONL is the delivery contract and must match the final briefing exactly.) - Write journal via
vesper.journal.
Inter-skill interfaces
Custodian → Vesper: Custodian writes InsightProposal files (anomaly_alert type) to {agent_root}/commons/data/ocas-custodian/proposals/{proposal_id}.json. Vesper reads them during briefing generation.
Dispatch → Vesper: Dispatch writes DispatchSummaryReport to {agent_root}/commons/data/ocas-dispatch/reports/YYYY-MM-DD-{period}.json. Vesper uses this for the Messages section.
Rally → Vesper: Rally writes daily portfolio reports to {agent_root}/commons/data/ocas-rally/reports/YYYY-MM-DD-daily.json. Vesper uses this for the Markets section.
Vesper → Dispatch: Vesper writes completed briefings to its briefings/ directory. Dispatch picks them up for delivery. See references/schemas.md VesperBriefingFile.
Storage layout & configuration
Data lives under {agent_root}/commons/data/ocas-vesper/ with journals under {agent_root}/commons/journals/ocas-vesper/. The default config.json sets morning window 07:00–09:00 PT, evening window 17:00–19:00 PT, all six sections enabled, 30-day retention, and 10k record cap. Briefings are stored in ISO week directories as YYYY-MM-DD-{type}.json. See references/schemas.md for the full directory tree and default config.
OKRs
Vesper tracks five OKRs — signal precision, terminology compliance, decision framing, schedule adherence, and data integrity — all evaluated over 30-run windows. Targets: 85%+ actionable signals, 100% terminology-free briefings, 100% complete decision framing, 95%+ schedule compliance, 99%+ data integrity. See references/okrs.md for the full OKR specification.
Optional skill cooperation
- Vibes — applies voice identity and anti-AI rules from ocas-vibes. Do NOT load ocas-vibes via skill_view — its rules are already in SOUL.md and AGENTS.md. Apply voice rules directly from SOUL.md: no em dashes, no "the user" (use "you"), no meta-narration ("Now I have…", "Let me check…"), no rule of three, no Vibes checklist items that conflict with SOUL.md.
- Custodian — reads InsightProposal files (cooperative read)
- Dispatch — reads DispatchSummaryReport; Dispatch picks up completed briefings from Vesper for delivery
- Rally — reads portfolio daily reports (cooperative read)
- Calendar/Weather — reads external context for briefing content
Ontology types & journal
Vesper observes entities during briefing aggregation (Entity/Person, Concept/Event, Place). Entity observations are recorded in journal outputs for downstream Chronicle ingestion. Read references/journal.md before vesper.journal.
When entities are encountered, include in decision.payload:
entities_observed— type, name, contextrelationships_observed— connections between entitiespreferences_observed— user preferences inferred from briefing interactions
Each entity observation includes a user_relevance field: user, agent_only, or unknown.
Initialization
On first invocation, run vesper.init:
- Create data directories (including
briefings/) - Write default
config.jsonif absent - Create empty JSONL files
- Create journal directory
- Register cron jobs
vesper:morning,vesper:evening,vesper:updateif not already present - Log initialization as a DecisionRecord in
decisions.jsonl
Background tasks
| Job name | Mechanism | Schedule | Command |
|---|---|---|---|
vesper:morning | cron | 0 6 * * * (daily 6am) | vesper.briefing.morning |
vesper:evening | cron | 0 20 * * * (daily 8pm) | vesper.briefing.evening |
vesper:update | cron | 0 0 * * * (midnight daily) | vesper.update |
Cron options: sessionTarget: isolated, lightContext: true, wakeMode: next-heartbeat.
Default times are 6am and 8pm PT. Override with vesper.config.set morning_hour <H> and vesper.config.set evening_hour <H>.
Self-update
vesper.update pulls the latest package from the source: URL in SKILL.md frontmatter. Runs silently unless version changed or error occurred. On failure, retries once. Output on success: I updated Vesper from version {old} to {new}.
Procedure: See references/update-procedure.md for the full update workflow including conflict resolution and profile sync. Key points:
- If local modifications block
git pull: stash, move conflicting untracked files, pull, stash pop, resolve conflicts - After pulling: sync the profile copy (
~/.hermes/profiles/indigo/skills/ocas-vesper/) — sessions load from there, not the git repo
Visibility
public
Gotchas
Error handling in vesper focuses on graceful signal degradation — when a signal source is unavailable, the briefing notes the gap rather than failing silently or fabricating content.
-
Account isolation is critical — See
references/account-credentials.md. -
Upstream skill unavailability is silent — Missing data means the affected section is omitted entirely. No error raised.
-
All-upstream silence produces thin briefings — When Custodian, Dispatch, and Rally are all unavailable (common on quiet days), the briefing may contain only weather + email. This is normal. Do not pad with fabricated content. A 3-line briefing that accurately reflects available signals is better than a padded one. If the only available signal is weather, the briefing can be just the greeting + weather paragraph. If email is also empty, consider whether a briefing should be generated at all — sometimes silence is the correct output. Evening briefings have no weather section, so a thin evening briefing may be just greeting + one message line. See
references/sparse-briefings.mdfor evening-specific guidance. -
Signal filtering is strict — Routine, speculative, and already-experienced signals are excluded.
-
Normal state is silence — Never confirms "all systems normal." Empty sections are omitted with no placeholder.
-
Briefing files use ISO week directories — Stored under
briefings/YYYY-WXX/. Create the directory if absent. -
Cron mode blocks
execute_code— Vesper runs as an isolated cron job.execute_codeis denied in this mode. Useterminal+ Pythonjson.dumpfor JSONL appends and file writes. Plan file operations accordingly. When appending to JSONL files, useterminalwith a Python one-liner or heredoc that callsjson.dump— do NOT usewrite_filefor JSONL (it overwrites). Do NOT use raw heredoc for JSON — emoji (� ▪ ✉), smart quotes, and em dashes corrupt in heredocs. Usepython3 -c '...json.dump(...)`` instead. Seereferences/cron-mode-briefing-generation.md` sectionStep 4: Write the briefing file" for the correct pattern. -
Avoid piping command output into an interpreter — Commands like
sed ... | python3orcat file | python3are blocked by the security scanner (flagged as pipe-to-interpreter) in terminal/cron mode. When you need to post-process file contents with Python, write the logic to a script file (e.g./tmp/check.py) viawrite_fileand runpython3 /tmp/check.pyinstead of inlining a pipe. This applies to all shell work in this environment, not just Vesper. -
briefing_deliver.pyis BROKEN — use MCP tools directly — Thescripts/briefing_deliver.pyscript usesgoogleapiclientdirectly and will fail with import/auth errors in cron mode. When delivering briefings, always usemcp_google_workspace_send_gmail_messagevia MCP. Build HTML manually from thecontentfield — no template file needed. See the delivery check procedure in cron mode for the correct approach. -
Never fabricate decisions — Every decision item in the briefing must trace to a real upstream signal (a Custodian alert, pending renewal with real data). Template examples in
briefing_templates.mdare illustrations only, not real pending items. If no genuine decision signal exists, omit the Decisions section entirely. A fabricated decision (#4 quality check violation) is worse than silence. -
Hallucination window — April-May 2026 — During this period, Vesper briefings were generated with fabricated personal data (false locations, investment positions, family details, insurance policies). These briefings ARE in the system and may be read by Dispatch and other skills. When sourcing data for briefings corroborate all "facts" about the user's personal life against primary sources (actual Gmail, actual Calendar, actual session transcripts) — never trust a Vesper briefing from this window as a source of personal fact. If you find briefing content that contradicts known reality, discard the briefing data and flag the briefing as corrupted.
-
JSONL write ordering — The briefing content (
briefings/YYYY-WXX/YYYY-MM-DD-{type}.json) is the source of truth. Only after the briefing file passes the quality check (step 5 of Run completion) shouldbriefings.jsonlandsignals_evaluated.jsonlbe written/appended. Never append tobriefings.jsonlduring the draft phase. Draft → quality check → finalize → append JSONLs. This avoids append-then-retract cycles that complicate delivery tracking. -
briefings.jsonl IS real JSONL —
briefings.jsonlis one JSON object per line, standard JSONL format. Theread_filetool wraps all output in acontentfield withN|line prefixes — this is a tool artifact, NOT the file's actual structure. To verify raw file format, usehead -c 500 fileorterminal cat file | head -3. To check for undelivered briefings:grep -c '"delivered": false' briefings.jsonl(standard grep works on raw JSONL). To count lines:wc -l briefings.jsonl. -
Dual delivery flags can desync —
briefings.jsonlhas two parallel delivery tracking fields:delivered(boolean) anddelivery_status(object withstatus+delivered_at). These can get out of sync when delivery updates one but not the other. When checking for undelivered briefings, check BOTH fields: a briefing is considered delivered if eitherdelivered=trueORdelivery_status.status="delivered"(with a non-nulldelivered_at). If flags are desync'd, fix them by settingdelivered=trueon any entry wheredelivery_status.status="delivered"— the delivery timestamp is the authoritative record. -
Dual LOCATIONS can desync — Briefings live in two places: the master index (
briefings.jsonl) AND individual files (briefings/YYYY-WXX/YYYY-MM-DD-{type}.json). Each has its owndeliveredflag. The JSONL index may saydelivered: truewhile the individual file saysdelivered: false, or vice versa. When checking for undelivered briefings, you MUST scan both locations. Usegrep -rl '"delivered": false' <hermes-home>/commons/data/ocas-vesper/briefings/*/to find undelivered individual files. Also check fordelivered: None(JSON null) — a briefing that was generated but never had its delivery flag set will havenull/Nonerather thanfalse. Usegrep -rl '"delivered": null' briefings/*/or a Python scan to catch these. After delivering, update BOTH locations. -
delivery_statushas THREE formats — The field can be: (1) a plain string:"delivered","pending", or"silent"; (2) an object with{status: "delivered", delivered_at: "..."}; (3) an object with{status: "failed", failed_at: "...", reason: "..."}. When scanning for undelivered briefings, check ALL three forms. A briefing is undelivered if:delivery_statusis"pending", ORdelivery_status.statusis"failed"or"pending", ORdeliveredisfalseornull/None. Skip"silent"status — these are intentionally suppressed briefings with no content, not failed deliveries. Also skip"draft"status in JSONL — this is an intermediate state that can get stuck; always cross-reference against the individual file'sdelivery_statusbefore treating a"draft"JSONL entry as undelivered. -
delivered: nullwithdelivery_status: "delivered"desync — A specific desync where the individual briefing file hasdelivered: null(JSON null, never set) butdelivery_status: "delivered"(plain string) with a validdelivered_attimestamp. This happens when delivery succeeds but the code path that sets the top-leveldeliveredboolean doesn't run. Thedelivery_statusfield is authoritative — if it says"delivered"with a timestamp, the briefing WAS delivered. Fix by settingdelivered: truein the individual file. Always check both fields independently. -
JSONL may claim delivered with no content — A desync case where
briefings.jsonlhasdelivered: trueanddelivery_status: "delivered"but thecontentfield is empty or missing, while the individual briefing file has full content anddelivered: null. This happens when a delivery run partially succeeds (updates JSONL metadata but fails to send or record content). Recovery: read content from the individual file, send it, then update both locations with content and delivery confirmation. -
MCP server unavailable in cron mode — When running as a cron job, the Google Workspace MCP server may not be running at all. The native MCP client (not the skill wrapper, but the actual
workspace-mcpstdio subprocess) can be dead, broken, or pointing at a non-existent Python module. Symptoms: (1)hermes statusshows "Email ✗ not configured" even thoughconfig.yamlhas the MCP server entry withenabled: true, (2)ps aux | grep workspace-mcpreturns nothing, (3) the wrapper binary at/usr/local/bin/workspace-mcpcallspython -m mainbut the module doesn't exist in the venv. Diagnosis sequence:hermes status→ps aux | grep workspace-mcp→cat /usr/local/bin/workspace-mcpandcat /usr/local/bin/workspace-mcp-fixedto check the entrypoint. If the entrypoint is broken (module not found, wrong venv path), the MCP cannot send from the cron session's own resources. Procedure when MCP is dead/broken: (1) Setdelivery_status: {status: "failed", failed_at: <now>, reason: "MCP server not running in cron session — <specific error>"}on both the individual briefing file AND thebriefings.jsonlentry. (2) Do NOT retry sending in a loop — the MCP process won't recover within a cron run. (3) Do NOT attempt to usegoogleapiclientdirectly — that's the old brokenbriefing_deliver.pypath. (4) Preserve the briefing content so a later retry run (or Dispatch) can deliver it. (5) Report the blocker with the briefing's content in the response so the user has it immediately. This is distinct from the "send times out" bug (documented inemail-sendingskill) — that's when the MCP IS running but the send tool hangs. This pitfall covers the MCP not running at all. -
MCP package completely missing (not just wrong path) — A more severe variant of the "MCP unavailable" failure: the
workspace_mcpPython package is not installed in ANY environment on the system. The entrypoint binary (/usr/local/bin/workspace-mcp) callspython -m mainbut noworkspace_mcppackage exists anywhere — not in the hermes-agent venv, not in system site-packages, not anywherepip listorfindcan locate it. This means the MCP server can never start until the package is reinstalled. Diagnosis:pip list 2>/dev/null | grep -i workspacereturns nothing,find / -name "workspace_mcp" -type d 2>/dev/nullreturns nothing,find / -name "__main__.py" -path "*workspace*" 2>/dev/nullreturns nothing. Fix: reinstall the package (e.g.pip install google-workspace-mcpor whatever the correct package name is) into the venv referenced by the entrypoint binary, then verify withpython -m workspace_mcp --helpor equivalent. Workaround until fixed: deliver briefings viahermes send --to telegram:OWNER_CHAT_IDas described in the Direct Telegram delivery gotcha. Note: OAuth credentials may still be valid even when the package is missing — check<gworkspace-creds>/credentials/for token freshness before assuming auth is also broken. -
OAuth failures are persistent blockers — When
send_gmail_messagereturns an auth error, the briefing'sdelivery_statusis set to{status: "failed", reason: "Google OAuth..."}. On retry, if OAuth is still not reauthorized, do NOT keep retrying in a loop — update thefailed_attimestamp and reason, then report the blocker to the user. The OAuth outage briefing itself (the 2026-05-31 evening brief) is a self-referential case: it reports the OAuth failure that prevents its own delivery. -
Weather API: use Open-Meteo directly, not RapidAPI — The RapidAPI
weatherendpoint'scurrent-weatheraction is unreliable (returns "tool not found"). Usecurldirectly tohttps://api.open-meteo.com/v1/forecastwith parameterstemperature_2mandweather_code(NOTtemperature_2m,weather_codeas a comma-separated single param — they are separate query params). Example:curl -s "https://api.open-meteo.com/v1/forecast?latitude=37.7749&longitude=-122.4194¤t=temperature_2m,weather_code&hourly=temperature_2m,weather_code&daily=temperature_2m_max,temperature_2m_min,weather_code&temperature_unit=fahrenheit&timezone=America%2FLos_Angeles&forecast_days=2". Seereferences/weather-codes.mdfor WMO code mapping. -
Python booleans in heredocs — When writing Python via shell heredoc (
cat << 'EOF'), useTrue/False(Python capitalization), NOTtrue/false(JSON/JS). Using lowercase causesNameError: name 'false' is not defined. -
Direct Telegram delivery — When the user requests immediate delivery (not via Dispatch), OR when the MCP server is broken/unavailable during a cron delivery check, use
hermes send --to telegram:OWNER_CHAT_ID --quiet "message". This bypasses the Dispatch pipeline and delivers directly. Mark the briefing asdelivered: truewithdelivered_attimestamp immediately after successful send. When delivering a full briefing, prepend the subject line (e.g. "Evening Briefing — June 28") as the first line of the message. For stale briefings (e.g. a morning briefing delivered in the evening), add "(delayed delivery)" to the subject line so the recipient knows the context is dated. -
Vibes is a passive style reference — do NOT load it via skill_view — The ocas-vibes skill has a 67% false trigger rate when loaded directly. Its rules are already in SOUL.md and AGENTS.md. Apply voice rules from SOUL.md (em dash prohibition, no "the user", no meta-narration, no "Now I have…", etc.) without loading the skill. The Vibes Pre-Send Checklist should be applied from memory, not by invoking the skill binary.
-
Finch journals are NOT deliverables — The JSON files in
commons/journals/ocas-finch/YYYY-MM-DD/(daily-HHMM.json, weekly-HHMM.json, scan-HHMM.json) are internal action journals, not user-facing reports. Finch cron jobs are self-delivering via the cron system (deliver: "origin"ordeliver: "local"). When running a delivery check, NEVER send finch journal content viahermes send. Only checkbriefings.jsonlfor undelivered briefings. Seereferences/delivery-check-procedure.mdfor the full procedure. -
Legacy ocas-corvus proposal paths — Files may exist at
{agent_root}/commons/data/ocas-corvus/proposals/— these are legacy artifacts from before Corvus was merged into Chronicle. Ignore them during signal gathering. -
read_file output is tool wrapping, not file contents — The
read_filetool wraps all output in{"content": "N|line1\nN|line2"}— this is a tool presentation layer, NOT the file's actual on-disk format. When verifying file structure (JSONL delimiters, CSV headers, encoding), useterminal head -c 500 fileorterminal head -3 fileto see raw bytes. The pipe-delimitedN|prefixes you see in tool output do NOT exist in the actual file. -
Skill files live in two locations — The git repo at
~/.hermes/skills/ocas-vesper/is the update source. Sessions load from~/.hermes/profiles/indigo/skills/ocas-vesper/. After anyvesper.update, the profile copy MUST be synced or the next session will run stale code. Always sync bothSKILL.mdandreferences/after pulling. Seereferences/update-procedure.md. -
Reference file path resolution — When SKILL.md references files like
references/briefing_templates.md, the actual files live under the profile skill directory (~/.hermes/profiles/indigo/skills/ocas-vesper/references/), NOT under the data directory (~/.hermes/commons/data/ocas-vesper/references/). The data directory has noreferences/subdirectory. Always resolve reference paths against the skill directory, not the data directory. -
Cron user instructions may conflict with stored paths — When a cron job is invoked with an explicit file destination (e.g.,
save to morning/), the stored procedure inreferences/schemas.mdtakes precedence. The path schemabriefings/YYYY-WXX/YYYY-MM-DD-{type}.jsonis the delivery contract and must be followed for Dispatch and delivery checks to function. If user instructions specify a different path, save a copy to that path for the user's reference, but the canonical file MUST go tobriefings/YYYY-WXX/. Note the divergence in the journal. -
patchis unreliable afterread_file—read_filewraps output withN|line prefixes that don't exist in the actual file. If you read a file viaread_fileand then trypatch, the old_string may never match. Useterminal+ Python (json.load/json.dumpper line) orwrite_fileto rewrite. This applies to ALL files, not just JSONL. Thepatchtool operates on raw file content. If you include theN|prefix in both old_string and new_string, you can accidentally create duplicate prefixes (e.g.,27|27|). SAFE alternatives: (1) Useterminal+sed -i 'Ns/^N|N|/|/'for surgical single-line prefix fixes. (2) Useterminal+ Python (json.loadper line, modify,json.dumpper line) for structured edits. (3) Usewrite_fileto rewrite the entire file from a parsed representation. NEVER usepatchwith theN|prefix included in both old and new strings — the prefix duplicates and corrupts the line, making it unparseable. -
Failed briefings may have no
contentfield — When a briefing fails during generation (e.g., OAuth expired before data could gather), the JSONL entry may contain only metadata (briefing_id,type,date,sections,delivery_status) with NOcontentfield. During delivery checks, skip entries that lack acontentstring — there is nothing to deliver. Mark them asdelivery_status: "skipped"with a reason of "No content — generation failed" to prevent re-checking. Ifcontentexists but is empty string (""), also skip — the briefing was intentionally suppressed. -
Quality check substring false positives — When checking for internal terminology leaks (quality check step 3a), use whole-word matching, not simple substring search.
\bDB\bas a regex will not match "Handbuilding" — but a naiveif "DB" in contentcheck WILL. Similarly, terms like "cal" match "calendar", "int" matches "intelligence", etc. Write the terminology check as word-boundary regex (\bon each side) or explicitly enumerate only full technical terms. A false positive on the terminology check causes unnecessary regeneration and wasted cycles. -
System section needs user-facing phrasing — The System section (⚙) communicates service gaps to the owner, but terms like "MCP", "cron", "OAuth", "API" in the System text are flagged as internal terminology by
quality_check.py. Use generic user-facing language: "Calendar sync and email delivery are currently unavailable — no live data from those sources this cycle" instead of "MCP server not running in cron sessions". Test the System text withquality_check.pyafter writing — if it fails, rephrase generically and re-run. The System section should be ONE short paragraph about what's unavailable, not a technical diagnosis. -
quality_check.py— The quality check script lives at~/.hermes/profiles/indigo/skills/ocas-vesper/scripts/quality_check.py(the profile skill directory). Run it as an absolute path — relativescripts/quality_check.pyonly works when CWD happens to be that directory. Call:python3 ~/.hermes/profiles/indigo/skills/ocas-vesper/scripts/quality_check.py <briefing.json>. It returnsPASSorFAIL — Quality check issues found:with the failing terms. -
quality_check.pyfield name mismatch — Thescripts/quality_check.pycheck_sections_have_contentandcheck_decisions_tracefunctions now accept both field names:summaryORtextfor content items,section_typeORidfor sections. The VesperBriefingFile schema usessummaryandsection_type. Always verify field names inreferences/schemas.mdwhen modifying the quality script. -
contentfield is REQUIRED in VesperBriefingFile — Thereferences/schemas.mdVesperBriefingFile schema listscontentas a string field, but it's easy to omit when building the sections array. Thequality_check.pycheck_greetingfunction readsbriefing['content']and will FAIL if the field is missing (it returns''and the greeting check fails with "expected 'Good morning ...'"). Always includecontent— it's the rendered plain-text version of the full briefing, with section markers and newlines. Build it as you build the sections array. -
signals_consumedis NOT in the VesperBriefingFile schema — Thequality_check.pycheck_signals_evaluatedfunction looks forbriefing.get('signals_consumed', []), but this field is not part of the VesperBriefingFile schema inreferences/schemas.md. If you includesignals_consumedin the briefing JSON, the quality check will try to validate those IDs againstsignals_evaluated.jsonl— which fails if the JSONL hasn't been written yet (per the draft→check→finalize ordering). Do not includesignals_consumedin the briefing file. Runquality_check.pywithout the second argument (signals path) to skip the signals check, then append tosignals_evaluated.jsonlafter the check passes (step 4 of run completion). -
write_fileis safe for individual briefing JSON files — The "Cron mode" gotcha about using heredocs applies to JSONL files (which must be appended, not overwritten). Individual briefing files (briefings/YYYY-WXX/YYYY-MM-DD-{type}.json) are single JSON documents —write_fileorterminal+ Pythonjson.dumpboth work. Usewrite_filefor the initial write, thenterminal+ Python for any post-quality-check modifications (like fixing thedeliveredflag). -
JSONL bracket corruption in nested sections — A
briefings.jsonlentry can develop a bracket mismatch in the deeply nestedsections[].content_items[].decision_requeststructure. The correct closing sequence for a section with a decision_request is"status":"pending"}}]}](close decision_request}, close content_items item}, close content_items array], close section object}, close sections array]). A corrupted entry will have"status":"pending"}]}]— missing the}that closes the content_items item object. This produces aJSONDecodeError: Expecting ',' delimiterat the exact position of the stray]. Diagnosis: Usepython3 -c "import json; json.loads(line)"per line to find the broken one, then count{/}and[/]opens vs closes in the sections array to find the mismatch. Fix: Add the missing}— change"}]}]to"}}]}]at the decision_request boundary. Always verify the fix withjson.loads()before writing back. This corruption appears to be caused by the briefing generation code omitting one closing brace when serializing sections that contain decision_request objects. -
Custom paths: When a user requests a briefing saved to a custom directory (e.g.,
evening/ormorning/), always also write the canonical file tobriefings/YYYY-WXX/YYYY-MM-DD-{type}.jsonper the schema, and keep the two files identical. Delivery tracking applies only to the canonical file.
Recovery behavior
Recovery behavior
When Vesper encounters a partial failure, it follows the recovery protocol in spec-ocas-recovery.md:
- Partial signal loss: Logs via journal, generates briefing with available data, omits missing sections silently.
- Corrupted briefing file: Archives with
.corrupted.{timestamp}suffix and regenerates. - Interrupted run: Checks
intents.jsonlfor incomplete entries, retries once, skips persistently failed entries. - Upstream unavailability: Treated as normal empty state — section omitted.
All recovery actions logged to evidence.jsonl.
Support File Map
| File | When to read |
|---|---|
references/account-credentials.md | Before any Google OAuth operation |
references/schemas.md | Before creating briefings, sections, or decision requests; also contains storage layout and default config |
references/briefing_templates.md | Before generating briefing content |
references/signal_filtering.md | Before evaluating signals for inclusion |
references/journal.md | Before vesper.journal; at end of every run |
references/html-templates.md | Before rendering briefing email HTML |
references/weather-codes.md | Before rendering the weather line (morning briefings) |
references/weather-api.md | Before fetching weather data — working Open-Meteo curl command and parameter reference |
references/delivery-troubleshooting.md | When a briefing is generated but not delivered |
references/delivery-check-procedure.md | During delivery check cron runs — checking briefings.jsonl for undelivered entries, fixing flag desyncs |
references/mcp-server-diagnosis.md | When the Google Workspace MCP server is unresponsive or absent — binary-chain diagnosis, failure modes, and fallback handling |
references/okrs.md | Before evaluating or reporting OKR metrics |
references/update-procedure.md | During vesper.update — conflict resolution and profile sync steps |
references/cron-mode-operations.md | During cron job execution — tool constraints (execute_code denied, patch unreliable on JSONL), briefing path conventions, JSONL write ordering |
references/sparse-briefings.md | When upstream signals are unavailable — how to produce useful thin briefings without padding. Covers weather-only briefings (empty sections array), evening sparse patterns, and "tomorrow-empty, day-after-has-events" pattern. |
references/signal-gathering.md | During signal fetching — parallel fetching reliability, subagent OAuth pitfall, thin briefing examples |
references/cron-mode-briefing-generation.md | During cron job execution — complete end-to-end workflow with pitfalls and solutions |
references/jsonl-debug.md | When briefings.jsonl has corrupted entries — diagnosis and repair of bracket mismatches |
scripts/quality_check.py | After generating a briefing file — automated validation. Run with absolute path: python3 ~/.hermes/profiles/indigo/skills/ocas-vesper/scripts/quality_check.py <briefing.json>. Returns PASS or FAIL with specific terms/sctions that need fixing. |
scripts/delivery_check.py | During delivery-check cron runs — scans individual files + briefings.jsonl for undelivered briefings (applies the dual delivery-flag/desync rules), and with --deliver sends via the Telegram fallback when the email MCP is unavailable, then updates both records with a surgical line edit (preserves corrupted sibling JSONL lines byte-for-byte). Run python3 ~/.hermes/profiles/indigo/skills/ocas-vesper/scripts/delivery_check.py --type morning --deliver. |
What ships with it: 32 files
250.1 KB alongside SKILL.md, 5 of them executable
assets/
- readme/hero.jpg148.9 KB
evals/
- evals.json542 B
references/
- account-credentials.md2.6 KB
- briefing_templates.md4.3 KB
- cron-mode-briefing-generation.md6.5 KB
- cron-mode-operations.md2.4 KB
- delivery-check-procedure.md9.5 KB
- delivery-troubleshooting.md15.3 KB
- html-templates.md1.4 KB
- interactive-menu.md2.2 KB
- journal.md1.8 KB
- jsonl-debug.md2.3 KB
- mcp-server-diagnosis.md3.1 KB
- okrs.md971 B
- schemas.md2.2 KB
- signal_filtering.md1.2 KB
- signal-gathering.md1.8 KB
- sparse-briefings.md4.3 KB
- update-procedure.md1.5 KB
- weather-api.md2.2 KB
- weather-codes.md990 B
scripts/
- briefing_deliver.pyruns4.9 KB
- check_briefing.pyruns1.5 KB
- delivery_check.pyruns7.4 KB
- quality_check.pyruns7.1 KB
- update.shruns97 B
- CHANGELOG.md4.8 KB
- config.json88 B
- evals.json542 B
- .gitignore77 B
- LICENSE1.0 KB
- README.md6.5 KB