Skip to content

The agent that grows with you

fix(kanban): phantom-session test also binds HERMES_SESSION_ID

teknium1c619a145f111
diff --git a/tests/tools/test_kanban_provenance.py b/tests/tools/test_kanban_provenance.py
index cd3d2d9097e..e3c66095be2 100644
--- a/tests/tools/test_kanban_provenance.py
+++ b/tests/tools/test_kanban_provenance.py
@@ -86,7 +86,9 @@ def test_tool_create_only_stamps_persisted_ambient_session(tmp_path, monkeypatch
state.close()
# Bound the way agent construction publishes it (ContextVar); a bare os.environ value is
- # masked once a surface has cleared its session vars, so it is not a stand-in here.
+ # masked once a surface has cleared its session vars, so it is not a stand-in here. The env
+ # var is set too so the reporter's unverified-env path (the pre-fix stamping seam) is exercised.
+ monkeypatch.setenv("HERMES_SESSION_ID", session_id)
with scoped_current_session_id(session_id):
result = json.loads(kt._handle_create({"title": "child", "assignee": "default"}))
with kbc.connect_closing() as conn: