diff --git a/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z.json b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z.json new file mode 100644 index 0000000..75fcf2e --- /dev/null +++ b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z.json @@ -0,0 +1,38 @@ +{ + "schema_version": 1, + "channel": "homelab-runtime", + "command_id": "RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z", + "status": "OK", + "rc": 0, + "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", + "reference_register_checked": true, + "reference_sha256": "5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e", + "error_register_checked": true, + "error_register_sha256": "24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83", + "command_sha256": "899e47cd886422f00cbbf62472a48bb94739f0e8dda970a24348c062d750be99", + "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": 0, + "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": "9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199", + "sanitized_output_sha256": "9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199", + "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" +} diff --git a/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z.txt b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z.txt new file mode 100644 index 0000000..e8dc64f --- /dev/null +++ b/runtime/history/RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z.txt @@ -0,0 +1,33 @@ +CHAT_OUTPUT_BEGIN +COMMAND_ID=RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z +STATUS=OK +RC=0 +HOST=pve01 +MODE=verify +COMPONENT=runner-linked-removal-plan +REFERENCE_REGISTER_CHECK=OK +REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e +ERROR_REGISTER_CHECK=OK +ERROR_REGISTER_SHA256=24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83 +COMMAND_SHA256=899e47cd886422f00cbbf62472a48bb94739f0e8dda970a24348c062d750be99 +DUPLICATE_FAILED_COMMAND_BLOCKED=false +EXECUTION_STARTED=true +CHANGE_DECLARED=false +RESULT_CONTRACT_VALID=true +RESULT_CONTRACT_STATUS=NOT_APPLICABLE +RESULT_CONTRACT_ERROR=NONE +COMMAND_RC=0 +CHANGES_MADE=false +ROLLBACK_STARTED=false +ROLLBACK_RESTORED=null +MUTATION_OUTCOME=NO_MUTATION +SANITIZED=yes +SECRETS_INCLUDED=no +PRIVATE_ADDRESSES_INCLUDED=no +RAW_EVIDENCE_SHA256=9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199 +SANITIZED_OUTPUT_SHA256=9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199 +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"} + +OUTPUT_END +CHAT_OUTPUT_END diff --git a/runtime/latest.json b/runtime/latest.json index c9fe17f..75fcf2e 100644 --- a/runtime/latest.json +++ b/runtime/latest.json @@ -1,19 +1,19 @@ { "schema_version": 1, "channel": "homelab-runtime", - "command_id": "RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX1-20260727T165053Z", + "command_id": "RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z", "status": "OK", "rc": 0, "host": "pve01", "mode": "verify", "component": "runner-linked-removal-plan", - "started_at_utc": "2026-07-27T16:52:46Z", - "finished_at_utc": "2026-07-27T16:52:46Z", + "started_at_utc": "2026-07-27T16:56:35Z", + "finished_at_utc": "2026-07-27T16:56:36Z", "reference_register_checked": true, "reference_sha256": "5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e", "error_register_checked": true, "error_register_sha256": "24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83", - "command_sha256": "96196bd9215a78fb99233ff2583c4b79224ee6b6d4d44ed379c0fbe6f2f6934a", + "command_sha256": "899e47cd886422f00cbbf62472a48bb94739f0e8dda970a24348c062d750be99", "duplicate_failed_command_blocked": false, "block_reason": null, "execution_started": true, @@ -30,9 +30,9 @@ "secrets_included": false, "private_addresses_included": false, "raw_evidence_retained_locally": true, - "raw_evidence_sha256": "14fbe176edb23de1b414d60665927b9ca325eaf6e7ee519143fac05e76f9c1ed", - "sanitized_output_sha256": "14fbe176edb23de1b414d60665927b9ca325eaf6e7ee519143fac05e76f9c1ed", + "raw_evidence_sha256": "9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199", + "sanitized_output_sha256": "9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199", "output_truncated_in_json": false, "full_sanitized_output_url": "https://git.gram1.ru/.well-known/homelab-runtime/latest.txt", - "output": "{\"PLAN_SHA256\":\"42bf4e33ea018e163d2f775057c4ab173c3f0a20bc7ef5423c723b2ec48ce40a\",\"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},\"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\":\"SHA256 of UTF-8 canonical JSON of this plan without PLAN_SHA256 and plan_hash_definition, sort_keys=true, separators=(',', ':'), followed by one LF.\",\"plan_id\":\"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX1-20260727T165053Z\",\"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_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" } diff --git a/runtime/latest.txt b/runtime/latest.txt index c97306a..e8dc64f 100644 --- a/runtime/latest.txt +++ b/runtime/latest.txt @@ -1,5 +1,5 @@ CHAT_OUTPUT_BEGIN -COMMAND_ID=RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX1-20260727T165053Z +COMMAND_ID=RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX2-20260727T165537Z STATUS=OK RC=0 HOST=pve01 @@ -9,7 +9,7 @@ REFERENCE_REGISTER_CHECK=OK REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e ERROR_REGISTER_CHECK=OK ERROR_REGISTER_SHA256=24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83 -COMMAND_SHA256=96196bd9215a78fb99233ff2583c4b79224ee6b6d4d44ed379c0fbe6f2f6934a +COMMAND_SHA256=899e47cd886422f00cbbf62472a48bb94739f0e8dda970a24348c062d750be99 DUPLICATE_FAILED_COMMAND_BLOCKED=false EXECUTION_STARTED=true CHANGE_DECLARED=false @@ -24,10 +24,10 @@ MUTATION_OUTCOME=NO_MUTATION SANITIZED=yes SECRETS_INCLUDED=no PRIVATE_ADDRESSES_INCLUDED=no -RAW_EVIDENCE_SHA256=14fbe176edb23de1b414d60665927b9ca325eaf6e7ee519143fac05e76f9c1ed -SANITIZED_OUTPUT_SHA256=14fbe176edb23de1b414d60665927b9ca325eaf6e7ee519143fac05e76f9c1ed +RAW_EVIDENCE_SHA256=9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199 +SANITIZED_OUTPUT_SHA256=9982e3247e0944f7671a3d882e1ea49e4e404abcf6dba3c6cb0a3d503aa10199 OUTPUT_BEGIN -{"PLAN_SHA256":"42bf4e33ea018e163d2f775057c4ab173c3f0a20bc7ef5423c723b2ec48ce40a","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},"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":"SHA256 of UTF-8 canonical JSON of this plan without PLAN_SHA256 and plan_hash_definition, sort_keys=true, separators=(',', ':'), followed by one LF.","plan_id":"RUNNER-LINKED-REMOVAL-CLOSURE-PLAN-FIX1-20260727T165053Z","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_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"} OUTPUT_END CHAT_OUTPUT_END