#478 Race Condition: Tool registry lazy load without lock

closed low Created 2025-12-17 01:42 · Updated 2025-12-17 02:01

Description

Edit
engine/tools/registry.py:205-211 _ensure_lazy_tools() has race condition: ```python if not self._lazy_loaded: # CHECK from engine.tools.workflow_branch_executor import ... self.register(...) self._lazy_loaded = True # USE ``` Race: Two threads can import and register simultaneously. FIX: Add threading.Lock with double-check locking.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...