Skip to content

Implementation: visible reasoning summaries across provider protocols - #2126

Merged
jbeda merged 11 commits into
mainfrom
impl/visible-reasoning-summaries
Oct 7, 2026
Merged

jbeda merged 11 commits into
mainfrom
impl/visible-reasoning-summaries

Conversation

@jbeda

@jbeda jbeda commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Implementation

Plan / Interface PR: #2118; approved baseline: 92c16eb6. The original acceptance contract at that commit was amended in this implementation with Joe's explicit approval as described below. Current working copies of the amended contract and ADRs are under ignored .scratch/visible-reasoning-summaries/ in the implementation worktree; docs/acceptance/ and docs/adr/ were intentionally removed from main and are not reintroduced by this PR.

  • Anthropic listings distinguish omitted or incomplete thinking metadata from explicit unsupported declarations. An explicit thinking.supported:false wins even over contradictory type flags; an unreported type's supported value does not suppress fallback or configured reasoning effort.
  • Claude 5 Opus, Sonnet, Fable, and Mythos use adaptive, summarized thinking on fallback, including exact anthropic/-namespaced model IDs. The bare Opus/Sonnet/Fable 5 prefix slice credits community PR fix(anthropic): use adaptive thinking for Claude 5 models #2100; this PR also handles missing metadata, Mythos, namespaces, and OpenAI Responses.
  • Every OpenAI Responses request asks for reasoning.summary:"auto". Display deltas stay separate from encrypted replay across a persisted session reload; incompatible endpoints return their safe provider error without a stripped retry or fabricated tool result.

Interface decision: Joe authorized adding provider/anthropic.ThinkingDescriptor.Known and forwarding configured effort when a listed Anthropic model's thinking capability is unknown or missing. This changes the earlier reasoning-effort capability gate: unknown does not mean unsupported; an explicit negative remains authoritative. The exported field is source-compatible for keyed struct literals but external unkeyed literals must be updated. The inventory's boolean reasoning:false cannot express unknown and is not used as proof of explicit unsupported. No protobuf fields, tool schemas, configuration settings, or persistence shapes change. The amended decision was recorded locally in the working-copy ADR 0376 when the tracked ADR directory still existed.

Verification after rebase and repair: task test, task lint, task test:race, and the offline go run ./cmd/mecademo pass. task docs passed after the rebase (before the final Go-only repair). The limited follow-up review of the sparse-metadata fix found no remaining issues on its inspected axes. CI independently checks the pushed candidate. Human review and merge remain required.

Closes #2084

jbeda and others added 9 commits October 6, 2026 11:53
…espace

Credit community PR #2100 for the bare Opus/Sonnet/Fable 5 prefix slice; extend it to Mythos 5, exact anthropic/ IDs, and sparse-discovery proofs.

Co-authored-by: Mecatl <[email protected]>
Keep reasoning summaries display-only and pin replay, reload, and rejection behavior across adapter and engine boundaries.

Co-authored-by: Mecatl <[email protected]>
Keep the upstream 400 classification and no-retry assertions while avoiding reliance on provider-supplied error text now hidden by the safe error projection. Clarify that omitted Anthropic thinking is not always disabled upstream.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda force-pushed the impl/visible-reasoning-summaries branch from 0e8bb03 to 863cb8d Compare October 6, 2026 19:37
jbeda and others added 2 commits October 6, 2026 13:54
Only an explicit thinking-level unsupported declaration or a supported mode makes thinking metadata known. Exercise partially reported type objects through the listing and composition boundaries, isolate the registry fixture, and remove unrelated replay duplication.

Co-authored-by: Mecatl <[email protected]>
Carry the existing Anthropic unknown-support distinction through a neutral model-entry marker while preserving other listers\x27 current capability behavior.

Co-authored-by: Mecatl <[email protected]>
@jbeda
jbeda merged commit 0fda6c8 into main Oct 7, 2026
37 checks passed
@jbeda
jbeda deleted the impl/visible-reasoning-summaries branch October 7, 2026 17:10
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.

No reasoning shown for Opus 5.5 on the Anthropic provider

1 participant