dsh-github-copilot 0.4.2-alpha.10 → 0.4.2-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +16 -3
- package/CHANGELOG.md +19 -1
- package/README.md +20 -10
- package/README.zh.md +15 -9
- package/deployment-baseline.json +6 -2
- package/docs/auto-high-cost.md +31 -12
- package/docs/auto-iteration-review.json +9 -9
- package/docs/auto-task-routing.md +33 -9
- package/docs/automatic-model-routing.md +2 -1
- package/lib/client.js +43 -10
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +1 -1
- package/lib/{diagnostics-types-C1BD6ayS.js → diagnostics-types-qvtuvM5E.js} +14 -8
- package/lib/index.js +93 -18
- package/lib/manual-compaction-recovery.js +1 -1
- package/lib/remote.js +26 -6
- package/lib/types/auto-allocation-evidence.d.ts +5 -1
- package/lib/types/auto-allocation.d.ts +7 -2
- package/lib/types/auto-assessment-evidence.d.ts +33 -0
- package/lib/types/auto-model-routing.d.ts +1 -1
- package/lib/types/auto-task-assessment.d.ts +3 -2
- package/lib/types/turn-selection-host.d.ts +2 -1
- package/lib/types/turn-selection.d.ts +21 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -159,6 +159,15 @@ metadata remains unproven. Strict ephemeral candidate counts record one fixed
|
|
|
159
159
|
first-rejection reason per candidate and distinguish native off preparation
|
|
160
160
|
failure; no candidate IDs, raw metadata, prompts or new persistent population.
|
|
161
161
|
No-fit warnings contain fixed codes only. Legacy absent evidence stays unknown.
|
|
162
|
+
|
|
163
|
+
Auxiliary context projection reserves current/nearest user text and, for exact
|
|
164
|
+
continuations, a substantive anchor within twelve preceding user messages plus
|
|
165
|
+
its user chain. Keep 12 rows/1600 characters per row/8000 serialized characters.
|
|
166
|
+
Task text limitations, absent anchors and task nontext content block downshift;
|
|
167
|
+
incidental history omissions alone do not. Retained text is not semantic
|
|
168
|
+
completeness. Preserve genuine classifier unknown, off/no-tools/one-call
|
|
169
|
+
behavior and native Chat input. Optional strict projection/returned-demand
|
|
170
|
+
evidence is content-free and ephemeral, never a new persistent population.
|
|
162
171
|
|
|
163
172
|
- Explicit replay recovery (#279, #289) is default-off and bound to the initiating native request signal, Session, model and current account proof. Only exact verified scope failures capture bounded full-item fingerprints; no replay bytes reach Client or storage. Public Session running/error snapshots trigger read-only notices on open/settled turns, never polling or durable recovery events. Two-stage confirmation chooses next matching turn (all steps/retries until turn/end) or bounded Session consent, omitting matching old encrypted items and their item summaries only on outgoing requests, never durable history or new reasoning. Preserve get/setEnabled descriptor identities and legacy session-consent semantics; authorize is additive. Active-turn writes, ambient-scope calls and automatic retries are forbidden. Expiry, disposal and proof discontinuity revoke evidence. See `docs/model-compatibility-acceptance.md`.
|
|
164
173
|
|
|
@@ -359,9 +368,13 @@ Completed-turn Usage diagnostics (#259) are read-only plugin conversation data a
|
|
|
359
368
|
Auto task routing (#258) uses current `model_picker_category` facts, never model
|
|
360
369
|
names, effort or context capacity as a quality category. Hard eligibility/input
|
|
361
370
|
fit precede task/preference policy; unknown category and uncertain task evidence
|
|
362
|
-
remain explicit. Within the first fitting category,
|
|
363
|
-
|
|
364
|
-
|
|
371
|
+
remain explicit. Within the first fitting category, high-cost-v2 uses the
|
|
372
|
+
unmarked tier whenever it has fitting candidates; otherwise use the marked tier.
|
|
373
|
+
Ordinary weight 1 receives finite previous-model multiplier 1.5; marked weight
|
|
374
|
+
0.2 never receives continuity. Preserve positive within-tier opportunity and v1
|
|
375
|
+
historical codecs/cohorts, and disclose deferred candidates. Fit is not task
|
|
376
|
+
success; never switch categories for cost, infer incapability or add escalation.
|
|
377
|
+
Capture actual reasons once
|
|
365
378
|
per turn without durable decision events or changing Usage.
|
|
366
379
|
`autoSemanticAssessment` is default-on by explicit user rollout request (#267),
|
|
367
380
|
only for locally unknown demand; preserve explicit false opt-out. One bounded concrete
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.4.2-alpha.
|
|
3
|
+
## 0.4.2-alpha.11 (prepared)
|
|
4
|
+
|
|
5
|
+
- Prefer fitting unmarked models inside the selected supplier category and defer
|
|
6
|
+
high-cost peers. Marked-only fallback stays usable without a continuity bonus.
|
|
7
|
+
Explain the cost tier and preserve v1 historical evidence; no category
|
|
8
|
+
weakening, task-success inference, automatic escalation or in-turn switch.
|
|
9
|
+
- Preserve a bounded substantive task anchor and its user continuation chain
|
|
10
|
+
ahead of verbose historical output in the auxiliary classifier projection.
|
|
11
|
+
Separate incidental omissions from limited task text; missing anchors,
|
|
12
|
+
truncated task text and task attachments still prevent simple/routine
|
|
13
|
+
downshift. Actual Chat input and native context admission stay untouched.
|
|
14
|
+
- Remove the fixed unknown example from the classifier instruction and explain
|
|
15
|
+
that historical omission alone is not evidence of unknown demand. Keep genuine
|
|
16
|
+
unknown, reasoning off, no tools, one call/no retry and the existing bounds.
|
|
17
|
+
- Expose strict content-free projection facts and the classifier's returned
|
|
18
|
+
demand in the existing selection explanation. These are diagnostics, not
|
|
19
|
+
measured classification accuracy or proof of reduced live unknown rates.
|
|
20
|
+
|
|
21
|
+
## 0.4.2-alpha.10 (published)
|
|
4
22
|
|
|
5
23
|
- Accept account-advertised protocol-native reasoning disable labels (`none`
|
|
6
24
|
for Responses/Completions, `disabled` for Anthropic) as well as `off` for
|
package/README.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
|
|
9
9
|
GitHub Copilot account discovery, contextual Auto routing and hosted search for DSH. The plugin reuses DSH's published native adapter, retaining a profile-wide account default with independent Session next-turn choices; it does not patch Core or maintain a second model catalog.
|
|
10
10
|
|
|
11
|
-
**Stable release: [`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1); prepared prerelease: `0.4.2-alpha.
|
|
11
|
+
**Stable release: [`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1); prepared prerelease: `0.4.2-alpha.11`.** `0.4.2-alpha.1` was not published: its release preflight failed, and its immutable tag will not be reused. Supported host: official DSH / Windows Desktop `0.2.0-rc.2`. The stable version is also published on npm's `latest` dist-tag; prereleases remain on their channel tags. Stability-channel promotion does not expand the qualified host baseline or prove live account, model, search or Desktop health. Earlier DSH pins are historical evidence, not supported installation targets. Published, installed in a profile and loaded by a running Host are separate states.
|
|
12
12
|
|
|
13
13
|
**Upgrade from 0.4.0:** that first stable release can interrupt concurrent managed requests with `COPILOT_PREVIEW_CREDENTIAL_CHANGED` during normal same-account native OAuth renewal. In 0.4.1, a proven plugin-owned refresh with unchanged account, endpoint and entitlements preserves already-dispatched HTTP streams; subsequent requests use freshly validated auth and metadata. Unknown/external credential notifications, revocation, cancellation and provider rejections remain explicit—not a promise of invisible recovery or automatic retry. See [the refresh boundary](./docs/copilot-accounts.md#native-oauth-refresh-and-dispatched-requests-385).
|
|
14
14
|
|
|
@@ -16,9 +16,11 @@ GitHub Copilot account discovery, contextual Auto routing and hosted search for
|
|
|
16
16
|
|
|
17
17
|
**High-cost Auto:** in **Manage → Model preferences**, mark costly models with
|
|
18
18
|
**High cost**. Cost and task difficulty are independent: within the first
|
|
19
|
-
fitting category,
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
fitting category, use unmarked models whenever any fit; marked models are a
|
|
20
|
+
fallback tier only. Ordinary weight `1` gets a finite continuity bonus (`1.5×`
|
|
21
|
+
for the previous model); marked weight `0.2` never gets continuity. Participating candidates keep
|
|
22
|
+
a nonzero chance; deferred marked peers do not.
|
|
23
|
+
Marking does not change fixed choices or admitted turns. This is a declared
|
|
22
24
|
policy, not a price/quality ranking or proven savings.
|
|
23
25
|
|
|
24
26
|
The existing turn selection dialog exposes **Auto allocation observations**:
|
|
@@ -126,10 +128,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
126
128
|
For a **standalone named profile**:
|
|
127
129
|
|
|
128
130
|
```sh
|
|
129
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
131
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.11/dsh-github-copilot-0.4.2-alpha.11.tgz
|
|
130
132
|
```
|
|
131
133
|
|
|
132
|
-
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.
|
|
134
|
+
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.11`; stable versions publish on npm's `latest` dist-tag and prereleases on their channel tags. The official rc.2 **Desktop-bundled CLI** also supports reserved-profile plugin management; a global/generic `dsh` shim is not equivalent. Qualify the installed entry before use. See [Desktop CLI qualification](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2) and the distinct [standalone offline procedure](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles). Neither path authorizes registry-policy bypass, peer patches or configuration deletion.
|
|
133
135
|
|
|
134
136
|
After an approved reload/restart:
|
|
135
137
|
|
|
@@ -162,7 +164,7 @@ All three Auto preferences use the same account-verified, non-excluded eligible
|
|
|
162
164
|
| Complex | Powerful | Powerful | Powerful |
|
|
163
165
|
| Unknown | Versatile | Versatile | Powerful |
|
|
164
166
|
|
|
165
|
-
Categories come from authenticated supplier metadata, not model names, context capacity or measured quality rankings. Within the first fitting category,
|
|
167
|
+
Categories come from authenticated supplier metadata, not model names, context capacity or measured quality rankings. Within the first fitting category, the cost tier and positive weights described above choose the model; a suitable previous high-cost model is deferred when an unmarked peer fits. Fit does not prove task success, and Auto does not add escalation or choose a weaker category for cost. Category fallback is explained explicitly. One real answer model stays fixed throughout each admitted turn's steps and retries; compaction preserves its independently resolved native summary route.
|
|
166
168
|
|
|
167
169
|
Semantic assessment is **enabled by default only for locally unknown tasks**. It makes at most one bounded auxiliary call with a **30-second default end-to-end deadline** and **128-token output budget**. Set `github-copilot.autoSemanticAssessment: false` to opt out. The native plugin configuration exposes `autoSemanticAssessmentTimeoutMs` (1000–120000 ms; `8000` restores the old budget) and `autoSemanticAssessmentModel` (empty for automatic selection, or an exact current-account model ID). They apply to subsequent assessments, not admitted retries. An unavailable/excluded/unsuitable explicit classifier reports unavailable, never silently switches. Automatic selection is metadata-driven, not measured optimal; the new default is a trial, not proof of past timeout causes. See [assessment settings](./docs/auto-task-routing.md#using-auto).
|
|
168
170
|
|
|
@@ -172,6 +174,14 @@ The deadline is checked against a monotonic clock at preparation, native request
|
|
|
172
174
|
|
|
173
175
|
The auxiliary classifier always requests the protocol's explicit disabled-reasoning mode (`none` for Responses/Completions, `disabled` for Anthropic) and receives no tools. A candidate is not dispatched unless both account metadata and the isolated public adapter model expose that capability; otherwise assessment fails closed. Missing or empty effort metadata is not proof that a model never reasons. The classifier does not inherit configured Chat reasoning effort, and its off mapping is not added to shared account models. Synthetic tests verify the outgoing payload, not supplier-side implementation. One call, bounded text input and 128 requested output tokens constrain overhead without promising a hard credit cap; ordinary Chat reasoning/tools remain unchanged.
|
|
174
176
|
|
|
177
|
+
Classification preserves the current request and a bounded substantive continuation
|
|
178
|
+
anchor before verbose historical output. Incidental historical omission alone no
|
|
179
|
+
longer forces a valid simple/routine result to unknown; missing anchors, limited
|
|
180
|
+
task text and nontext task dependencies still block downshift. The prompt does not
|
|
181
|
+
pre-fill an unknown answer. Assessment details distinguish projection limitations
|
|
182
|
+
from the classifier's returned demand. Unknown remains valid; retained text and
|
|
183
|
+
synthetic regressions do not prove calibrated accuracy or a reduced live unknown rate.
|
|
184
|
+
|
|
175
185
|
Request-local strict selection evidence includes candidate counts and one fixed first-rejection reason per model: exclusion, configured-ID mismatch, category, text input, unproven disable capability or budget. No model IDs are added to these counts. No-fit warnings use fixed codes only, and native off preparation failure is distinguished from selection failure. This evidence is ephemeral, not a new persisted diagnostic population; legacy records without these fields remain unknown.
|
|
176
186
|
|
|
177
187
|
The reply's selection disclosure shows captured reasons and optional content-free auxiliary milestones. `uncertain` and `insufficient-evidence` do not mean the conversation is empty. **Selection unknown** means no retained record; **Selection unavailable → Retry** means the read failed. Retry rereads that turn, not inference. Evidence is bounded and Host-local, so restart/eviction can lose it.
|
|
@@ -311,14 +321,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
311
321
|
GitHub Releases and npm distribute the same original verified tarball. Pin a version; verify Release SHA-256 or npm `dist.integrity`. Never repack an immutable release or move/reuse its tag.
|
|
312
322
|
|
|
313
323
|
```sh
|
|
314
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
315
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
324
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.11/dsh-github-copilot-0.4.2-alpha.11.tgz
|
|
325
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.11/SHA256SUMS
|
|
316
326
|
sha256sum --check SHA256SUMS
|
|
317
327
|
```
|
|
318
328
|
|
|
319
329
|
```powershell
|
|
320
330
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
321
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
331
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.11.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
322
332
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
323
333
|
```
|
|
324
334
|
|
package/README.zh.md
CHANGED
|
@@ -8,15 +8,16 @@
|
|
|
8
8
|
|
|
9
9
|
为 DSH 提供 GitHub Copilot 账号模型发现、上下文 Auto 选模和 hosted search。插件复用 DSH 公开的原生适配器,保留 profile 全局默认账号,并支持 Session 后续 turn 指定独立账号;不修改 Core,也不维护第二套模型目录。
|
|
10
10
|
|
|
11
|
-
**稳定版:[`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布预览版:`0.4.2-alpha.
|
|
11
|
+
**稳定版:[`0.4.1`](https://github.com/cloga/dsh-github-copilot/releases/tag/v0.4.1);待发布预览版:`0.4.2-alpha.11`。** `0.4.2-alpha.1` 的发布预检失败,因此未发布;其不可变 tag 不会复用。支持宿主:官方 DSH / Windows Desktop `0.2.0-rc.2`。稳定版也发布到 npm 的 `latest` dist-tag;预发布版本仍使用各自渠道 tag。稳定渠道不扩大已验证的宿主基线,也不证明实时账号、模型、搜索或 Desktop 健康状态。较早 DSH pin 仅是历史证据,不是当前安装目标。已发布、已安装到 profile、已被运行中的 Host 加载,是三个不同状态。
|
|
12
12
|
|
|
13
13
|
**从 0.4.0 升级:**首个正式版在同账号正常原生 OAuth 刷新时,可能以 `COPILOT_PREVIEW_CREDENTIAL_CHANGED` 中止并行托管请求。0.4.1 仅在插件拥有的原生刷新被精确验证,且账号、端点与权限连续时,保留已发出的 HTTP 流;后续请求重新验证认证与模型元数据。未知/外部凭据通知、撤销、取消与供应商拒绝仍明确报错,不承诺所有刷新无感,也不自动重试。参见[刷新边界](./docs/copilot-accounts.md#native-oauth-refresh-and-dispatched-requests-385)。
|
|
14
14
|
|
|
15
15
|
## 你可以做什么
|
|
16
16
|
|
|
17
17
|
**高成本 Auto:**在 **Manage → Model preferences** 中用 **High cost** 标记
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
模型。成本与任务难度正交:第一个可容纳输入的分类内,只要未标记候选可容纳输入,
|
|
19
|
+
就暂缓高成本候选;否则使用高成本兜底层。普通权重 `1` 可获得上一轮 `1.5×` 有限加权,
|
|
20
|
+
高成本权重 `0.2` 不获得连续性加权。参与层内候选有非零机会,暂缓候选没有本轮分配机会;
|
|
20
21
|
标记不改变手动选择或已接纳的 turn。这是路由政策,不是价格/质量排名,也不证明节省费用。
|
|
21
22
|
|
|
22
23
|
现有 turn 选择说明内提供 **Auto allocation observations**,显示当前 Session
|
|
@@ -106,10 +107,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
106
107
|
**独立具名 profile**:
|
|
107
108
|
|
|
108
109
|
```sh
|
|
109
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
110
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.11/dsh-github-copilot-0.4.2-alpha.11.tgz
|
|
110
111
|
```
|
|
111
112
|
|
|
112
|
-
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.
|
|
113
|
+
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.11`;稳定版发布到 npm `latest` dist-tag,预发布版使用对应渠道 tag。官方 rc.2 **Desktop 随附的专属 CLI**也支持管理保留 profile;全局/普通 `dsh` shim 不等价。使用前核验实际安装入口,参见[Desktop CLI 核验](./docs/npm-distribution.md#desktop-bundled-cli-on-official-rc2)及独立的[具名 profile 离线流程](./docs/npm-distribution.md#controlled-offline-cli-maintenance-for-standalone-profiles)。两种路径都不授权绕过包源政策、修改 peer 或删除配置。
|
|
113
114
|
|
|
114
115
|
经批准 reload/restart 后:
|
|
115
116
|
|
|
@@ -142,7 +143,7 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
142
143
|
| 复杂 | Powerful | Powerful | Powerful |
|
|
143
144
|
| 未知 | Versatile | Versatile | Powerful |
|
|
144
145
|
|
|
145
|
-
|
|
146
|
+
分类来自认证后的供应方元数据,不按模型名、上下文容量或臆测质量排名。在第一个可容纳输入的分类内,按前述成本层和正权重选择;未标记同类候选可容纳输入时,暂缓上一轮高成本模型。可容纳不证明能解决任务,不自动升级求助,也不为成本降低分类。分类回退明确说明。同一已准入 turn 的工具步骤和重试保持同一真实回答模型;压缩保留独立解析的原生摘要路由。
|
|
146
147
|
|
|
147
148
|
语义判断**默认开启,仅用于本地需求未知的任务**。最多一次辅助请求,**默认 30 秒端到端期限、128 tokens 输出预算**。可用 `github-copilot.autoSemanticAssessment: false` 关闭。原生插件配置提供 `autoSemanticAssessmentTimeoutMs`(1000–120000 毫秒,`8000` 恢复旧预算)和 `autoSemanticAssessmentModel`(空字符串自动选择,或当前账号的精确模型 ID)。只影响后续评估,不改变已准入 turn 的重试。指定分类模型不存在/被排除/不合适时明确报告 unavailable,不偷偷换模型。自动选择依据元数据,不代表实测最优;30 秒是试验默认值,不证明过去主要因超时。参见[评估配置](./docs/auto-task-routing.md#using-auto)。
|
|
148
149
|
|
|
@@ -154,6 +155,11 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
154
155
|
|
|
155
156
|
辅助分类器始终请求协议明确的关闭推理模式(Responses/Completions 为 `none`,Anthropic 为 `disabled`),且不传工具。只有账号元数据和隔离后的公开适配器模型都支持此能力时才发送请求;否则关闭分类请求并按不可用处理。分类器不继承配置的 Chat reasoning effort,关闭映射也不会加到共享账号模型。合成测试验证出站载荷,不证明供应商内部实现。单次调用、有界文本输入和 128 tokens 请求输出预算限制额外开销,但不承诺额度硬上限;普通 Chat 的思考与工具保持不变。
|
|
156
157
|
|
|
158
|
+
分类输入优先保留当前请求与有界的实质续接任务目标,再填入近期执行内容。仅省略旧历史
|
|
159
|
+
不再强制把有效的 simple/routine 改成 unknown;目标缺失、任务文本受限或任务依赖非文本
|
|
160
|
+
时仍阻止降级。提示词不预填 unknown 答案。判断详情区分文本投影限制与分类器实际返回值。
|
|
161
|
+
unknown 仍是有效结果;文本保留与合成回归不证明准确率已校准,也不证明真实 unknown 比例已下降。
|
|
162
|
+
|
|
157
163
|
回复的选模说明展示捕获的理由和可选的不含内容的辅助里程碑。`uncertain`、`insufficient-evidence` 不等于会话没有上下文。**Selection unknown**表示记录未保留,**Selection unavailable → Retry**表示读取失败;Retry 只重读该 turn,不重新推理。证据有界且仅限 Host 生命周期,重启/淘汰可能丢失。
|
|
158
164
|
|
|
159
165
|
失败/不完整轮次的原生 Usage 没有模型行时,沿用现有 ⓘ 打开**本轮模型与选择记录**:本轮成功消息来源显示**已记录模型**并提示失败尝试归属不完整;可靠的本轮已记录请求配置仅显示**请求模型**,不证明发送、执行或计费。缺失证据显示**未知**,不从当前选择、全局默认或相邻轮次倒推。原选模说明折叠在下方;原生完整模型记录不重复展示,没有关闭消息的轮次没有现有入口。原生 Usage 与重试保持不变。[证据边界](./docs/automatic-model-routing.md#attribution-and-explanation)。
|
|
@@ -291,14 +297,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
291
297
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
292
298
|
|
|
293
299
|
```sh
|
|
294
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
295
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
300
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.11/dsh-github-copilot-0.4.2-alpha.11.tgz
|
|
301
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.11/SHA256SUMS
|
|
296
302
|
sha256sum --check SHA256SUMS
|
|
297
303
|
```
|
|
298
304
|
|
|
299
305
|
```powershell
|
|
300
306
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
301
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
307
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.11.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
302
308
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
303
309
|
```
|
|
304
310
|
|
package/deployment-baseline.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"package": {
|
|
10
10
|
"name": "dsh-github-copilot",
|
|
11
|
-
"version": "0.4.2-alpha.
|
|
11
|
+
"version": "0.4.2-alpha.11"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -1341,6 +1341,8 @@
|
|
|
1341
1341
|
"required": true,
|
|
1342
1342
|
"sourceMarkers": [
|
|
1343
1343
|
{"file": "src/auto-allocation.ts", "marker": "high-cost-v1"},
|
|
1344
|
+
{"file": "src/auto-allocation.ts", "marker": "high-cost-v2"},
|
|
1345
|
+
{"file": "src/auto-allocation.ts", "marker": "deferredHighCostCount"},
|
|
1344
1346
|
{"file": "src/config.ts", "marker": "highCostModelIds"},
|
|
1345
1347
|
{"file": "src/model-preferences-card.ts", "marker": "High cost"},
|
|
1346
1348
|
{"file": "src/turn-selection-host.ts", "marker": "allocationSummary"},
|
|
@@ -1349,7 +1351,9 @@
|
|
|
1349
1351
|
{"file": "docs/auto-high-cost.md", "marker": "separate acceptance"}
|
|
1350
1352
|
],
|
|
1351
1353
|
"tests": [
|
|
1352
|
-
{"file": "tests/auto-allocation.spec.ts", "name": "
|
|
1354
|
+
{"file": "tests/auto-allocation.spec.ts", "name": "simulates 20000 turns per previous state without selecting a deferred high-cost peer"},
|
|
1355
|
+
{"file": "tests/auto-allocation.spec.ts", "name": "keeps v1 historical weights readable without relabeling them as v2"},
|
|
1356
|
+
{"file": "tests/auto-allocation-evidence.spec.ts", "name": "keeps legacy-only summaries v1 and separates mixed-policy decisions explicitly"},
|
|
1353
1357
|
{"file": "tests/auto-allocation-evidence.spec.ts", "name": "counts each turn once, bounds retention and never recovers missing evidence after removal"},
|
|
1354
1358
|
{"file": "tests/auto-model-routing.spec.ts", "name": "keeps costly Fast models eligible and evidence opt-out independent of the selected route"},
|
|
1355
1359
|
{"file": "tests/authorization-controller.spec.ts", "name": "saves orthogonal high-cost preferences narrowly without credential or Session reads"},
|
package/docs/auto-high-cost.md
CHANGED
|
@@ -42,28 +42,46 @@ unchanged official Core fixture, not that the affected live Host read the mark
|
|
|
42
42
|
before the historical Astra decision. Do not hardcode a model, change live
|
|
43
43
|
preferences or rewrite a frozen explanation to manufacture a repair.
|
|
44
44
|
|
|
45
|
-
## Routing policy
|
|
45
|
+
## Routing policy v2 (#410)
|
|
46
46
|
|
|
47
47
|
1. Account ownership, metadata validity, exclusion, input modality and input
|
|
48
48
|
headroom are hard requirements.
|
|
49
49
|
2. Assess each new turn using existing contextual local/semantic evidence.
|
|
50
50
|
Preserve existing demand categories and supplier-category fallback.
|
|
51
|
-
3. Inside the first fitting category only,
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
3. Inside the first fitting category only, use unmarked candidates if any fit.
|
|
52
|
+
Defer fitting marked candidates; otherwise use the marked-only fallback tier.
|
|
53
|
+
Ordinary candidates have weight 1 and an eligible previous ordinary model
|
|
54
|
+
receives multiplier 1.5. Marked candidates have weight 0.2 without continuity.
|
|
54
55
|
4. Select from cumulative positive weights using a stable Agent/turn seed.
|
|
55
56
|
Capture the selected ID, candidate weights and conditional expected shares.
|
|
56
57
|
No additional model calls are made to give candidates a chance.
|
|
57
58
|
5. When no model fits, retain the largest-input-budget native recovery path.
|
|
58
59
|
Cost cannot justify choosing a model that cannot fit.
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
61
|
+
This is a user-requested stronger cost preference, not calibrated quality or
|
|
62
|
+
billing facts. A marked previous model cannot retain the turn when an unmarked
|
|
63
|
+
peer fits the selected category. A lone fitting marked model is selected and an
|
|
64
|
+
all-marked pool remains usable. A marked Lightweight model can still serve a
|
|
65
|
+
simple task if that category has no fitting unmarked peer. Fit and supplier
|
|
66
|
+
category cannot prove peers can solve the task; no automatic escalation, extra
|
|
67
|
+
calls, in-turn switch or lower-category substitution is introduced.
|
|
68
|
+
Every participating final-tier candidate has positive opportunity; deferred
|
|
69
|
+
marked candidates have none. The bounded explanation reports their count,
|
|
70
|
+
not fake positive shares. Stable seeds do not prove independent random trials.
|
|
71
|
+
|
|
72
|
+
Historical v1 remains readable with its original mixed-pool weights and marked
|
|
73
|
+
continuity multiplier. Persistent cohorts retain original policy versions.
|
|
74
|
+
The Session summary separates incompatible policy cohorts and reports omitted
|
|
75
|
+
decisions instead of relabeling them or merging different opportunities.
|
|
76
|
+
|
|
77
|
+
Read-only October 11 alpha.10 aggregates showed 3 Astra selections against
|
|
78
|
+
2.868 summed expected selections across 18 opportunities, without Session or
|
|
79
|
+
sequence identity. The requested local Session's bounded native metadata showed
|
|
80
|
+
five Sol turns followed by two Astra turns; its last 178 messages belonged to
|
|
81
|
+
one frozen turn. This does not establish a distribution violation. A conditional
|
|
82
|
+
two-peer seeded reproduction matches the two Astra choices, but the exact
|
|
83
|
+
historical pool was not retained. V2 implements the user's stricter preference,
|
|
84
|
+
not a claimed repair to a proven random-number defect.
|
|
67
85
|
|
|
68
86
|
The auxiliary semantic classifier is a separate call, not another main-turn
|
|
69
87
|
allocation. It prefers an unmarked eligible Lightweight classifier; if only
|
|
@@ -80,7 +98,8 @@ Synthetic acceptance covers ordinary/marked/all-marked/single pools, every
|
|
|
80
98
|
supplier category, exclusions, capacity, category changes, stable seeds,
|
|
81
99
|
preference changes and admitted-turn freezing. Distribution checks use large
|
|
82
100
|
declared seed sets and compare actual allocation with conditional expected
|
|
83
|
-
shares, including a marked previous model
|
|
101
|
+
shares, including a marked previous model in a marked-only tier, deferred
|
|
102
|
+
high-cost candidates, and backward-compatible v1 evidence.
|
|
84
103
|
|
|
85
104
|
Runtime evidence must distinguish a selected decision from native attempted,
|
|
86
105
|
delivered, finished, failed and cancelled calls. Count a decision once per
|
|
@@ -2,21 +2,21 @@
|
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"feature": "autorouting",
|
|
4
4
|
"status": "insufficient-sample",
|
|
5
|
-
"policyVersion": "high-cost-
|
|
5
|
+
"policyVersion": "high-cost-v2",
|
|
6
6
|
"observation": {
|
|
7
7
|
"start": "2026-10-08T00:00:00Z",
|
|
8
8
|
"end": "2026-10-09T23:59:59Z",
|
|
9
9
|
"sampleCount": 63,
|
|
10
|
-
"limitations": "
|
|
10
|
+
"limitations": "The declared 63-sample window is the prior alpha.2 review, not the newer cohort. Separate alpha.10 read-only profile aggregates on October 11 show Astra 3 selections across 18 conditional opportunities, summed expected selections 2.868. No Session IDs or sequence in aggregates. Bounded native metadata from the requested local Session shows five Sol turns followed by two Astra turns; the last has 178 steps under one frozen allocation. Tail scan is limited, not full history. Actual per-turn pool/weights are not durably retained. Two user-reported valid unknown classifier results are not a population unknown rate. No content, credentials or raw export uploaded."
|
|
11
11
|
},
|
|
12
|
-
"previousReview": "Prior allocation review #332/#333, post-delivery review #334, fixed-outcome diagnostics #398, budget/config trial #400
|
|
13
|
-
"findings": "Prior 63 decisions
|
|
14
|
-
"decision": "
|
|
15
|
-
"validation": "
|
|
12
|
+
"previousReview": "Prior allocation review #332/#333, post-delivery review #334, fixed-outcome diagnostics #398, budget/config trial #400, classifier disable #405 and published capability/diagnostic repair #407.",
|
|
13
|
+
"findings": "Prior 63 decisions cannot attribute later incidents. Valid unknown is not a timeout. Projection regressions establish avoidable anchor loss/incidental-omission downgrade, not the actual task root cause. The reported Astra streak is two allocations, not 178 independent choices. Under an explicitly assumed two-model category pool, production Session/turn seeds reproduce both Astra choices at conditional shares 11.8% then 23.1%; this is conditional reproduction, not recovered decision evidence. A 20000-turn synthetic fixed-previous v1 scan yields 4563 Astra hits and 1014 adjacent pairs, showing runs are possible, not proving actual distribution conformity. No observed aggregate inflation is established. V1 intentionally grants marked continuity; the user now requests a stricter cost preference, not a statistically proven RNG repair.",
|
|
14
|
+
"decision": "Issues #409/#410: preserve bounded task anchor/chain and separate incidental omission from task limitations; keep genuine unknown, account proof, reasoning off, no tools, one call/no retry, 128 output tokens and native admission. In the first fitting supplier category, v2 uses unmarked candidates whenever available; marked candidates remain a fallback only when that category has no fitting unmarked peer. Remove marked continuity bonus, retain ordinary 1.5 bonus and positive within-tier weights. Record bounded deferred count and keep v1 codecs/cohorts readable without relabeling. Fit is not proof peers can solve the task; no automatic escalation, retry, category weakening or in-turn switch. No new persistent population or measured accuracy/cost-saving claim.",
|
|
15
|
+
"validation": "Projection and cost-tier regressions failed before implementation. Focused 121 tests and test typecheck pass, including 20000-seed scans per previous state, all-marked/ordinary positive distribution, deferred-only exclusion, legacy v1 decoding and persistent cohort preservation. Explicit missing-anchor tests retain conservative downshift protection. Native saved-mark/restart fixture now asserts cost tier rather than v1 shares. Full gate and exact alpha.11 pack/tarball verification remain required. No real model requests, credential access, profile edits or Desktop restart.",
|
|
16
16
|
"followUp": {
|
|
17
17
|
"owner": "Maintainer or Agent assigned to post-delivery review issue #334",
|
|
18
|
-
"trigger": "Review 200 new decisions with recorded reasons, or any further classifier capability/policy change; first inspect a
|
|
19
|
-
"metric": "
|
|
20
|
-
"action": "
|
|
18
|
+
"trigger": "Review 200 new decisions with recorded reasons, or any further classifier capability/context/policy change; first inspect a successful unknown turn's projection and decoded-demand fields.",
|
|
19
|
+
"metric": "Unknown among valid results versus blocked simple/routine by projection and producer; v2 selected/no-fit counts and within-tier conditional expected/actual selections separately from v1 and deferred candidates. Count new turns, not messages. Legacy absence is unknown. Labeled quality/outcomes remain required; no billing/latency inference.",
|
|
20
|
+
"action": "Review anchor preservation and whether ordinary-tier choices pass independent task validation without underpowering complex work; review marked fallback only where actual fit evidence supports it. Retain genuine uncertainty. Do not infer solved/failed tasks from category or model ID. Defer further tuning without sufficient evidence; linked #334, no automatic upload or live benchmark."
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -140,17 +140,31 @@ existing managed native adapter, never an Auto ID and never `ctx.llm` routing
|
|
|
140
140
|
recursion. It has no tools, bounded text-only assessment context, bounded JSON
|
|
141
141
|
output, one deadline, cancellation and no new retry loop. Text from messages is
|
|
142
142
|
untrusted data, not router instructions. Files/images/reasoning/replay bodies
|
|
143
|
-
are not read;
|
|
144
|
-
downshifting. Assessment input is a separate projection: the actual chat
|
|
143
|
+
are not read; limited task text cannot justify downshifting. Assessment input is a separate projection: the actual chat
|
|
145
144
|
messages, system prompt, tools, attachments and history stay untouched.
|
|
146
145
|
|
|
147
146
|
Only locally unknown tasks invoke the enabled assessment. Context packing keeps
|
|
148
|
-
the current and nearest preceding user requests before recent output
|
|
149
|
-
|
|
147
|
+
the current and nearest preceding user requests before recent output. An explicit
|
|
148
|
+
continuation also reserves the nearest substantive user anchor among the previous
|
|
149
|
+
twelve user messages and the intervening user chain, then restores chronological
|
|
150
|
+
order. No expired anchor, task summary or semantic task boundary is invented.
|
|
151
|
+
At most twelve complete JSON rows, 1600 text
|
|
150
152
|
characters per row and 8000 serialized characters are retained; JSON escape
|
|
151
153
|
expansion is included in this bound. Any truncation, skipped row or non-text
|
|
152
|
-
content still marks
|
|
153
|
-
|
|
154
|
+
content still marks projection omission. A missing current request/continuation
|
|
155
|
+
anchor, a missing reserved user row, truncated reserved task text, or nontext
|
|
156
|
+
content in the reserved user chain separately marks `taskTextLimited` and prevents
|
|
157
|
+
a semantic simple/routine downshift. Incidental assistant/tool/history omissions
|
|
158
|
+
alone no longer force that downgrade. The classifier must still judge whether
|
|
159
|
+
the retained evidence establishes demand; retained text is not semantic
|
|
160
|
+
completeness and missing required details must remain unknown.
|
|
161
|
+
|
|
162
|
+
The instruction requests a schema without a pre-filled unknown answer and
|
|
163
|
+
distinguishes projected data omissions from missing relevant task evidence.
|
|
164
|
+
Unknown is permitted for genuinely indeterminate demand, not required merely
|
|
165
|
+
because a long conversation exceeds the projection bounds. No reasoning/tool
|
|
166
|
+
enablement, second inference, larger context/output budget or full-history
|
|
167
|
+
serialization is introduced.
|
|
154
168
|
|
|
155
169
|
The strict result contains demand (`simple`, `routine`, `complex`, `unknown`)
|
|
156
170
|
and finite evidence signals, not a model ID, raw reasoning or an uncalibrated
|
|
@@ -160,6 +174,13 @@ instead of falling back. Credential, metadata and account revocation remain
|
|
|
160
174
|
fatal through existing lease/admission guards. Extra calls incur supplier
|
|
161
175
|
charges and latency, separate from native chat Usage and without inferred cost.
|
|
162
176
|
|
|
177
|
+
Strict ephemeral explanation evidence optionally records retained row count
|
|
178
|
+
(0–12), the projection omission flag, task-text limitation, fixed continuation
|
|
179
|
+
anchor status and the classifier's decoded demand. No text, attachment values
|
|
180
|
+
or new persistent population is recorded. Legacy absent fields stay absent.
|
|
181
|
+
These fields distinguish a valid classifier `unknown` from plugin-side
|
|
182
|
+
simple/routine blocking; they do not establish accuracy or a live unknown rate.
|
|
183
|
+
|
|
163
184
|
## Auxiliary latency evidence and bounded output (#272)
|
|
164
185
|
|
|
165
186
|
The assessment has one **configured end-to-end deadline, 30 seconds by default**, including account
|
|
@@ -264,9 +285,12 @@ explicit fallback only, not fabricated categories. Unknown/new category values
|
|
|
264
285
|
remain unclassified with a bounded catalog diagnostic.
|
|
265
286
|
|
|
266
287
|
Within the first fitting category, use stable positive weighted Session/turn
|
|
267
|
-
allocation
|
|
268
|
-
|
|
269
|
-
|
|
288
|
+
allocation within the unmarked tier when available, otherwise the high-cost
|
|
289
|
+
fallback tier. Ordinary weight 1 has finite previous-model multiplier 1.5;
|
|
290
|
+
marked weight 0.2 has no continuity bonus. Deferred candidates have no allocation
|
|
291
|
+
opportunity in that turn. Cost is independent of task difficulty and supplier
|
|
292
|
+
category; input fit does not prove task success. Never weaken category or
|
|
293
|
+
automatically escalate to establish whether another model can solve the task.
|
|
270
294
|
These are reviewed policy parameters, not measured quality or prices. Once
|
|
271
295
|
admitted, all steps/retries share the decision. No supplier cache savings are
|
|
272
296
|
claimed. See [high-cost requirements](./auto-high-cost.md) and
|
|
@@ -58,7 +58,8 @@ remains authoritative after final framing/attachment projection.
|
|
|
58
58
|
Task preference uses supplier `model_picker_category`, not capacity, model
|
|
59
59
|
names or reasoning effort as quality rankings. [Task policy](./auto-task-routing.md)
|
|
60
60
|
owns the demand matrix, default semantic assessment, category fallback,
|
|
61
|
-
finite continuity and stable positive-weight
|
|
61
|
+
cost-tier deferral, ordinary finite continuity and stable positive-weight
|
|
62
|
+
same-category within-tier allocation.
|
|
62
63
|
User-marked high cost is orthogonal to demand and category; see
|
|
63
64
|
[high-cost requirements](./auto-high-cost.md). Future policy changes must read
|
|
64
65
|
the [latest review](./auto-iteration-review.json) before implementation.
|