mica.wtf restore runbook
mica.wtf restore runbook
Section titled “mica.wtf restore runbook”This runbook restores mica.wtf automation on a clean box without depending on the personal vault.
Ownership model
Section titled “Ownership model”micawtfrepo: source of truth for site content, freshness checkers, editorial automation, prompts, Hermes launcher templates, cron manifest, and operating docs.- Hermes: runtime scheduler and Telegram delivery only.
- Personal vault / Brain: historical notes and private thinking. It must not be required to run mica.wtf.
- Secrets and runtime state: local only, never committed.
Required local dependencies
Section titled “Required local dependencies”gitnodematching the runtime used by existing jobs, currently available at/home/hermes/.nvm/versions/node/v23.11.1/bin/nodebash,awk,sed,findhermesCLI with Telegram delivery configuredgrokCLI if Grok-backed triage jobs are enabled- GitHub SSH key or token with push access to
jakesenfti/micawtf
Secrets and state that must be supplied locally
Section titled “Secrets and state that must be supplied locally”Do not commit these:
- GitHub credentials, such as
~/.hermes/gh-tokenor SSH keys - Hermes Telegram credentials/config
- Grok/X credentials or session state, if required by the local Grok setup
.freshness/manifests, logs, diffs, dead letters, and generated output~/.hermes/cache/micawtf-content/review.state/tmp/micawtf-*logs
A clean restore may start with empty .freshness/ state. Expect first runs to baseline sources according to checker first-run rules.
Restore steps
Section titled “Restore steps”-
Clone the repo:
Terminal window git clone git@github.com:jakesenfti/micawtf.git /home/hermes/micawtfcd /home/hermes/micawtf -
Verify the repo scripts parse and the prompt/cron manifest is sane:
Terminal window scripts/verify-ops-runtime.shOn a brand-new box this may report missing Hermes scripts or cron jobs before step 3. That is expected. Re-run it after install.
-
Install Hermes launchers and create missing active cron jobs:
Terminal window ops/hermes/install.sh -
Verify runtime install:
Terminal window scripts/verify-ops-runtime.shhermes cron list -
Smoke-test read-only/status commands and generated-reference rebuilds:
Terminal window node scripts/update-checkers/run-all.js --listnode scripts/editorial-status.jsnode scripts/build-definitions.jsStructured ESMA/EBA freshness, including guideline and technical-standard detection, is restored through the active
micawtf-esmaandmicawtf-ebacron jobs. Those launchers runscripts/update-checkers/run-group.sh esmaandscripts/update-checkers/run-group.sh eba; manual smoke tests may create.freshness/review artifacts on first run. EUR-Lex/OJ legal-text freshness is restored throughmicawtf-cellar-legislation. Definitions are derived content:scripts/build-definitions.jsrebuildsspaces/definitions/and syncs generated source families into livedefinitions/without owning DORA definitions. -
Smoke-test reminder logic without touching production state:
Terminal window MICAWTF_NUDGE_STATE=/tmp/micawtf-review-nudge-test.state \MICAWTF_NUDGE_SKIP_GIT=1 \MICAWTF_NUDGE_NOW=2026-06-15T09:10:00Z \bash scripts/editorial-review-nudge.sh -
Run one low-risk cron launcher manually only after credentials are ready:
Terminal window bash ~/.hermes/scripts/micawtf-docling-sweeper.sh
Prompt and instruction infrastructure
Section titled “Prompt and instruction infrastructure”Canonical mica.wtf prompts now live in prompts/ and repo conventions live in _conventions/.
Current required prompt files:
prompts/freshness-triage.mdprompts/x-signals-run.mdprompts/article-writer.md
Agent dispatch/failover instructions live in docs/operations/cross-agent-failover.md. The installed dispatcher is ~/.hermes/scripts/micawtf-agent-dispatch.sh, sourced from ops/hermes/scripts/micawtf-agent-dispatch.sh.
The vault copies under ~/.hermes/vault/Brain/mica-wtf/ and ~/.hermes/vault/_system/dispatch-prompts/ are historical context unless explicitly copied into this repo. When a prompt or instruction affects mica.wtf runtime, restore, publishing, or agent work, move it into prompts/, _conventions/, or docs/ first, then deploy with ops/hermes/install.sh.
What not to restore from the vault
Section titled “What not to restore from the vault”Do not make the following required for mica.wtf operation:
- personal Brain notes
- old dispatch prompts that describe one-off backfills
- private project notes
- raw output archives
If one of those files contains still-valid operating knowledge, extract the rule into this repo and leave the vault file as archive.
Verification checklist
Section titled “Verification checklist”git status --shortis clean after install.scripts/verify-ops-runtime.shpasses.ops/hermes/install.sh --checkreports all active scripts and cron jobs OK.hermes cron listshows the active jobs inops/hermes/cron-jobs.json.node scripts/editorial-status.jsprints the current editorial lane.- Telegram receives cron stdout for no-agent jobs, or Grok sends its own Telegram message for triaged jobs.
- No secrets or
.freshness/artifacts are staged in Git.