CHAT_OUTPUT_BEGIN
COMMAND_ID=HOMELAB-CURRENT-REGISTER-PATH-AUDIT-355
STATUS=OK
RC=0
HOST=pve01
MODE=read-only
COMPONENT=cluster-audit
REFERENCE_REGISTER_CHECK=OK
REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e
ERROR_REGISTER_CHECK=OK
ERROR_REGISTER_SHA256=08b3a769b8e38eaa1acec915352fb328180d70caa7ff6cd9d1ec0da426262752
COMMAND_SHA256=5c37a752a3ead31b22baf570f4bca75aa72232bc61b23cca0f56352f0ff565eb
DUPLICATE_FAILED_COMMAND_BLOCKED=false
EXECUTION_STARTED=true
CHANGES_MADE=false
SANITIZED=yes
SECRETS_INCLUDED=no
PRIVATE_ADDRESSES_INCLUDED=no
RAW_EVIDENCE_SHA256=c8d203278ab4a99a28e52bca3f79c8b7507deb90014a87366ba7943290ea8057
SANITIZED_OUTPUT_SHA256=c8d203278ab4a99a28e52bca3f79c8b7507deb90014a87366ba7943290ea8057
OUTPUT_BEGIN
DETAIL=RUNNER_SHA256=2a88defef9517f89bc60934dce82097f8e316b08af9417e95167ea5d759a10d9
DETAIL=RUNNER_BASH_SYNTAX=PASS
DETAIL=REGISTER_LOGIC_MATCH_COUNT=21
DETAIL=REGISTER_LOGIC_BEGIN
72-        exit 68
73-    }
74-done
75-
76:REFERENCE=/etc/pve/31_HOMELAB_REFERENCE.md
77:ERROR_REGISTER=/etc/pve/HOMELAB_ASSISTANT_ERROR_REGISTER.md
78-
79:[ -r "$REFERENCE" ] || {
80-    echo 'RESULT=FAIL'
81:    echo 'REASON=REFERENCE_NOT_READABLE'
82-    exit 69
83-}
84-
85:[ -r "$ERROR_REGISTER" ] || {
86-    echo 'RESULT=FAIL'
87:    echo 'REASON=ERROR_REGISTER_NOT_READABLE'
88-    exit 70
89-}
90-
91-STATE_DIR=/var/lib/homelab-chat-run
--
115-SANITIZED_FILE="$PUBLIC_DIR/${COMMAND_ID}-${STAMP}.txt"
116-JSON_FILE="$PUBLIC_DIR/${COMMAND_ID}-${STAMP}.json"
117-TXT_FILE="$PUBLIC_DIR/${COMMAND_ID}-${STAMP}-latest.txt"
118-
119:REFERENCE_SHA256="$(sha256sum "$REFERENCE" | awk '{print $1}')"
120:ERROR_REGISTER_SHA256="$(sha256sum "$ERROR_REGISTER" | awk '{print $1}')"
121-
122-COMMAND_SHA256="$(
123-    {
124-        printf '%s\0' "$MODE"
--
321-    "$MODE" \
322-    "$COMPONENT" \
323-    "$STARTED_AT" \
324-    "$FINISHED_AT" \
325:    "$REFERENCE_SHA256" \
326:    "$ERROR_REGISTER_SHA256" \
327-    "$COMMAND_SHA256" \
328-    "$RAW_SHA256" \
329-    "$SANITIZED_SHA256" \
330-    "$RUN_STARTED" \
--
345-    mode,
346-    component,
347-    started,
348-    finished,
349:    reference_sha,
350-    error_sha,
351-    command_sha,
352-    raw_sha,
353-    sanitized_sha,
--
384-    "mode": mode,
385-    "component": component,
386-    "started_at_utc": started,
387-    "finished_at_utc": finished,
388:    "reference_register_checked": True,
389:    "reference_sha256": reference_sha,
390:    "error_register_checked": True,
391:    "error_register_sha256": error_sha,
392-    "command_sha256": command_sha,
393-    "duplicate_failed_command_blocked": repeat_blocked == "true",
394-    "block_reason": block_reason or None,
395-    "execution_started": run_started == "true",
--
426-    echo "RC=$RC"
427-    echo "HOST=$HOST_SHORT"
428-    echo "MODE=$MODE"
429-    echo "COMPONENT=$COMPONENT"
430:    echo 'REFERENCE_REGISTER_CHECK=OK'
431:    echo "REFERENCE_SHA256=$REFERENCE_SHA256"
432:    echo 'ERROR_REGISTER_CHECK=OK'
433:    echo "ERROR_REGISTER_SHA256=$ERROR_REGISTER_SHA256"
434-    echo "COMMAND_SHA256=$COMMAND_SHA256"
435-    echo "DUPLICATE_FAILED_COMMAND_BLOCKED=$REPEAT_BLOCKED"
436-    echo "EXECUTION_STARTED=$RUN_STARTED"
437-    echo "CHANGES_MADE=$CHANGES_MADE"
--
533-echo '===== HOMELAB CHAT RUN COMPLETE ====='
534-echo "COMMAND_ID=$COMMAND_ID"
535-echo "STATUS=$STATUS"
536-echo "RC=$RC"
537:echo 'REFERENCE_REGISTER_CHECK=OK'
538:echo 'ERROR_REGISTER_CHECK=OK'
539-echo "DUPLICATE_FAILED_COMMAND_BLOCKED=$REPEAT_BLOCKED"
540-echo 'GITEA_PUBLICATION=OK'
541-echo "PUBLIC_URL=$PUBLIC_URL"
542-echo "LOCAL_RAW_FILE=$RAW_FILE"
DETAIL=REGISTER_LOGIC_END
CHANGES_MADE=NO

OUTPUT_END
CHAT_OUTPUT_END
