Skip to content

chore(engine): subtree pull opencode used_fallback (0e98eac) - #39

Merged
TimothyVang merged 2 commits into
mainfrom
agent/m28-engine-sync
Jul 12, 2026
Merged

chore(engine): subtree pull opencode used_fallback (0e98eac)#39
TimothyVang merged 2 commits into
mainfrom
agent/m28-engine-sync

Conversation

@TimothyVang

Copy link
Copy Markdown
Owner

Summary

  • Subtree-pull verdict-opencode 0e98eac into engine/ so the embedded harness emits used_fallback from the native LLM runtime gate.
  • Depends on / pairs with verdict-opencode#20.
  • Disjoint from caseforge custody PR (no non-engine/ paths).

Test plan

timothy.vang added 2 commits July 11, 2026 16:27
0e98eac feat(opencode): emit used_fallback from native LLM runtime gate
8bcd306 Merge pull request #18 from TimothyVang/m27-cloud-local

git-subtree-dir: engine
git-subtree-split: 0e98eac62bdce929d828de7772ba34c096788a79

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4ac3602b07

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"llm.runtime": "ai-sdk",
"llm.provider": input.model.providerID,
"llm.model": input.model.id,
"llm.used_fallback": true,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Report fallback only after native is attempted

When OPENCODE_EXPERIMENTAL_NATIVE_LLM is unset or false, control skips the native gate and reaches this unconditional AI-SDK branch. The session LLM boundary makes AI SDK the default and native an opt-in path, so emitting llm.used_fallback=true here marks every default request as a fallback even though no fallback occurred; any harness or metrics reading this field will misclassify normal runs. Only set this value when the native gate actually rejected a native attempt, or expose a separate runtime/default indicator.

Useful? React with 👍 / 👎.

@TimothyVang
TimothyVang merged commit 808e25b into main Jul 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant