CHAT_OUTPUT_BEGIN
COMMAND_ID=CONTEXT-BOOTSTRAP-RUNNER-STORAGE-AUDIT-347
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=79e4769a869603a6546205860361eed2cce9b89a58c3b1ab3dd18994f8164068
DUPLICATE_FAILED_COMMAND_BLOCKED=false
EXECUTION_STARTED=true
CHANGES_MADE=false
SANITIZED=yes
SECRETS_INCLUDED=no
PRIVATE_ADDRESSES_INCLUDED=no
RAW_EVIDENCE_SHA256=b2e262ef2a34193b31cc6e5e71c02ac2a728ac771e3a7adf878d144b217133b3
SANITIZED_OUTPUT_SHA256=b2e262ef2a34193b31cc6e5e71c02ac2a728ac771e3a7adf878d144b217133b3
OUTPUT_BEGIN
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/test
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/find
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/grep
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/sort
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/stat
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/sha256sum
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/awk
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/sed
DETAIL=LOCAL_DEPENDENCY=PASS:/usr/bin/bash
DETAIL=RUNNER_DIRECTORY_TREE_BEGIN
/var/lib/homelab-chat-run
/var/lib/homelab-chat-run/public
/var/lib/homelab-chat-run/raw
/var/lib/homelab-chat-run/state
DETAIL=RUNNER_DIRECTORY_TREE_END
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CLUSTER-REFERENCE-AUDIT-137-20260721T200123Z.json|SIZE=306536|MODE=600|OWNER=root:root|SHA256=4cf81cc4e17dd607a41131e6c297580477409ef34f09813dd6eb46c7df993520|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CLUSTER-REFERENCE-AUDIT-137-20260721T200123Z-latest.txt|SIZE=358616|MODE=600|OWNER=root:root|SHA256=6bb899ed6232fadbec9e50d5707aba81c440d3063993ca568acc2f078dae01aa|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CLUSTER-REFERENCE-AUDIT-137-20260721T200123Z.txt|SIZE=357831|MODE=600|OWNER=root:root|SHA256=c5e585ee4b86d8d7636912105248a343f9c3e10f02e4d4d35c16617e1b01242d|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-PROVENANCE-ARTIFACT-AUDIT-346-20260723T062548Z.json|SIZE=11099|MODE=600|OWNER=root:root|SHA256=17b1ba1ec08053d9acaa1e912261a18b14fad1794412e76b03070c97de06c2a6|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-PROVENANCE-ARTIFACT-AUDIT-346-20260723T062548Z-latest.txt|SIZE=9898|MODE=600|OWNER=root:root|SHA256=865a6f673b0e89a89e2a4dfa817e578618ed40ef17dae1ba3ee61ce8c2e9d4c7|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-PROVENANCE-ARTIFACT-AUDIT-346-20260723T062548Z.txt|SIZE=9095|MODE=600|OWNER=root:root|SHA256=5be64fc9ace3cbc67e94e7264a948090450afffc7b944e0e704302f351cbcd79|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-PUBLISH-PROVENANCE-DISCOVERY-345-20260723T062206Z.json|SIZE=6997|MODE=600|OWNER=root:root|SHA256=3d02946a2fcbb5bdb544677f255d7fbdabd73e79216b4173de59d7f965c62bec|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-PUBLISH-PROVENANCE-DISCOVERY-345-20260723T062206Z-latest.txt|SIZE=6518|MODE=600|OWNER=root:root|SHA256=bfcd8cd541497c11b4e1c0cb9861745586f0624a31515c5f98daece8b4ffcc13|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-PUBLISH-PROVENANCE-DISCOVERY-345-20260723T062206Z.txt|SIZE=5712|MODE=600|OWNER=root:root|SHA256=5b18761f5d190fc35c81cabbdfb8f39f065735ee2002abe1e4fd008833a21644|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-VM170-FILE-DISCOVERY-341-20260723T060619Z.json|SIZE=1435|MODE=600|OWNER=root:root|SHA256=53f326b8d1f8421eaf9b45d6c2c8bd08a74a3e70e4fab7665db95d40a73a8d76|HIT_ID=0|HIT_COMMAND_SHA=0|HIT_TARGET=1
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-VM170-FILE-DISCOVERY-341-20260723T060619Z-latest.txt|SIZE=982|MODE=600|OWNER=root:root|SHA256=18e4cd22a902991ba9281f5a0e342b810975be3259d6763df4a9604b3805edc7|HIT_ID=0|HIT_COMMAND_SHA=0|HIT_TARGET=1
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/CONTEXT-BOOTSTRAP-VM170-FILE-DISCOVERY-341-20260723T060619Z.txt|SIZE=184|MODE=600|OWNER=root:root|SHA256=a6541defe63a11a3c11152b4c4d59a87d783cfc68161bebd9b4eba2e57b944e1|HIT_ID=0|HIT_COMMAND_SHA=0|HIT_TARGET=1
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/GITEA-RUNTIME-DIAG-006-20260721T081811Z.json|SIZE=4947|MODE=600|OWNER=root:root|SHA256=f73cbd915ae92284bf5d42c37bcc81648602e1ae94fcb5a69df77cbffbfa2aa3|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/GITEA-RUNTIME-DIAG-006-20260721T081811Z-latest.txt|SIZE=4365|MODE=600|OWNER=root:root|SHA256=1d53050f0f1db4fb5895e4f753a5a848c961f74af7a34fd67a1dd3e4fdbecb45|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/GITEA-RUNTIME-DIAG-006-20260721T081811Z.txt|SIZE=3587|MODE=600|OWNER=root:root|SHA256=e627623cfa1fcc2b911f0f2ecd5b07d92ce2bd50acd40968969cd107c26a5783|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/HOMELAB-BOOTSTRAP-001-20260721T070217Z.json|SIZE=1431|MODE=600|OWNER=root:root|SHA256=02bf64887e042b468c499790c7d9d96da336132a6fc447a34050924970a162aa|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/public/HOMELAB-BOOTSTRAP-001-20260721T070217Z-latest.txt|SIZE=977|MODE=600|OWNER=root:root|SHA256=c19709a87204d027f8c2d46bdae156e384f7b455d8ea8dfa82ef3d486397e86d|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/raw/CLUSTER-REFERENCE-AUDIT-137-20260721T200123Z.log|SIZE=357826|MODE=600|OWNER=root:root|SHA256=b5fc6b9c8e06d3e52e7999fd040b034bd6ee25e14bf801d0e33ab5422fb424a5|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/raw/CONTEXT-BOOTSTRAP-PROVENANCE-ARTIFACT-AUDIT-346-20260723T062548Z.log|SIZE=9095|MODE=600|OWNER=root:root|SHA256=5be64fc9ace3cbc67e94e7264a948090450afffc7b944e0e704302f351cbcd79|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/raw/CONTEXT-BOOTSTRAP-PUBLISH-PROVENANCE-DISCOVERY-345-20260723T062206Z.log|SIZE=5712|MODE=600|OWNER=root:root|SHA256=5b18761f5d190fc35c81cabbdfb8f39f065735ee2002abe1e4fd008833a21644|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/raw/CONTEXT-BOOTSTRAP-RUNNER-STORAGE-AUDIT-347-20260723T063051Z.log|SIZE=6054|MODE=600|OWNER=root:root|SHA256=c1447d71a1f2bcf8b06d8ffe843fca67b1cdfefa69639c70f243230be310bdca|HIT_ID=1|HIT_COMMAND_SHA=0|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/raw/CONTEXT-BOOTSTRAP-VM170-FILE-DISCOVERY-341-20260723T060619Z.log|SIZE=184|MODE=600|OWNER=root:root|SHA256=a6541defe63a11a3c11152b4c4d59a87d783cfc68161bebd9b4eba2e57b944e1|HIT_ID=0|HIT_COMMAND_SHA=0|HIT_TARGET=1
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/raw/GITEA-RUNTIME-DIAG-006-20260721T081811Z.log|SIZE=3587|MODE=600|OWNER=root:root|SHA256=e627623cfa1fcc2b911f0f2ecd5b07d92ce2bd50acd40968969cd107c26a5783|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE=/var/lib/homelab-chat-run/state/command-ledger.tsv|SIZE=44158|MODE=600|OWNER=root:root|SHA256=f6c7c5b0f06e9696d9cc5931c14de2bc8dd4dc6754c670c57297eeaedc4a43e5|HIT_ID=1|HIT_COMMAND_SHA=1|HIT_TARGET=0
DETAIL=COMMAND_STORAGE_CANDIDATE_COUNT=24
DETAIL=COMMAND_TARGET_PATH_HIT_COUNT=4
DETAIL=COMMAND_BODY_MARKER_FILE_COUNT=0
DETAIL=RUNNER_SCRIPT=/usr/local/sbin/homelab-chat-run|META=root:root|750|11864|regular file|SHA256=2a88defef9517f89bc60934dce82097f8e316b08af9417e95167ea5d759a10d9
DETAIL=RUNNER_SCRIPT_EXECUTABLE=/usr/local/sbin/homelab-chat-run|YES
DETAIL=RUNNER_SCRIPT_SYNTAX=/usr/local/sbin/homelab-chat-run|NOT_BASH
DETAIL=RUNNER_STORAGE_LOGIC_BEGIN=/usr/local/sbin/homelab-chat-run
8:  homelab-chat-run COMMAND_ID MODE COMPONENT -- command [arguments...]
25:COMMAND_ID="$1"
34:case "$COMMAND_ID" in
37:        echo 'REASON=INVALID_COMMAND_ID'
94:LEDGER="$STATE_DIR/state/command-ledger.tsv"
114:RAW_FILE="$RAW_DIR/${COMMAND_ID}-${STAMP}.log"
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"
122:COMMAND_SHA256="$(
133:    awk -F '\t' -v hash="$COMMAND_SHA256" '
168:        echo "COMMAND_SHA256=$COMMAND_SHA256"
212:source = Path(sys.argv[1])
213:target = Path(sys.argv[2])
317:    "$COMMAND_ID" \
327:    "$COMMAND_SHA256" \
351:    command_sha,
358:) = sys.argv[1:]
392:    "command_sha256": command_sha,
400:    "raw_evidence_retained_locally": True,
401:    "raw_evidence_sha256": raw_sha,
402:    "sanitized_output_sha256": sanitized_sha,
404:    "full_sanitized_output_url": (
424:    echo "COMMAND_ID=$COMMAND_ID"
434:    echo "COMMAND_SHA256=$COMMAND_SHA256"
457:REMOTE_PREFIX="/tmp/homelab-runtime-${COMMAND_ID}-$$"
483:        '$COMMAND_ID' \
508:       grep -Fq "\"command_id\": \"$COMMAND_ID\""; then
519:    echo "COMMAND_ID=$COMMAND_ID"
526:    "$COMMAND_ID" \
527:    "$COMMAND_SHA256" \
534:echo "COMMAND_ID=$COMMAND_ID"
DETAIL=RUNNER_STORAGE_LOGIC_END=/usr/local/sbin/homelab-chat-run
DETAIL=RUNNER_SCRIPT=/usr/local/sbin/homelab-chat-run-linked|META=root:root|755|1289|regular file|SHA256=efa9fce3c768e6e0650903ca14fe4b6d5319d57f20ec87c465a4a00cb300d4e0
DETAIL=RUNNER_SCRIPT_EXECUTABLE=/usr/local/sbin/homelab-chat-run-linked|YES
DETAIL=RUNNER_SCRIPT_SYNTAX=/usr/local/sbin/homelab-chat-run-linked|NOT_BASH
DETAIL=RUNNER_STORAGE_LOGIC_BEGIN=/usr/local/sbin/homelab-chat-run-linked
9:cid=$(/usr/bin/sed -n "s/^COMMAND_ID=//p" "$tmp" | /usr/bin/tail -n 1)
15:    /usr/bin/printf "IMMUTABLE_RESULT_URL=https://git.gram1.ru/homelab-admin/homelab-public-context/raw/commit/%s/runtime/history/%s.txt\n" "$sha" "$cid"
DETAIL=RUNNER_STORAGE_LOGIC_END=/usr/local/sbin/homelab-chat-run-linked
DETAIL=ORIGINAL_COMMAND_RECOVERY_PATH=POSSIBLE_CANDIDATES_FOUND
CHANGES_MADE=NO

OUTPUT_END
CHAT_OUTPUT_END
