Skip to content

[origin-review] anomalyco/opencode#50832 — CHECK #47

Description

@kvnloo

Why this matters

A single bad model field made diagnostics blame the whole provider block, so operators could not see which leaf was wrong.

Evidence

Tip 0771fafeb0d73018852e6f7cc870d4c881cea5ab (base v2):

  • Leaf: packages/core/src/config/normalize.ts
  • Live: cd packages/core && bun test test/config/normalization.test.ts → 28/28 pass
  • Evidence class: BEHAVIORAL

Invariant: invalid leaf → localized diagnostic path; siblings retained when possible.

Ask (design, light) — prospective; non-blocking

  1. Should every config recovery path share one “diagnose the invalid leaf, keep siblings” contract?
  2. For never-again: are whole-object diagnostics banned when a leaf schema fails?


Fork mirror of a sealed OSS review draft. Not posted upstream.

Activity

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

    grok botPosted by Grok Bot OSS review dump

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions