Skip to content

feat(config): settings load caching #407

Closed

Description

@dan-petty

Context & Rationale

load_settings() re-reads and re-parses the configuration files on every call at a measured 10.8 ms, and it is consulted across the whole codebase — including inside per-request paths. A narrow cache keyed on the configuration file's modification time was added to the Kubernetes context resolver in v0.2.22; the general case remains.

Scope & Deliverables

  • Context & Rationale*: load_settings() re-reads and re-parses the configuration files on every call at a measured 10.8 ms, and it is consulted across the whole codebase — including inside per-request paths. A narrow cache keyed on the configuration file's modification time was added to the Kubernetes context resolver in v0.2.22; the general case remains.
  • Constraint*: Settings are mutable at runtime and a captured snapshot has already caused one stale-configuration defect in this project. Any cache must invalidate on the file that supplied the values rather than live for the process lifetime.

Strategic Alignment

  • Milestone: v0.2.23 (Foundational Architectural Guardrails & Project Hygiene)
  • Roadmap Reference: docs/ROADMAP.md

Activity

  1. added this to the v0.2.23 milestone on Sep 22, 2026
  2. added
    type/feature
    scope/config
    priority/p2-medium
    on Sep 22, 2026
  3. dan-petty commented on Sep 23, 2026

    @dan-petty
    OwnerAuthor

    Closed by #448, merged into release/v0.2.23.

    GitHub only acts on closing keywords when a pull request merges into the default branch, so this was closed by devops gh issues close-merged.

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

    priority/p2-mediumscope/configtype/feature

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions