dsh-github-copilot 0.4.2-alpha.5 → 0.4.2-alpha.6
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 +5 -0
- package/CHANGELOG.md +12 -0
- package/README.md +11 -7
- package/README.zh.md +10 -7
- package/deployment-baseline.json +4 -1
- package/docs/auto-iteration-review.json +12 -12
- package/docs/plugin-diagnostics.md +10 -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 +2 -2
- 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/diagnostics-host.d.ts +2 -0
- package/lib/types/diagnostics-types.d.ts +48 -0
- 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
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2-alpha.6 (prepared)
|
|
4
|
+
|
|
5
|
+
- Retain fixed assessment outcomes in existing opted-in daily Auto allocation
|
|
6
|
+
aggregates and their diagnostic table: timeout, disabled, unavailable, invalid
|
|
7
|
+
result, failed, omitted context, and known/unknown local or semantic assessment.
|
|
8
|
+
- Preserve legacy missing reasons as unrecorded, keep outcome cohorts separate
|
|
9
|
+
through strict gateways and storage reopen, and distinguish task counts from
|
|
10
|
+
repeated candidate opportunities. No prompts, error bodies or Session IDs added.
|
|
11
|
+
- Leave classification, routing, eight-second assessment budget, conservative
|
|
12
|
+
context handling and collection consent unchanged. Historical unknown causes
|
|
13
|
+
remain unproven; review new outcome data before changing policy.
|
|
14
|
+
|
|
3
15
|
## 0.4.2-alpha.5 (prepared)
|
|
4
16
|
|
|
5
17
|
- 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.6`.** `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.6/dsh-github-copilot-0.4.2-alpha.6.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.6`; 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
|
|
|
@@ -295,14 +299,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
295
299
|
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
300
|
|
|
297
301
|
```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.
|
|
302
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.6/dsh-github-copilot-0.4.2-alpha.6.tgz
|
|
303
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.6/SHA256SUMS
|
|
300
304
|
sha256sum --check SHA256SUMS
|
|
301
305
|
```
|
|
302
306
|
|
|
303
307
|
```powershell
|
|
304
308
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
305
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
309
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.6.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
306
310
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
307
311
|
```
|
|
308
312
|
|
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.6`。** `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.6/dsh-github-copilot-0.4.2-alpha.6.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.6`;稳定版发布到 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
|
|
|
@@ -278,14 +281,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
278
281
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
279
282
|
|
|
280
283
|
```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.
|
|
284
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.6/dsh-github-copilot-0.4.2-alpha.6.tgz
|
|
285
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.6/SHA256SUMS
|
|
283
286
|
sha256sum --check SHA256SUMS
|
|
284
287
|
```
|
|
285
288
|
|
|
286
289
|
```powershell
|
|
287
290
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
288
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
291
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.6.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
289
292
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
290
293
|
```
|
|
291
294
|
|
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.6"
|
|
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"},
|
|
@@ -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; diagnostic-only follow-up #398.",
|
|
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": "Retain classification, category routing, positive weights, continuity, eight-second deadline, context safety and existing consent. Add only fixed content-free assessment outcomes to daily candidate/no-fit strata and their existing table. Keep legacy absent reasons explicitly unrecorded. Do not force downgrades, increase the timeout or infer classifier/network failure from unknown demand.",
|
|
15
|
+
"validation": "Regression-first collector tests reproduced diagnostic cohort collapse and merging fresh rows with legacy unrecorded rows. 70 focused assessment/classifier/routing/collector/UI tests, source/test types and four public gateway/storage fixture tests including reopen passed. The complete 130-file low-concurrency suite passed 2724 tests with two expected skips; the default-concurrency full gate hit an existing 5000ms allocation stress-test timeout. No timeout or assertion weakened. Tooling/package and required Windows/Linux delivery gates are recorded separately in the implementation PR; this document does not claim live activation.",
|
|
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. Keep candidate opportunities and actual versus expected selections separate from task counts.",
|
|
20
|
+
"action": "Use local sanitized aggregates to fix an evidenced dominant assessment failure or retain the conservative fallback; unknown or insufficient evidence defers tuning. No automatic upload, transition reconstruction, quality inference or credit inference. Track implementation in #398 and the open post-delivery review in #334."
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -46,6 +46,16 @@ 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, its eight-second budget and conservative omitted-context guard
|
|
57
|
+
are unchanged. Older strict plugin versions may reject new snapshot fields on
|
|
58
|
+
rollback; do not delete or silently rewrite retained evidence to make them parse.
|
|
49
59
|
The separate **Enable request observations** control uses the hidden volatile
|
|
50
60
|
`github-copilot.requestDiagnosticsEnabled` leaf with path-level CAS and exact
|
|
51
61
|
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.6";
|
|
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: {
|