Skip to content

The agent that grows with you

test(update): windows marker timestamp test pins the run-identity line

Teknium4f8fb4b263d1
diff --git a/tests/scripts/desktop_update/test_desktop_update_windows_timestamp.py b/tests/scripts/desktop_update/test_desktop_update_windows_timestamp.py
index a4126efccdd..6bf77d26767 100644
--- a/tests/scripts/desktop_update/test_desktop_update_windows_timestamp.py
+++ b/tests/scripts/desktop_update/test_desktop_update_windows_timestamp.py
@@ -32,9 +32,11 @@ def test_windows_update_writes_locale_independent_marker_and_result(tmp_path, mo
assert result.returncode == 0, result.stdout + result.stderr
marker = (tmp_path / ".hermes-update-in-progress").read_text(encoding="utf-8-sig").splitlines()
receipt = json.loads((tmp_path / ".hermes-update-result.json").read_text(encoding="utf-8-sig"))
- # v2 body (contract C1): the creation-time line is culture-invariant too.
- assert len(marker) == 3 and int(marker[0]) > 0
+ # v2 body (contract C1): the creation-time line is culture-invariant too,
+ # and the claim names its stable run identity (receipt correlation).
+ assert len(marker) == 4 and int(marker[0]) > 0
assert re.fullmatch(r"ct:\d+\.\d{3}", marker[2]), marker
+ assert re.fullmatch(r"run:[A-Za-z0-9._-]{1,128}", marker[3]), marker
assert started <= int(marker[1]) <= finished
assert type(receipt["finished_at"]) is int
assert started <= receipt["finished_at"] <= finished