Skip to content

Create a Typed Startup Preflight and Configuration Compatibility Layer for Every Runtime Mode #619

Description

@Inkman007

Problem

Configuration is spread across settings, YAML, CLI flags, Helm values, Compose, workflows, and subsystem-specific modules. Invalid combinations are often discovered only when a code path executes, while renamed/deprecated values can drift silently between deployment surfaces.

Scope

  • Define a canonical typed configuration schema with source precedence and runtime-mode profiles.
  • Validate cross-field invariants for API, streamer, batch scoring, training, webhook worker, federation, and contract publishing.
  • Add ledgerlens config validate and config explain commands that show effective non-secret values and provenance.
  • Generate or validate .env.example, Helm values/schema, and Compose variables against the canonical schema.
  • Add explicit deprecation windows and compatibility errors.
  • Check external prerequisites (database extensions/schema, model compatibility, writable paths, certificates, endpoints) in a bounded preflight.

Acceptance criteria

  • Every executable mode runs preflight before accepting work.
  • Unknown, deprecated, unsafe, or contradictory settings fail with actionable messages.
  • Secret values are always redacted.
  • CI detects drift between code, environment example, Helm schema, and docs.
  • Tests cover precedence and supported configuration matrices.
  • Preflight supports offline validation and distinguishes warnings from fatal errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: developer-experienceBuild, packaging, local setup, and contributor workflowsarea: infrastructureCI/CD, containers, Kubernetes, and release engineeringdifficulty: advancedRequires senior-level design and implementation experiencepriority: highHigh impact; should be scheduled nextstatus: readyScoped and ready for implementationtype: architectureSystem design or architectural evolutiontype: technical-debtBounded maintainability or quality improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions