Skip to content

The agent that grows with you

test(update): follow the SHA-less obligation rule in the reconciliation matrix and completion harness

teknium105c5cbf190d8
diff --git a/tests/hermes_cli/test_update_completion_process.py b/tests/hermes_cli/test_update_completion_process.py
index 40af10a48c4..3d89fddfeae 100644
--- a/tests/hermes_cli/test_update_completion_process.py
+++ b/tests/hermes_cli/test_update_completion_process.py
@@ -271,7 +271,9 @@ def test_interrupt_after_child_success_demotes_gateway_marker_at_boundary(transi
def capture_child(*args, **kwargs):
proc = popen(*args, **kwargs)
- if not children:
+ # Hook the completion child itself: arming the host obligation may probe the checkout
+ # identity through git first (#125952), and that probe is not the process under test.
+ if not children and str(root / "hermes_cli/update_completion.py") in args[0]:
children.append(proc)
wait = proc.wait
kill = proc.kill
diff --git a/tests/hermes_cli/test_update_scoped_reconciliation.py b/tests/hermes_cli/test_update_scoped_reconciliation.py
index 1fabeed5f0b..dc38ba771f8 100644
--- a/tests/hermes_cli/test_update_scoped_reconciliation.py
+++ b/tests/hermes_cli/test_update_scoped_reconciliation.py
@@ -29,7 +29,11 @@ CASES = [
("missing-sibling", {"outcome": "failed", "plan": {"runtimes": [GATEWAY, dict(GATEWAY, profile="beta")]}}, "new", [CURRENT], True),
("stale-successor", {"outcome": "failed", "plan": {"runtimes": [GATEWAY]}}, None, [dict(CURRENT, state="stale", code_sha="old")], True),
("unknown-successor", {"outcome": "failed", "plan": {"runtimes": [GATEWAY]}}, None, [dict(CURRENT, state="unknown")], True),
- ("marker-no-sha", {}, "", [CURRENT], True),
+ # An inventory-less record armed with no SHA is held to the checkout like any other
+ # inventory-less marker (#125952): it clears once every live gateway is current on it and
+ # stays pending while a row is stale.
+ ("marker-no-sha", {}, "", [CURRENT], False),
+ ("marker-no-sha-stale", {}, "", [dict(CURRENT, state="stale", code_sha="old")], True),
("checkout-moved", {}, "old", [CURRENT], True),
("marker-empty-no-receipt", {}, "new", [], True),
("markerless-stamped-manual", {"outcome": "partial", "plan": {"runtimes": [MANUAL]}}, None, [], False),