From 287c56e95afe5c528beacb7ca8f7ef0ad6216f2a Mon Sep 17 00:00:00 2001 From: teknium1 <127238744+teknium1@users.noreply.github.com> Date: Wed, 16 Sep 2026 00:22:39 -0700 Subject: [PATCH] test(kanban): archive-terminates-worker fixture records a verified spawn fingerprint _set_worker_pid on a fake PID (54321) now persists the 'unverified' marker, under which the archive path correctly refuses to signal; the test pins the verified-spawn behaviour, so it stubs the fingerprint capture. --- tests/hermes_cli/test_kanban_db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/hermes_cli/test_kanban_db.py b/tests/hermes_cli/test_kanban_db.py index 65c9f0ed59..f0a4bb9455 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)