The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(release): staging checks each metadata row's commit and tag, not stamp-only fields
Tekniumefd17a70b5a4
diff --git a/scripts/bundles/release_artifacts.py b/scripts/bundles/release_artifacts.pyindex 488895080b5..3ef9287fd2f 100644--- a/scripts/bundles/release_artifacts.py+++ b/scripts/bundles/release_artifacts.py@@ -200,7 +200,9 @@ def assemble(root: Path, tag: str, commit: str, public_base: str, out: Path,by_name = {item["path"]: item for item in files}packages = []for row in rows:- stamp_matches(row, tag, commit)+ # record() verified each package's own stamp; a row is metadata and carries no baseVersion.+ if row.get("commit") != commit or row.get("tag") != tag:+ raise ValueError("Built package provenance does not match the release")filename = universal_name if row["platform"] == "windows" else row["filename"]item = by_name[filename]packages.append({k: v for k, v in {**row, "artifact": {"url": item["url"], "sha256": item["sha256"]}}.items() if k != "filename"})diff --git a/tests/scripts/test_release_artifacts.py b/tests/scripts/test_release_artifacts.pyindex 8b35e23e50a..692582e5baa 100644--- a/tests/scripts/test_release_artifacts.py+++ b/tests/scripts/test_release_artifacts.py@@ -77,8 +77,9 @@ def staged_candidate(tmp_path, r2_server, https_origin):for platform, arches in [('windows', ('x64', 'arm64')), ('macos', ('x64', 'arm64')), ('termux', ('aarch64',))]:for arch in arches:row = {+ # Exactly the keys record() writes: a row is metadata, not a stamp (no baseVersion).'platform': platform, 'arch': arch, 'tag': tag, 'commit': commit,- 'baseVersion': tag[1:], 'identity': 'Product',+ 'identity': 'Product',}if platform == 'windows':row.update(version=WINDOWS_VERSION, executableVersion=WINDOWS_VERSION,