You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
refactor(config): a default that backs a settings field is read only through the settings, and an import-boundary test holds it #2447
Part 3 of #1000. A DEFAULT_* value that backs a Settings field can also be imported by a feature module, which then ignores a config.yaml or environment override. On origin/main 4226904, 26 such names are imported in 39 files outside config/, for example DEFAULT_HTTP_TIMEOUT_SECONDS (10 files), DEFAULT_DATA_DIR (5), DEFAULT_RAG_TOP_K (5) and DEFAULT_OTEL_ENDPOINT (2). Some of them only name the default of a function that callers override; the rest may ignore an override.
Proposed Solution & Architectural Design
Each site outside config/ reads the setting through Settings, or names its own constant when the value is not the setting.
An import-boundary test lists the importers of each field-backed DEFAULT_* outside config/ and finds none.
The pull request lists each site where an override was ignored, with a test for each that sets the override and checks that it is used. If there is none, it says so.
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
Type: type/refactor. The title declares a refactor of how feature modules access configuration defaults.
Priority: P2-Medium. It fixes a correctness gap where overrides may be ignored, but it is one part of a larger refactor and does not block users directly.
Value: Medium. It ensures that config.yaml and environment overrides are respected for 26 defaults across 39 files.
Effort: Medium. It touches 26 names in 39 files and adds an import-boundary test, but no new tooling is needed.
Activity
dan-petty commentedon Oct 28, 2026
Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.
The title declares a refactor of how feature modules access configuration defaults.It fixes a correctness gap where overrides may be ignored, but it is one part of a larger refactor and does not block users directly.It ensures that config.yaml and environment overrides are respected for 26 defaults across 39 files.It touches 26 names in 39 files and adds an import-boundary test, but no new tooling is needed.Both are parts of #1000 in the config subsystem, but #2444 derives registries from settings fields while this item enforces that defaults are read through Settings.