Commit Graph

2 Commits

Author SHA1 Message Date
Timmy Agent
d6eda14bb3 test: fix dead man switch config tests and file structure
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 17s
Smoke Test / smoke (pull_request) Failing after 17s
Validate Matrix Scaffold / validate-scaffold (pull_request) Failing after 26s
Validate Training Data / validate (pull_request) Successful in 27s
PR Checklist / pr-checklist (pull_request) Failing after 8m32s
Architecture Lint / Lint Repository (pull_request) Failing after 14s
- Rewrite test_config_fallbacks.py: simplified, fixed closed-file bug
- Fix health_status.json: pure JSON without trailing comments
- Fix deadman_switch.json: valid JSON with sync to emergency config
- Add Escalation section to DEADMAN_SWITCH_README.md
2026-04-26 14:25:14 -04:00
Timmy Agent
69a8bf87d6 feat: Add dead man switch emergency config fallbacks for Bezalel agent
Some checks failed
Architecture Lint / Linter Tests (pull_request) Successful in 27s
Smoke Test / smoke (pull_request) Failing after 25s
Validate Matrix Scaffold / validate-scaffold (pull_request) Failing after 22s
Validate Training Data / validate (pull_request) Successful in 21s
PR Checklist / pr-checklist (pull_request) Failing after 4m25s
Architecture Lint / Lint Repository (pull_request) Failing after 23s
Issue #423 — Dead Man Switch Config Fallbacks - Bezalel Agent
Autonomous Recovery System

Add complete emergency configuration template set for the dead man
switch fallback system. These files are deployed to
/root/wizards/bezalel/home/.hermes/ and enable autonomous recovery
when the primary inference provider (Kimi Coding) fails.

New files:
- wizards/bezalel/home/.hermes/config.emergency.yaml — Full minimal
  local-only configuration using Ollama models (gemma3:4b/12b/27b)
- wizards/bezalel/home/.hermes/.env.emergency — Emergency env var
  template (Telegram alerts, local service endpoints)
- wizards/bezalel/home/.hermes/health_status.json — Health status
  schema/example used by deadman-fallback.py
- wizards/bezalel/home/.hermes/deadman_switch.json — Dead man switch
  configuration (thresholds, fallback chain, recovery policy)
- wizards/bezalel/home/.hermes/DEADMAN_SWITCH_README.md — Complete
  documentation for operators (13 sections)

Tests:
- tests/deadman_switch/test_config_fallbacks.py — Validates presence,
  structure, required fields, consistency across files, and that
  emergency config uses local-only providers

Config:
- .gitignore: Allow .env.emergency template to be tracked (exception
  added for this specific file)

Smallest concrete fix: Add the actual config templates so the dead man
switch system can perform autonomous recovery. Infrastructure exists
(bin/deadman-fallback.py, ansible roles); these are the missing
deployable config files.

Closes #423
2026-04-26 14:08:55 -04:00