From facbf9629f45b95d34a4d0844e617f87a35be5ff Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Wed, 12 Aug 2026 00:57:51 +0000 Subject: Add autonomous build progress heartbeat --- scripts/progress-heartbeat.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/progress-heartbeat.sh diff --git a/scripts/progress-heartbeat.sh b/scripts/progress-heartbeat.sh new file mode 100755 index 0000000..ed4a7fa --- /dev/null +++ b/scripts/progress-heartbeat.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +set -euo pipefail +repo=/mnt/hermes-workspace/alt-controller-image-rs +printf 'Native image-builder heartbeat\n' +printf 'UTC: '; date -u '+%Y-%m-%dT%H:%M:%SZ' +printf 'HEAD: '; git -C "$repo" log -1 --format='%h %ad %s' --date=iso-strict +printf 'Worker: ' +if pgrep -af 'hermes verify --json|alt-controller-image|hsh-install|hsh --initroot' >/dev/null; then + printf 'active\n' +else + printf 'idle between scheduled runs\n' +fi +printf 'Working tree: ' +if test -n "$(git -C "$repo" status --porcelain)"; then + printf 'uncommitted changes present\n' +else + printf 'clean\n' +fi -- cgit v1.2.3