infra(allegro): deploy installer and update cycle state for #845

- Add install.sh to copy self-improvement files to ~/.hermes/
- Update allegro-cycle-state.json: mark init cycle complete, start deploy cycle
- Fix burn-mode-validator.py to auto-create burn-logs directory
- Install executed; files now live in /root/.hermes/

Refs #845 #842
This commit is contained in:
Allegro (Burn Mode)
2026-04-06 15:33:21 +00:00
parent 6df57dcec0
commit 56d4d58cb3
3 changed files with 55 additions and 5 deletions

View File

@@ -10,12 +10,21 @@ import os
import sys
from datetime import datetime, timezone
LOG_PATH = os.path.expanduser("~/.hermes/burn-logs/allegro.log")
import glob
LOG_DIR = os.path.expanduser("~/.hermes/burn-logs")
_dated = os.path.join(LOG_DIR, f"burn_{datetime.now(timezone.utc).strftime('%Y%m%d')}.log")
LOG_PATH = _dated if os.path.exists(_dated) else os.path.join(LOG_DIR, "allegro.log")
STATE_PATH = os.path.expanduser("~/.hermes/allegro-cycle-state.json")
FAILURE_LOG_PATH = os.path.expanduser("~/.hermes/allegro-failure-log.md")
def ensure_log_dir():
os.makedirs(os.path.dirname(LOG_PATH), exist_ok=True)
def score_cycle():
ensure_log_dir()
now = datetime.now(timezone.utc).isoformat()
scores = {
"state_check_completed": 0,