Fix SYSTEM script directory sharing and record original failed VM attempt
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-16 16:23:10 +01:00
parent f80521a61d
commit 318d0249a9
10 changed files with 868 additions and 4 deletions
@@ -0,0 +1,317 @@
{
"schema_version": 1,
"scope": "first_actual_windows_SYSTEM_PowerShell_attempt",
"date": "2026-11-16",
"acceptance_passed": false,
"operation_id": "ce1b969b-66b2-4548-a28c-7e81943507c4",
"plan_id": "0ebc5db7-bcdc-430b-a243-7c79e1c1a5f4",
"plan_hash": "9afc2bacefd937199bf6407c12b1f7c5cad933cd875514f651afcca9eb9fae43",
"job_id": "94047873-5088-433b-bc1b-490d3eafe0da",
"attempt_id": "f071e6d6-8635-42f7-92fa-533c681edd8b",
"script_sha256": "880930d2b5d903a8ee8f4a9d3acad6162ef994b1822d7381c8468230bcf4a86c",
"script_utf8": "$ErrorActionPreference = 'Stop'\r\n$sid = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value\r\nif ($sid -cne 'S-1-5-18') { throw 'Expected SYSTEM process' }\r\nWrite-Output ('Windows-System-MVP:' + $sid)\r\n",
"expected_stdout": "Windows-System-MVP:S-1-5-18\r\n",
"execution_identity": "system",
"preapproval": {
"jobs": 0,
"outbox": 0,
"permits": 0,
"unresolved": 0
},
"central": {
"gate": {
"jobs": 1,
"outbox": 1,
"permits": 1,
"unresolved": 1
},
"audit": {
"origin": "dev_test_browser_simulation",
"simulation": true,
"principal": "simulated-testprincipal-a",
"plan_hash": "9afc2bacefd937199bf6407c12b1f7c5cad933cd875514f651afcca9eb9fae43"
}
},
"result": {
"attempt_id": "f071e6d6-8635-42f7-92fa-533c681edd8b",
"cancel_requested": false,
"job_id": "94047873-5088-433b-bc1b-490d3eafe0da",
"pending_reason": "reconciliation_required",
"result": {
"error_code": "SYNC_EFFECT_UNRESOLVED",
"evidence": {
"postconditions_passed": false
},
"exit_code": null,
"grant_id": "97e705b8-fb2b-4158-84d9-d90595d1ce6e",
"output_truncated": false,
"reboot_required": false,
"source_id": "authoritative_sync",
"stderr": [],
"stdout": []
},
"revision": 2,
"state": "unknown"
},
"scope_activation": {
"schema_version": 1,
"activated": true,
"case_id": "5fb6d7c9-d2b4-472c-b4fc-2ffea27e3c33",
"expires_at": "2026-11-16T15:15:01.229153+00:00",
"policy_sha256": "c4993009e62ef9c384ea11a2f201566c2e657c1ba3b452410bb2a9d4774b0169",
"roles": {
"api": {
"container_id": "9e5643110ac1c860f98d594003884d5097dd345acb533cf51c9f53382503f82f",
"image": "sha256:a7fc4243fee414ab6c85c5f4d207b6428005b77ab06903916138a83b4b74e1d4"
},
"gateway": {
"container_id": "f543d60561ed4cc0db5ef928cc67667dab5cbc109f4b67fa1e9924198f290769",
"image": "sha256:a7fc4243fee414ab6c85c5f4d207b6428005b77ab06903916138a83b4b74e1d4"
}
},
"jobs_created": false,
"approvals_created": false,
"system_target_job_executed": false,
"automatic_retry": false
},
"native_original_witness": {
"agent": {
"consumption_count": 1,
"error_code": "SYSTEM_SCRIPT_EFFECT_UNRESOLVED",
"evidence": {
"postconditions_passed": false
},
"exit_code": null,
"expected_stdout_matches": false,
"finished_present": false,
"original_boot_id": "a9ad0895-5a96-8f2c-8fb6-cfdc2d5225ea",
"original_signature_verified": true,
"outcome_count": 1,
"outcome_equals_finished": false,
"outcome_sha256": "1f284b66578d61c4364cc0060a67ce9b467e1d661ed8885804391b51a6f18b1a",
"output_truncated": false,
"request_sha256": "09aa6be3617017e4169f9d83fbfc4cbef43712513a02229a8360dd6a708ee69c",
"reserved_at": "2026-11-16T15:03:57.014734800Z",
"start_count": 1,
"start_sha256": "f6134c00143b0939a92d2690b8c3a034d332d47241c65a812dcf8f78ead9cfcc",
"state": "unknown",
"stderr_bytes": 0,
"stdout_bytes": 0,
"stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"agent_id": "63ea15b2-0643-403d-b5b4-cba1288dbea3",
"asset_id": "a176520e-8a91-4e93-a78b-8e7620f430e0",
"assignment_version": 1,
"attempt_id": "f071e6d6-8635-42f7-92fa-533c681edd8b",
"enrollment_generation": 1,
"execution_requested": false,
"grant_id": "97e705b8-fb2b-4158-84d9-d90595d1ce6e",
"helper": {
"consumption_count": 1,
"error_code": "SYSTEM_SCRIPT_EFFECT_UNRESOLVED",
"evidence": {
"postconditions_passed": false
},
"exit_code": null,
"expected_stdout_matches": false,
"finished_present": false,
"original_boot_id": "a9ad0895-5a96-8f2c-8fb6-cfdc2d5225ea",
"original_signature_verified": true,
"outcome_count": 1,
"outcome_equals_finished": false,
"outcome_sha256": "1f284b66578d61c4364cc0060a67ce9b467e1d661ed8885804391b51a6f18b1a",
"output_truncated": false,
"request_sha256": "09aa6be3617017e4169f9d83fbfc4cbef43712513a02229a8360dd6a708ee69c",
"reserved_at": "2026-11-16T15:03:57.087305100Z",
"start_count": 1,
"start_sha256": "cf83fc9acbfc1429cca452498c44282f7748d852d73b8221bc0721af60e276d9",
"state": "unknown",
"stderr_bytes": 0,
"stdout_bytes": 0,
"stdout_sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"helper_ledger_file_id": {
"file_id": [
239,
142,
3,
0,
0,
0,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"volume_serial": 9815088561147542064
},
"intent": {
"body_sha256": "31c9ddc35a7c09de9e8ec75c835e3dca9e8a816bc031b4b1c1396bd3a2ea46df",
"cancel_requested": 0,
"connection_generation": 221,
"count": 1,
"initialized": true,
"mirror_outcome_sha256": "1f284b66578d61c4364cc0060a67ce9b467e1d661ed8885804391b51a6f18b1a",
"original_boot_id": "a9ad0895-5a96-8f2c-8fb6-cfdc2d5225ea",
"original_signature_verified": true,
"phase": "may_have_dispatched",
"recorded_at": "2026-11-16T15:03:57.014734800Z",
"request_sha256": "09aa6be3617017e4169f9d83fbfc4cbef43712513a02229a8360dd6a708ee69c"
},
"intent_file_id": {
"file_id": [
163,
143,
3,
0,
0,
0,
3,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"volume_serial": 9815088561147542064
},
"job_id": "94047873-5088-433b-bc1b-490d3eafe0da",
"local_job": [
"unknown",
"97e705b8-fb2b-4158-84d9-d90595d1ce6e"
],
"original_helper_file_ids_verified": true,
"plan_hash": "9afc2bacefd937199bf6407c12b1f7c5cad933cd875514f651afcca9eb9fae43",
"private_key_read": false,
"public_binding_sha256": "9239ee9f4142735867e77451478bf309fbf449d730a0ede6c958bc8018830dde",
"read_only": true,
"schema_version": 1,
"script_sha256": "880930d2b5d903a8ee8f4a9d3acad6162ef994b1822d7381c8468230bcf4a86c",
"tenant_id": "11111111-1111-4111-8111-111111111111"
},
"native_readonly_sharing_probe": {
"rows": [
{
"win32_error": 32,
"share": 1,
"opened": false
},
{
"win32_error": 0,
"share": 3,
"opened": true
}
],
"read_only": true,
"new_files_created": false,
"schema_version": 1,
"helper_pid": 1304,
"utc": "2026-11-16T15:15:04.2739993Z",
"process_started": false
},
"last_original_sync_metadata": {
"agent": {
"checkpoint": 10784,
"fault": null,
"generation": 221,
"helper_checkpoint": 413,
"last_decision": "0442c732-8226-4c25-9615-7f007e24b269",
"pending_request": null
},
"helper": {
"agent_checkpoint": 10783,
"checkpoint": 413,
"fault": null,
"generation": 221,
"last_decision": "193b951b-a3aa-46e2-9f48-1a57f315078e"
},
"helper_decisions": [
{
"checkpoint": 412,
"decision_id": "193b951b-a3aa-46e2-9f48-1a57f315078e",
"request_bytes": 6901,
"response_bytes": 12744
},
{
"checkpoint": 411,
"decision_id": "c4a6d90a-6568-4b83-a57a-444f98c12aab",
"request_bytes": 6901,
"response_bytes": 12737
}
],
"jobs": [
{
"attempt_id": "78295f74-4565-459a-87b0-641a8b95feec",
"grant_present": false,
"job_id": "0a50aae9-a784-4535-b62f-ef24c301d546",
"state": "expired"
},
{
"attempt_id": "ebb387cf-ebb1-4609-a318-32f44d774d11",
"grant_present": true,
"job_id": "5f1ffef4-2bb6-4c7e-a3a0-fb619144b4f8",
"state": "succeeded"
},
{
"attempt_id": "e2ee25cd-0e23-4c3c-aaa2-3048d232622a",
"grant_present": true,
"job_id": "645ad11b-9ecd-4efe-8f92-8ad2fb6ed5cf",
"state": "succeeded"
},
{
"attempt_id": "f071e6d6-8635-42f7-92fa-533c681edd8b",
"grant_present": true,
"job_id": "94047873-5088-433b-bc1b-490d3eafe0da",
"state": "unknown"
}
],
"requests": [
{
"decoded": {
"checkpoint": 10784,
"helper_checkpoint": 413,
"previous_decision_id": "193b951b-a3aa-46e2-9f48-1a57f315078e",
"request_id": "09952f6d-45f3-4330-82f3-87ebf363eb3b"
},
"generation": 221,
"request_bytes": 6901,
"request_id": "09952f6d-45f3-4330-82f3-87ebf363eb3b",
"response_present": true
},
{
"decoded": {
"checkpoint": 10783,
"helper_checkpoint": 412,
"previous_decision_id": "c4a6d90a-6568-4b83-a57a-444f98c12aab",
"request_id": "f07ea08e-84f2-48f4-8476-6921057db9af"
},
"generation": 221,
"request_bytes": 6901,
"request_id": "f07ea08e-84f2-48f4-8476-6921057db9af",
"response_present": true
}
]
},
"original_witness_binary_sha256": "cd21eef628abe870ed3ca542b66de1d25efb3c6c1e2ce094de029efb8017449e",
"retry_performed": false,
"original_result_rewritten": false,
"new_VM_identity_created": false,
"scope_expired_at": "2026-11-16T15:15:01.229153+00:00",
"source_receipts_sha256": {
"system-first-job-pending-checkpoint.json": "91878a886c57a764f2ceb3309c77ed45837310fd937176960c232479b65302ce",
"system-first-job-second-read.json": "6bf0cf2ee098cf3d5ed803b83c5def3ecac36e8270d6e4b1dcc03d73a507e13b",
"system-first-job-central-evidence.json": "134a6ace402f5e47e0aeb6b333e2a062f213d0dfaaed099a8617a6704918a0d6",
"system-script-directory-sharing-readonly.json": "72c9fece0c1f3ba62386614f230734154ff764e91aeeb1509f9f9257195adcde",
"system-first-job-direct-sync-readonly.json": "9e243dc7e47af9e503edb6e72029731dd68adc09acaeba62f945dc973c24c3f1"
}
}
@@ -0,0 +1,61 @@
{
"schema_version": 1,
"sharing_fix_build": {
"schema_version": 1,
"compilation_source": "devstate/windows-system-script-sharing-fix/source",
"base_compilation_source": "devstate/windows-helper-apply-fix/source",
"builder": "sha256:1b2fd985d2c1fcc3545ace602405dc68fa899201bd8a73fa319ff96377203fa9",
"target": "x86_64-pc-windows-gnu",
"changed_files": {
"crates/agent-windows/src/system_script.rs": {
"before": "a3563e1aa8327b2e7046c7cdfb4f45ac213fec6ff7d477820ea2676a266c1695",
"after": "6fb894c2dfb3f0895d0407ab80cd69e3b83fcb8349691af2c01027dcc2fcfc1b"
}
},
"all_other_source_bytes_identical": true,
"source_files": 251,
"clippy_all_targets_D_warnings": true,
"release_link": true,
"postprocess": "x86_64-w64-mingw32-strip --strip-all",
"artifacts": {
"rmm-agent-windows.exe": "98dcafecfc19e57d8a07237ca6c1e15adccfebd5faac6be13855f09d4f2282d9",
"rmm-helper-windows.exe": "325d2faf61aed9b6011f54bdd72a16b9979d62970e25df577fc0ca6da07c4446"
},
"unstripped_artifacts": {
"rmm-agent-windows.exe": "47de97986c50f7000bf10b382e9f1b0eb59fdba49599560b350de63bea5cf312",
"rmm-helper-windows.exe": "60915069bb43655534cf87134130ccbd58ec8da421194e3f131ee69ab0279243"
},
"clippy_log_sha256": "94bc9a70151a992231a23cd87521dce8aa8bb4824ea7ccb2d71de86a1acaed53",
"build_log_sha256": "9cca3613dae2c47a7b11f3ed45589e151621f9eb06a8d7225dd26cacdfe4c9a1",
"deployed": false,
"new_job_executed": false
},
"sharing_fix_build_receipt_sha256": "f238392bc842b1c2e419c09cdc45c868384699f1ec82af7970e50434d5a57f6a",
"original_readonly_witness_build": {
"compilation_source": "devstate/windows-system-script-witness/source",
"source_sha256": "7a5d4d9b4bd722b8bb3202b0e6789638175347c4672041b8ff6f4a6d79e36c3c",
"builder": "sha256:1b2fd985d2c1fcc3545ace602405dc68fa899201bd8a73fa319ff96377203fa9",
"target_cache": "devstate/windows-alignment-verify-target",
"clippy_D_warnings": true,
"build": true,
"target_executed": true,
"job_id": "94047873-5088-433b-bc1b-490d3eafe0da",
"grant_id": "97e705b8-fb2b-4158-84d9-d90595d1ce6e",
"example_name_in_actual_build": "windows_system_script_result_witness",
"repo_source_alias": "crates/agent-windows/examples/windows_system_result_witness.rs",
"repo_alias_sha256": "7a5d4d9b4bd722b8bb3202b0e6789638175347c4672041b8ff6f4a6d79e36c3c",
"binary_sha256": "cd21eef628abe870ed3ca542b66de1d25efb3c6c1e2ce094de029efb8017449e",
"raw_binary_sha256": "df888f33a593e967d93d066e47ce6470d719885dae35a6ba4e49765fa1c2f4e8",
"postprocess": "x86_64-w64-mingw32-strip --strip-all",
"native_executed": true,
"native_report": "devstate/windows-system-script-witness/native-readonly-result.json",
"native_report_sha256": "5cf471767a0b8e35db6a013dd690807bec7df942ba8a0d635e56f3b0c7fc054e",
"result_scope": "read-only actual original UNKNOWN; no execution/no repair",
"sdk_requested_job_execution": false,
"repair_executed": false
},
"original_readonly_witness_receipt_sha256": "db1058750616dc706d70ebb16d600212072002a74a7647cf6bde5f8fa8012e2e",
"new_tests_written": false,
"fixed_pair_installed_on_VM": false,
"successful_SYSTEM_job_after_fix": false
}