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): one source chain declares the resolution order of every setting, through pydantic-settings sources #2445
Part 2 of #1000. The resolution order of a setting is in two places. load_settings (config/settings.py) merges the global and project files and then _apply_env_overrides sets each variable with dotted_set. Settings is a BaseSettings, but load_settings builds it with model_validate, so pydantic-settings reads no source. Credentials resolve in another chain (security/secrets.py: keyring, Vault, environment, configuration). telemetry_from_environment applies a third, partial order.
pydantic-settings settings_customise_sources, YamlConfigSettingsSource and custom sources. The design states which part pydantic-settings cannot hold, with the evidence.
Acceptance criteria
The order is declared in one place, and the table test passes.
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 item reorganises existing resolution logic into one pydantic-settings source chain without changing external behaviour.It is a maintainability refactor that depends on Part 1 and does not fix a user-facing defect.It removes three hand-written resolution chains and lowers the risk of inconsistent setting resolution.It touches settings.py and secrets.py, adds custom sources, and requires a table test across five layers.Both are parts of #1000; #2444 adds field metadata, this item declares the resolution order from that metadata.chore(main): release 0.11.0 (#2501)