-
Notifications
You must be signed in to change notification settings - Fork 150
Closed
Labels
enhancementNew feature or requestNew feature or request
Description
Refactor: explicit confnjection (only roots read ConfigManager)
Why
Deep modules calling ConfigManager().config creates hidden coupling and environment-dependent behavior. This is especially problematic with cloud mode.
Scope
- Establish a rule: Only composition roots read ConfigManager/env vars.
- Refactor high-impact modules to accept:
BasicMemoryConfigexplicitly, or- a narrow Protocol/dataclass containing only required fields.
- Remove/avoid direct
ConfigManager().configusage in non-root modules.
Acceptance criteria
- No new
ConfigManager().configusage outside containers. - Reduce existing usages substantially; remaining ones are tracked with follow-ups.
- Tests pass.
Dependencies
- After containers are in place.
- Related umbrella: issue Refactor: reduce coupling + centralize cloud_mode/config wiring #490 (cloud_mode/config wiring).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request