dsh-github-copilot 0.4.2-alpha.2 → 0.4.2-alpha.4
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 +1 -1
- package/CHANGELOG.md +22 -1
- package/README.md +19 -8
- package/README.zh.md +15 -8
- package/deployment-baseline.json +6 -1
- package/docs/plugin-diagnostics.md +76 -8
- package/lib/client.js +306 -60
- package/lib/client.js.map +1 -1
- package/lib/diagnostics-analysis.js +4 -2
- package/lib/{diagnostics-types-Bl3QCfR0.js → diagnostics-types-CpyhNCSg.js} +106 -13
- package/lib/index.js +222 -5
- package/lib/manual-compaction-recovery.js +1 -1
- package/lib/remote.js +113 -12
- package/lib/types/config.d.ts +6 -2
- package/lib/types/copilot-usage-remote.d.ts +1 -1
- package/lib/types/diagnostics-analysis.d.ts +1 -0
- package/lib/types/diagnostics-collector.d.ts +6 -0
- package/lib/types/diagnostics-host.d.ts +51 -1
- package/lib/types/diagnostics-remote.d.ts +3 -2
- package/lib/types/diagnostics-types.d.ts +183 -6
- package/lib/types/native-settings-style.d.ts +1 -1
- package/lib/types/preview-provider.d.ts +6 -0
- package/lib/types/remote.d.ts +1 -1
- package/lib/types/request-diagnostics.d.ts +190 -0
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -52,7 +52,7 @@ projection may diagnose concrete failed-zero or invalid-sample incidents; ordina
|
|
|
52
52
|
request progress and absent fresh sampling stay quiet. Never filter shared native
|
|
53
53
|
usage, replace Core's meter, infer current occupancy/percentages or rewrite history.
|
|
54
54
|
See [quota boundaries](./docs/copilot-usage.md).
|
|
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.
|
|
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
57
|
## Session-policy compaction replay consent (#349, #352)
|
|
58
58
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.2-alpha.4 (prepared)
|
|
4
|
+
|
|
5
|
+
- Add independently opt-in, content-free managed-adapter physical request
|
|
6
|
+
observations to Local diagnostics: model/protocol, JSON/wire byte counts,
|
|
7
|
+
bounded composition, local transport timings, HTTP status and strict terminal
|
|
8
|
+
categories. Existing aggregate collection does not enable this scope.
|
|
9
|
+
- Retain at most 128 request rows for 24 hours within the shared 2 MiB snapshot.
|
|
10
|
+
Expose dropped/expired/pending/reopen gaps, independent pause and confirmed
|
|
11
|
+
clear, a native-style request table and explicit reviewed-JSON scope.
|
|
12
|
+
- Preserve native request bytes, retry decisions, stream results and accounting.
|
|
13
|
+
Body-write completion is not supplier receipt; missing terminal text is not
|
|
14
|
+
abort evidence. This improves investigation, not HTTP408/EOF/context recovery.
|
|
15
|
+
- Keep the offline account/compaction analyzer aggregate-only, with an explicit
|
|
16
|
+
gap when separately collected request observations are omitted.
|
|
17
|
+
|
|
18
|
+
## 0.4.2-alpha.3 (prepared)
|
|
19
|
+
|
|
20
|
+
- Put daily Auto allocation aggregate rows in the primary Local diagnostics view, with UTC date, policy, model, decision cohort, opportunities, expected selections, selected counts and no-fit decisions. Keep cohorts distinct and state that these counts do not prove execution, quality or billing.
|
|
21
|
+
- Move account/Checking and compaction tables, collection controls, and data-scope/limits/JSON guidance into collapsed disclosures. Preserve status retry access, independent default-off switches and separately confirmed clear behavior.
|
|
22
|
+
- Match disclosure summaries and aggregate tables to native settings typography. Update bilingual usage guidance and add focused component regressions; no collection, CAS, storage, privacy or routing policy changes.
|
|
23
|
+
|
|
3
24
|
## 0.4.2-alpha.1 (publication blocked: immutable tag metadata)
|
|
4
25
|
|
|
5
26
|
- Persist bounded daily Auto allocation aggregates in the existing profile-isolated local diagnostics storage domain. The Auto collection switch is independent and default-off; enabling it does not enable account/Checking or compaction collection.
|
|
@@ -7,7 +28,7 @@
|
|
|
7
28
|
- Preserve turn routing and Host-lifetime explanations when observation is disabled or fails. No Session/turn IDs, conversation data, upload, automatic tuning or execution/quality/billing inference is added.
|
|
8
29
|
- Add collector, UI, Remote codec and storage-gateway regression coverage; synthetic tests do not establish live Desktop activation or Auto performance.
|
|
9
30
|
|
|
10
|
-
## 0.4.2-alpha.2 (
|
|
31
|
+
## 0.4.2-alpha.2 (published)
|
|
11
32
|
|
|
12
33
|
- Carry forward the default-off local Auto allocation observations from the unpublished `0.4.2-alpha.1` candidate.
|
|
13
34
|
- Accept the repository's `(prepared)` changelog heading in the release preflight and verify exactly one version section before publishing.
|
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.4`.** `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
|
|
|
@@ -43,13 +43,24 @@ and loading the published build, open the plugin detail settings page →
|
|
|
43
43
|
**Local diagnostics → Read status → Enable local collection**. This enables
|
|
44
44
|
local account/Checking and compaction persistence, not uploads or scheduled
|
|
45
45
|
analysis. Enable **Auto allocation observation** separately to collect only
|
|
46
|
-
Auto allocation aggregates.
|
|
46
|
+
Auto allocation aggregates. **Enable request observations** is a third, independent,
|
|
47
|
+
default-off control: up to 128 content-free managed-adapter physical requests
|
|
48
|
+
for 24 hours, with model, JSON/wire byte counts, timings, HTTP status and terminal
|
|
49
|
+
categories. No bodies, headers, credentials or Session/turn IDs are collected.
|
|
50
|
+
Local body-write completion does not prove supplier receipt; these diagnostics
|
|
51
|
+
do not fix timeouts or alter retry/Usage behavior.
|
|
52
|
+
The package also has an explicit offline analyzer
|
|
47
53
|
for a caller-selected persisted unit or reviewed aggregate view; it writes only
|
|
48
54
|
to a new local report file and never scans, uploads or changes collection. Pause
|
|
49
55
|
preserves evidence; Clear requires separate confirmation. Client/Host
|
|
50
56
|
populations, uncovered paths and reporting/storage gaps remain explicit.
|
|
51
57
|
Descriptive counts are not reconstructed history, failure rates or proof of an
|
|
52
|
-
improvement.
|
|
58
|
+
improvement. The diagnostics page opens on a daily Auto allocation table by UTC
|
|
59
|
+
date, policy, model and cohort, with opportunities, expected selections, selected
|
|
60
|
+
counts and no-fit decisions. Compare expected and selected counts only within
|
|
61
|
+
matching cohorts. Account/Checking and compaction reports, collection controls,
|
|
62
|
+
and detailed scope, limits and JSON are in collapsed disclosures; clearing still
|
|
63
|
+
requires separate confirmation.
|
|
53
64
|
|
|
54
65
|
To analyze an explicitly qualified file from a built package or source checkout:
|
|
55
66
|
|
|
@@ -100,10 +111,10 @@ Supply any launcher patches with repeated `--patch /absolute/file`. Require `sup
|
|
|
100
111
|
For a **standalone named profile**:
|
|
101
112
|
|
|
102
113
|
```sh
|
|
103
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
114
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
|
|
104
115
|
```
|
|
105
116
|
|
|
106
|
-
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.
|
|
117
|
+
For **Desktop**, its native package manager accepts an exact npm spec, for example `dsh-github-copilot@0.4.2-alpha.4`; 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.
|
|
107
118
|
|
|
108
119
|
After an approved reload/restart:
|
|
109
120
|
|
|
@@ -279,14 +290,14 @@ Commit attribution uses `Assisted-by` with the actual tool, never the model prov
|
|
|
279
290
|
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.
|
|
280
291
|
|
|
281
292
|
```sh
|
|
282
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
283
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
293
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
|
|
294
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/SHA256SUMS
|
|
284
295
|
sha256sum --check SHA256SUMS
|
|
285
296
|
```
|
|
286
297
|
|
|
287
298
|
```powershell
|
|
288
299
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
289
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
300
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.4.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
290
301
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
291
302
|
```
|
|
292
303
|
|
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.4`。** `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
|
|
|
@@ -34,10 +34,17 @@ Session/turn ID、对话内容,也不推断执行/结果,不自动调参
|
|
|
34
34
|
汇总,**默认关闭**。安装并加载已发布版本后,进入插件详情设置页 →
|
|
35
35
|
**Local diagnostics → Read status → Enable local collection**,开启本地持久化;
|
|
36
36
|
仅用于账号/Checking 与压缩汇总,不上传或启用每日分析。另行启用
|
|
37
|
-
**Auto allocation observation** 才会单独收集 Auto
|
|
37
|
+
**Auto allocation observation** 才会单独收集 Auto 分配汇总。第三个独立、默认关闭的
|
|
38
|
+
**Enable request observations** 开关保留最多 128 条托管适配器的物理请求观测,保留 24 小时:
|
|
39
|
+
仅包含模型、JSON/传输字节数、耗时、HTTP 状态和终止分类,不记录正文、headers、
|
|
40
|
+
凭据或 Session/turn ID。本地写出完成不证明供应方收到了请求;诊断不会修复超时,
|
|
41
|
+
也不改变重试或 Usage。包内另提供显式离线分析器,
|
|
38
42
|
只处理调用者指定的持久化单元或经审阅的聚合视图,并且只新建本地报告文件;不会扫描、
|
|
39
43
|
上传或更改采集设置。暂停保留证据,清除需单独确认。Client/Host 分开统计,未覆盖路径、
|
|
40
|
-
|
|
44
|
+
报告丢失与存储故障明确显示。描述性计数不是历史重建、错误率,也不表示优化效果已被验证。诊断页默认显示按 UTC 日期、
|
|
45
|
+
策略、模型和 cohort 划分的 Auto 分配每日汇总表,包含候选机会、预期选择、实际选择及
|
|
46
|
+
no-fit 决策;只能在匹配 cohort 内比较预期与实际选择。账号/Checking 和压缩报告、采集控制、
|
|
47
|
+
详细范围/限制/JSON 位于折叠区;清除仍需单独确认。
|
|
41
48
|
|
|
42
49
|
在已构建的包或源码 checkout 内,显式分析已核验的文件:
|
|
43
50
|
|
|
@@ -88,10 +95,10 @@ node package/scripts/check-search-composition.mjs --profile-dir /absolute/profil
|
|
|
88
95
|
**独立具名 profile**:
|
|
89
96
|
|
|
90
97
|
```sh
|
|
91
|
-
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
98
|
+
dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
|
|
92
99
|
```
|
|
93
100
|
|
|
94
|
-
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.
|
|
101
|
+
**Desktop** 原生包管理器接受精确 npm spec,例如 `dsh-github-copilot@0.4.2-alpha.4`;稳定版发布到 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 或删除配置。
|
|
95
102
|
|
|
96
103
|
经批准 reload/restart 后:
|
|
97
104
|
|
|
@@ -267,14 +274,14 @@ Agent 从 `node scripts/agent.mjs describe --json`、`doctor --json`及`plan <ta
|
|
|
267
274
|
GitHub Releases 和 npm 分发同一原始已校验 tarball。固定版本并核验 Release SHA-256 或 npm `dist.integrity`;不重打包不可变 Release、不移动/复用 tag。
|
|
268
275
|
|
|
269
276
|
```sh
|
|
270
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
271
|
-
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.
|
|
277
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/dsh-github-copilot-0.4.2-alpha.4.tgz
|
|
278
|
+
curl -LO https://github.com/cloga/dsh-github-copilot/releases/download/v0.4.2-alpha.4/SHA256SUMS
|
|
272
279
|
sha256sum --check SHA256SUMS
|
|
273
280
|
```
|
|
274
281
|
|
|
275
282
|
```powershell
|
|
276
283
|
$expected = (Get-Content .\SHA256SUMS).Split()[0]
|
|
277
|
-
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.
|
|
284
|
+
$actual = (Get-FileHash .\dsh-github-copilot-0.4.2-alpha.4.tgz -Algorithm SHA256).Hash.ToLowerInvariant()
|
|
278
285
|
if ($actual -cne $expected) { throw 'Release checksum mismatch' }
|
|
279
286
|
```
|
|
280
287
|
|
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.4"
|
|
12
12
|
},
|
|
13
13
|
"evidence": {
|
|
14
14
|
"kind": "source-and-synthetic-test-inventory",
|
|
@@ -296,6 +296,9 @@
|
|
|
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/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_MAX_ROWS = 128"},
|
|
300
|
+
{"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_RETENTION_MS = 24 * 60 * 60 * 1000"},
|
|
301
|
+
{"file": "src/config.ts", "marker": "requestDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
|
|
299
302
|
{"file": "src/diagnostics-host.ts", "marker": "diagnosticsDomainForProfile"},
|
|
300
303
|
{"file": "src/diagnostics-client.ts", "marker": "createClientDiagnosticsScope"},
|
|
301
304
|
{"file": "src/remote.ts", "marker": "...diagnosticsRemote.descriptors"},
|
|
@@ -304,6 +307,8 @@
|
|
|
304
307
|
],
|
|
305
308
|
"tests": [
|
|
306
309
|
{"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
|
|
310
|
+
{"file": "tests/request-diagnostics.spec.ts", "name": "requires independent consent, captures status/timing and never infers upload or retry count"},
|
|
311
|
+
{"file": "tests/preview-transport-failures.spec.ts", "name": "records verified 408 once without changing the native error, serialized input or dispatch count"},
|
|
307
312
|
{"file": "tests/diagnostics-client.spec.ts", "name": "rejects stale status responses and settles an unmounted Checking operation once"},
|
|
308
313
|
{"file": "tests/diagnostics-card.spec.ts", "name": "requires a confirmed durable enable and a separate destructive clear confirmation"},
|
|
309
314
|
{"file": "tests/fixtures/diagnostics-storage-core.fixture.ts", "name": "isolates profiles on the home-wide backend and preserves memory on a real publish failure"},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Local diagnostics: account, compaction
|
|
1
|
+
# Local diagnostics: account, compaction, Auto allocation and requests
|
|
2
2
|
|
|
3
3
|
Roadmap: [#347](https://github.com/cloga/dsh-github-copilot/issues/347).
|
|
4
4
|
Phase 0: [#354](https://github.com/cloga/dsh-github-copilot/issues/354).
|
|
@@ -22,6 +22,15 @@ through native path-level Settings CAS and confirm readback. This enables
|
|
|
22
22
|
collection **and bounded local aggregate persistence**, not exports or uploads.
|
|
23
23
|
The normal installation does not change this default-off setting.
|
|
24
24
|
|
|
25
|
+
The page opens with the daily Auto allocation table: UTC date, policy, model,
|
|
26
|
+
decision cohort, opportunities, expected selections, selected counts and no-fit
|
|
27
|
+
decisions. Compare expected and selected counts only within matching cohorts;
|
|
28
|
+
these aggregates do not establish execution, quality or billing. Account and
|
|
29
|
+
compaction summaries, collection controls, and detailed data-scope/limits/JSON
|
|
30
|
+
guidance are in collapsed disclosures. If a status read fails, expand Collection
|
|
31
|
+
controls to find **Read status**; no failed operation is automatically replayed.
|
|
32
|
+
Clearing aggregates still requires its separate confirmation.
|
|
33
|
+
|
|
25
34
|
Use the plugin normally: account selection, Identity/Checking and compaction
|
|
26
35
|
will contribute independent Client/Host populations. Auto model allocation has a
|
|
27
36
|
separate **Enable Auto allocation observation** control and its own hidden,
|
|
@@ -36,17 +45,23 @@ not contain Session/turn identifiers, prompts, outcomes, execution or billing
|
|
|
36
45
|
attribution. Aggregate rows are capped at 1,024, retained for 14 days and
|
|
37
46
|
included in the existing 2 MiB snapshot limit; expired, dropped, truncated,
|
|
38
47
|
saturated and restart evidence remains explicit. There is no per-turn export,
|
|
39
|
-
automatic tuning or upload. The
|
|
40
|
-
**
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
automatic tuning or upload. The aggregate controls can be paused independently.
|
|
49
|
+
The separate **Enable request observations** control uses the hidden volatile
|
|
50
|
+
`github-copilot.requestDiagnosticsEnabled` leaf with path-level CAS and exact
|
|
51
|
+
readback. Existing aggregate consent never enables request observations.
|
|
52
|
+
**Clear local diagnostics** clears all three populations, including request
|
|
53
|
+
observations, without changing the three enabled/paused controls.
|
|
54
|
+
|
|
55
|
+
**Read status** returns a strict snapshot; **Review aggregate-only JSON → Prepare current JSON**
|
|
43
56
|
prepares a read-only copy for explicit review/sharing, never a download or upload.
|
|
57
|
+
When retained request observations exist, the disclosure is instead named
|
|
58
|
+
**Review local diagnostics JSON** and includes that separately consented scope.
|
|
44
59
|
The coding session does not automatically gain access to the running Host.
|
|
45
60
|
Pause preserves retained evidence and closes active observations as interrupted.
|
|
46
61
|
It remains available for a configured-on collector when storage is unavailable;
|
|
47
62
|
enabling still requires ready storage.
|
|
48
63
|
Clear requires a separate confirmation, advances an epoch and removes this
|
|
49
|
-
domain's aggregates without changing the enabled
|
|
64
|
+
domain's aggregates and request observations without changing the enabled settings, accounts or history.
|
|
50
65
|
An uncertain write is not automatically replayed by the UI.
|
|
51
66
|
|
|
52
67
|
## Storage and limits
|
|
@@ -116,7 +131,8 @@ signal evidence; arbitrary native error text cannot establish cancellation.
|
|
|
116
131
|
|
|
117
132
|
Stock/custom-engine physical summaries, recovery opt-out/native-only summary
|
|
118
133
|
branches, OAuth Add/reauthorization/removal, quota, ordinary model refresh,
|
|
119
|
-
|
|
134
|
+
canonical/custom transport and unwrapped RPCs remain uncovered. Managed native
|
|
135
|
+
adapter HTTP dispatches have only the separately enabled coverage below.
|
|
120
136
|
Native checkpoint observation is not filesystem durability evidence. Reporting
|
|
121
137
|
loss, crashes, disabled intervals and paging/coverage gaps must never be treated
|
|
122
138
|
as zero failures. No automatic daily analysis, issue creation, account/model
|
|
@@ -133,6 +149,54 @@ factory in its own isolated realm, sharing the actual public Cordis identity.
|
|
|
133
149
|
It does not substitute tagged source for published bytes or attach to a live
|
|
134
150
|
Client module registry; factory qualification is not Desktop activation proof.
|
|
135
151
|
|
|
152
|
+
## Content-free physical request observations (#392)
|
|
153
|
+
|
|
154
|
+
This independent, default-off pilot observes physical Fetch dispatches composed
|
|
155
|
+
by the plugin-managed native adapter. It does not intercept canonical routes,
|
|
156
|
+
change request bodies, timeout settings, retry decisions or native accounting.
|
|
157
|
+
It retains at most 128 completed observations and 128 live handles for 24 hours
|
|
158
|
+
within the same 2 MiB snapshot ceiling. Expiry, capacity drops and sampled
|
|
159
|
+
pending counts are explicit. Pause settles live observations as interrupted;
|
|
160
|
+
clear fences late completions. Saved pending counts become interrupted-on-reopen
|
|
161
|
+
counts, not fabricated request rows. Abrupt loss can still lose the unflushed
|
|
162
|
+
tail and requests that began since the last saved sample.
|
|
163
|
+
|
|
164
|
+
Rows contain plugin version, request time, bounded model/protocol metadata,
|
|
165
|
+
original JSON and dispatched wire byte counts, encoding, bounded composition
|
|
166
|
+
partitions, local header/elapsed timing, HTTP status and fixed terminal/reason
|
|
167
|
+
categories. Existing public native upload observations add ALPN, local body-write
|
|
168
|
+
timing and writable-buffer bytes only when available. Unsupported/ambiguous
|
|
169
|
+
transport evidence stays explicitly unavailable. Composition is bounded to
|
|
170
|
+
16 MiB and fixed parser work limits; larger bodies retain byte counts with
|
|
171
|
+
`size-limit`, never an invented composition or unlimited body parse. These are
|
|
172
|
+
diagnostic work limits, not provider request limits.
|
|
173
|
+
|
|
174
|
+
Random stream UUIDs group only dispatches within one native SDK stream.
|
|
175
|
+
`dispatchIndex` is physical Fetch order, **not** Core's retry number or an
|
|
176
|
+
end-to-end Session/turn correlation. No account/Session/turn IDs or hashes,
|
|
177
|
+
URLs, headers, raw errors, prompts, tool parameters/results, attachment or replay
|
|
178
|
+
content, credentials or token accounting are retained. Review timestamps/model
|
|
179
|
+
metadata before explicit sharing; nothing is uploaded automatically.
|
|
180
|
+
|
|
181
|
+
An exact verified HTTP408 `user_request_timeout` is classified as
|
|
182
|
+
`request-body-timeout`; other provider/transport errors remain fixed unknown
|
|
183
|
+
categories. Real caller, branded plugin-owned and byte-idle abort signals retain
|
|
184
|
+
their strict attribution. Missing terminal/`terminated` text is not reinterpreted
|
|
185
|
+
as a signal abort. `stream-done` means native terminal observation, not execution,
|
|
186
|
+
billing or recovery success. Local body-write completion and zero writable buffer
|
|
187
|
+
do **not** prove TCP acknowledgement, proxy forwarding or supplier receipt.
|
|
188
|
+
These observations can distinguish a repeated large-body timeout from an
|
|
189
|
+
actual cancellation; they do not identify the remote fault owner or fix
|
|
190
|
+
HTTP408, EOF, retries or the native context meter.
|
|
191
|
+
|
|
192
|
+
The collapsed **Physical request observations** table exposes latest retained
|
|
193
|
+
timings/status/bytes. Detailed composition, transport evidence and random group
|
|
194
|
+
IDs remain in reviewed JSON. Capture failures log only the fixed
|
|
195
|
+
`COPILOT_REQUEST_DIAGNOSTICS_FAILED` code and never replace the native result.
|
|
196
|
+
Synthetic native-SDK tests exercise HTTP408, missing terminal, real abort,
|
|
197
|
+
concurrent stream isolation and unchanged request/error delivery without network
|
|
198
|
+
or live account use.
|
|
199
|
+
|
|
136
200
|
## Explicit offline analysis (#368)
|
|
137
201
|
|
|
138
202
|
The package provides a separate, read-only analyzer for one explicitly selected
|
|
@@ -156,7 +220,11 @@ must identify the file and profile. The tool never searches DSH homes,
|
|
|
156
220
|
enumerates storage units, opens a storage-domain writer or RPC, reads Settings,
|
|
157
221
|
credentials or history, or falls back between modes.
|
|
158
222
|
|
|
159
|
-
Both modes reuse the collector's strict Zod snapshot/view vocabulary.
|
|
223
|
+
Both modes reuse the collector's strict Zod snapshot/view vocabulary. Request
|
|
224
|
+
observations are validated but deliberately not included in the account/compaction
|
|
225
|
+
aggregate report; `request-observations-not-analyzed` marks their omission.
|
|
226
|
+
Review the source JSON separately for transport investigation; absence of
|
|
227
|
+
aggregate candidates says nothing about request failures. The
|
|
160
228
|
reader rejects symlinks and non-files, caps input at 8 MiB, opens only for
|
|
161
229
|
reading, decodes fatal UTF-8, and checks file identity, size and modification
|
|
162
230
|
metadata before and after reading. These checks bound and detect ordinary
|