Skip to content

fix(workflows): accept native reasoning defaults - #6793

Merged
ymichael merged 2 commits into
mainfrom
slopcop/issue-6792
Nov 3, 2026
Merged

ymichael merged 2 commits into
mainfrom
slopcop/issue-6792

Conversation

@bb-slop-cop

@bb-slop-cop bb-slop-cop Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor

🚨 SLOP COP 🚨 · new-issue-autopilot

Human comments

What was wrong

Both Workflows validators required the requested reasoning effort to occur in the model's advertised choices. A fully discovered model with no selectable efforts therefore rejected its catalog default and inherited parent preferences before worker creation.

The runtime check had the same problem more broadly: any inherited parent level the model does not list failed the worker. That includes models that list other levels (for example, a parent stored on xhigh running a model that lists low/medium) and models whose reasoning discovery is unresolved. Ordinary thread dispatch (apps/server/src/services/threads/thread-commands.ts) runs all of these by omitting the unsupported reasoning control.

Report: https://get-bb.github.io/reports/issues/6792.html

What changed

  • Share reasoning selection between source validation and runtime validation (plugins/workflows/src/reasoning-selection.ts).
  • Inherited settings never fail on reasoning: keep the parent's level when the model lists it, otherwise use the model's catalog default. This matches ordinary thread dispatch, which then omits the unsupported control when sending to the provider. The resolved value is used for worker settings and cache identity.
  • Explicit selections must be listed by the model, or equal the catalog default of a fully discovered model with no levels. Unresolved discovery and unsupported explicit requests (including typos) are still rejected.
  • Scope: 237 changed text lines (226 additions, 11 deletions) across five files in Workflows. No dependency, generated file, storage migration, public contract, or daemon protocol change.

How you verified

  • Issue repro (validateWorkflowSource with the Flint catalog): before, reasoningLevel: "medium" is rejected with Unsupported reasoning level for literal workflow selection …; after, it is accepted and "high" is still rejected.
  • Runtime test table in service-policy.test.ts covers known-empty, unresolved, and populated catalogs for inherited and explicit selections. Against the base main code, the acceptance rows fail; against the first commit of this PR, the two rows added in the second commit (populated list with an unlisted parent level, unresolved discovery inherited) fail.
  • pnpm exec turbo run test typecheck lint --filter=bb-plugin-workflows: 259 tests passed; typecheck and lint passed.
  • Live run on a pnpm start:worktree instance: an OpenCode opencode/big-pickle parent thread (catalog: reasoningDiscovery: "known", no efforts, default medium) ran a workflow with one inherited agent("…") and one explicit { provider, model, reasoningLevel: "medium" } worker. Both workers spawned on opencode/big-pickle/medium and returned their exact expected outputs with zero repairs. A Claude Haiku parent on high with an explicit low worker ran the same workflow; the workers resolved to high and low respectively.

Fixes #6792

🤖 Generated with Claude Code

AGENT GENERATED

An inherited parent reasoning level that the model does not list now
resolves to the model's default instead of failing the worker, matching
ordinary thread dispatch. This covers models that list other levels and
models whose reasoning discovery is unresolved. Explicit selections still
must be listed, or equal the default of a model with no levels.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ymichael
ymichael merged commit 42e9af8 into main Nov 3, 2026
31 checks passed
@ymichael
ymichael deleted the slopcop/issue-6792 branch November 3, 2026 00:40
dimiboi added a commit to dimiboi/openspec-verify-loop that referenced this pull request Nov 12, 2026
- bb 0.49.0 ships get-bb/bb#6793 and #6874, fixing #6792 (Workflows
  rejected models with no reasoning levels) and #6871 (ACP discovery
  stored another model's reasoning levels). Flint loops now run on the
  built-in acp-opencode provider.
- README: remove the custom profile instructions; the section is now
  "ACP providers".
- Known issues: remove both bb entries and the OpenCode late model-switch
  entry, which only mattered through bb's discovery.
- Verification: manual Flint step uses the built-in provider; record the
  repro checks without the custom profile (catalogue reads in four
  projects, inherited and explicit workflow runs from a Flint sub-thread).
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.

Workflows rejects inherited settings for models with no configurable reasoning levels

2 participants