From 86fc2012d8e6b6a075ab2ddd54036cd0b6288c7f Mon Sep 17 00:00:00 2001 From: Jer Miller Date: Wed, 22 Jul 2026 16:49:04 -0600 Subject: [PATCH] fix(transparency): source the head-log filename from HEAD_LOG in all messages Three operator messages hardcoded the filename; HEAD_LOG is now the single source across scripts and tests. --- scripts/transparency_publish.py | 7 +++---- tests/test_transparency_publish.py | 3 ++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/transparency_publish.py b/scripts/transparency_publish.py index 0646a6604..d1f4937f8 100644 --- a/scripts/transparency_publish.py +++ b/scripts/transparency_publish.py @@ -351,8 +351,7 @@ def _raise_missing_walk_entry( ), repair=( "stop and audit immutable entries, ledger.jsonl, latest pointer, " - "and transparency-head-log.jsonl for deletion/rollback/split-view " - "before publishing" + f"and {HEAD_LOG} for deletion/rollback/split-view before publishing" ), ) @@ -470,7 +469,7 @@ def _walk_prev_version_chain( actual=f"{record.entry['version']} {record.sha256}", repair=( "stop and audit immutable entries, ledger.jsonl, latest pointer, " - "and transparency-head-log.jsonl before publishing" + f"and {HEAD_LOG} before publishing" ), ) missing_from_version = str(record.entry["version"]) @@ -908,7 +907,7 @@ def _assert_stage_extends_state( actual=_describe_remote_prefix(probe), repair=( "stop and audit immutable entries, ledger.jsonl, latest pointer, " - "and transparency-head-log.jsonl before publishing" + f"and {HEAD_LOG} before publishing" ), ) diff --git a/tests/test_transparency_publish.py b/tests/test_transparency_publish.py index 781ea48e8..6e9d63d66 100644 --- a/tests/test_transparency_publish.py +++ b/tests/test_transparency_publish.py @@ -15,6 +15,7 @@ from scripts.release_candidate_driver import CandidateReport, DriverError from scripts.transparency_core import ( ENTRY_OBJECT_NAME, ENTRY_SIGNATURE_NAME, + HEAD_LOG, LATEST_OBJECT_NAME, LATEST_SIGNATURE_NAME, LEDGER_OBJECT_NAME, @@ -1934,7 +1935,7 @@ def test_prev_version_walk_missing_referenced_entry_is_terminal( assert ( failure.repair == "stop and audit immutable entries, ledger.jsonl, latest pointer, " - "and transparency-head-log.jsonl for deletion/rollback/split-view before publishing" + f"and {HEAD_LOG} for deletion/rollback/split-view before publishing" ) -- 2.51.2