File: leanpass/plugin_registry.py
In leanpass/plugin_registry.py the register_op function checks if name in _REGISTRY: and then does pass, allowing the subsequent assignment to overwrite the existing entry without warning. This can lead to hard‑to‑debug bugs when a plugin unintentionally replaces a built‑in operation. The function should raise an exception or at least log a warning when a duplicate registration is attempted.
Filed automatically by ai-issue-scan.
File:
leanpass/plugin_registry.pyIn
leanpass/plugin_registry.pytheregister_opfunction checksif name in _REGISTRY:and then doespass, allowing the subsequent assignment to overwrite the existing entry without warning. This can lead to hard‑to‑debug bugs when a plugin unintentionally replaces a built‑in operation. The function should raise an exception or at least log a warning when a duplicate registration is attempted.Filed automatically by ai-issue-scan.