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
