Gate stops are recorded: every time a rule, the checkpoint, the fence or the reply hold stops work #235

Merged
bvandeusen merged 9 commits from dev into main 2026-11-27 23:46:05 -05:00
Showing only changes of commit 1e5f95bce2 - Show all commits
+4 -1
View File
@@ -364,7 +364,10 @@ def test_a_rule_hold_on_a_closing_turn_does_not_mark_a_rewrite(tmp_path):
with http_sink(by_path={"/api/plugin/reply-rules": HELD}) as (port, seen):
_run(tmp_path, port, t)
assert _run(tmp_path, port, t, active=True) == ""
assert len(seen) == 1
# One reply sent; the rewrite after a rule hold sends nothing. (The hold
# itself is also reported as a gate stop, a separate request.)
assert [e["_path"] for e in seen if e["_path"] == "/api/plugin/reply-rules"] == [
"/api/plugin/reply-rules"]
def test_the_hook_says_nothing_when_nothing_holds(tmp_path):