Record Windows clock recovery on gateway reconnect in the same service process

This commit is contained in:
2026-11-17 21:22:09 +01:00
parent cd681285eb
commit 0fd3053adf
3 changed files with 147 additions and 6 deletions
@@ -0,0 +1,141 @@
{
"environment": "Windows 11 development VM",
"code_revision": "cd681285eb7ddd9ef28c3ab2b7cda5554100b11f",
"signed_windows_gnu_release": "34ef658e-2908-4b30-bcb0-0670cef2aac0",
"release_sequence": 6,
"agent_account": "NT AUTHORITY\\LocalService",
"previous_build_observation": {
"host_observed_utc": "2026-11-17T20:15:00.4933191Z",
"agent_pid": 5716,
"process_start_utc": "2026-11-17T19:22:27.9445667Z",
"agent_sha256": "f30ffac8b9f674c4933d50645bf93f6ee89442608ff73f597cedef3a42172292",
"version": "0.1.4",
"kernel_start_ticks": "639305305975000000",
"cim_start_ticks": "639305305967467440",
"time_and_job_gate": {
"observed_at": "2026-11-17T20:14:58.488618900Z",
"boot_id": "6606a731-843f-81b7-b595-9f157e796c4e",
"connection_generation": 49,
"ready": true,
"clock_qualified": true,
"signed_gate_present": true,
"signed_ready": true,
"local_applied": true
},
"server": {
"observed": "2026-11-17T20:15:01.513667+00:00",
"contact": "2026-11-17T20:14:47.023826+00:00",
"agent": "858a27db-8ba3-4a75-af51-66f6a0909a91",
"generation": 49,
"boot": "6606a731-843f-81b7-b595-9f157e796c4e",
"sync_ready": true,
"version": "0.1.4",
"checkpoint": 1876,
"decision": "9d4480eb-850e-479f-91f0-9d0496c564d4",
"checkpoint_generation": 49,
"signed_at": "2026-11-17T20:14:33.778261+00:00",
"open_jobs": 0
}
},
"recorded_kernel_starts": [
{
"id": 1464,
"boot_start": "2026-11-17T16:43:17.5000000Z"
},
{
"id": 1166,
"boot_start": "2026-11-14T12:26:50.5000000Z"
}
],
"before_switch": {
"host_observed_utc": "2026-11-17T20:20:06.1877633Z",
"agent_pid": 4768,
"process_start_utc": "2026-11-17T20:15:40.4229820Z",
"agent_sha256": "84adb9e98b01ac3584615fe939cc9db3a8eaa932e991fcc3a276719820d017d8",
"version": "0.1.5",
"kernel_start_ticks": "639305305975000000",
"cim_start_ticks": "639305305967467440",
"time_and_job_gate": {
"observed_at": "2026-11-17T20:20:05.780665900Z",
"boot_id": "9a106a1c-ecd9-8df8-9703-ebecdefe599e",
"connection_generation": 50,
"ready": true,
"clock_qualified": true,
"signed_gate_present": true,
"signed_ready": true,
"local_applied": true
},
"server": {
"observed": "2026-11-17T20:20:07.073402+00:00",
"contact": "2026-11-17T20:19:42.294902+00:00",
"agent": "858a27db-8ba3-4a75-af51-66f6a0909a91",
"generation": 50,
"boot": "9a106a1c-ecd9-8df8-9703-ebecdefe599e",
"sync_ready": true,
"version": "0.1.5",
"checkpoint": 1916,
"decision": "d2804af2-91d7-4af7-9775-0c5b8636b05d",
"checkpoint_generation": 50,
"signed_at": "2026-11-17T20:19:45.945755+00:00",
"open_jobs": 0
}
},
"gateway_container": {
"previous_process_start": "2026-11-17T20:18:09.844212972Z",
"new_process_start": "2026-11-17T20:20:26.739676355Z"
},
"stimulus": {
"scope": "Windows test VM only, temporary 2 second wall clock step, per-program outbound TCP 443 block for the reconnect; restart of dedicated test gateway",
"start_utc": "2026-11-17T20:20:09.9211631Z",
"restored_utc": "2026-11-17T20:21:07.6433647Z",
"network_rule_removed": true,
"w32time_resync_exit": 0,
"observed_cim_tick_values_during_test": [
"639305305967467440"
]
},
"observed_with_clock_gate_closed": {
"age_ms": 36287,
"observed_at": "2026-11-17T20:20:46.640391600Z",
"generation": 51,
"clock": false,
"ready": false,
"failure": "TIME_RUNTIME_NO_EVIDENCE",
"cim": "639305305967467440"
},
"after_recovery": {
"host_observed_utc": "2026-11-17T20:21:15.6292048Z",
"agent_pid": 4768,
"process_start_utc": "2026-11-17T20:15:40.4229820Z",
"agent_sha256": "84adb9e98b01ac3584615fe939cc9db3a8eaa932e991fcc3a276719820d017d8",
"version": "0.1.5",
"kernel_start_ticks": "639305305975000000",
"cim_start_ticks": "639305305967467440",
"time_and_job_gate": {
"observed_at": "2026-11-17T20:21:14.669077600Z",
"boot_id": "9a106a1c-ecd9-8df8-9703-ebecdefe599e",
"connection_generation": 51,
"ready": true,
"clock_qualified": true,
"signed_gate_present": true,
"signed_ready": true,
"local_applied": true
},
"server": {
"observed": "2026-11-17T20:21:16.572399+00:00",
"contact": "2026-11-17T20:21:14.076615+00:00",
"agent": "858a27db-8ba3-4a75-af51-66f6a0909a91",
"generation": 51,
"boot": "9a106a1c-ecd9-8df8-9703-ebecdefe599e",
"sync_ready": true,
"version": "0.1.5",
"checkpoint": 1926,
"decision": "1ce41d9d-4b9a-4154-b1e8-e0d72a086de8",
"checkpoint_generation": 51,
"signed_at": "2026-11-17T20:21:11.83742+00:00",
"open_jobs": 0
}
},
"result": "passed",
"interpretation": "The two different boot IDs in the original case map exactly to the kernel start time and the corrected legacy CIM timestamp. During this acceptance CIM returned a constant value. The test observed the clock gate close after the controlled time and connection changes and reopen with a signed checkpoint for the new gateway connection in the same service process."
}