The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
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.pyindex 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, moassert result.returncode == 0, result.stdout + result.stderrmarker = (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]) > 0assert re.fullmatch(r"ct:\d+\.\d{3}", marker[2]), marker+ assert re.fullmatch(r"run:[A-Za-z0-9._-]{1,128}", marker[3]), markerassert started <= int(marker[1]) <= finishedassert type(receipt["finished_at"]) is intassert started <= receipt["finished_at"] <= finished