Skip to content

Open-source skills for designing and reviewing software with AI agents

fix(releases): distinguish declared local source identity

Olivercbcc19d6d46f
diff --git a/distributions/claude/docs/releases.md b/distributions/claude/docs/releases.md
index 5f4e721..7531dfd 100644
--- a/distributions/claude/docs/releases.md
+++ b/distributions/claude/docs/releases.md
@@ -38,8 +38,10 @@ For local preparation, use a fresh output directory:
python scripts/prepare_release.py --tag v0.1.0 --commit "$(git rev-parse HEAD)" --output /tmp/egm-0.1.0-candidate
```
-The local command checks manifest versions and builds artifacts; it does not
-verify Git tag ancestry or run tests. Those checks belong to the workflow.
+The local command checks manifest versions and builds artifacts. It does not
+verify the caller-supplied source SHA, Git tag ancestry, or tests. Those checks
+belong to the workflow. Publish only workflow-built candidates after
+exact-artifact checks. Local builds remain diagnostic candidates.
Exact installed-bundle verification remains tracked in
[#60](https://github.com/google/elephant-goldfish-model/issues/60).
diff --git a/docs/releases.md b/docs/releases.md
index 5f4e721..7531dfd 100644
--- a/docs/releases.md
+++ b/docs/releases.md
@@ -38,8 +38,10 @@ For local preparation, use a fresh output directory:
python scripts/prepare_release.py --tag v0.1.0 --commit "$(git rev-parse HEAD)" --output /tmp/egm-0.1.0-candidate
```
-The local command checks manifest versions and builds artifacts; it does not
-verify Git tag ancestry or run tests. Those checks belong to the workflow.
+The local command checks manifest versions and builds artifacts. It does not
+verify the caller-supplied source SHA, Git tag ancestry, or tests. Those checks
+belong to the workflow. Publish only workflow-built candidates after
+exact-artifact checks. Local builds remain diagnostic candidates.
Exact installed-bundle verification remains tracked in
[#60](https://github.com/google/elephant-goldfish-model/issues/60).
diff --git a/scripts/prepare_release.py b/scripts/prepare_release.py
index 9a1eafa..1d8618c 100644
--- a/scripts/prepare_release.py
+++ b/scripts/prepare_release.py
@@ -38,7 +38,9 @@ def prepare(root: Path, tag: str, output: Path, commit: str) -> None:
checksums.append(f"{digest} {destination.name}\n")
(output / "SHA256SUMS").write_text("".join(checksums), encoding="utf-8")
(output / "RELEASE_NOTES.md").write_text(
- f"# EGM {version}\n\nSource: `{commit}`\nTag: `{tag}`\n\n"
+ f"# EGM {version}\n\nDeclared source: `{commit}`\nTag: `{tag}`\n\n"
+ "Local source identity is caller-supplied and is not verified by this script. "
+ "Publish only workflow-built candidates after exact-artifact checks.\n\n"
"Runtime archives: Claude and OpenAI. Verify downloads with "
"`sha256sum -c SHA256SUMS`.\n\n"
"For CI-built candidates, verify each ZIP with "
diff --git a/tests/unit/test_releases.py b/tests/unit/test_releases.py
index a829cf1..204d486 100644
--- a/tests/unit/test_releases.py
+++ b/tests/unit/test_releases.py
@@ -54,7 +54,10 @@ def test_prepare_exact_archives(release: dict, tmp_path: Path) -> None:
with zipfile.ZipFile(archive) as bundle:
assert bundle.testzip() is None
assert json.loads(bundle.read("plugin.json"))["version"] == version
- assert commit in (destination / "RELEASE_NOTES.md").read_text()
+ notes = (destination / "RELEASE_NOTES.md").read_text()
+ assert f"Declared source: `{commit}`" in notes
+ assert "Local source identity is caller-supplied and is not verified by this script." in notes
+ assert "Publish only workflow-built candidates after exact-artifact checks." in notes
with pytest.raises(FileExistsError):
release["prepare"](ROOT, f"v{version}", destination, commit)