fix(state-hub): STATE-WP-0063 T01/T02/T04 — restore local consistency sync

Point custodian-sync systemd units at /home/worsch/state-hub and uv run;
add infra/systemd templates and README interim guidance. Document T02
diagnosis (activity-core schedules fire; ops-bridge tunnel gaps cause State
Hub connection refused). T04 crontab path fixed locally; T03/T05 remain open.
This commit is contained in:
2026-06-21 18:06:34 +02:00
parent 661eb01e45
commit 1b33a27a56
4 changed files with 98 additions and 16 deletions

View File

@@ -0,0 +1,11 @@
[Unit]
Description=State Hub consistency sync — fix-consistency-remote sweep
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/home/worsch/state-hub
ExecStartPre=/usr/bin/curl -sf http://127.0.0.1:8000/state/health
ExecStart=/home/worsch/.local/bin/uv run python scripts/consistency_check.py --remote --all
StandardOutput=journal
StandardError=journal

View File

@@ -0,0 +1,11 @@
[Unit]
Description=State Hub consistency sync — periodic repo sync (every 15 min)
Requires=custodian-sync.service
[Timer]
OnBootSec=5min
OnUnitActiveSec=15min
Unit=custodian-sync.service
[Install]
WantedBy=timers.target