The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: derive process_manage verbs from the handler table; widen aux-cancellation start-up bound
Tekniumb2c394bcad6c
diff --git a/tests/agent/test_auxiliary_explicit_cancellation.py b/tests/agent/test_auxiliary_explicit_cancellation.pyindex 4fabf8f98f6..8330ab58061 100644--- a/tests/agent/test_auxiliary_explicit_cancellation.py+++ b/tests/agent/test_auxiliary_explicit_cancellation.py@@ -143,10 +143,11 @@ def _cancel_silent_request(worker = threading.Thread(target=_worker, daemon=True)worker.start()- assert started.wait(timeout=1), "request never entered its silent transport"+ # Thread start-up on a loaded CI runner can exceed 1 s; the bound is only "eventually entered the transport".+ assert started.wait(timeout=5), "request never entered its silent transport"cancelled_at = time.monotonic()cancel_event.set()- worker.join(timeout=1)+ worker.join(timeout=5)elapsed = time.monotonic() - cancelled_atassert not worker.is_alive(), "explicit cancellation did not wake the silent request"return result["exc"], elapseddiff --git a/tests/tools/test_process_schema_diet.py b/tests/tools/test_process_schema_diet.pyindex 7148cca2903..0086d87c2fe 100644--- a/tests/tools/test_process_schema_diet.py+++ b/tests/tools/test_process_schema_diet.py@@ -28,11 +28,11 @@ class TestProcessSchemaDiet(unittest.TestCase):self.assertIn("last 200", props["offset"]["description"])def test_enum_is_the_verb_source(self):+ from tools.process_registry import _SESSION_ACTIONSprops = PROCESS_SCHEMA["parameters"]["properties"]- self.assertEqual(- props["action"]["enum"],- ["list", "poll", "log", "wait", "kill", "write", "submit", "close"],- )+ # The enum is the single list of verbs: every session-scoped handler is offered, plus the two+ # non-session verbs dispatched by name in _handle_process.+ self.assertEqual(set(props["action"]["enum"]), set(_SESSION_ACTIONS) | {"list", "handoff"})# No redundant description on the enum param.self.assertNotIn("description", props["action"])