From e8a33b5bfa71dd0c864883593c417a6c83e5bf0d Mon Sep 17 00:00:00 2001 From: homelab-runtime-publisher Date: Mon, 27 Jul 2026 17:08:37 +0000 Subject: [PATCH] runtime: publish RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z --- ...EMOVAL-CLOSURE-APPLY-20260727T170405Z.json | 38 +++++++++++++++++++ ...REMOVAL-CLOSURE-APPLY-20260727T170405Z.txt | 33 ++++++++++++++++ runtime/latest.json | 34 ++++++++--------- runtime/latest.txt | 32 ++++++++-------- 4 files changed, 104 insertions(+), 33 deletions(-) create mode 100644 runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.json create mode 100644 runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.txt diff --git a/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.json b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.json new file mode 100644 index 0000000..d9db41b --- /dev/null +++ b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.json @@ -0,0 +1,38 @@ +{ + "schema_version": 1, + "channel": "homelab-runtime", + "command_id": "RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z", + "status": "FAIL", + "rc": 76, + "host": "pve01", + "mode": "change", + "component": "runner", + "started_at_utc": "2026-07-27T17:08:36Z", + "finished_at_utc": "2026-07-27T17:08:37Z", + "reference_register_checked": true, + "reference_sha256": "5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e", + "error_register_checked": true, + "error_register_sha256": "24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83", + "command_sha256": "72b7216ace82b08b3c98fb053d4d5b643e9c59a113cea88d343fbe1c3bc2b812", + "duplicate_failed_command_blocked": false, + "block_reason": null, + "execution_started": true, + "change_declared": true, + "result_contract_valid": false, + "result_contract_status": null, + "result_contract_error": "MISSING_CONTRACT", + "command_rc": 0, + "changes_made": null, + "rollback_started": null, + "rollback_restored": null, + "mutation_outcome": "UNKNOWN", + "sanitized": true, + "secrets_included": false, + "private_addresses_included": false, + "raw_evidence_retained_locally": true, + "raw_evidence_sha256": "8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c", + "sanitized_output_sha256": "8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c", + "output_truncated_in_json": false, + "full_sanitized_output_url": "https://git.gram1.ru/.well-known/homelab-runtime/latest.txt", + "output": "{\"PLAN_ID\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"PLAN_SHA256\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"anti_regression\":{\"AR-001-EXACT-PLAN-SHA256-BOUND\":true,\"AR-002-SOURCE-LOCKS-REPEATED-BEFORE-MUTATION\":true,\"AR-003-ZERO-CONFIG-PROCESS-FD-REFERENCES\":true,\"AR-004-ROLLBACK-COPY-SHA-MODE-OWNER-VERIFIED\":true,\"AR-005-HISTORICAL-STATES-UNMODIFIED\":true,\"AR-006-EXACTLY-ONE-DISTINCT-RUNNER-AFTER-APPLY\":true,\"AR-007-DIAGNOSTICS-BEFORE-ROLLBACK-CONTRACT\":true,\"AR-008-CANONICAL-RUNNER-BYTE-IDENTICAL\":true,\"AR-009-NO-SERVICE-RESTART-OR-RELOAD\":true,\"AR-010-BACKUP-NOT-TOUCHED\":true},\"backup_changed\":false,\"canonical_runner_changed\":false,\"changes_made\":true,\"checks_after\":{\"adapter_self_test\":true,\"adapter_service_healthy\":true,\"canonical_exact_metadata\":true,\"exact_plan_still_bound\":true,\"historical_closure_still_exact\":true,\"linked_path_absent\":true,\"linked_zero_active_config_references\":true,\"linked_zero_live_process_references\":true,\"linked_zero_open_fd_references\":true,\"lookup_local_health\":true,\"lookup_service_healthy\":true,\"portal_local_health\":true,\"portal_self_test_real_identity\":true,\"portal_service_healthy\":true,\"postapply_exactly_one_distinct_runner\":true,\"pre_mutation_diagnostics_exists\":true,\"rollback_copy_exact\":true,\"rollback_metadata_exists\":true,\"source_lock:/etc/systemd/system/homelab-command-adapter.service\":true,\"source_lock:/etc/systemd/system/homelab-command-portal.service\":true,\"source_lock:/etc/systemd/system/homelab-result-lookup.service\":true,\"source_lock:/usr/local/sbin/homelab-chat-run\":true,\"source_lock:/usr/local/sbin/homelab-command-adapter\":true,\"source_lock:/usr/local/sbin/homelab-command-portal\":true,\"source_lock:/usr/local/sbin/homelab-result-lookup\":true},\"checks_before\":{\"adapter_self_test\":true,\"adapter_service_healthy\":true,\"all_four_historical_mutations_closed_by_exact_evidence\":true,\"canonical_exact_metadata\":true,\"exact_plan_bound\":true,\"linked_exact_metadata\":true,\"linked_zero_active_config_references\":true,\"linked_zero_live_process_references\":true,\"linked_zero_open_fd_references\":true,\"lookup_local_health\":true,\"lookup_service_healthy\":true,\"portal_local_health\":true,\"portal_self_test_real_identity\":true,\"portal_service_healthy\":true,\"preapply_exactly_two_distinct_runner_files\":true,\"rollback_directory_does_not_exist\":true,\"source_lock:/etc/systemd/system/homelab-command-adapter.service\":true,\"source_lock:/etc/systemd/system/homelab-command-portal.service\":true,\"source_lock:/etc/systemd/system/homelab-result-lookup.service\":true,\"source_lock:/usr/local/sbin/homelab-chat-run\":true,\"source_lock:/usr/local/sbin/homelab-chat-run-linked\":true,\"source_lock:/usr/local/sbin/homelab-command-adapter\":true,\"source_lock:/usr/local/sbin/homelab-command-portal\":true,\"source_lock:/usr/local/sbin/homelab-result-lookup\":true,\"target_is_pve01\":true,\"uid_is_root\":true},\"cluster_changed\":false,\"command_id\":\"RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z\",\"gitea_changed\":false,\"historical_state_files_changed\":false,\"mutation_outcome\":\"APPLIED\",\"observations_after\":{\"active_config_references\":[],\"active_process_references\":[],\"canonical\":{\"atime_ns\":1785130359620160117,\"device\":64513,\"gid\":0,\"inode\":5148538,\"lexists\":true,\"mode\":\"0750\",\"mtime_ns\":1785130359609255313,\"path\":\"/usr/local/sbin/homelab-chat-run\",\"regular\":true,\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"size\":21321,\"symlink\":false,\"uid\":0},\"health\":{\"lookup_http_status\":200,\"portal_http_status\":200},\"historical_classifications\":{\"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z\":\"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS\",\"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z\":\"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS\"},\"historical_closure_facts\":{\"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z\":{\"payload_exact\":true,\"public_results\":0,\"raw_results\":0,\"state_exact\":true,\"successor\":{\"plan_file_sha256\":\"13b1bd4f98939b222e09e3d3d780e000c1f06d22cd2e41d17e12e62a89e44db6\",\"plan_sha256\":\"ce45802551553ab4f5f0cef37d29efcdcb1aae0f19d81ab3ab9430fa5ea9704c\",\"report_changes_made\":true,\"report_file_sha256\":\"297b1771bd231defa9d1fa4360c5f563f26cd2bcb84ddd55c26bfa9c37ae3091\",\"report_rollback_started\":false,\"report_status\":\"OK\"},\"worker_log_empty_exact\":true},\"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z\":{\"legacy_wrapper_changes_made\":true,\"payload_exact\":true,\"public_payload_outcome_blocked_no_mutation\":true,\"raw_results\":0,\"state_exact\":true,\"worker_log_empty_exact\":true},\"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z\":{\"legacy_wrapper_changes_made\":true,\"payload_exact\":true,\"public_payload_outcome_blocked_no_mutation\":true,\"raw_results\":0,\"state_exact\":true,\"worker_log_empty_exact\":true},\"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z\":{\"adapter_preexecution_integrity_error\":true,\"payload_exact\":true,\"payload_mutating_calls\":[],\"public_results\":0,\"raw_results\":0,\"state_exact\":true,\"worker_log_sha256\":\"67696052b4003d1cf0374688de70e22a355b79304c70c76b8e76e270cb10f1b5\"}},\"historical_closure_failures\":[],\"linked\":{\"lexists\":false,\"path\":\"/usr/local/sbin/homelab-chat-run-linked\"},\"open_fd_references\":[],\"plan_binding\":{\"bound\":true,\"plan_evidence_sha256\":\"365e043ac8e20a5033d98863681b168450ea6f8e76667fbc5d1d3ce2c575e7da\",\"plan_hash_excluded_fields\":[\"PLAN_SHA256\",\"plan_hash_definition\"],\"plan_hash_self_check\":true,\"plan_id_actual\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"plan_id_expected\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"plan_output_sha256_actual\":\"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199\",\"plan_output_sha256_expected\":\"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199\",\"plan_runner_json_sha256\":\"192eb7d5519d74cec68099a1301dcdcecddf233b69d8e4a1f14a3f2c05be789c\",\"plan_sha256_embedded\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"plan_sha256_expected\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"plan_sha256_recomputed\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"plan_status\":\"PLAN_READY\"},\"pre_mutation_diagnostics\":{\"atime_ns\":1785172116975440396,\"device\":64513,\"gid\":0,\"inode\":2374218,\"lexists\":true,\"mode\":\"0600\",\"mtime_ns\":1785172116728436784,\"path\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json\",\"regular\":true,\"sha256\":\"d4bea28341a5fb707c0f8acbe74917a70e51f325cfd5e7c589e1e71b0aabfd15\",\"size\":9032,\"symlink\":false,\"uid\":0},\"rollback_copy\":{\"atime_ns\":1785172116722436696,\"device\":64513,\"gid\":0,\"inode\":2374216,\"lexists\":true,\"mode\":\"0600\",\"mtime_ns\":1785172116716436608,\"path\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback\",\"regular\":true,\"sha256\":\"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1\",\"size\":1901,\"symlink\":false,\"uid\":0},\"rollback_metadata\":{\"atime_ns\":1785172116975440396,\"device\":64513,\"gid\":0,\"inode\":2374217,\"lexists\":true,\"mode\":\"0600\",\"mtime_ns\":1785172116722436696,\"path\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json\",\"regular\":true,\"sha256\":\"6f92cfde8bd7d2e89e5d39d3314c17747baf2de0a5e90ac9ac57aae21af7d291\",\"size\":1055,\"symlink\":false,\"uid\":0},\"runner_inventory\":{\"distinct_count\":1,\"entries\":[{\"device\":64513,\"gid\":0,\"inode\":5148538,\"mode\":\"0750\",\"path\":\"/usr/local/sbin/homelab-chat-run\",\"resolved\":\"/usr/local/sbin/homelab-chat-run\",\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"uid\":0}]},\"self_tests\":{\"adapter_rc\":0,\"adapter_stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\"adapter_stdout_sha256\":\"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74\",\"portal_rc\":0,\"portal_stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\"portal_stdout_sha256\":\"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74\"},\"units\":{\"adapter\":{\"ActiveState\":\"active\",\"ExecMainStatus\":\"0\",\"Group\":\"homelab-command-portal\",\"LoadState\":\"loaded\",\"MainPID\":\"1637015\",\"NRestarts\":\"0\",\"Result\":\"success\",\"SubState\":\"running\",\"UnitFileState\":\"enabled\",\"User\":\"root\",\"show_rc\":\"0\",\"stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"},\"lookup\":{\"ActiveState\":\"active\",\"ExecMainStatus\":\"0\",\"Group\":\"homelab-result-lookup\",\"LoadState\":\"loaded\",\"MainPID\":\"2718720\",\"NRestarts\":\"0\",\"Result\":\"success\",\"SubState\":\"running\",\"UnitFileState\":\"enabled\",\"User\":\"homelab-result-lookup\",\"show_rc\":\"0\",\"stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"},\"portal\":{\"ActiveState\":\"active\",\"ExecMainStatus\":\"0\",\"Group\":\"homelab-command-portal\",\"LoadState\":\"loaded\",\"MainPID\":\"1759597\",\"NRestarts\":\"0\",\"Result\":\"success\",\"SubState\":\"running\",\"UnitFileState\":\"enabled\",\"User\":\"homelab-command-portal\",\"show_rc\":\"0\",\"stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"}}},\"plan_bound\":true,\"pre_mutation_diagnostics\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json\",\"production_changed\":true,\"removed_path\":\"/usr/local/sbin/homelab-chat-run-linked\",\"rollback_copy\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback\",\"rollback_directory\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z\",\"rollback_metadata\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json\",\"rollback_restored\":false,\"rollback_started\":false,\"schema\":1,\"services_restarted_or_reloaded\":false,\"status\":\"OK\"}\n" +} diff --git a/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.txt b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.txt new file mode 100644 index 0000000..8781790 --- /dev/null +++ b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z.txt @@ -0,0 +1,33 @@ +CHAT_OUTPUT_BEGIN +COMMAND_ID=RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z +STATUS=FAIL +RC=76 +HOST=pve01 +MODE=change +COMPONENT=runner +REFERENCE_REGISTER_CHECK=OK +REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e +ERROR_REGISTER_CHECK=OK +ERROR_REGISTER_SHA256=24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83 +COMMAND_SHA256=72b7216ace82b08b3c98fb053d4d5b643e9c59a113cea88d343fbe1c3bc2b812 +DUPLICATE_FAILED_COMMAND_BLOCKED=false +EXECUTION_STARTED=true +CHANGE_DECLARED=true +RESULT_CONTRACT_VALID=false +RESULT_CONTRACT_STATUS=UNKNOWN +RESULT_CONTRACT_ERROR=MISSING_CONTRACT +COMMAND_RC=0 +CHANGES_MADE=unknown +ROLLBACK_STARTED=unknown +ROLLBACK_RESTORED=null +MUTATION_OUTCOME=UNKNOWN +SANITIZED=yes +SECRETS_INCLUDED=no +PRIVATE_ADDRESSES_INCLUDED=no +RAW_EVIDENCE_SHA256=8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c +SANITIZED_OUTPUT_SHA256=8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c +OUTPUT_BEGIN +{"PLAN_ID":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","PLAN_SHA256":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","anti_regression":{"AR-001-EXACT-PLAN-SHA256-BOUND":true,"AR-002-SOURCE-LOCKS-REPEATED-BEFORE-MUTATION":true,"AR-003-ZERO-CONFIG-PROCESS-FD-REFERENCES":true,"AR-004-ROLLBACK-COPY-SHA-MODE-OWNER-VERIFIED":true,"AR-005-HISTORICAL-STATES-UNMODIFIED":true,"AR-006-EXACTLY-ONE-DISTINCT-RUNNER-AFTER-APPLY":true,"AR-007-DIAGNOSTICS-BEFORE-ROLLBACK-CONTRACT":true,"AR-008-CANONICAL-RUNNER-BYTE-IDENTICAL":true,"AR-009-NO-SERVICE-RESTART-OR-RELOAD":true,"AR-010-BACKUP-NOT-TOUCHED":true},"backup_changed":false,"canonical_runner_changed":false,"changes_made":true,"checks_after":{"adapter_self_test":true,"adapter_service_healthy":true,"canonical_exact_metadata":true,"exact_plan_still_bound":true,"historical_closure_still_exact":true,"linked_path_absent":true,"linked_zero_active_config_references":true,"linked_zero_live_process_references":true,"linked_zero_open_fd_references":true,"lookup_local_health":true,"lookup_service_healthy":true,"portal_local_health":true,"portal_self_test_real_identity":true,"portal_service_healthy":true,"postapply_exactly_one_distinct_runner":true,"pre_mutation_diagnostics_exists":true,"rollback_copy_exact":true,"rollback_metadata_exists":true,"source_lock:/etc/systemd/system/homelab-command-adapter.service":true,"source_lock:/etc/systemd/system/homelab-command-portal.service":true,"source_lock:/etc/systemd/system/homelab-result-lookup.service":true,"source_lock:/usr/local/sbin/homelab-chat-run":true,"source_lock:/usr/local/sbin/homelab-command-adapter":true,"source_lock:/usr/local/sbin/homelab-command-portal":true,"source_lock:/usr/local/sbin/homelab-result-lookup":true},"checks_before":{"adapter_self_test":true,"adapter_service_healthy":true,"all_four_historical_mutations_closed_by_exact_evidence":true,"canonical_exact_metadata":true,"exact_plan_bound":true,"linked_exact_metadata":true,"linked_zero_active_config_references":true,"linked_zero_live_process_references":true,"linked_zero_open_fd_references":true,"lookup_local_health":true,"lookup_service_healthy":true,"portal_local_health":true,"portal_self_test_real_identity":true,"portal_service_healthy":true,"preapply_exactly_two_distinct_runner_files":true,"rollback_directory_does_not_exist":true,"source_lock:/etc/systemd/system/homelab-command-adapter.service":true,"source_lock:/etc/systemd/system/homelab-command-portal.service":true,"source_lock:/etc/systemd/system/homelab-result-lookup.service":true,"source_lock:/usr/local/sbin/homelab-chat-run":true,"source_lock:/usr/local/sbin/homelab-chat-run-linked":true,"source_lock:/usr/local/sbin/homelab-command-adapter":true,"source_lock:/usr/local/sbin/homelab-command-portal":true,"source_lock:/usr/local/sbin/homelab-result-lookup":true,"target_is_pve01":true,"uid_is_root":true},"cluster_changed":false,"command_id":"RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z","gitea_changed":false,"historical_state_files_changed":false,"mutation_outcome":"APPLIED","observations_after":{"active_config_references":[],"active_process_references":[],"canonical":{"atime_ns":1785130359620160117,"device":64513,"gid":0,"inode":5148538,"lexists":true,"mode":"0750","mtime_ns":1785130359609255313,"path":"/usr/local/sbin/homelab-chat-run","regular":true,"sha256":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d","size":21321,"symlink":false,"uid":0},"health":{"lookup_http_status":200,"portal_http_status":200},"historical_classifications":{"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z":"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS","RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z":"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS"},"historical_closure_facts":{"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z":{"payload_exact":true,"public_results":0,"raw_results":0,"state_exact":true,"successor":{"plan_file_sha256":"13b1bd4f98939b222e09e3d3d780e000c1f06d22cd2e41d17e12e62a89e44db6","plan_sha256":"ce45802551553ab4f5f0cef37d29efcdcb1aae0f19d81ab3ab9430fa5ea9704c","report_changes_made":true,"report_file_sha256":"297b1771bd231defa9d1fa4360c5f563f26cd2bcb84ddd55c26bfa9c37ae3091","report_rollback_started":false,"report_status":"OK"},"worker_log_empty_exact":true},"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z":{"legacy_wrapper_changes_made":true,"payload_exact":true,"public_payload_outcome_blocked_no_mutation":true,"raw_results":0,"state_exact":true,"worker_log_empty_exact":true},"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z":{"legacy_wrapper_changes_made":true,"payload_exact":true,"public_payload_outcome_blocked_no_mutation":true,"raw_results":0,"state_exact":true,"worker_log_empty_exact":true},"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z":{"adapter_preexecution_integrity_error":true,"payload_exact":true,"payload_mutating_calls":[],"public_results":0,"raw_results":0,"state_exact":true,"worker_log_sha256":"67696052b4003d1cf0374688de70e22a355b79304c70c76b8e76e270cb10f1b5"}},"historical_closure_failures":[],"linked":{"lexists":false,"path":"/usr/local/sbin/homelab-chat-run-linked"},"open_fd_references":[],"plan_binding":{"bound":true,"plan_evidence_sha256":"365e043ac8e20a5033d98863681b168450ea6f8e76667fbc5d1d3ce2c575e7da","plan_hash_excluded_fields":["PLAN_SHA256","plan_hash_definition"],"plan_hash_self_check":true,"plan_id_actual":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","plan_id_expected":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","plan_output_sha256_actual":"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199","plan_output_sha256_expected":"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199","plan_runner_json_sha256":"192eb7d5519d74cec68099a1301dcdcecddf233b69d8e4a1f14a3f2c05be789c","plan_sha256_embedded":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","plan_sha256_expected":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","plan_sha256_recomputed":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","plan_status":"PLAN_READY"},"pre_mutation_diagnostics":{"atime_ns":1785172116975440396,"device":64513,"gid":0,"inode":2374218,"lexists":true,"mode":"0600","mtime_ns":1785172116728436784,"path":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json","regular":true,"sha256":"d4bea28341a5fb707c0f8acbe74917a70e51f325cfd5e7c589e1e71b0aabfd15","size":9032,"symlink":false,"uid":0},"rollback_copy":{"atime_ns":1785172116722436696,"device":64513,"gid":0,"inode":2374216,"lexists":true,"mode":"0600","mtime_ns":1785172116716436608,"path":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback","regular":true,"sha256":"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1","size":1901,"symlink":false,"uid":0},"rollback_metadata":{"atime_ns":1785172116975440396,"device":64513,"gid":0,"inode":2374217,"lexists":true,"mode":"0600","mtime_ns":1785172116722436696,"path":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json","regular":true,"sha256":"6f92cfde8bd7d2e89e5d39d3314c17747baf2de0a5e90ac9ac57aae21af7d291","size":1055,"symlink":false,"uid":0},"runner_inventory":{"distinct_count":1,"entries":[{"device":64513,"gid":0,"inode":5148538,"mode":"0750","path":"/usr/local/sbin/homelab-chat-run","resolved":"/usr/local/sbin/homelab-chat-run","sha256":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d","uid":0}]},"self_tests":{"adapter_rc":0,"adapter_stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","adapter_stdout_sha256":"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74","portal_rc":0,"portal_stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","portal_stdout_sha256":"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74"},"units":{"adapter":{"ActiveState":"active","ExecMainStatus":"0","Group":"homelab-command-portal","LoadState":"loaded","MainPID":"1637015","NRestarts":"0","Result":"success","SubState":"running","UnitFileState":"enabled","User":"root","show_rc":"0","stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"lookup":{"ActiveState":"active","ExecMainStatus":"0","Group":"homelab-result-lookup","LoadState":"loaded","MainPID":"2718720","NRestarts":"0","Result":"success","SubState":"running","UnitFileState":"enabled","User":"homelab-result-lookup","show_rc":"0","stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"portal":{"ActiveState":"active","ExecMainStatus":"0","Group":"homelab-command-portal","LoadState":"loaded","MainPID":"1759597","NRestarts":"0","Result":"success","SubState":"running","UnitFileState":"enabled","User":"homelab-command-portal","show_rc":"0","stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}},"plan_bound":true,"pre_mutation_diagnostics":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json","production_changed":true,"removed_path":"/usr/local/sbin/homelab-chat-run-linked","rollback_copy":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback","rollback_directory":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z","rollback_metadata":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json","rollback_restored":false,"rollback_started":false,"schema":1,"services_restarted_or_reloaded":false,"status":"OK"} + +OUTPUT_END +CHAT_OUTPUT_END diff --git a/runtime/latest.json b/runtime/latest.json index 75fcf2e..d9db41b 100644 --- a/runtime/latest.json +++ b/runtime/latest.json @@ -1,38 +1,38 @@ { "schema_version": 1, "channel": "homelab-runtime", - "command_id": "RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z", - "status": "OK", - "rc": 0, + "command_id": "RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z", + "status": "FAIL", + "rc": 76, "host": "pve01", - "mode": "verify", - "component": "runner-linked-removal-plan", - "started_at_utc": "2026-07-27T16:56:35Z", - "finished_at_utc": "2026-07-27T16:56:36Z", + "mode": "change", + "component": "runner", + "started_at_utc": "2026-07-27T17:08:36Z", + "finished_at_utc": "2026-07-27T17:08:37Z", "reference_register_checked": true, "reference_sha256": "5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e", "error_register_checked": true, "error_register_sha256": "24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83", - "command_sha256": "899e47cd886422f00cbbf62472a48bb94739f0e8dda970a24348c062d750be99", + "command_sha256": "72b7216ace82b08b3c98fb053d4d5b643e9c59a113cea88d343fbe1c3bc2b812", "duplicate_failed_command_blocked": false, "block_reason": null, "execution_started": true, - "change_declared": false, - "result_contract_valid": true, + "change_declared": true, + "result_contract_valid": false, "result_contract_status": null, - "result_contract_error": null, + "result_contract_error": "MISSING_CONTRACT", "command_rc": 0, - "changes_made": false, - "rollback_started": false, + "changes_made": null, + "rollback_started": null, "rollback_restored": null, - "mutation_outcome": "NO_MUTATION", + "mutation_outcome": "UNKNOWN", "sanitized": true, "secrets_included": false, "private_addresses_included": false, "raw_evidence_retained_locally": true, - "raw_evidence_sha256": "9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199", - "sanitized_output_sha256": "9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199", + "raw_evidence_sha256": "8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c", + "sanitized_output_sha256": "8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c", "output_truncated_in_json": false, "full_sanitized_output_url": "https://git.gram1.ru/.well-known/homelab-runtime/latest.txt", - "output": "{\"PLAN_SHA256\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"anti_regression_tests\":{\"AR-001-LEGACY-WRAPPER-FLAG-CANNOT-OVERRIDE-EXACT-BLOCKED-PAYLOAD-OUTCOME\":true,\"AR-002-ADAPTER-PREEXECUTION-FAILURE-WITH-NO-MUTATION-CALLS-IS-CLOSED\":true,\"AR-003-INTERRUPTED-APPLY-IS-CLOSED-ONLY-BY-EXACT-SUCCESSFUL-SAME-PLAN-SUCCESSOR\":true,\"AR-004-HISTORICAL-STATE-FILES-ARE-IMMUTABLE\":true,\"AR-005-ZERO-CONFIG-PROCESS-FD-REFERENCES-BEFORE-REMOVE\":true,\"AR-006-EXACTLY-ONE-DISTINCT-RUNNER-AFTER-APPLY\":true,\"AR-007-DIAGNOSTICS-PRECEDE-ROLLBACK\":true,\"AR-008-APPLY-MUST-BIND-THIS-EXACT-PLAN-SHA256\":true,\"AR-009-PLAN-HASH-MUST-RECOMPUTE-FROM-EMITTED-DOCUMENT\":true},\"apply_steps\":[\"Repeat every source lock, service, self-test, reference, FD, runner inventory and historical closure precondition.\",\"Create one command-specific rollback directory under /var/lib/homelab-change-rollback with mode 0700.\",\"Copy only homelab-chat-run-linked into that rollback directory with mode 0600; verify byte-for-byte SHA-256 and fsync.\",\"Capture diagnostics immediately before the mutation.\",\"Remove only /usr/local/sbin/homelab-chat-run-linked and fsync /usr/local/sbin.\",\"Verify the linked path is absent, the canonical runner is byte-identical, exactly one distinct runner remains, all services and self-tests remain healthy, and the historical closure classifier still passes.\",\"If any postcondition fails, capture diagnostics before rollback, restore the exact rollback copy atomically, fsync, and verify the original SHA/mode/uid/gid.\"],\"canonical_runner_lock\":{\"must_remain_gid\":0,\"must_remain_mode\":\"0750\",\"must_remain_uid\":0,\"path\":\"/usr/local/sbin/homelab-chat-run\",\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\"},\"changes_made\":false,\"forbidden_actions\":[\"Do not modify backup.\",\"Do not modify historical Adapter state files.\",\"Do not modify the canonical runner.\",\"Do not create a second runner.\",\"Do not restart or reload Portal, Adapter or Lookup.\",\"Do not modify Portal, Adapter, Lookup, systemd units, Gitea or cluster configuration.\"],\"historical_state_policy\":{\"classifications\":{\"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z\":\"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS\",\"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z\":\"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS\"},\"do_not_edit_historical_state_files\":true},\"kind\":\"homelab-change-plan\",\"linked_preconditions\":{\"active_config_references\":0,\"active_process_references\":0,\"gid\":0,\"mode\":\"0755\",\"open_fd_references\":0,\"path\":\"/usr/local/sbin/homelab-chat-run-linked\",\"sha256\":\"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1\",\"size\":1901,\"uid\":0},\"objective\":\"Remove only the unused distinct executable /usr/local/sbin/homelab-chat-run-linked and preserve the canonical runner unchanged.\",\"observed_preconditions\":{\"checks\":{\"adapter_self_test\":true,\"adapter_service_healthy\":true,\"all_four_historical_mutations_closed_by_exact_evidence\":true,\"linked_exact_metadata\":true,\"linked_zero_active_config_references\":true,\"linked_zero_live_process_references\":true,\"linked_zero_open_fd_references\":true,\"lookup_local_health\":true,\"lookup_service_healthy\":true,\"portal_local_health\":true,\"portal_self_test_real_identity\":true,\"portal_service_healthy\":true,\"preapply_exactly_two_distinct_runner_files\":true,\"source_lock:/etc/systemd/system/homelab-command-adapter.service\":true,\"source_lock:/etc/systemd/system/homelab-command-portal.service\":true,\"source_lock:/etc/systemd/system/homelab-result-lookup.service\":true,\"source_lock:/usr/local/sbin/homelab-chat-run\":true,\"source_lock:/usr/local/sbin/homelab-chat-run-linked\":true,\"source_lock:/usr/local/sbin/homelab-command-adapter\":true,\"source_lock:/usr/local/sbin/homelab-command-portal\":true,\"source_lock:/usr/local/sbin/homelab-result-lookup\":true,\"target_is_pve01\":true,\"uid_is_root\":true},\"historical_classifications\":{\"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z\":\"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS\",\"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z\":\"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS\"},\"runner_inventory\":{\"distinct_count\":2,\"entries\":[{\"device\":64513,\"gid\":0,\"inode\":5148538,\"mode\":\"0750\",\"path\":\"/usr/local/sbin/homelab-chat-run\",\"resolved\":\"/usr/local/sbin/homelab-chat-run\",\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"uid\":0},{\"device\":64513,\"gid\":0,\"inode\":5148536,\"mode\":\"0755\",\"path\":\"/usr/local/sbin/homelab-chat-run-linked\",\"resolved\":\"/usr/local/sbin/homelab-chat-run-linked\",\"sha256\":\"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1\",\"uid\":0}]}},\"plan_hash_definition\":\"PLAN_SHA256 is SHA-256 of UTF-8 canonical JSON of the emitted plan after removing exactly PLAN_SHA256 and plan_hash_definition; ensure_ascii=false, sort_keys=true, separators=(',', ':'), followed by one LF.\",\"plan_hash_excluded_fields\":[\"PLAN_SHA256\",\"plan_hash_definition\"],\"plan_hash_self_check\":true,\"plan_id\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"read_only\":true,\"rollback_contract\":{\"available\":true,\"diagnostics_before_rollback\":true,\"restore_exact_sha256\":\"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1\",\"restore_gid\":0,\"restore_mode\":\"0755\",\"restore_uid\":0,\"trigger\":\"Any failed postcondition after linked runner removal.\"},\"rollback_started\":false,\"schema\":1,\"scope\":{\"backup\":false,\"cluster\":false,\"gitea\":false,\"production\":true},\"source_locks\":{\"/etc/systemd/system/homelab-command-adapter.service\":\"74d0f37878652ed9d46b53ae8556bbb30ebd683741f293c3f59b3527876ed2d7\",\"/etc/systemd/system/homelab-command-portal.service\":\"8453eab30f5c3ccd285fc9f70fff18f564809bb27f7bf84f51f2ba593aa85263\",\"/etc/systemd/system/homelab-result-lookup.service\":\"4bcc607fd457313f75373ec3d8ec20e7020f13c7cb8a9523fd988a24b0f6609d\",\"/usr/local/sbin/homelab-chat-run\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"/usr/local/sbin/homelab-chat-run-linked\":\"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1\",\"/usr/local/sbin/homelab-command-adapter\":\"a1a7a615c99568bf915d084cc476f0ebf54ab0eedf3ecd578c4b0e072f58c43d\",\"/usr/local/sbin/homelab-command-portal\":\"97c69bd4fccf7272dadc911281c1503f411bae2dc11dac4b22b87f33d678ae52\",\"/usr/local/sbin/homelab-result-lookup\":\"17f8d2a2ea219cdc02b0f8e821f8054b05c01de1253419b3d23349a2d383889c\"},\"status\":\"PLAN_READY\",\"target\":\"pve01\"}\n" + "output": "{\"PLAN_ID\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"PLAN_SHA256\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"anti_regression\":{\"AR-001-EXACT-PLAN-SHA256-BOUND\":true,\"AR-002-SOURCE-LOCKS-REPEATED-BEFORE-MUTATION\":true,\"AR-003-ZERO-CONFIG-PROCESS-FD-REFERENCES\":true,\"AR-004-ROLLBACK-COPY-SHA-MODE-OWNER-VERIFIED\":true,\"AR-005-HISTORICAL-STATES-UNMODIFIED\":true,\"AR-006-EXACTLY-ONE-DISTINCT-RUNNER-AFTER-APPLY\":true,\"AR-007-DIAGNOSTICS-BEFORE-ROLLBACK-CONTRACT\":true,\"AR-008-CANONICAL-RUNNER-BYTE-IDENTICAL\":true,\"AR-009-NO-SERVICE-RESTART-OR-RELOAD\":true,\"AR-010-BACKUP-NOT-TOUCHED\":true},\"backup_changed\":false,\"canonical_runner_changed\":false,\"changes_made\":true,\"checks_after\":{\"adapter_self_test\":true,\"adapter_service_healthy\":true,\"canonical_exact_metadata\":true,\"exact_plan_still_bound\":true,\"historical_closure_still_exact\":true,\"linked_path_absent\":true,\"linked_zero_active_config_references\":true,\"linked_zero_live_process_references\":true,\"linked_zero_open_fd_references\":true,\"lookup_local_health\":true,\"lookup_service_healthy\":true,\"portal_local_health\":true,\"portal_self_test_real_identity\":true,\"portal_service_healthy\":true,\"postapply_exactly_one_distinct_runner\":true,\"pre_mutation_diagnostics_exists\":true,\"rollback_copy_exact\":true,\"rollback_metadata_exists\":true,\"source_lock:/etc/systemd/system/homelab-command-adapter.service\":true,\"source_lock:/etc/systemd/system/homelab-command-portal.service\":true,\"source_lock:/etc/systemd/system/homelab-result-lookup.service\":true,\"source_lock:/usr/local/sbin/homelab-chat-run\":true,\"source_lock:/usr/local/sbin/homelab-command-adapter\":true,\"source_lock:/usr/local/sbin/homelab-command-portal\":true,\"source_lock:/usr/local/sbin/homelab-result-lookup\":true},\"checks_before\":{\"adapter_self_test\":true,\"adapter_service_healthy\":true,\"all_four_historical_mutations_closed_by_exact_evidence\":true,\"canonical_exact_metadata\":true,\"exact_plan_bound\":true,\"linked_exact_metadata\":true,\"linked_zero_active_config_references\":true,\"linked_zero_live_process_references\":true,\"linked_zero_open_fd_references\":true,\"lookup_local_health\":true,\"lookup_service_healthy\":true,\"portal_local_health\":true,\"portal_self_test_real_identity\":true,\"portal_service_healthy\":true,\"preapply_exactly_two_distinct_runner_files\":true,\"rollback_directory_does_not_exist\":true,\"source_lock:/etc/systemd/system/homelab-command-adapter.service\":true,\"source_lock:/etc/systemd/system/homelab-command-portal.service\":true,\"source_lock:/etc/systemd/system/homelab-result-lookup.service\":true,\"source_lock:/usr/local/sbin/homelab-chat-run\":true,\"source_lock:/usr/local/sbin/homelab-chat-run-linked\":true,\"source_lock:/usr/local/sbin/homelab-command-adapter\":true,\"source_lock:/usr/local/sbin/homelab-command-portal\":true,\"source_lock:/usr/local/sbin/homelab-result-lookup\":true,\"target_is_pve01\":true,\"uid_is_root\":true},\"cluster_changed\":false,\"command_id\":\"RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z\",\"gitea_changed\":false,\"historical_state_files_changed\":false,\"mutation_outcome\":\"APPLIED\",\"observations_after\":{\"active_config_references\":[],\"active_process_references\":[],\"canonical\":{\"atime_ns\":1785130359620160117,\"device\":64513,\"gid\":0,\"inode\":5148538,\"lexists\":true,\"mode\":\"0750\",\"mtime_ns\":1785130359609255313,\"path\":\"/usr/local/sbin/homelab-chat-run\",\"regular\":true,\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"size\":21321,\"symlink\":false,\"uid\":0},\"health\":{\"lookup_http_status\":200,\"portal_http_status\":200},\"historical_classifications\":{\"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z\":\"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS\",\"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z\":\"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG\",\"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z\":\"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS\"},\"historical_closure_facts\":{\"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z\":{\"payload_exact\":true,\"public_results\":0,\"raw_results\":0,\"state_exact\":true,\"successor\":{\"plan_file_sha256\":\"13b1bd4f98939b222e09e3d3d780e000c1f06d22cd2e41d17e12e62a89e44db6\",\"plan_sha256\":\"ce45802551553ab4f5f0cef37d29efcdcb1aae0f19d81ab3ab9430fa5ea9704c\",\"report_changes_made\":true,\"report_file_sha256\":\"297b1771bd231defa9d1fa4360c5f563f26cd2bcb84ddd55c26bfa9c37ae3091\",\"report_rollback_started\":false,\"report_status\":\"OK\"},\"worker_log_empty_exact\":true},\"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z\":{\"legacy_wrapper_changes_made\":true,\"payload_exact\":true,\"public_payload_outcome_blocked_no_mutation\":true,\"raw_results\":0,\"state_exact\":true,\"worker_log_empty_exact\":true},\"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z\":{\"legacy_wrapper_changes_made\":true,\"payload_exact\":true,\"public_payload_outcome_blocked_no_mutation\":true,\"raw_results\":0,\"state_exact\":true,\"worker_log_empty_exact\":true},\"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z\":{\"adapter_preexecution_integrity_error\":true,\"payload_exact\":true,\"payload_mutating_calls\":[],\"public_results\":0,\"raw_results\":0,\"state_exact\":true,\"worker_log_sha256\":\"67696052b4003d1cf0374688de70e22a355b79304c70c76b8e76e270cb10f1b5\"}},\"historical_closure_failures\":[],\"linked\":{\"lexists\":false,\"path\":\"/usr/local/sbin/homelab-chat-run-linked\"},\"open_fd_references\":[],\"plan_binding\":{\"bound\":true,\"plan_evidence_sha256\":\"365e043ac8e20a5033d98863681b168450ea6f8e76667fbc5d1d3ce2c575e7da\",\"plan_hash_excluded_fields\":[\"PLAN_SHA256\",\"plan_hash_definition\"],\"plan_hash_self_check\":true,\"plan_id_actual\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"plan_id_expected\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z\",\"plan_output_sha256_actual\":\"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199\",\"plan_output_sha256_expected\":\"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199\",\"plan_runner_json_sha256\":\"192eb7d5519d74cec68099a1301dcdcecddf233b69d8e4a1f14a3f2c05be789c\",\"plan_sha256_embedded\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"plan_sha256_expected\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"plan_sha256_recomputed\":\"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b\",\"plan_status\":\"PLAN_READY\"},\"pre_mutation_diagnostics\":{\"atime_ns\":1785172116975440396,\"device\":64513,\"gid\":0,\"inode\":2374218,\"lexists\":true,\"mode\":\"0600\",\"mtime_ns\":1785172116728436784,\"path\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json\",\"regular\":true,\"sha256\":\"d4bea28341a5fb707c0f8acbe74917a70e51f325cfd5e7c589e1e71b0aabfd15\",\"size\":9032,\"symlink\":false,\"uid\":0},\"rollback_copy\":{\"atime_ns\":1785172116722436696,\"device\":64513,\"gid\":0,\"inode\":2374216,\"lexists\":true,\"mode\":\"0600\",\"mtime_ns\":1785172116716436608,\"path\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback\",\"regular\":true,\"sha256\":\"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1\",\"size\":1901,\"symlink\":false,\"uid\":0},\"rollback_metadata\":{\"atime_ns\":1785172116975440396,\"device\":64513,\"gid\":0,\"inode\":2374217,\"lexists\":true,\"mode\":\"0600\",\"mtime_ns\":1785172116722436696,\"path\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json\",\"regular\":true,\"sha256\":\"6f92cfde8bd7d2e89e5d39d3314c17747baf2de0a5e90ac9ac57aae21af7d291\",\"size\":1055,\"symlink\":false,\"uid\":0},\"runner_inventory\":{\"distinct_count\":1,\"entries\":[{\"device\":64513,\"gid\":0,\"inode\":5148538,\"mode\":\"0750\",\"path\":\"/usr/local/sbin/homelab-chat-run\",\"resolved\":\"/usr/local/sbin/homelab-chat-run\",\"sha256\":\"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d\",\"uid\":0}]},\"self_tests\":{\"adapter_rc\":0,\"adapter_stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\"adapter_stdout_sha256\":\"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74\",\"portal_rc\":0,\"portal_stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\",\"portal_stdout_sha256\":\"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74\"},\"units\":{\"adapter\":{\"ActiveState\":\"active\",\"ExecMainStatus\":\"0\",\"Group\":\"homelab-command-portal\",\"LoadState\":\"loaded\",\"MainPID\":\"1637015\",\"NRestarts\":\"0\",\"Result\":\"success\",\"SubState\":\"running\",\"UnitFileState\":\"enabled\",\"User\":\"root\",\"show_rc\":\"0\",\"stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"},\"lookup\":{\"ActiveState\":\"active\",\"ExecMainStatus\":\"0\",\"Group\":\"homelab-result-lookup\",\"LoadState\":\"loaded\",\"MainPID\":\"2718720\",\"NRestarts\":\"0\",\"Result\":\"success\",\"SubState\":\"running\",\"UnitFileState\":\"enabled\",\"User\":\"homelab-result-lookup\",\"show_rc\":\"0\",\"stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"},\"portal\":{\"ActiveState\":\"active\",\"ExecMainStatus\":\"0\",\"Group\":\"homelab-command-portal\",\"LoadState\":\"loaded\",\"MainPID\":\"1759597\",\"NRestarts\":\"0\",\"Result\":\"success\",\"SubState\":\"running\",\"UnitFileState\":\"enabled\",\"User\":\"homelab-command-portal\",\"show_rc\":\"0\",\"stderr_sha256\":\"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\"}}},\"plan_bound\":true,\"pre_mutation_diagnostics\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json\",\"production_changed\":true,\"removed_path\":\"/usr/local/sbin/homelab-chat-run-linked\",\"rollback_copy\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback\",\"rollback_directory\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z\",\"rollback_metadata\":\"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json\",\"rollback_restored\":false,\"rollback_started\":false,\"schema\":1,\"services_restarted_or_reloaded\":false,\"status\":\"OK\"}\n" } diff --git a/runtime/latest.txt b/runtime/latest.txt index e8dc64f..8781790 100644 --- a/runtime/latest.txt +++ b/runtime/latest.txt @@ -1,33 +1,33 @@ CHAT_OUTPUT_BEGIN -COMMAND_ID=RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z -STATUS=OK -RC=0 +COMMAND_ID=RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z +STATUS=FAIL +RC=76 HOST=pve01 -MODE=verify -COMPONENT=runner-linked-removal-plan +MODE=change +COMPONENT=runner REFERENCE_REGISTER_CHECK=OK REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e ERROR_REGISTER_CHECK=OK ERROR_REGISTER_SHA256=24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83 -COMMAND_SHA256=899e47cd886422f00cbbf62472a48bb94739f0e8dda970a24348c062d750be99 +COMMAND_SHA256=72b7216ace82b08b3c98fb053d4d5b643e9c59a113cea88d343fbe1c3bc2b812 DUPLICATE_FAILED_COMMAND_BLOCKED=false EXECUTION_STARTED=true -CHANGE_DECLARED=false -RESULT_CONTRACT_VALID=true -RESULT_CONTRACT_STATUS=NOT_APPLICABLE -RESULT_CONTRACT_ERROR=NONE +CHANGE_DECLARED=true +RESULT_CONTRACT_VALID=false +RESULT_CONTRACT_STATUS=UNKNOWN +RESULT_CONTRACT_ERROR=MISSING_CONTRACT COMMAND_RC=0 -CHANGES_MADE=false -ROLLBACK_STARTED=false +CHANGES_MADE=unknown +ROLLBACK_STARTED=unknown ROLLBACK_RESTORED=null -MUTATION_OUTCOME=NO_MUTATION +MUTATION_OUTCOME=UNKNOWN SANITIZED=yes SECRETS_INCLUDED=no PRIVATE_ADDRESSES_INCLUDED=no -RAW_EVIDENCE_SHA256=9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199 -SANITIZED_OUTPUT_SHA256=9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199 +RAW_EVIDENCE_SHA256=8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c +SANITIZED_OUTPUT_SHA256=8f1f0f91e947f2fd1b09848261c0f4d1a924e1158c3a97f3e023db1cb114a46c OUTPUT_BEGIN -{"PLAN_SHA256":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","anti_regression_tests":{"AR-001-LEGACY-WRAPPER-FLAG-CANNOT-OVERRIDE-EXACT-BLOCKED-PAYLOAD-OUTCOME":true,"AR-002-ADAPTER-PREEXECUTION-FAILURE-WITH-NO-MUTATION-CALLS-IS-CLOSED":true,"AR-003-INTERRUPTED-APPLY-IS-CLOSED-ONLY-BY-EXACT-SUCCESSFUL-SAME-PLAN-SUCCESSOR":true,"AR-004-HISTORICAL-STATE-FILES-ARE-IMMUTABLE":true,"AR-005-ZERO-CONFIG-PROCESS-FD-REFERENCES-BEFORE-REMOVE":true,"AR-006-EXACTLY-ONE-DISTINCT-RUNNER-AFTER-APPLY":true,"AR-007-DIAGNOSTICS-PRECEDE-ROLLBACK":true,"AR-008-APPLY-MUST-BIND-THIS-EXACT-PLAN-SHA256":true,"AR-009-PLAN-HASH-MUST-RECOMPUTE-FROM-EMITTED-DOCUMENT":true},"apply_steps":["Repeat every source lock, service, self-test, reference, FD, runner inventory and historical closure precondition.","Create one command-specific rollback directory under /var/lib/homelab-change-rollback with mode 0700.","Copy only homelab-chat-run-linked into that rollback directory with mode 0600; verify byte-for-byte SHA-256 and fsync.","Capture diagnostics immediately before the mutation.","Remove only /usr/local/sbin/homelab-chat-run-linked and fsync /usr/local/sbin.","Verify the linked path is absent, the canonical runner is byte-identical, exactly one distinct runner remains, all services and self-tests remain healthy, and the historical closure classifier still passes.","If any postcondition fails, capture diagnostics before rollback, restore the exact rollback copy atomically, fsync, and verify the original SHA/mode/uid/gid."],"canonical_runner_lock":{"must_remain_gid":0,"must_remain_mode":"0750","must_remain_uid":0,"path":"/usr/local/sbin/homelab-chat-run","sha256":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d"},"changes_made":false,"forbidden_actions":["Do not modify backup.","Do not modify historical Adapter state files.","Do not modify the canonical runner.","Do not create a second runner.","Do not restart or reload Portal, Adapter or Lookup.","Do not modify Portal, Adapter, Lookup, systemd units, Gitea or cluster configuration."],"historical_state_policy":{"classifications":{"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z":"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS","RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z":"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS"},"do_not_edit_historical_state_files":true},"kind":"homelab-change-plan","linked_preconditions":{"active_config_references":0,"active_process_references":0,"gid":0,"mode":"0755","open_fd_references":0,"path":"/usr/local/sbin/homelab-chat-run-linked","sha256":"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1","size":1901,"uid":0},"objective":"Remove only the unused distinct executable /usr/local/sbin/homelab-chat-run-linked and preserve the canonical runner unchanged.","observed_preconditions":{"checks":{"adapter_self_test":true,"adapter_service_healthy":true,"all_four_historical_mutations_closed_by_exact_evidence":true,"linked_exact_metadata":true,"linked_zero_active_config_references":true,"linked_zero_live_process_references":true,"linked_zero_open_fd_references":true,"lookup_local_health":true,"lookup_service_healthy":true,"portal_local_health":true,"portal_self_test_real_identity":true,"portal_service_healthy":true,"preapply_exactly_two_distinct_runner_files":true,"source_lock:/etc/systemd/system/homelab-command-adapter.service":true,"source_lock:/etc/systemd/system/homelab-command-portal.service":true,"source_lock:/etc/systemd/system/homelab-result-lookup.service":true,"source_lock:/usr/local/sbin/homelab-chat-run":true,"source_lock:/usr/local/sbin/homelab-chat-run-linked":true,"source_lock:/usr/local/sbin/homelab-command-adapter":true,"source_lock:/usr/local/sbin/homelab-command-portal":true,"source_lock:/usr/local/sbin/homelab-result-lookup":true,"target_is_pve01":true,"uid_is_root":true},"historical_classifications":{"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z":"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS","RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z":"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS"},"runner_inventory":{"distinct_count":2,"entries":[{"device":64513,"gid":0,"inode":5148538,"mode":"0750","path":"/usr/local/sbin/homelab-chat-run","resolved":"/usr/local/sbin/homelab-chat-run","sha256":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d","uid":0},{"device":64513,"gid":0,"inode":5148536,"mode":"0755","path":"/usr/local/sbin/homelab-chat-run-linked","resolved":"/usr/local/sbin/homelab-chat-run-linked","sha256":"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1","uid":0}]}},"plan_hash_definition":"PLAN_SHA256 is SHA-256 of UTF-8 canonical JSON of the emitted plan after removing exactly PLAN_SHA256 and plan_hash_definition; ensure_ascii=false, sort_keys=true, separators=(',', ':'), followed by one LF.","plan_hash_excluded_fields":["PLAN_SHA256","plan_hash_definition"],"plan_hash_self_check":true,"plan_id":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","read_only":true,"rollback_contract":{"available":true,"diagnostics_before_rollback":true,"restore_exact_sha256":"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1","restore_gid":0,"restore_mode":"0755","restore_uid":0,"trigger":"Any failed postcondition after linked runner removal."},"rollback_started":false,"schema":1,"scope":{"backup":false,"cluster":false,"gitea":false,"production":true},"source_locks":{"/etc/systemd/system/homelab-command-adapter.service":"74d0f37878652ed9d46b53ae8556bbb30ebd683741f293c3f59b3527876ed2d7","/etc/systemd/system/homelab-command-portal.service":"8453eab30f5c3ccd285fc9f70fff18f564809bb27f7bf84f51f2ba593aa85263","/etc/systemd/system/homelab-result-lookup.service":"4bcc607fd457313f75373ec3d8ec20e7020f13c7cb8a9523fd988a24b0f6609d","/usr/local/sbin/homelab-chat-run":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d","/usr/local/sbin/homelab-chat-run-linked":"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1","/usr/local/sbin/homelab-command-adapter":"a1a7a615c99568bf915d084cc476f0ebf54ab0eedf3ecd578c4b0e072f58c43d","/usr/local/sbin/homelab-command-portal":"97c69bd4fccf7272dadc911281c1503f411bae2dc11dac4b22b87f33d678ae52","/usr/local/sbin/homelab-result-lookup":"17f8d2a2ea219cdc02b0f8e821f8054b05c01de1253419b3d23349a2d383889c"},"status":"PLAN_READY","target":"pve01"} +{"PLAN_ID":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","PLAN_SHA256":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","anti_regression":{"AR-001-EXACT-PLAN-SHA256-BOUND":true,"AR-002-SOURCE-LOCKS-REPEATED-BEFORE-MUTATION":true,"AR-003-ZERO-CONFIG-PROCESS-FD-REFERENCES":true,"AR-004-ROLLBACK-COPY-SHA-MODE-OWNER-VERIFIED":true,"AR-005-HISTORICAL-STATES-UNMODIFIED":true,"AR-006-EXACTLY-ONE-DISTINCT-RUNNER-AFTER-APPLY":true,"AR-007-DIAGNOSTICS-BEFORE-ROLLBACK-CONTRACT":true,"AR-008-CANONICAL-RUNNER-BYTE-IDENTICAL":true,"AR-009-NO-SERVICE-RESTART-OR-RELOAD":true,"AR-010-BACKUP-NOT-TOUCHED":true},"backup_changed":false,"canonical_runner_changed":false,"changes_made":true,"checks_after":{"adapter_self_test":true,"adapter_service_healthy":true,"canonical_exact_metadata":true,"exact_plan_still_bound":true,"historical_closure_still_exact":true,"linked_path_absent":true,"linked_zero_active_config_references":true,"linked_zero_live_process_references":true,"linked_zero_open_fd_references":true,"lookup_local_health":true,"lookup_service_healthy":true,"portal_local_health":true,"portal_self_test_real_identity":true,"portal_service_healthy":true,"postapply_exactly_one_distinct_runner":true,"pre_mutation_diagnostics_exists":true,"rollback_copy_exact":true,"rollback_metadata_exists":true,"source_lock:/etc/systemd/system/homelab-command-adapter.service":true,"source_lock:/etc/systemd/system/homelab-command-portal.service":true,"source_lock:/etc/systemd/system/homelab-result-lookup.service":true,"source_lock:/usr/local/sbin/homelab-chat-run":true,"source_lock:/usr/local/sbin/homelab-command-adapter":true,"source_lock:/usr/local/sbin/homelab-command-portal":true,"source_lock:/usr/local/sbin/homelab-result-lookup":true},"checks_before":{"adapter_self_test":true,"adapter_service_healthy":true,"all_four_historical_mutations_closed_by_exact_evidence":true,"canonical_exact_metadata":true,"exact_plan_bound":true,"linked_exact_metadata":true,"linked_zero_active_config_references":true,"linked_zero_live_process_references":true,"linked_zero_open_fd_references":true,"lookup_local_health":true,"lookup_service_healthy":true,"portal_local_health":true,"portal_self_test_real_identity":true,"portal_service_healthy":true,"preapply_exactly_two_distinct_runner_files":true,"rollback_directory_does_not_exist":true,"source_lock:/etc/systemd/system/homelab-command-adapter.service":true,"source_lock:/etc/systemd/system/homelab-command-portal.service":true,"source_lock:/etc/systemd/system/homelab-result-lookup.service":true,"source_lock:/usr/local/sbin/homelab-chat-run":true,"source_lock:/usr/local/sbin/homelab-chat-run-linked":true,"source_lock:/usr/local/sbin/homelab-command-adapter":true,"source_lock:/usr/local/sbin/homelab-command-portal":true,"source_lock:/usr/local/sbin/homelab-result-lookup":true,"target_is_pve01":true,"uid_is_root":true},"cluster_changed":false,"command_id":"RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z","gitea_changed":false,"historical_state_files_changed":false,"mutation_outcome":"APPLIED","observations_after":{"active_config_references":[],"active_process_references":[],"canonical":{"atime_ns":1785130359620160117,"device":64513,"gid":0,"inode":5148538,"lexists":true,"mode":"0750","mtime_ns":1785130359609255313,"path":"/usr/local/sbin/homelab-chat-run","regular":true,"sha256":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d","size":21321,"symlink":false,"uid":0},"health":{"lookup_http_status":200,"portal_http_status":200},"historical_classifications":{"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z":"CLOSED_SUPERSEDED_BY_SUCCESSFUL_SAME_PLAN_AND_CURRENT_SOURCE_LOCKS","RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z":"CLOSED_BLOCKED_PRECONDITION_NO_MUTATION_PAYLOAD_OUTCOME_OVERRIDES_LEGACY_WRAPPER_FLAG","RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z":"CLOSED_ADAPTER_PREEXECUTION_INTEGRITY_FAILURE_PAYLOAD_NOT_RUN_AND_PAYLOAD_HAS_NO_MUTATION_CALLS"},"historical_closure_facts":{"MINIMAL-RESULT-FEED-EMERGENCY-APPLY-20260727T090755Z":{"payload_exact":true,"public_results":0,"raw_results":0,"state_exact":true,"successor":{"plan_file_sha256":"13b1bd4f98939b222e09e3d3d780e000c1f06d22cd2e41d17e12e62a89e44db6","plan_sha256":"ce45802551553ab4f5f0cef37d29efcdcb1aae0f19d81ab3ab9430fa5ea9704c","report_changes_made":true,"report_file_sha256":"297b1771bd231defa9d1fa4360c5f563f26cd2bcb84ddd55c26bfa9c37ae3091","report_rollback_started":false,"report_status":"OK"},"worker_log_empty_exact":true},"RUNNER-LINKED-REMOVAL-APPLY-20260726T202107Z":{"legacy_wrapper_changes_made":true,"payload_exact":true,"public_payload_outcome_blocked_no_mutation":true,"raw_results":0,"state_exact":true,"worker_log_empty_exact":true},"RUNNER-LINKED-REMOVAL-APPLY-FINAL-20260726T202825Z":{"legacy_wrapper_changes_made":true,"payload_exact":true,"public_payload_outcome_blocked_no_mutation":true,"raw_results":0,"state_exact":true,"worker_log_empty_exact":true},"RUNNER-MUTATION-CONTRACT-ACCEPTANCE-FIX-20260726T210744Z":{"adapter_preexecution_integrity_error":true,"payload_exact":true,"payload_mutating_calls":[],"public_results":0,"raw_results":0,"state_exact":true,"worker_log_sha256":"67696052b4003d1cf0374688de70e22a355b79304c70c76b8e76e270cb10f1b5"}},"historical_closure_failures":[],"linked":{"lexists":false,"path":"/usr/local/sbin/homelab-chat-run-linked"},"open_fd_references":[],"plan_binding":{"bound":true,"plan_evidence_sha256":"365e043ac8e20a5033d98863681b168450ea6f8e76667fbc5d1d3ce2c575e7da","plan_hash_excluded_fields":["PLAN_SHA256","plan_hash_definition"],"plan_hash_self_check":true,"plan_id_actual":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","plan_id_expected":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z","plan_output_sha256_actual":"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199","plan_output_sha256_expected":"9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199","plan_runner_json_sha256":"192eb7d5519d74cec68099a1301dcdcecddf233b69d8e4a1f14a3f2c05be789c","plan_sha256_embedded":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","plan_sha256_expected":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","plan_sha256_recomputed":"cf7e91af618c9c0bd431f74ee6efd44eaa9273e0be6e261f1cc636abdb61884b","plan_status":"PLAN_READY"},"pre_mutation_diagnostics":{"atime_ns":1785172116975440396,"device":64513,"gid":0,"inode":2374218,"lexists":true,"mode":"0600","mtime_ns":1785172116728436784,"path":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json","regular":true,"sha256":"d4bea28341a5fb707c0f8acbe74917a70e51f325cfd5e7c589e1e71b0aabfd15","size":9032,"symlink":false,"uid":0},"rollback_copy":{"atime_ns":1785172116722436696,"device":64513,"gid":0,"inode":2374216,"lexists":true,"mode":"0600","mtime_ns":1785172116716436608,"path":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback","regular":true,"sha256":"5e8725e129fd2055b36fe2fae13fc95fc4b3271074a0e0d4bb7347e7b2f270a1","size":1901,"symlink":false,"uid":0},"rollback_metadata":{"atime_ns":1785172116975440396,"device":64513,"gid":0,"inode":2374217,"lexists":true,"mode":"0600","mtime_ns":1785172116722436696,"path":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json","regular":true,"sha256":"6f92cfde8bd7d2e89e5d39d3314c17747baf2de0a5e90ac9ac57aae21af7d291","size":1055,"symlink":false,"uid":0},"runner_inventory":{"distinct_count":1,"entries":[{"device":64513,"gid":0,"inode":5148538,"mode":"0750","path":"/usr/local/sbin/homelab-chat-run","resolved":"/usr/local/sbin/homelab-chat-run","sha256":"b248a4c32c9cc64e5747e7dce6c7fc0a23f5124a77c71ce72e27a81aceae9d2d","uid":0}]},"self_tests":{"adapter_rc":0,"adapter_stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","adapter_stdout_sha256":"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74","portal_rc":0,"portal_stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","portal_stdout_sha256":"791dded76278f8b7413848dea171c1cf6238e2fdb0bbd47e663982a1dc537b74"},"units":{"adapter":{"ActiveState":"active","ExecMainStatus":"0","Group":"homelab-command-portal","LoadState":"loaded","MainPID":"1637015","NRestarts":"0","Result":"success","SubState":"running","UnitFileState":"enabled","User":"root","show_rc":"0","stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"lookup":{"ActiveState":"active","ExecMainStatus":"0","Group":"homelab-result-lookup","LoadState":"loaded","MainPID":"2718720","NRestarts":"0","Result":"success","SubState":"running","UnitFileState":"enabled","User":"homelab-result-lookup","show_rc":"0","stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"portal":{"ActiveState":"active","ExecMainStatus":"0","Group":"homelab-command-portal","LoadState":"loaded","MainPID":"1759597","NRestarts":"0","Result":"success","SubState":"running","UnitFileState":"enabled","User":"homelab-command-portal","show_rc":"0","stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"}}},"plan_bound":true,"pre_mutation_diagnostics":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/pre-mutation-diagnostics.json","production_changed":true,"removed_path":"/usr/local/sbin/homelab-chat-run-linked","rollback_copy":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/homelab-chat-run-linked.rollback","rollback_directory":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z","rollback_metadata":"/var/lib/homelab-change-rollback/RUNNER-LINKED-REMOVAL-CLOSURE-APPLY-20260727T170405Z/metadata.json","rollback_restored":false,"rollback_started":false,"schema":1,"services_restarted_or_reloaded":false,"status":"OK"} OUTPUT_END CHAT_OUTPUT_END