{
  "schema_version": 1,
  "channel": "homelab-runtime",
  "command_id": "RESULT-INTEGRATION-DESIGN-PREFLIGHT-FIX1-20260727T072818Z",
  "status": "FAIL",
  "rc": 1,
  "host": "pve01",
  "mode": "verify",
  "component": "result-integration",
  "started_at_utc": "2026-07-27T07:30:19Z",
  "finished_at_utc": "2026-07-27T07:30:20Z",
  "reference_register_checked": true,
  "reference_sha256": "5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e",
  "error_register_checked": true,
  "error_register_sha256": "24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83",
  "command_sha256": "95d63008f9bbae77085ccba3013e9ee8e689ecb42e15af5ef5860959769bd29c",
  "duplicate_failed_command_blocked": false,
  "block_reason": null,
  "execution_started": true,
  "change_declared": false,
  "result_contract_valid": true,
  "result_contract_status": null,
  "result_contract_error": null,
  "command_rc": 1,
  "changes_made": false,
  "rollback_started": false,
  "rollback_restored": null,
  "mutation_outcome": "NO_MUTATION",
  "sanitized": true,
  "secrets_included": false,
  "private_addresses_included": false,
  "raw_evidence_retained_locally": true,
  "raw_evidence_sha256": "8a43a2bb144f4009195144b4c75298288ec4242a1cf05f73d7ffa82b43a76695",
  "sanitized_output_sha256": "316d6cecaae67f89824fa2985b902522d7ca3f252a7029bc1a740bcfc41c806a",
  "output_truncated_in_json": false,
  "full_sanitized_output_url": "https://git.gram1.ru/.well-known/homelab-runtime/latest.txt",
  "output": "{\"backup_changed\":false,\"changes_made\":false,\"checks\":{\"adapter_expected_sha\":true,\"known_history_public\":true,\"portal_expected_sha\":true,\"publication_repo_found\":false,\"runner_expected_sha\":true,\"runner_language_detected\":true,\"runner_shell_syntax_valid\":true,\"source_has_git_invocation\":false,\"source_has_history_path\":false},\"cluster_changed\":false,\"command_id\":\"RESULT-INTEGRATION-DESIGN-PREFLIGHT-FIX1-20260727T072818Z\",\"design\":{\"authoritative_lookup\":\"immutable command_id/capsule_sha256 document; never latest.json or latest.txt\",\"publisher_reuse\":\"reuse existing Runner Gitea worktree and assistant-runtime branch publication mechanics\",\"result_fields\":[\"schema_version\",\"command_id\",\"capsule_sha256\",\"status\",\"started_at_utc\",\"finished_at_utc\",\"runner_rc\",\"runner_document_rc\",\"runner_wrapper_matches_document\",\"evidence_sha256\",\"gateway_verified\",\"summary\",\"document_sha256\",\"signature\",\"key_id\"],\"secret_exclusions\":[\"tokens\",\"presigned URLs\",\"credentials\",\"cookies\",\"private keys\",\"raw logs\",\"private addresses\"],\"signature\":\"dedicated Ed25519 key; publish public key in same public repository\",\"writer\":\"new root-owned helper called by Adapter only after evidence upload and final state commit\"},\"gitea_changed\":false,\"inventory\":{\"adapter\":{\"exists\":true,\"gid\":0,\"is_dir\":false,\"is_file\":true,\"is_symlink\":false,\"mode\":\"0o750\",\"path\":\"/usr/local/sbin/homelab-command-adapter\",\"sha256\":\"8d0af84dcfcf6ddbfd1c4e6cbb059cef66b4cfc6c75bfd66da649acc229c7f5e\",\"uid\":0},\"portal\":{\"exists\":true,\"gid\":990,\"is_dir\":false,\"is_file\":true,\"is_symlink\":false,\"mode\":\"0o750\",\"path\":\"/usr/local/sbin/homelab-command-portal\",\"sha256\":\"8056faf4ef6348f0b06319ad3c49fbfeeadf25b6370f857ea19569bd27652ee2\",\"uid\":0},\"runner\":{\"exists\":true,\"gid\":0,\"is_dir\":false,\"is_file\":true,\"is_symlink\":false,\"mode\":\"0o750\",\"path\":\"/usr/local/sbin/homelab-chat-run\",\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"uid\":0}},\"known_history_fields\":[\"block_reason\",\"change_declared\",\"changes_made\",\"channel\",\"command_id\",\"command_rc\",\"command_sha256\",\"component\",\"duplicate_failed_command_blocked\",\"error_register_checked\",\"error_register_sha256\",\"execution_started\",\"finished_at_utc\",\"full_sanitized_output_url\",\"host\",\"mode\",\"mutation_outcome\",\"output\",\"output_truncated_in_json\",\"private_addresses_included\",\"raw_evidence_retained_locally\",\"raw_evidence_sha256\",\"rc\",\"reference_register_checked\",\"reference_sha256\",\"result_contract_error\",\"result_contract_status\",\"result_contract_valid\",\"rollback_restored\",\"rollback_started\",\"sanitized\",\"sanitized_output_sha256\",\"schema_version\",\"secrets_included\",\"started_at_utc\",\"status\"],\"matching_repositories\":[],\"next_plan_scope\":{\"create\":[\"/usr/local/sbin/homelab-result-publish\",\"/var/lib/homelab-command-adapter/result-signing/\"],\"modify\":[\"/usr/local/sbin/homelab-command-adapter\"],\"preserve\":[\"/usr/local/sbin/homelab-chat-run\",\"/usr/local/sbin/homelab-command-portal\",\"existing runtime/history files\",\"existing evidence publication\",\"backup\",\"cluster\"]},\"private_addresses_included\":false,\"publication_evidence\":{\"known_history_public\":true,\"matching_publication_repo_found\":false,\"repository_found\":true,\"source_has_git_invocation\":false,\"source_has_history_path\":false},\"repositories\":[{\"branch\":\"main\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/_1/execution-boundary-stage2-preflight\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/_1/execution-boundary-stage2-preflight\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"main\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-configs-worktree\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-configs.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-configs-worktree\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0001-handoff-recovery\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0001\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0001\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0002-offhost-retention-remediation\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0002\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0002\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0003-cluster-storage-retention-remediation\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0003\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0003\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0004-backup-tail-closure\",\"branch_rc\":0,\"dirty_count\":3,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0004\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0004\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0005-codex-bootstrap-activation\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0005\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0005\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0006-cluster-cloud-quorum\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0006\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0006\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0007-skladchik-controlled-reauth\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0007\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0007\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0008-skladchik-snapshot-integrity\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0008\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0008\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0009-skladchik-concurrency-guard\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0009\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0009\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0011-skladchik-cookie-jar-reset\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0011\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0011\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0012-skladchik-cookie-refresh-runbook\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0012\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0012\",\"top_rc\":0,\"tree_rc\":0},{\"branch\":\"cr-2026-0013-vm160-worker-bootstrap-transition\",\"branch_rc\":0,\"dirty_count\":0,\"has_runtime_history\":false,\"path\":\"/root/homelab-ops-cr-2026-0013\",\"remote\":\"https://git.gram1.ru/homelab-admin/homelab-ops.git\",\"remote_rc\":0,\"runtime_paths\":[],\"status_rc\":0,\"top\":\"/root/homelab-ops-cr-2026-0013\",\"top_rc\":0,\"tree_rc\":0}],\"rollback_started\":false,\"runner_analysis\":{\"absolute_paths\":[\"//git.gram1.ru/.well-known/\",\"//git.gram1.ru/.well-known/homelab-runtime/latest.json\",\"/etc/pve/31_HOMELAB_REFERENCE.md\",\"/etc/pve/HOMELAB_ASSISTANT_ERROR_REGISTER.md\",\"[SENSITIVE_PATH] $RAW_FILE | awk '{print $1}')\",\"REMOTE_PREFIX\":\"/tmp/homelab-runtime-${COMMAND_ID}-$$\"},\"language\":\"shell\",\"relevant_lines\":[{\"line\":300,\"safe_text\":\"TXT_FILE=\\\"$PUBLIC_DIR/${COMMAND_ID}-${STAMP}-latest.txt\\\"\",\"sha256\":\"aa355931861196de0f619988956d38d8a5a5b406275620f61a83316869c74e81\"},{\"line\":675,\"safe_text\":\"\\\"homelab-runtime/latest.txt\\\"\",\"sha256\":\"2cfe08f0b09a4303413e2c5f549e226270d7d1596c6912410614c734efc0642d\"},{\"line\":773,\"safe_text\":\"PUBLIC_URL='https://git.gram1.ru/.well-known/homelab-runtime/latest.json'\",\"sha256\":\"323baac37439052ee6520c39731ef8b4a683601c3bd3858d66bc0d37309b7cbc\"}],\"shebang\":\"#!/usr/bin/env bash\",\"syntax\":{\"bash_rc\":0,\"bash_stderr\":\"\",\"sh_rc\":2,\"sh_stderr\":\"/usr/local/sbin/homelab-chat-run: 415: Syntax error: redirection unexpected\\n\",\"valid_for_at_least_one\":true}},\"sanitized\":true,\"schema\":1,\"secrets_included\":false,\"status\":\"FAIL\"}\n"
}
