Skip to content

Docs: uf init / uf doctor stale model pin warning — meaning and remediation #1294

Backlog

Description

@jflowers

What needs documenting

The warn-stale-agent-model-pins change (issue #1286, spec
openspec/changes/warn-stale-agent-model-pins/) adds a new
user-facing warning to two surfaces:

  1. uf init — after scaffolding, prints a warning block when a
    user-owned .opencode/agents/*.md file pins a model: in its
    frontmatter that the embedded template for that agent no longer
    sets:
    ⚠  Stale model pins in agent files:
        cobalt-crush-dev.md: google-vertex-anthropic/claude-opus-4-6@default
      These files are user-owned and not auto-updated.
      Remove the pin by hand or keep it on purpose; `uf init`
      never edits agent files.
    
  2. uf doctor — the same drift reported as a Warn-severity
    advisory in the existing "Scaffolded Files" check group (never
    Fail; Pass when clean).

Why it matters

The scaffold dropped model: pins from its agent templates in
ba55b8e (2026-04-24). Repos scaffolded earlier kept the stale pin in
their user-owned agent files, which breaks the pinned agent with
Model not found on machines without that provider. Until this
change, nothing told the repo owner the pin was there or that it was
stale.

What the docs should cover

  • What the warning means: the deployed agent file pins a model the
    current scaffold template no longer pins.
  • Why agent files are user-owned and never auto-edited
    (isToolOwned returns false for .opencode/agents/).
  • Remediation: open the named file, remove the model: line from
    the frontmatter (or keep it deliberately if the pin is intended
    and the provider is available), then re-run uf doctor to
    confirm the advisory clears.
  • That the check is fail-open: unreadable/malformed files and files
    without a matching template are skipped silently and never fail
    uf init or uf doctor.

Where

  • docs/ user-facing documentation for uf init and uf doctor.

Originating change: opsx/warn-stale-agent-model-pins (SC-FR-017 /
SC-FR-018). Filed per the AGENTS.md documentation gate before PR
merge.

Activity

  1. added
    docs
    documentation
    on Nov 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

    docsdocumentation

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions