Knowledge vault (Orion/PARA) migrated from the pre-Orion 484vault on 2026-10-01. Deliberately orphaned: prior history contained a plaintext password and stays local-only on branch archive/pre-boilerplate-history. Secrets and live Hermes state are gitignored.
17 lines
1.2 KiB
Markdown
17 lines
1.2 KiB
Markdown
---
|
|
last-updated: 2026-09-18T03:35:00-05:00
|
|
hermes-owned: true
|
|
tags: [shonar, power-loss, checkpoint, workflow]
|
|
---
|
|
|
|
# Power-Loss Safety Snapshot (Shonar engine + repo)
|
|
|
|
Standing checklist before a predicted power cut (added 2026-09-18, `shonar-desktop-dev` skill):
|
|
|
|
1. `git add -A && git commit` — commit even a WIP that may not compile (label it "WIP snapshot"). An uncommitted mid-edit is the only thing a hard cut truly loses.
|
|
2. `PRAGMA wal_checkpoint(TRUNCATE)` + `PRAGMA integrity_check` on `engine.db` so nothing survives only in the WAL.
|
|
3. Sweep stuck recordings: rows with `processing_status` not in (completed, failed, none) AND no queued/running job rows, whose transcribe+summarize jobs all succeeded, need `UPDATE recordings SET processing_status='completed', processing_error=NULL WHERE id=?` — `sweep_stale` requeues orphaned jobs at startup but never repairs the recording row, so the UI shows "processing" forever otherwise.
|
|
|
|
**Concurrent-session note:** another Hermes session may be editing the same working tree live. Recompile before "fixing" a break you saw minutes ago — the sibling may have fixed it; snapshot-commit whatever compiles and tests green.
|
|
|
|
Related: [[Shonar]] · [[Keynctr Dev Loop]]
|