Skip to content

The agent that grows with you

test(kanban): archive-terminates-worker fixture records a verified spawn fingerprint

teknium1287c56e95afe
diff --git a/tests/hermes_cli/test_kanban_db.py b/tests/hermes_cli/test_kanban_db.py
index 65c9f0ed590..f0a4bb94557 100644
--- a/tests/hermes_cli/test_kanban_db.py
+++ b/tests/hermes_cli/test_kanban_db.py
@@ -1871,6 +1871,8 @@ def test_archive_running_task_terminates_worker(kanban_home, monkeypatch):
t = kb.create_task(conn, title="x", assignee="a")
host = kb._claimer_id().split(":", 1)[0]
kb.claim_task(conn, t, claimer=f"{host}:worker")
+ # A verified spawn: an uncaptured fingerprint would (correctly) refuse the signal.
+ monkeypatch.setattr(kbd, "_process_fingerprint", lambda _pid: "boot:1|777")
kbd._set_worker_pid(conn, t, 54321)
monkeypatch.setattr(kb, "_pid_alive", lambda _pid: False)