dsh-github-copilot 0.4.2-alpha.5 → 0.4.2-alpha.7
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 +6 -1
- package/CHANGELOG.md +30 -0
- package/README.md +16 -8
- package/README.zh.md +15 -8
- package/deployment-baseline.json +11 -2
- package/docs/auto-iteration-review.json +12 -12
- package/docs/auto-task-routing.md +64 -5
- package/docs/plugin-diagnostics.md +12 -0
- package/lib/client.js +21 -5
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +1 -1
- package/lib/{diagnostics-types-Cd4BmeOe.js → diagnostics-types-BDIc78T4.js} +21 -3
- package/lib/index.js +4005 -3989
- package/lib/manual-compaction-recovery.js +1 -1
- package/lib/remote.js +14 -0
- package/lib/types/auto-allocation-diagnostics.d.ts +25 -1
- package/lib/types/auto-model-host.d.ts +1 -0
- package/lib/types/auto-task-assessment.d.ts +1 -0
- package/lib/types/auto-task-classifier.d.ts +1 -1
- package/lib/types/config.d.ts +10 -2
- package/lib/types/diagnostics-host.d.ts +2 -0
- package/lib/types/diagnostics-types.d.ts +48 -0
- package/lib/types/preview-route.d.ts +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -54,6 +54,11 @@ usage, replace Core's meter, infer current occupancy/percentages or rewrite hist
|
|
|
54
54
|
See [quota boundaries](./docs/copilot-usage.md).
|
|
55
55
|
12. Default-off local account/Checking/compaction diagnostics through public storage-domain and strict additive Remotes. Keep fixed-dimension Client/Host and logical/physical populations separate, with bounded handles/rows, 14-day retention, explicit loss/uncertainty and native commit evidence. Isolate the home-wide backend by public profile context, never account/Session identity; one writer per profile is required. No content, raw errors, identities/hashes, credential/history reads, ad-hoc files, Settings logs, upload, daily task or automatic repair. Aggregate and Auto controls remain independent. Separately consented `requestDiagnosticsEnabled` collects at most 128 content-free managed-adapter physical requests for 24 hours within the shared 2 MiB cap. Random stream groups/dispatch indices are not Session/turn identity or Core retry counts. Local body-write completion does not prove supplier receipt; abort attribution needs actual signal evidence, not EOF text. Never change transport/retries/Usage to obtain diagnostics. All controls use hidden volatile CAS leaves with exact readback; clear is a separately confirmed epoch fence. Missing/corrupt storage remains unavailable, never healthy empty data. Publication does not enable collection. See [local diagnostics](./docs/plugin-diagnostics.md).
|
|
56
56
|
|
|
57
|
+
Auto aggregate assessment outcomes are fixed codes only; keep legacy missing reasons
|
|
58
|
+
unrecorded and separate from new cohorts. Count decisions by selected/no-fit counts,
|
|
59
|
+
not repeated candidate opportunities. Never change assessment policy, deadline or
|
|
60
|
+
context safety merely to populate diagnostics; retain the shared storage/row bounds.
|
|
61
|
+
|
|
57
62
|
## Session-policy compaction replay consent (#349, #352)
|
|
58
63
|
|
|
59
64
|
`/copilot-compact visible-history` explicitly authorizes one lossy managed Responses
|
|
@@ -121,7 +126,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
|
|
|
121
126
|
- `src/responses-reasoning.ts`, `src/responses-reasoning-text.ts`: selected-model effort mapping and public summary assembly.
|
|
122
127
|
- `src/tool-schema-compat.ts`: Copilot-only prompt-assembly filter for unusable escalation arguments and action-specific Goal update schemas.
|
|
123
128
|
- `src/plan.ts`: Copilot-only, fail-closed hosted-search candidate lifecycle.
|
|
124
|
-
- `src/auto-assessment-evidence.ts`: bounded request-local semantic classifier milestones copied into strict ephemeral turn evidence; no prompts, replay, credentials or error bodies. Total includes preparation; adapter start and first text are not HTTP dispatch/byte timings. Keep one
|
|
129
|
+
- `src/auto-assessment-evidence.ts`: bounded request-local semantic classifier milestones copied into strict ephemeral turn evidence; no prompts, replay, credentials or error bodies. Total includes preparation; adapter start and first text are not HTTP dispatch/byte timings. Keep one configured monotonic deadline (30s default, 1000–120000ms) checked at preparation/native request/result boundaries and 128-token compact output; delayed timer settlement is not a real-time guarantee. The user-approved budget trial is not calibrated latency or proof of past timeout causes. Empty classifier setting retains metadata-driven automatic selection; a nonempty exact account ID preserves proof/exclusion/text/headroom guards, never a virtual Auto ID or silent alternate-model fallback. Both native volatile Config leaves affect future assessments and preserve admitted turns. Prefer eligible supplier-advertised reasoning-off classifiers, but request off only when supplier and public prepared-model effort agree; unsupported native controls stay unchanged. No guessed optimal/latency ranking, benchmark requests, adaptive timeout, cooldown or cross-turn cache without reviewed observations.
|
|
125
130
|
- `src/probe.ts`: bounded native-search capability proof.
|
|
126
131
|
- `src/wire.ts`, `src/wire-anthropic.ts`: inline hosted-search streaming.
|
|
127
132
|
- `src/traditional-search.ts`: `github-copilot-hosted` `ctx.web` provider.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2-alpha.7 (prepared)
|
|
4
|
+
|
|
5
|
+
- Raise the auxiliary Auto task-assessment default total budget from eight to
|
|
6
|
+
thirty seconds as a user-approved trial, with a native editable
|
|
7
|
+
`autoSemanticAssessmentTimeoutMs` setting bounded to 1000–120000 ms.
|
|
8
|
+
- Expose `autoSemanticAssessmentModel`: empty keeps the existing metadata-driven
|
|
9
|
+
automatic classifier; an exact current-account ID can select another eligible
|
|
10
|
+
concrete model. Missing, excluded or unsuitable explicit choices diagnose
|
|
11
|
+
unavailable without silently calling another classifier.
|
|
12
|
+
- Persist both volatile native settings across restart while preserving admitted
|
|
13
|
+
steps/retries. Keep cancellation, account proof, monotonic deadline checks,
|
|
14
|
+
128-token output, context conservatism and one-call/no-retry ownership.
|
|
15
|
+
No empirical optimal-model search or claim that past unknowns were timeouts.
|
|
16
|
+
- Isolate auxiliary classifier reasoning from the route's configured Chat effort:
|
|
17
|
+
a high-effort profile no longer adds high reasoning to classification. Preserve
|
|
18
|
+
ordinary Chat behavior, no tools and native assembly; omitted reasoning or
|
|
19
|
+
native `off` is not proof of supplier-side disablement or a hard credit cap.
|
|
20
|
+
|
|
21
|
+
## 0.4.2-alpha.6 (prepared)
|
|
22
|
+
|
|
23
|
+
- Retain fixed assessment outcomes in existing opted-in daily Auto allocation
|
|
24
|
+
aggregates and their diagnostic table: timeout, disabled, unavailable, invalid
|
|
25
|
+
result, failed, omitted context, and known/unknown local or semantic assessment.
|
|
26
|
+
- Preserve legacy missing reasons as unrecorded, keep outcome cohorts separate
|
|
27
|
+
through strict gateways and storage reopen, and distinguish task counts from
|
|
28
|
+
repeated candidate opportunities. No prompts, error bodies or Session IDs added.
|
|
29
|
+
- Leave classification, routing, eight-second assessment budget, conservative
|
|
30
|
+
context handling and collection consent unchanged. Historical unknown causes
|
|
31
|
+
remain unproven; review new outcome data before changing policy.
|
|
32
|
+
|
|
3
33
|
## 0.4.2-alpha.5 (prepared)
|
|
4
34
|
|
|
5
35
|
- Measure large request JSON composition up to 32 MiB with a cooperative,
|
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.7`.** `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
|
|
|
@@ -63,7 +63,11 @@ Descriptive counts are not reconstructed history, failure rates or proof of an
|
|
|
63
63
|
improvement. The diagnostics page opens on a daily Auto allocation table by UTC
|
|
64
64
|
date, policy, model and cohort, with opportunities, expected selections, selected
|
|
65
65
|
counts and no-fit decisions. Compare expected and selected counts only within
|
|
66
|
-
matching cohorts.
|
|
66
|
+
matching cohorts. New cohorts distinguish assessment timeouts, unavailable/invalid
|
|
67
|
+
results, omitted context, disabled assessment and genuinely unknown local/semantic
|
|
68
|
+
results; legacy reasons remain **not recorded**. Count tasks with Selected plus
|
|
69
|
+
No-fit, not candidate opportunities. This is diagnostic coverage, not a routing
|
|
70
|
+
change or proof of the supplier root cause. Account/Checking and compaction reports, collection controls,
|
|
67
71
|
and detailed scope, limits and JSON are in collapsed disclosures; clearing still
|
|
68
72
|
requires separate confirmation.
|
|
69
73
|
|
|
@@ -116,10 +120,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
116
120
|
For a **standalone named profile**:
|
|
117
121
|
|
|
118
122
|
```sh
|
|
119
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
123
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.7/dsh-github-copilot-0.4.2-alpha.7.tgz
|
|
120
124
|
```
|
|
121
125
|
|
|
122
|
-
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.
|
|
126
|
+
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.7`; 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.
|
|
123
127
|
|
|
124
128
|
After an approved reload/restart:
|
|
125
129
|
|
|
@@ -154,10 +158,14 @@ All three Auto preferences use the same account-verified, non-excluded eligible
|
|
|
154
158
|
|
|
155
159
|
Categories come from authenticated supplier metadata, not model names, context capacity or measured quality rankings. Within the first fitting category, positive cost weights and the finite continuity bonus described above choose the model; a suitable previous model is not unconditionally retained. 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.
|
|
156
160
|
|
|
157
|
-
Semantic assessment is **enabled by default only for locally unknown tasks**. It makes at most one bounded auxiliary call with
|
|
161
|
+
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).
|
|
162
|
+
|
|
163
|
+
Timeout/invalid output leaves demand unknown and uses the preference fallback; it never means simple or triggers another classifier. Caller cancellation and account invalidation remain terminal. Auxiliary calls add latency and supplier charges outside native answer Usage.
|
|
158
164
|
|
|
159
165
|
The deadline is checked against a monotonic clock at preparation, native request and result boundaries, even if the event loop delays the timer. Such delays can postpone settlement; they do not authorize late dispatch or late-result acceptance. Eligible Lightweight classifiers advertising reasoning `off` take precedence, with deterministic ID tie-breaking; the request uses `off` only if the public native model also supports it. This is not a measured speed ranking. Explanations distinguish the fitting category pool and previous-model continuity from semantic merit.
|
|
160
166
|
|
|
167
|
+
The auxiliary classifier does not inherit configured Chat reasoning effort and receives no tools. Native `off` may only omit a reasoning option, so supplier-side thinking is not guaranteed disabled. One call, bounded text input and 128 requested output tokens constrain overhead without promising a hard credit cap; ordinary Chat reasoning/tools remain unchanged.
|
|
168
|
+
|
|
161
169
|
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.
|
|
162
170
|
|
|
163
171
|
When a failed/incomplete turn has no native Usage model row, the existing ⓘ opens **Turn model and selection evidence**: successful same-turn sources show **Recorded models** with incomplete failed-attempt attribution; reliable same-turn recorded request configuration shows **Requested model**, not dispatch, execution or billing proof. Missing evidence stays **Unknown**, never inferred from today's picker/default or adjacent turns. Selection reasons remain in a disclosure underneath. Complete native routes avoid repeated model UI; turns without a closing message have no existing assistant-actions entry. Native Usage and retries are unchanged. [Evidence boundaries](./docs/automatic-model-routing.md#attribution-and-explanation).
|
|
@@ -295,14 +303,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
295
303
|
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.
|
|
296
304
|
|
|
297
305
|
```sh
|
|
298
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
299
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
306
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.7/dsh-github-copilot-0.4.2-alpha.7.tgz
|
|
307
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.7/SHA256SUMS
|
|
300
308
|
sha256sum --check SHA256SUMS
|
|
301
309
|
```
|
|
302
310
|
|
|
303
311
|
```powershell
|
|
304
312
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
305
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
313
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.7.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
306
314
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
307
315
|
```
|
|
308
316
|
|
package/README.zh.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
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.7`。** `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
|
|
|
@@ -47,7 +47,10 @@ Session/turn ID、对话内容,也不推断执行/结果,不自动调参
|
|
|
47
47
|
上传或更改采集设置。暂停保留证据,清除需单独确认。Client/Host 分开统计,未覆盖路径、
|
|
48
48
|
报告丢失与存储故障明确显示。描述性计数不是历史重建、错误率,也不表示优化效果已被验证。诊断页默认显示按 UTC 日期、
|
|
49
49
|
策略、模型和 cohort 划分的 Auto 分配每日汇总表,包含候选机会、预期选择、实际选择及
|
|
50
|
-
no-fit 决策;只能在匹配 cohort
|
|
50
|
+
no-fit 决策;只能在匹配 cohort 内比较预期与实际选择。新 cohort 区分评估超时、不可用/无效
|
|
51
|
+
结果、上下文缺失、评估关闭及本地/语义判断确实未知;旧数据原因保持 **not recorded**,
|
|
52
|
+
不倒推。按 Selected 加 No-fit 计任务数,不按候选机会计数。这是诊断覆盖,不改变选模策略,
|
|
53
|
+
也不证明供应商根因。账号/Checking 和压缩报告、采集控制、
|
|
51
54
|
详细范围/限制/JSON 位于折叠区;清除仍需单独确认。
|
|
52
55
|
|
|
53
56
|
在已构建的包或源码 checkout 内,显式分析已核验的文件:
|
|
@@ -99,10 +102,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
99
102
|
**独立具名 profile**:
|
|
100
103
|
|
|
101
104
|
```sh
|
|
102
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
105
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.7/dsh-github-copilot-0.4.2-alpha.7.tgz
|
|
103
106
|
```
|
|
104
107
|
|
|
105
|
-
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.
|
|
108
|
+
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.7`;稳定版发布到 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 或删除配置。
|
|
106
109
|
|
|
107
110
|
经批准 reload/restart 后:
|
|
108
111
|
|
|
@@ -137,10 +140,14 @@ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/release
|
|
|
137
140
|
|
|
138
141
|
分类来自认证后的供应方元数据,不按模型名、上下文容量或臆测质量排名。在第一个可容纳输入的分类内,按前述正成本权重和有限连续性加权选择;上一模型合适也不会无条件保留。分类回退明确说明。同一已准入 turn 的工具步骤和重试保持同一真实回答模型;压缩保留独立解析的原生摘要路由。
|
|
139
142
|
|
|
140
|
-
|
|
143
|
+
语义判断**默认开启,仅用于本地需求未知的任务**。最多一次辅助请求,**默认 30 秒端到端期限、128 tokens 输出预算**。可用 `github-copilot.autoSemanticAssessment: false` 关闭。原生插件配置提供 `autoSemanticAssessmentTimeoutMs`(1000–120000 毫秒,`8000` 恢复旧预算)和 `autoSemanticAssessmentModel`(空字符串自动选择,或当前账号的精确模型 ID)。只影响后续评估,不改变已准入 turn 的重试。指定分类模型不存在/被排除/不合适时明确报告 unavailable,不偷偷换模型。自动选择依据元数据,不代表实测最优;30 秒是试验默认值,不证明过去主要因超时。参见[评估配置](./docs/auto-task-routing.md#using-auto)。
|
|
144
|
+
|
|
145
|
+
超时/无效结果保留未知,再按偏好兜底,不解释为简单,也不换分类模型重试。用户取消和账号失效仍终止请求。辅助调用增加延迟与供应方费用,不计入原生回答 Usage。
|
|
141
146
|
|
|
142
147
|
准备、原生请求和结果边界均用单调时钟检查期限,不依赖定时器及时执行。事件循环延迟可能推迟结束,但不授权超期发起请求或接受结果。合格 Lightweight 分类模型优先考虑声明 reasoning `off` 的候选,同级按 ID 确定顺序;只有公开原生模型也支持时才发送 `off`。这不是实测速率排名。解释分别说明该分类的可容纳候选数和上一模型连续性,不将保留上一模型说成语义优选。
|
|
143
148
|
|
|
149
|
+
辅助分类器不再继承配置的 Chat reasoning effort,也不传工具。原生 `off` 可能只是省略 reasoning 参数,因此不保证供应商侧关闭思考。单次调用、有界文本输入和 128 tokens 请求输出预算限制额外开销,但不承诺额度硬上限;普通 Chat 的思考与工具保持不变。
|
|
150
|
+
|
|
144
151
|
回复的选模说明展示捕获的理由和可选的不含内容的辅助里程碑。`uncertain`、`insufficient-evidence` 不等于会话没有上下文。**Selection unknown**表示记录未保留,**Selection unavailable → Retry**表示读取失败;Retry 只重读该 turn,不重新推理。证据有界且仅限 Host 生命周期,重启/淘汰可能丢失。
|
|
145
152
|
|
|
146
153
|
失败/不完整轮次的原生 Usage 没有模型行时,沿用现有 ⓘ 打开**本轮模型与选择记录**:本轮成功消息来源显示**已记录模型**并提示失败尝试归属不完整;可靠的本轮已记录请求配置仅显示**请求模型**,不证明发送、执行或计费。缺失证据显示**未知**,不从当前选择、全局默认或相邻轮次倒推。原选模说明折叠在下方;原生完整模型记录不重复展示,没有关闭消息的轮次没有现有入口。原生 Usage 与重试保持不变。[证据边界](./docs/automatic-model-routing.md#attribution-and-explanation)。
|
|
@@ -278,14 +285,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
278
285
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
279
286
|
|
|
280
287
|
```sh
|
|
281
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
282
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
288
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.7/dsh-github-copilot-0.4.2-alpha.7.tgz
|
|
289
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.7/SHA256SUMS
|
|
283
290
|
sha256sum --check SHA256SUMS
|
|
284
291
|
```
|
|
285
292
|
|
|
286
293
|
```powershell
|
|
287
294
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
288
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
295
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.7.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
289
296
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
290
297
|
```
|
|
291
298
|
|
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.7"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -296,6 +296,7 @@
|
|
|
296
296
|
"sourceMarkers": [
|
|
297
297
|
{"file": "src/diagnostics-types.ts", "marker": "DIAGNOSTICS_MAX_BYTES = 2 * 1024 * 1024"},
|
|
298
298
|
{"file": "src/diagnostics-collector.ts", "marker": "noteClientGaps"},
|
|
299
|
+
{"file": "src/auto-allocation-diagnostics.ts", "marker": "assessmentOutcome: assessmentOutcome.optional()"},
|
|
299
300
|
{"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_MAX_ROWS = 128"},
|
|
300
301
|
{"file": "src/request-body-composition.ts", "marker": "bytes: 32 * 1024 * 1024"},
|
|
301
302
|
{"file": "src/request-body-composition.ts", "marker": "concurrent: 4"},
|
|
@@ -309,6 +310,8 @@
|
|
|
309
310
|
],
|
|
310
311
|
"tests": [
|
|
311
312
|
{"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
|
|
313
|
+
{"file": "tests/auto-allocation-diagnostics.spec.ts", "name": "separates assessment outcomes without changing model opportunities or exposing errors"},
|
|
314
|
+
{"file": "tests/auto-allocation-diagnostics.spec.ts", "name": "keeps legacy reasons unrecorded and captures no-fit and successful assessment outcomes"},
|
|
312
315
|
{"file": "tests/request-diagnostics.spec.ts", "name": "requires independent consent, captures status/timing and never infers upload or retry count"},
|
|
313
316
|
{"file": "tests/request-body-composition.spec.ts", "name": "partitions a 20.4 MiB request without parsing its payload object graph"},
|
|
314
317
|
{"file": "tests/preview-transport-failures.spec.ts", "name": "does not wait for large-request composition before native success and updates the exact settled row"},
|
|
@@ -738,7 +741,7 @@
|
|
|
738
741
|
{"file": "tests/request-body-timeout.spec.ts", "name": "reports a skipped opt-in compression reason without changing identity diagnostics"},
|
|
739
742
|
{"file": "tests/auto-task-assessment.spec.ts", "name": "rejects late results even before the scheduled timeout callback runs"},
|
|
740
743
|
{"file": "tests/auto-task-assessment.spec.ts", "name": "aborts preparation at the monotonic deadline before an adapter can start"},
|
|
741
|
-
{"file": "tests/preview-route.spec.ts", "name": "does not dispatch an auxiliary request when native preparation outlasts a delayed deadline timer"},
|
|
744
|
+
{"file": "tests/preview-route.spec.ts", "name": "does not dispatch an auxiliary request when native preparation outlasts a delayed deadline timer (budget %s)"},
|
|
742
745
|
{"file": "tests/preview-provider.spec.ts", "name": "checks the auxiliary deadline immediately before native %s Fetch and releases the lease"},
|
|
743
746
|
{"file": "tests/auto-task-classifier.spec.ts", "name": "prefers advertised reasoning-off candidates without inferring latency or model-name capabilities"},
|
|
744
747
|
{"file": "tests/auto-selection-explanation.spec.ts", "name": "distinguishes continuity and category pool from semantic model merit (%s)"},
|
|
@@ -1374,6 +1377,8 @@
|
|
|
1374
1377
|
{"file": "src/account-model-catalog.ts", "marker": "model_picker_category"},
|
|
1375
1378
|
{"file": "src/auto-task-assessment.ts", "marker": "COPILOT_AUTO_ASSESSMENT_CONTEXT_OMITTED"},
|
|
1376
1379
|
{"file": "src/auto-task-classifier.ts", "marker": "classifyTaskWithAdapter"},
|
|
1380
|
+
{"file": "src/config.ts", "marker": "autoSemanticAssessmentTimeoutMs:"},
|
|
1381
|
+
{"file": "src/config.ts", "marker": "autoSemanticAssessmentModel:"},
|
|
1377
1382
|
{"file": "src/auto-model-routing.ts", "marker": "targetCategory"},
|
|
1378
1383
|
{"file": "src/config.ts", "marker": "autoSemanticAssessment"},
|
|
1379
1384
|
{"file": "src/auto-selection-explanation.ts", "marker": "No candidate fits"},
|
|
@@ -1413,6 +1418,10 @@
|
|
|
1413
1418
|
{"file": "tests/auto-selection-explanation.spec.ts", "name": "distinguishes local rule coverage from absent conversation context in both languages"},
|
|
1414
1419
|
{"file": "tests/auto-task-assessment.spec.ts", "name": "preserves caller cancellation instead of using a success-shaped fallback"},
|
|
1415
1420
|
{"file": "tests/config.spec.ts", "name": "defaults semantic Auto assessment on while preserving explicit opt-out"},
|
|
1421
|
+
{"file": "tests/config.spec.ts", "name": "exposes a bounded assessment budget and optional exact classifier without changing opt-out"},
|
|
1422
|
+
{"file": "tests/auto-task-assessment.spec.ts", "name": "allows a response after the old eight-second budget under the new bounded default"},
|
|
1423
|
+
{"file": "tests/auto-task-assessment.spec.ts", "name": "still rejects a result at the new default deadline without relying on timer delivery"},
|
|
1424
|
+
{"file": "tests/auto-task-classifier.spec.ts", "name": "honors an explicit exact account classifier without category guessing or automatic fallback"},
|
|
1416
1425
|
{"file": "tests/preview-route.spec.ts", "name": "assesses Auto with setting %s and freezes the captured reason across retries"},
|
|
1417
1426
|
{"file": "tests/turn-selection-card.spec.ts", "name": "explains a captured task/category decision with progressive details (%s)"},
|
|
1418
1427
|
{"file": "tests/auto-model-routing.spec.ts", "name": "does not discard a complete Core assistant message when it contains reasoning"},
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"feature": "autorouting",
|
|
4
|
-
"status": "
|
|
4
|
+
"status": "insufficient-sample",
|
|
5
5
|
"policyVersion": "high-cost-v1",
|
|
6
6
|
"observation": {
|
|
7
|
-
"start":
|
|
8
|
-
"end":
|
|
9
|
-
"sampleCount":
|
|
10
|
-
"limitations": "No
|
|
7
|
+
"start": "2026-10-08T00:00:00Z",
|
|
8
|
+
"end": "2026-10-09T23:59:59Z",
|
|
9
|
+
"sampleCount": 63,
|
|
10
|
+
"limitations": "Read-only strict profile-local aggregate review, daily UTC buckets rather than exact event times. Producer 0.4.2-alpha.2; not current loaded-version proof. No Session/turn IDs, sequence, lower-category pool fit or classifier diagnostic retained. completeHistory=false, restarts=1, dropped/expired/saturated=0 in this snapshot. Cannot recover failure causes, transition matrix, execution, quality, billing or savings; no raw export uploaded."
|
|
11
11
|
},
|
|
12
|
-
"previousReview": "
|
|
13
|
-
"findings": "
|
|
14
|
-
"decision": "
|
|
15
|
-
"validation": "
|
|
12
|
+
"previousReview": "Issues #332/#333 prior allocation review and post-delivery review #334; fixed-outcome diagnostics #398; user-directed budget/config trial #400.",
|
|
13
|
+
"findings": "63 decisions: 44 local/unknown, 4 semantic/unknown and 15 semantic/complex, all powerful target/selection. Sol selected 57 and Astra 6; 47 marked previous-model retention, not a transition matrix. Local/unknown may include disabled/unavailable/timeout/failed/invalid-result fallbacks. Semantic/unknown may include omitted-context conservatism. Persisted aggregates discarded those diagnostics, so historical causes cannot be established.",
|
|
14
|
+
"decision": "User explicitly approves a bounded budget/config experiment despite unproven timeout prevalence: default 30000ms, native editable integer 1000-120000ms with 8000 restoring the old budget; empty classifier selects automatically, exact account ID chooses only that eligible concrete model. Following requested overhead research, isolate classifier from configured Chat reasoning effort: reproduce inherited high in synthetic native wire, omit that auxiliary profile default and preserve ordinary Chat high. Native off/omission is not supplier disable proof; do not force low/minimal or invent a hard credit cap. Retain classification, category routing, weights, continuity, 128-token output, omitted-context safety, account/exclusion gates, cancellation and one-call/no-retry ownership. Keep fixed diagnostic cohorts and legacy unrecorded reasons. Defer benchmark/adaptive optimal-model selection until representative accuracy/latency/cost evidence and separate consent; do not infer classifier/network failure from unknown demand.",
|
|
15
|
+
"validation": "Regression-first tests failed for the hard-coded deadline, missing configuration and inherited high-effort classifier wire. Complete local pnpm verify passed: 2735 Vitest tests with 2 expected skips, 340 tooling tests, source/test types, Agent/baseline checks, clean build and package smoke. A synthetic valid nine-second result is accepted, thirty-second deadline results rejected, explicit 8s/45s budgets reach preparation fences, and fixed/missing/excluded/disabled classifiers plus same-turn settings changes retain ownership. The native wire regression verifies omitted classifier reasoning/tools and 128 output tokens while ordinary Chat preserves high effort. Exact local pack/tarball checks passed; native SettingsForms restart/fiber fixture and required Windows/Linux results are recorded in the implementation PR when executed. Synthetic evidence does not establish live timeout prevalence, classification improvement, supplier thinking disablement or optimal model choice.",
|
|
16
16
|
"followUp": {
|
|
17
17
|
"owner": "Maintainer or Agent assigned to post-delivery review issue #334",
|
|
18
|
-
"trigger": "
|
|
19
|
-
"metric": "
|
|
20
|
-
"action": "
|
|
18
|
+
"trigger": "Review assessment outcomes after 200 new decisions with recorded reasons, or before the next assessment policy change. Retain the prior allocation trigger of 200 opportunities per model across 20 Sessions only if independently evidenced; aggregates cannot count Sessions.",
|
|
19
|
+
"metric": "Selected plus no-fit counts by fixed assessment outcome, producer version, source and demand; explicit unrecorded/truncated/dropped/expired/saturated/restart coverage. Review captured classifier/budget/total/first-text latency only when independently available, not inferred from aggregate counts. Keep 8s and 30s/version/custom-model cohorts separate; session-normalized rates require independently evidenced Sessions.",
|
|
20
|
+
"action": "Compare unknown/timeout coverage and answer-start latency without assuming causal improvement; retain, lower, raise within bounds or revert the trial based on reviewed evidence. Fix an evidenced dominant failure or defer when uncertain. No automatic upload, optimal-model benchmark, transition reconstruction, quality or billing inference. Implementation #400 and open post-delivery review #334."
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Tracking: [#258](https://github.com/cloga/dsh-github-copilot/issues/258) and
|
|
4
4
|
[evidence refinement #262](https://github.com/cloga/dsh-github-copilot/issues/262).
|
|
5
5
|
|
|
6
|
-
**Current contract:** source candidate `0.4.
|
|
6
|
+
**Current contract:** source candidate `0.4.2-alpha.7`, targeting official DSH/Windows
|
|
7
7
|
Desktop `0.2.0-rc.2`. Semantic assessment is enabled by default with bounded
|
|
8
8
|
auxiliary timing/output evidence. Neither publication nor
|
|
9
9
|
these explanations prove the version loaded in a particular Host.
|
|
@@ -22,6 +22,38 @@ namespace; it is not an extra switch on the Web search card. This changes
|
|
|
22
22
|
subsequent assessments, not an already-admitted turn. Local known-task rules
|
|
23
23
|
still work when auxiliary inference is disabled.
|
|
24
24
|
|
|
25
|
+
The native plugin configuration exposes these profile-wide settings under
|
|
26
|
+
`github-copilot` (not the Web search routing card):
|
|
27
|
+
|
|
28
|
+
| Setting | Default | Meaning |
|
|
29
|
+
|---|---|---|
|
|
30
|
+
| `autoSemanticAssessmentTimeoutMs` | `30000` | Integer total preparation/response budget from 1000 to 120000 ms. `8000` restores the earlier budget; zero/unlimited is not supported. |
|
|
31
|
+
| `autoSemanticAssessmentModel` | `''` | Empty uses metadata-driven automatic classifier selection. A nonempty value is an exact current-account model ID, not a display name or virtual Auto choice. |
|
|
32
|
+
|
|
33
|
+
For example, keep automatic selection while allowing the new default budget:
|
|
34
|
+
|
|
35
|
+
```yaml
|
|
36
|
+
github-copilot:
|
|
37
|
+
autoSemanticAssessment: true
|
|
38
|
+
autoSemanticAssessmentTimeoutMs: 30000
|
|
39
|
+
autoSemanticAssessmentModel: ''
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
These fields require the new plugin release; adding them to an older version
|
|
43
|
+
does not implement the behavior. Changes apply to subsequent assessments,
|
|
44
|
+
not an admitted turn's steps/retries. The 30-second default is a user-approved
|
|
45
|
+
trial, not calibrated latency or proof that past unknown results were timeouts.
|
|
46
|
+
Larger budgets can increase time before the answer begins and auxiliary charges.
|
|
47
|
+
Native Chat/search deadlines and user cancellation are independent.
|
|
48
|
+
|
|
49
|
+
An explicit classifier may use any account-advertised category, but still must
|
|
50
|
+
be an entitled, unexcluded concrete model with text capability, validated protocol
|
|
51
|
+
and the existing input/output headroom. A missing, excluded or unsuitable choice
|
|
52
|
+
produces `COPILOT_AUTO_CLASSIFIER_CONFIGURED_MODEL_UNAVAILABLE`, then the existing
|
|
53
|
+
unknown-demand/unavailable diagnostic; no silent alternate classifier is called.
|
|
54
|
+
Answer selection remains a separate Auto decision. The classifier result does
|
|
55
|
+
not choose its own answer model.
|
|
56
|
+
|
|
25
57
|
Open the reply's selection explanation for the captured decision. Evidence is
|
|
26
58
|
Host-lifetime and bounded; after restart or eviction it can be unavailable.
|
|
27
59
|
Do not infer an old decision from the current picker.
|
|
@@ -30,7 +62,7 @@ Do not infer an old decision from the current picker.
|
|
|
30
62
|
|---|---|
|
|
31
63
|
| `uncertain` / unknown demand | The available evidence does not establish task demand; it is not a failed answer or a claim that the conversation is empty. |
|
|
32
64
|
| `insufficient-evidence` | A local rule or classifier could not justify a demand category. Longer context alone does not guarantee classification. |
|
|
33
|
-
| Semantic timeout | No validated result within the
|
|
65
|
+
| Semantic timeout | No validated result within the captured configured end-to-end budget (30 seconds by default). Demand remains unknown; Efficiency/Balance target Versatile, Intelligence targets Powerful, subject to eligibility and category fallback. |
|
|
34
66
|
| Missing auxiliary milestone | That milestone was not observed before assessment settled, not proof the supplier never sent data. |
|
|
35
67
|
| Selection unknown/unavailable | Captured selection evidence is absent or could not be read, distinct from unknown task demand. |
|
|
36
68
|
|
|
@@ -115,7 +147,7 @@ charges and latency, separate from native chat Usage and without inferred cost.
|
|
|
115
147
|
|
|
116
148
|
## Auxiliary latency evidence and bounded output (#272)
|
|
117
149
|
|
|
118
|
-
The assessment
|
|
150
|
+
The assessment has one **configured end-to-end deadline, 30 seconds by default**, including account
|
|
119
151
|
discovery/preparation and the native call. It does not retry on timeout or try a
|
|
120
152
|
second classifier. The response budget is now 128 output tokens, with compact
|
|
121
153
|
demand JSON and at most three fixed signals requested. The strict decoder
|
|
@@ -131,17 +163,44 @@ this is not a hard real-time guarantee or evidence of a supplier latency cause.
|
|
|
131
163
|
The owned timer and abort listener are disposed when assessment settles.
|
|
132
164
|
|
|
133
165
|
Among eligible supplier Lightweight text candidates with the existing input
|
|
134
|
-
headroom,
|
|
166
|
+
headroom, automatic selection prefers unmarked cost, advertised reasoning `off`,
|
|
167
|
+
then deterministic ID ordering. An explicit exact-ID setting selects only that
|
|
168
|
+
eligible model, without category or cost re-ranking.
|
|
135
169
|
This does not infer speed, health or quality from effort or model names, and
|
|
136
170
|
does not launch a second candidate if native support is absent.
|
|
137
171
|
|
|
172
|
+
Automatic selection is metadata-driven, not an empirical fastest/best model
|
|
173
|
+
search. No additional benchmark requests, adaptive deadlines, per-model health
|
|
174
|
+
ranking, cooldown or cross-turn cache are introduced. Those require separately
|
|
175
|
+
reviewed representative latency/accuracy/cost observations and consent, not a
|
|
176
|
+
guess from model names or a timeout suspicion. Review outcomes under #334 before
|
|
177
|
+
claiming the increased default improves live classification.
|
|
178
|
+
|
|
138
179
|
Request `off` reasoning only when both current supplier metadata advertises it
|
|
139
180
|
and the public prepared model lists an `off` effort. Supplier metadata alone
|
|
140
181
|
does not establish native support: current managed reasoning maps can decline
|
|
141
|
-
`off` even when advertised.
|
|
182
|
+
`off` even when advertised. The auxiliary adapter does not inherit the route's
|
|
183
|
+
configured Chat reasoning effort: a synthetic high-effort profile previously
|
|
184
|
+
sent `reasoning.effort: high` on the classifier request. Its isolated public
|
|
185
|
+
profile now omits that default while ordinary Chat retains it. This prevents an
|
|
186
|
+
explicit high-effort instruction, not supplier-side thinking.
|
|
187
|
+
|
|
188
|
+
Even native `off` can mean omitting the reasoning option rather than sending a
|
|
189
|
+
supplier disable instruction. Do not force `low` or `minimal`: on some protocols
|
|
190
|
+
that enables thinking and enlarges the SDK's requested output budget. Retain
|
|
191
|
+
native assembly, do not change
|
|
142
192
|
shared model maps, guess a wire value or patch Core. No claim that reasoning is
|
|
143
193
|
disabled for all classifiers is made.
|
|
144
194
|
|
|
195
|
+
Tools and an execution loop are absent. Only locally unknown tasks use one
|
|
196
|
+
classifier call per admitted turn; subsequent steps/retries reuse its result.
|
|
197
|
+
Text projection stays bounded to twelve rows, 1600 characters per row and
|
|
198
|
+
8000 serialized characters; files, images and replay bodies are not included.
|
|
199
|
+
The requested output budget remains 128 tokens. Neither those bounds nor the
|
|
200
|
+
waiting deadline establishes a hard supplier reasoning-token, credit or dollar
|
|
201
|
+
cap. Measure accuracy, elapsed time and auxiliary usage separately before
|
|
202
|
+
reducing context/output or claiming a cheapest/fastest classifier.
|
|
203
|
+
|
|
145
204
|
Captured Host-lifetime selection evidence now includes a bounded public
|
|
146
205
|
classifier ID, configured waiting budget, total monotonic assessment elapsed
|
|
147
206
|
time, adapter-invocation start, first nonempty text time, native stop/non-stop
|
|
@@ -46,6 +46,18 @@ attribution. Aggregate rows are capped at 1,024, retained for 14 days and
|
|
|
46
46
|
included in the existing 2 MiB snapshot limit; expired, dropped, truncated,
|
|
47
47
|
saturated and restart evidence remains explicit. There is no per-turn export,
|
|
48
48
|
automatic tuning or upload. The aggregate controls can be paused independently.
|
|
49
|
+
New rows also distinguish fixed assessment outcomes: local-known/local-unknown,
|
|
50
|
+
semantic-known/semantic-unknown, disabled, unavailable, timeout, failed,
|
|
51
|
+
invalid-result and context-omitted. Missing legacy outcomes remain **not recorded**,
|
|
52
|
+
never reconstructed from demand/source. Count decisions using Selected plus
|
|
53
|
+
No-fit, not candidate opportunities (one decision may have many candidates).
|
|
54
|
+
These outcomes explain classifier settlement, not network root cause or model
|
|
55
|
+
execution; no error bodies, signals, prompts or Session/turn IDs are added.
|
|
56
|
+
Classification and the conservative omitted-context guard stay unchanged.
|
|
57
|
+
The separately configured assessment budget defaults to 30 seconds as of alpha.7;
|
|
58
|
+
producer versions separate this trial from the earlier eight-second budget.
|
|
59
|
+
Older strict plugin versions may reject new snapshot fields on
|
|
60
|
+
rollback; do not delete or silently rewrite retained evidence to make them parse.
|
|
49
61
|
The separate **Enable request observations** control uses the hidden volatile
|
|
50
62
|
`github-copilot.requestDiagnosticsEnabled` leaf with path-level CAS and exact
|
|
51
63
|
readback. Existing aggregate consent never enables request observations.
|
package/lib/client.js
CHANGED
|
@@ -6526,6 +6526,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6526
6526
|
const dayMs = 864e5;
|
|
6527
6527
|
const integer$2 = number().int().min(0).max(Number.MAX_SAFE_INTEGER);
|
|
6528
6528
|
const version$2 = string().max(64).regex(/^\d+\.\d+\.\d+(?:-[a-zA-Z0-9.-]+)?$/);
|
|
6529
|
+
const assessmentOutcome = _enum([
|
|
6530
|
+
"local-known",
|
|
6531
|
+
"local-unknown",
|
|
6532
|
+
"semantic-known",
|
|
6533
|
+
"semantic-unknown",
|
|
6534
|
+
"disabled",
|
|
6535
|
+
"unavailable",
|
|
6536
|
+
"invalid-result",
|
|
6537
|
+
"timeout",
|
|
6538
|
+
"failed",
|
|
6539
|
+
"context-omitted"
|
|
6540
|
+
]);
|
|
6529
6541
|
const allocationRow = object({
|
|
6530
6542
|
day: integer$2.multipleOf(dayMs),
|
|
6531
6543
|
version: version$2,
|
|
@@ -6549,6 +6561,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6549
6561
|
"unknown"
|
|
6550
6562
|
]),
|
|
6551
6563
|
assessmentSource: _enum(["local", "semantic"]),
|
|
6564
|
+
assessmentOutcome: assessmentOutcome.optional(),
|
|
6552
6565
|
method: _enum(["weighted-distribution", "only-candidate"]),
|
|
6553
6566
|
fallback: boolean(),
|
|
6554
6567
|
highCost: boolean(),
|
|
@@ -6580,6 +6593,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
6580
6593
|
"unknown"
|
|
6581
6594
|
]),
|
|
6582
6595
|
assessmentSource: _enum(["local", "semantic"]),
|
|
6596
|
+
assessmentOutcome: assessmentOutcome.optional(),
|
|
6583
6597
|
decisions: integer$2.min(1)
|
|
6584
6598
|
}).strict();
|
|
6585
6599
|
const AutoAllocationDiagnosticsSchema = object({
|
|
@@ -7176,7 +7190,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7176
7190
|
};
|
|
7177
7191
|
//#endregion
|
|
7178
7192
|
//#region package.json
|
|
7179
|
-
var version = "0.4.2-alpha.
|
|
7193
|
+
var version = "0.4.2-alpha.7";
|
|
7180
7194
|
//#endregion
|
|
7181
7195
|
//#region lib/types/diagnostics-client.js
|
|
7182
7196
|
let owner;
|
|
@@ -7422,6 +7436,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7422
7436
|
row.category,
|
|
7423
7437
|
row.demand,
|
|
7424
7438
|
row.assessmentSource,
|
|
7439
|
+
row.assessmentOutcome,
|
|
7425
7440
|
row.method,
|
|
7426
7441
|
row.fallback,
|
|
7427
7442
|
row.highCost,
|
|
@@ -7430,7 +7445,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7430
7445
|
day: row.day,
|
|
7431
7446
|
policy: row.policyVersion,
|
|
7432
7447
|
model: row.modelId,
|
|
7433
|
-
cohort: `${row.targetCategory} → ${row.category} · ${row.demand} · ${row.assessmentSource} · ${row.method}` + (row.fallback ? " · fallback" : "") + (row.highCost ? " · high-cost" : "") + (row.previous ? " · continuity" : ""),
|
|
7448
|
+
cohort: `${row.targetCategory} → ${row.category} · ${row.demand} · ${row.assessmentSource} · assessment: ${row.assessmentOutcome ?? "not recorded"} · ${row.method}` + (row.fallback ? " · fallback" : "") + (row.highCost ? " · high-cost" : "") + (row.previous ? " · continuity" : ""),
|
|
7434
7449
|
opportunities: row.opportunities,
|
|
7435
7450
|
expected: row.expectedSelections,
|
|
7436
7451
|
selected: row.selections,
|
|
@@ -7443,12 +7458,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7443
7458
|
row.targetCategory,
|
|
7444
7459
|
row.category,
|
|
7445
7460
|
row.demand,
|
|
7446
|
-
row.assessmentSource
|
|
7461
|
+
row.assessmentSource,
|
|
7462
|
+
row.assessmentOutcome
|
|
7447
7463
|
]),
|
|
7448
7464
|
day: row.day,
|
|
7449
7465
|
policy: row.policyVersion,
|
|
7450
7466
|
model: "—",
|
|
7451
|
-
cohort: `${row.targetCategory} → ${row.category} · ${row.demand} · ${row.assessmentSource} · no fit`,
|
|
7467
|
+
cohort: `${row.targetCategory} → ${row.category} · ${row.demand} · ${row.assessmentSource} · assessment: ${row.assessmentOutcome ?? "not recorded"} · no fit`,
|
|
7452
7468
|
opportunities: null,
|
|
7453
7469
|
expected: null,
|
|
7454
7470
|
selected: null,
|
|
@@ -7530,7 +7546,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
7530
7546
|
} }, row.noFit ?? "—")))))) : null, auto?.status === "observed" && autoRows.length === 0 ? (0, react.createElement)("p", { style: { margin: 0 } }, "No retained strata in this snapshot; this does not mean there were no decisions.") : !auto ? (0, react.createElement)("p", { style: { margin: 0 } }, "Auto allocation aggregates are unavailable in this snapshot.") : view && auto.status !== "observed" && view.state !== "ready" ? (0, react.createElement)("p", { style: { margin: 0 } }, "Storage is not ready; retained Auto observation status is unknown.") : view && auto.status !== "observed" ? (0, react.createElement)("p", { style: { margin: 0 } }, "No retained observations yet.") : null, autoRows.length ? (0, react.createElement)("p", { style: {
|
|
7531
7547
|
...nativeCaptionStyle,
|
|
7532
7548
|
margin: 0
|
|
7533
|
-
} }, `${autoOpportunities} candidate opportunities · ${autoExpected.toFixed(3)} expected selections · ${autoSelections} actual selections · ${autoNoFit} no-fit decisions. Compare expected and selected counts only within matching cohorts; these are not execution, quality or billing evidence.`) : null), view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Physical request observations"), (0, react.createElement)("p", { style: { margin: 0 } }, requests ? `${requests.rows.length} retained requests · ${requests.pending ?? 0} sampled pending · ${requests.dropped} dropped · ${requests.evicted} expired/evicted · ${requests.interruptedOnReopen ?? 0} interrupted on reopen` : "No retained request observations. This does not establish zero failures or enabled collection."), (0, react.createElement)("p", { style: {
|
|
7549
|
+
} }, `${autoOpportunities} candidate opportunities · ${autoExpected.toFixed(3)} expected selections · ${autoSelections} actual selections · ${autoNoFit} no-fit decisions. Compare expected and selected counts only within matching cohorts; these are not execution, quality or billing evidence. Assessment outcomes explain classification only, not the supplier root cause. Legacy reasons are not recorded; sum Selected or No-fit, not candidate opportunities, when counting decisions by outcome.`) : null), view ? (0, react.createElement)("details", null, (0, react.createElement)("summary", null, "Physical request observations"), (0, react.createElement)("p", { style: { margin: 0 } }, requests ? `${requests.rows.length} retained requests · ${requests.pending ?? 0} sampled pending · ${requests.dropped} dropped · ${requests.evicted} expired/evicted · ${requests.interruptedOnReopen ?? 0} interrupted on reopen` : "No retained request observations. This does not establish zero failures or enabled collection."), (0, react.createElement)("p", { style: {
|
|
7534
7550
|
...nativeCaptionStyle,
|
|
7535
7551
|
margin: 0
|
|
7536
7552
|
} }, "Managed native adapter dispatches only. Local body-write completion is not supplier receipt. Stream-done is a native terminal observation, not tool execution or billing success. No Core retry count or Session/turn attribution is inferred."), requests?.rows.length ? (0, react.createElement)("div", { style: {
|