Skip to content

guard(models): the model-name guards skip .j2/.env.example/YAML and accept agreeing copies — 63 files carry the embedding default and the failsafe conflict passes #19737

Open

Description

@mrveiss

Problem

The guards meant to keep model names single-sourced are scoped away from where the copies live, so the current divergence passes all of them:

Fix

  • The hardcoded-value rules scan the env templates (.j2), .env.example and the YAML configs for model ids, and every role's model id must resolve to the SSOT symbol.
  • The reconciliation test asserts derivation (the template or config references the SSOT key or variable), and it checks per role.
  • Burn down the 40 grandfathered findings in this issue, not as a separate baseline.

Acceptance criteria

  • Planting a literal model id in a .j2 or .env.example fails the guard. A known-answer test pins this.
  • The reconciliation test fails on an agreeing literal copy. A test pins this.
  • The model-name baseline is empty.

Activity

  1. added
    bugSomething isn't working
    phase:M1.4Wizard and SLM: choose a mode, apply it, default models work
    on Oct 26, 2026
  2. mrveiss commented on Nov 1, 2026

    @mrveiss
    OwnerAuthor

    Gap from #20385, to close here: resolve_backend_models.py cannot check a model tier left unset in the backend env, apart from the embedding model, because its default exists only inline in backend.env.j2. So an unset tier's default is not checked against the server. Once each role's model resolves to one home, the script should read those defaults from it.

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

    bugSomething isn't workingciphase:M1.4Wizard and SLM: choose a mode, apply it, default models workpriority: high

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions