Skip to content

The agent that grows with you

fix(tests): sibling hangup-protection tests tolerate the branch+HEAD suffix

Teknium0bb239990045
diff --git a/tests/hermes_cli/test_update_hangup_protection.py b/tests/hermes_cli/test_update_hangup_protection.py
index 0171c07dbe8..ce53470d974 100644
--- a/tests/hermes_cli/test_update_hangup_protection.py
+++ b/tests/hermes_cli/test_update_hangup_protection.py
@@ -26,6 +26,10 @@ from hermes_cli.main import (
def test_update_completion_includes_bounded_action_identity(monkeypatch, capsys):
monkeypatch.setenv("HERMES_ACTION_ID", "a" * 32)
+ # These tests pin the action-identity receipt contract, not the branch
+ # display — neutralize the branch+HEAD suffix added for the 2026-08-17
+ # parked-branch incident (covered by test_update_parked_branch_guard.py).
+ monkeypatch.setattr("hermes_cli.update_cmd._branch_head_suffix", lambda: "")
_print_update_completion("✓ Update complete!")
@@ -37,6 +41,7 @@ def test_update_completion_includes_bounded_action_identity(monkeypatch, capsys)
def test_update_completion_rejects_untrusted_action_identity(monkeypatch, capsys):
monkeypatch.setenv("HERMES_ACTION_ID", "not-safe\nforged")
+ monkeypatch.setattr("hermes_cli.update_cmd._branch_head_suffix", lambda: "")
_print_update_completion("✓ Update complete!")