molecule-core/workspace
Molecule AI Infra-Runtime-BE 4a7e1bd988 refactor(workspace): extract idle-loop pending-check guard for direct unit-testing
Follows up on #432 (merged). Extracts _check_delegation_results_pending()
from the inline guard in _run_idle_loop() so tests can call the real
production function directly via patch(builtins.open, ...).

Fixes #401: the previous test used a mirror copy of the guard logic,
which risks drifting from the production implementation over time.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-11 10:49:40 +00:00
..
adapters
builtin_tools fix(a2a_tools): add comment + test coverage for string-form error handling in delegate_task 2026-05-11 05:51:48 +00:00
lib
molecule_audit
platform_tools
plugins_registry
policies
scripts
skill_loader
tests refactor(workspace): extract idle-loop pending-check guard for direct unit-testing 2026-05-11 10:49:40 +00:00
_sanitize_a2a.py fix(security): OFFSEC-003 — boundary-marker escape + shared sanitizer 2026-05-11 02:16:09 +00:00
.coveragerc
a2a_cli.py
a2a_client.py
a2a_executor.py [core-be-agent] fix(#354): wire delegation-results consumer into a2a executor 2026-05-11 02:49:32 +00:00
a2a_mcp_server.py
a2a_response.py fix(workspace): push-mode Queued returns delivery_mode="push" (not silent default "poll") 2026-05-11 02:47:21 +00:00
a2a_tools_delegation.py fix(workspace): complete OFFSEC-003 fix — promote full sanitization to main 2026-05-11 08:51:45 +00:00
a2a_tools_inbox.py
a2a_tools_memory.py
a2a_tools_messaging.py
a2a_tools_rbac.py
a2a_tools.py
adapter_base.py
agent.py
agents_md.py
boot_routes.py
build-all.sh
card_helpers.py
config.py fix(runtime): MODEL_PROVIDER env is misnamed — accept MODEL/MOLECULE_MODEL, deprecate the legacy name 2026-05-10 02:38:14 -07:00
configs_dir.py
consolidation.py
coordinator.py
Dockerfile
entrypoint.sh
event_log.py
events.py
executor_helpers.py
heartbeat.py
inbox_uploads.py
inbox.py
initial_prompt.py
internal_chat_uploads.py
internal_file_read.py
main.py refactor(workspace): extract idle-loop pending-check guard for direct unit-testing 2026-05-11 10:49:40 +00:00
mcp_cli.py
mcp_doctor.py
mcp_heartbeat.py
mcp_inbox_pollers.py
mcp_workspace_resolver.py
molecule_ai_status.py
not_configured_handler.py
platform_auth.py
platform_inbound_auth.py
plugins.py
preflight.py
prompt.py
pytest.ini
rebuild-runtime-images.sh
requirements.txt
runtime_wedge.py
secret_redactor.py
shared_runtime.py
smoke_mode.py
transcript_auth.py
watcher.py