Skip to content

register_op silently overwrites existing ops #44

Description

@github-actions

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions