Skip to content

quality(registry): reduce code duplication in ModuleRegistry #100

@Snider

Description

@Snider

Parent audit: #41

Finding

ModuleRegistry contains duplicated code patterns for registering and resolving different module types, increasing maintenance burden and inconsistency risk.

Fix

Extract common registration/resolution logic into shared methods or a base registry class. Use a strategy or template method pattern to handle type-specific differences.

Acceptance Criteria

  • Common registration logic extracted to shared method
  • Common resolution logic extracted to shared method
  • Type-specific behaviour handled via strategy/template pattern
  • Code duplication reduced by at least 30%
  • All existing tests pass without modification
  • No behavioural changes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions