molecule-core/workspace-template/tests
rabbitblood f76ddba0f5 fix(tests): test_hermes_phase2_dispatch exec-load needs escalation + __name__
Phase 3 escalation ladder added `from .escalation import ...` to
executor.py. The phase-2 dispatch tests load executor.py via
`exec(compile(src, ...))` with the relative import rewritten — this
broke because (a) the rewrite didn't know about escalation and (b) the
exec namespace lacked `__name__`, which executor.py needs at import
time for `logging.getLogger(__name__)`.

Fix both in all 8 exec sites:
- Rewrite both `from .providers import` AND `from .escalation import`
- Pre-register escalation + providers in sys.modules under the fake
  package name
- Seed the exec namespace with `__name__ = "hermes_executor_under_test"`

54/54 hermes tests pass (28 escalation truth-table + 6 ladder-integration
+ 20 existing phase-2 dispatch).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-16 02:43:02 -07:00
..
__init__.py
conftest.py
test_a2a_cli.py
test_a2a_client.py
test_a2a_executor.py
test_a2a_mcp_server.py
test_a2a_tools_impl.py
test_a2a_tools_module.py
test_adapters.py feat(adapters): add gemini-cli runtime adapter (closes #332) (#379) 2026-04-15 23:30:00 -07:00
test_agent_base_urls.py
test_agent.py
test_approval.py
test_audit.py
test_awareness_client_full.py
test_claude_sdk_executor.py fix(claude-sdk): #160 — probe CLI directly when SDK swallowed the real stderr 2026-04-15 11:50:55 -07:00
test_cli_executor.py
test_common_setup.py
test_compliance.py
test_config.py
test_consolidation.py
test_coordinator_parent.py
test_coordinator_routing.py
test_delegation.py
test_events.py
test_executor_helpers.py
test_first_party_plugins.py
test_governance.py
test_heartbeat.py
test_hermes_adapter.py
test_hermes_escalation.py feat(hermes): escalation ladder — promote to stronger models on transient failure 2026-04-16 02:27:27 -07:00
test_hermes_ladder_integration.py feat(hermes): escalation ladder — promote to stronger models on transient failure 2026-04-16 02:27:27 -07:00
test_hermes_phase2_dispatch.py fix(tests): test_hermes_phase2_dispatch exec-load needs escalation + __name__ 2026-04-16 02:43:02 -07:00
test_hermes_providers.py fix(tests): hermes provider env-var leak broke test_hermes_smoke 2026-04-15 13:59:48 -07:00
test_hermes_smoke.py
test_hitl.py fix(security): hitl task-id ownership + wire fail_open_if_no_scanner in loader (closes #265, #268) 2026-04-15 21:18:52 -07:00
test_main_initial_prompt.py
test_mcp_memory.py fix(a2a-tools): auth_headers on recall_memory + commit_memory (#304) 2026-04-15 19:12:18 -07:00
test_medo.py
test_memory.py fix(tests): update memory fakes for auth_headers kwarg + activity overwrite 2026-04-15 17:29:15 -07:00
test_molecule_ai_status.py
test_namespaces.py
test_openclaw_adapter.py
test_platform_auth.py
test_plugins_builtins_drift.py
test_plugins_builtins.py
test_plugins_registry.py
test_plugins.py
test_preflight.py
test_prompt.py
test_qianfan_provider.py
test_routing_policy.py
test_sandbox.py
test_security_scan.py fix(security): hitl task-id ownership + wire fail_open_if_no_scanner in loader (closes #265, #268) 2026-04-15 21:18:52 -07:00
test_shared_runtime.py
test_skills_loader.py fix(security): hitl task-id ownership + wire fail_open_if_no_scanner in loader (closes #265, #268) 2026-04-15 21:18:52 -07:00
test_skills_watcher.py
test_telemetry.py
test_temporal_workflow.py
test_transcript_auth.py fix(security): /transcript endpoint fails closed when auth token missing (#328) 2026-04-15 21:17:37 -07:00
test_transcript_lines.py feat: GET /workspaces/:id/transcript — live agent session log 2026-04-15 14:29:43 -07:00
test_watcher.py