Skip to content

refactor(config): a default that backs a settings field is read only through the settings, and an import-boundary test holds it #2447

Closed

Description

@dan-petty

Problem or Motivation

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

Target Subsystem

Feature modules that import field-backed defaults; src/devops_cli/config/defaults.py.

Existing Tool Considered

Python's ast module gives the import-boundary test, as the other boundary tests in tests/ do. Nothing new is built.

Acceptance criteria

  • The import-boundary test passes.
  • Each ignored-override site has a test.
  • The tests run offline.

Related

Parent: #1000. Related: #1165, #1016.

Source: #1000

Activity

  1. added
    source/agent
    type/refactor
    status/new
    value/medium
    effort/medium
    on Oct 28, 2026
  2. dan-petty commented on Oct 28, 2026

    @dan-petty
    OwnerAuthor

    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.
    • Related: refactor(config): each setting declares its variable and description on its settings field, and the option, variable and secret registries are derived from it #2444, which asks for a different change. 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.
  3. added
    priority/p2-medium
    on Oct 28, 2026
  4. removed
    status/new
    on Oct 30, 2026
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

    effort/mediumpriority/p2-mediumsource/agenttype/refactorvalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions