feat(anthropic): adaptive thinking-effort envelope (DTE series 2/5) - #40
Closed
easonLiangWorldedtech wants to merge 1 commit into
Closed
Conversation
8 tasks
Owner
Author
|
Superseded — U5 will be opened on upstream (Zoo-Code-Org/Zoo-Code) when its stack slot opens (max 3 open DTE-v2 PRs, ship plan 2.2). Head d77abcd unchanged. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
≤400-line redo of Zoo-Code-Org#1338 — DTE series 2/5, unit 5/5
Anthropic adaptive thinking-effort envelope (DTE-2d): the effective per-request
thinking effort is resolved at the shared
resolveEffectiveReasoningEffortpoint (per-request override → settings → model default), and adaptive-thinking
requests whose effective effort is in-range (
low|medium|high|xhigh|max)carry
output_config: { effort }on the message request; out-of-range orunset efforts omit the envelope so the API default applies. Both the streaming
and non-streaming request sites get the envelope.
Stack
feat/dte-v2-4-effort-persistence@111cf40ae(U4, PR feat(task): persist task thinking effort on history items (DTE series 2/5) #39)feat/dte-trial-allunion27a2e97df(tagdte-legacy/union), U5 sliceBudget (plan §2: a+d ≤ 400)
2 files changed, 340 insertions(+), 1 deletion(-)= 341 ≤ 400 ✓src/api/providers/anthropic.tssrc/api/providers/__tests__/anthropic-adaptive-effort.spec.ts(new)Provenance / fidelity
27a2e97df(anthropic.tsblobc0843d29a, spec blob7f37b8dc),taken from
77ec064d3(DTE-2 content tip). No 3-way merge needed: theanthropic.tsregion the slice touches is drift-free at the U4 head(verified: empty diff of
anthropic.tsbetween the dte-2 base39bdfb188and the U4 head).anthropic.tsdelta =6ea45b36a(28+/1−: shared imports, enveloperesolution, both request sites) +
90b47b053(+15:createMessageJSDoc).webview-ui/src/components/settings/__tests__/ExperimentalSettings.spec.tsx(1+/75−) is NOT part of this unit. Forensics (diff
39bdfb188..77ec064d3)proves the DTE-2 series never touched that file — its
dynamicThinkingEffortblock andfireEventimport arrived viaU1/main and are already present at the U4 head (blob
3feddad1, identicalto the union). The real +75 for that file belongs to Wave 3 (U11).
src/eslint-suppressions.json: untouched (no U5-owned count changes).Out of scope (series complete)
from
b17373bb9).Verification (local)
pnpm --dir src exec eslint --prune-suppressions --max-warnings=0 api/providers/anthropic.ts api/providers/__tests__/anthropic-adaptive-effort.spec.ts→ exit 0, no count changepnpm check-types→ 11/11 projectspnpm --dir src exec vitest run api/providers/__tests__/anthropic-adaptive-effort.spec.ts→ 20/20 (1.03 s)git diff --shortstat 111cf40ae HEAD→ 340+/1− = 341 ≤ 400