feat(llm): resolve minimum reasoning during call preparation

This commit is contained in:
Tianyi Cui committed 2026-10-07 14:33:23 +08:00
1 parent aa514ef8f8
commit ffb88d331e
50 files changed
+3502 -164

No files matched your search

@@ -0,0 +1,28 @@
# Bilingual-pair consistency record for 2026-10-07-title-reasoning-effort.md (docs/i18n/README.md): per heading
# section, a hash of its English and Chinese blocks outside code blocks and generated regions.
# After editing either side, bring the other along and re-record with:
# pnpm run verify-translation-pairing --write docs/persistence-changes/2026-10-07-title-reasoning-effort.md
/:
en: 3d5a424ae7d7e46b
zh: c22a8e4a62d8cc1a
/2026-10-07-title-reasoning-effort:
en: 62238f237d762372
zh: 67c868935122faba
/2026-10-07-title-reasoning-effort/summary:
en: a23a870e04888548
zh: a794ea9022adf492
/2026-10-07-title-reasoning-effort/table-of-contents:
en: 6cf314a069ceb451
zh: 9adff678e9ecab3b
/2026-10-07-title-reasoning-effort/declaration:
en: 6907136f28e48c90
zh: 02f8298485f3d8e7
/2026-10-07-title-reasoning-effort/compatibility:
en: 2aef689aa3af8d1c
zh: dc468f9d2c98d70c
/2026-10-07-title-reasoning-effort/verification:
en: 48ef9b977eaf074b
zh: b1183bda3a6a38be
/2026-10-07-title-reasoning-effort/dev-note:
en: b75c8458928b72b9
zh: 003ba4e17b4b5269
@@ -0,0 +1,48 @@
---
description: "Records a persistence type transition and its compatibility acknowledgement."
kind: persistence-change
---
# 2026-10-07-title-reasoning-effort
English | [中文](2026-10-07-title-reasoning-effort.zh.md)
## Summary
Records the concrete reasoning effort selected for auxiliary session-title requests.
## Table of Contents
- [Declaration](#declaration)
- [Compatibility](#compatibility)
- [Verification](#verification)
- [Dev Note](#dev-note)
<a id="declaration"></a>
## Declaration
```yaml persistence-change
schemaVersion: 1
id: 2026-10-07-title-reasoning-effort
baseline: false
changes:
- root: "event:session/title-llm-request"
previous: "2026-10-05-working-directory-attribution"
after: "b33545b3244861bcbf73b407d24b53402710f5acacab7ae939537e5504a68dc6"
decision: same-version
```
<a id="compatibility"></a>
## Compatibility
The new reasoningEffort field is optional. Existing V4 records remain valid and retain their original absence of a recorded effort. Prepared title requests write the resolved effort when the route exposes selectable reasoning; no Session format bump is required.
<a id="verification"></a>
## Verification
Focused LLM, adapter, title-provider, and replay tests passed: 50 files and 1960 tests. The session-title-after-turn SDK snapshot passed with a recorded low effort selected from a route whose default is high.
<a id="dev-note"></a>
## Dev Note
None.
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,48 @@
---
description: "记录持久化类型更改及其兼容性确认。"
kind: persistence-change
---
# 2026-10-07-title-reasoning-effort
[English](2026-10-07-title-reasoning-effort.md) | 中文
## 概述
记录辅助会话标题请求选择的具体推理强度。
## 目录
- [声明](#declaration)
- [兼容性](#compatibility)
- [验证](#verification)
- [开发备注](#dev-note)
<a id="declaration"></a>
## 声明
```yaml persistence-change
schemaVersion: 1
id: 2026-10-07-title-reasoning-effort
baseline: false
changes:
- root: "event:session/title-llm-request"
previous: "2026-10-05-working-directory-attribution"
after: "b33545b3244861bcbf73b407d24b53402710f5acacab7ae939537e5504a68dc6"
decision: same-version
```
<a id="compatibility"></a>
## 兼容性
新增 reasoningEffort 字段为可选。现有 V4 记录仍有效,继续保留其未记录强度的事实。路由提供可选推理强度时,已准备的标题请求写入解析后的强度;无需提升 Session 格式版本。
<a id="verification"></a>
## 验证
LLM、适配器、标题提供方与回放的定向测试通过:50 个文件、1960 个测试。session-title-after-turn SDK 快照通过,记录从默认 high 的路由中选出的 low 强度。
<a id="dev-note"></a>
## 开发备注
无。