Skip to content

feat(opencode): designation provenance — source fields verified against models.dev + live provider lists (#13675) - #13695

Merged
dezren39 merged 1 commit into
mainfrom
lane-decapi-src
Nov 23, 2026
Merged

dezren39 merged 1 commit into
mainfrom
lane-decapi-src

Conversation

@dezren39

@dezren39 dezren39 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #13689 (Parts 1+3a of #13675) implementing Drew's 2026-11-23 provenance addition: designations verified from models.dev and the providers' own live model-list endpoints, with provenance recorded in the config.

Changes

  • Every model_designations entry gains a "source" field naming its asserting source; the section comment records the full provenance findings.
  • Checker: a designation source, when present, must be a non-empty string (+1 test; route-rules suite now 31/31, metered + go-seating suites 32/32, both config checkers pass).

Verification (all live, 2026-11-23)

Model models.dev Provider live list
jev-1.13-free, jev-1.13, gpt-6-luna-decision absent entirely Zen GET opencode.ai/zen/v1/models (105 models): all present
gemini-decision-1 absent Google GET /v1beta/models: present, supportedGenerationMethods: ["createDecision"] (plus the live /decisions probe, HTTP 200)
gemini-embedding-2 present, family gemini-embedding Google live: present, embedContent
gemini-embedding-001 present, family gemini-embedding, status: deprecated Google live: present, embedContent (still served)
whisper-large-v3 / -turbo present, input [audio] Groq GET api.groq.com/openai/v1/models (our key, 11 models): present
canopylabs/orpheus-v1-english / orpheus-arabic-saudi present, output [audio] Groq live: present
meta-llama/llama-prompt-guard-2-22m / -86m present, family llama-prompt-guard Groq live: present
playai-tts (brief candidate) absent Groq live: absent — confirms the Orpheus substitution made in #13689

Discrepancies vs the original brief, handled per Drew's rule: (1) playai-tts exists in neither source → not designated/seated (already adjusted in #13689). (2) Zen decision ids are absent from models.dev → their asserting source is Zen's own live list, recorded as such. (3) gemini-embedding-001 is deprecated on models.dev but live-served by Google with embedContent → designation kept, deprecation recorded in the config comment.

Refs #13675


See it in action
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…st models.dev + live provider lists (#13675)

Drew's addition (2026-11-23): designations must be populated and
verified from models.dev AND the providers' own live model-list
endpoints, with provenance recorded in the config.

- Every model_designations entry gains a "source" naming the
  asserting source. Verified 2026-11-23:
  - Zen decision ids (jev-1.13-free, jev-1.13, gpt-6-luna-decision):
    present on Zen's live /v1/models (opencode.ai/zen, 105 models);
    absent from models.dev entirely — recorded in the config comment.
  - gemini-decision-1: Google live /v1beta/models asserts it with
    supportedGenerationMethods ["createDecision"] (plus the earlier
    live /decisions probe, 200).
  - gemini-embedding-2 / gemini-embedding-001: Google live list
    asserts embedContent; models.dev asserts both (family
    gemini-embedding; 001 marked deprecated there, still served live).
  - Groq shelf: Groq live /openai/v1/models for our key (11 models)
    and models.dev both assert whisper-large-v3(-turbo),
    canopylabs/orpheus-v1-english / orpheus-arabic-saudi, and
    meta-llama/llama-prompt-guard-2-22m/86m — and both omit
    playai-tts, confirming the Orpheus substitution in #13689.
- Checker: a designation "source", when present, must be a non-empty
  string (new test; route-rules suite 31/31).
@coderabbitai

coderabbitai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 57 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4bddcbb-6974-4afb-a7e2-a8c86d435e78
Commits

Reviewing files that changed from the base of the PR and between 218ca1f and 69e9bfc.

Files selected for processing: 3

  • .opencode/opencode.jsonc
  • bin/check-opencode-route-rules.mjs
  • bin/check-opencode-route-rules.test.mjs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 merged commit dbf2aca into main Nov 23, 2026
2 checks passed
@dezren39
dezren39 deleted the lane-decapi-src branch November 23, 2026 20:44
@dezren39 dezren39 added the audit:partial PR partially implemented; gap filed label Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:partial PR partially implemented; gap filed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant