CHAT_OUTPUT_BEGIN
COMMAND_ID=HOMELAB-KB-V2-R3-ARTIFACTS-R2-READ-ONLY-20260806T031000Z
STATUS=OK
RC=0
HOST=pve01
MODE=verify
COMPONENT=cluster-knowledge-base-error-system
REFERENCE_REGISTER_CHECK=OK
REFERENCE_SHA256=5763f2f8edc75fcf6f3951f8c95896d1cc112ceccb6cf5b64a383f540a4deb8e
ERROR_REGISTER_CHECK=OK
ERROR_REGISTER_SHA256=24934a2c7fa5c26f6e828583c4aefac7f143b40c0171736ed7571e617d55ab83
COMMAND_SHA256=a9624397df1723ee350c2e746877831366fbb9e220167e1ae8ed828a6831142a
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=6e294c0bf68460c4e442f13f6a9ddfac2bdbf5cf3222f078e4bc75b8058e49f0
SANITIZED_OUTPUT_SHA256=6e294c0bf68460c4e442f13f6a9ddfac2bdbf5cf3222f078e4bc75b8058e49f0
OUTPUT_BEGIN
HOMELAB_RESULT_CONTRACT={"changes_made":false,"command_id":"HOMELAB-KB-V2-R3-ARTIFACTS-R2-READ-ONLY-20260806T031000Z","command_rc":0,"control_plane_error":null,"mutation_outcome":"NO_MUTATION","output_truncated_in_json":false,"rc":0,"rollback_restored":null,"rollback_started":false,"status":"OK","version":1}
{"api_contract":{"body_sha256":"5cf3d367ba1e073177421344d82490f226e044999c90e5b336d5ccdf21c9b027","branch_delete_route":true,"delete_branch_after_merge_field":true,"json_valid":true,"merge_route":true,"status":200},"candidate_branch_validation":{"changed_paths":[],"commit":"542f34b5903a437f43c869c81d3736dbfe081b81","commit_matches_ref":true,"gate_rc":0,"gate_stderr_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","gate_stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855","scope_exact":false,"unittest_rc":0,"unittest_stderr_sha256":"779af8266c0843c01e697c3a9c9dbfa9f761abbb91a3ffc50577ccb613e8f465","unittest_stdout_sha256":"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"},"changes_made":false,"command_id":"HOMELAB-KB-V2-R3-ARTIFACTS-R2-READ-ONLY-20260806T031000Z","command_rc":0,"control_plane_error":null,"diagnosis":{"candidate_source_preserved":false,"classification":"R3_POST_ROLLBACK_STATE_REQUIRES_RECONCILIATION","content_restored":true,"mutation_performed":false,"stale_branch_artifacts_present":true},"exact_error":null,"identity":{"api_identity_verified":true,"credential_values_exposed":false,"git_ls_remote_verified":true,"repository_push_permission_verified":true},"identity_confirmed":true,"main":{"commit":"b1ae1b8449e602024f897436e3fd9ea87f26ee38","entire_tree_restored":true,"expected_restored_commit":"b1ae1b8449e602024f897436e3fd9ea87f26ee38","original_commit":"fe1221b06643db3b00a621b0230f92a46a4edc2b","original_tree":"843fc875013251b22f39c2abec2ffb6c7d6e0fa7","restored_tree":"843fc875013251b22f39c2abec2ffb6c7d6e0fa7","scope_diff":[],"scope_restored":true},"mutation_outcome":"NO_MUTATION","next_step":"Prepare no content mutation unless this result proves the candidate branch is intact and the restored main tree equals the original tree. Then use one reversible reconciliation transaction: create a fresh branch from restored main using the validated candidate tree, merge through PR with server-side branch deletion, and clean stale service branches using only the API route proven by swagger.","output_truncated_in_json":false,"previous_exact_result":{"capsule_sha256":"0639eb9ff4709f63ac449c300ce5136025bf94efb17f481f4a938e199dffb5ca","command_id":"HOMELAB-KB-V2-R3-ARTIFACTS-BIND-RO-20260806T030000Z","failed_target":{"capsule_sha256":"0864537c0c97d114463407e92947466570bc8cf77c8e1db3c9769d024681705c","changes_made":false,"command_id":"HOMELAB-KB-V2-R3-ARTIFACTS-READ-ONLY-20260806T025500Z","command_rc":3,"exact_error":{"code":"UNEXPECTED_R3_ARTIFACT_DIAGNOSTIC_FAILURE","exception":"CommandFailure"},"mutation_outcome":"NO_MUTATION","output_sha256":"1ca23e53c843e0658fb4ec56e02242fe8e9c7e8fafb7410e2faa5d21c8992ef8","rc":3,"runner_json_sha256":"e0ba7dbecde7785510dbe130455a27c7dee8ed1887b4cfea27c763fae34b4d80","runner_text_sha256":"92c8ac982a84db1c5020ce5deec1d3df8df675205d1d065646bd3cc1987787fb","status":"ERROR"},"identity_confirmed":true,"output_complete":true,"output_sha256":"76b3e98a5d726e64e4755d9688cfcd0901421d4deedf1236cf3284301c3acf5b","r3_mutation":{"capsule_sha256":"b59e54aac6bf04b7ddc5b4e422d0d2b6cf55ac2dbebb15739abba820b6afe1e0","changes_made":true,"command_id":"HOMELAB-KB-V2-FINAL-PR-MERGE-R3-20260806T023500Z","command_rc":2,"exact_error":"TEMP_BRANCH_DELETE_FAILED","mutation_outcome":"ROLLED_BACK","output_sha256":"d4449c12b9dfcd65b4f3651f3a1d6384256adb46de44f09d0a5097dd02880d7d","rc":2,"restored_main":"b1ae1b8449e602024f897436e3fd9ea87f26ee38","rollback_restored":true,"rollback_started":true,"runner_json_sha256":"9c3879c1043d32f6000e47233499f45e97bc2551d75c824dacf46d1d9c95097c","runner_text_sha256":"542ed75eef4463e073a4e805f49541ac794cf0b3d44e5cbc1b9bad11ab5f50a4","status":"ERROR"},"runner_document_rc":0,"runner_json_sha256":"d4189d7261022dfaecc0085d4082432e57f5e546f45065134c418544efecf546","runner_rc":0,"runner_text_sha256":"e37f3ea3ef6cf4f40aca11184ec032fa86543777735050401639558954e613a1","runner_wrapper_matches_document":true,"slot_directory_count":12,"slot_lane":"9"},"pull_requests":{"items":[{"base":"main","head":"homelab/cluster-kb-error-system-v2-rollback-1c336c7c9601","merge_commit_sha":"b1ae1b8449e602024f897436e3fd9ea87f26ee38","merged":true,"number":4,"state":"closed"},{"base":"main","head":"homelab/cluster-kb-error-system-v2","merge_commit_sha":"1c336c7c960187febdde5a13ac3bc5139dc84df7","merged":true,"number":3,"state":"closed"}],"open_service_pr_count":0,"service_pr_count":2},"rc":0,"rollback_restored":null,"rollback_started":false,"schema":"homelab.r3-rollback-artifacts.v2","service_branches":{"branches":[{"api_status":200,"branch":"homelab/cluster-kb-error-system-v2","commit":"542f34b5903a437f43c869c81d3736dbfe081b81","protected":false,"user_can_merge":true,"user_can_push":true},{"api_status":200,"branch":"homelab/cluster-kb-error-system-v2-rollback-1c336c7c9601","commit":"b2853f444fe8725a590f96bf40c45bd694eddfb4","protected":false,"user_can_merge":true,"user_can_push":true}],"candidate_branch_present":true,"count":2,"rollback_branch_count":1},"status":"OK"}

OUTPUT_END
CHAT_OUTPUT_END
