dsh-github-copilot 0.1.0-alpha.16.dsh.0.2.2.rc.3 → 0.1.0-alpha.17.dsh.0.2.2.rc.3

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.
Files changed (38) hide show
  1. package/AGENTS.md +7 -29
  2. package/CHANGELOG.md +6 -0
  3. package/README.md +8 -10
  4. package/README.zh.md +6 -8
  5. package/deployment-baseline.json +16 -37
  6. package/docs/auto-high-cost.md +5 -19
  7. package/docs/copilot-accounts.md +2 -5
  8. package/docs/plugin-diagnostics.md +12 -617
  9. package/lib/client.js +22 -1057
  10. package/lib/client.js.map +1 -1
  11. package/lib/index.js +1025 -2255
  12. package/lib/manual-compaction-recovery.js +1 -15
  13. package/lib/remote.js +9 -451
  14. package/lib/types/client.d.ts +0 -3
  15. package/lib/types/config.d.ts +1 -4
  16. package/lib/types/context-evidence.d.ts +4 -4
  17. package/lib/types/copilot-accounts-host.d.ts +0 -1
  18. package/lib/types/copilot-auth.d.ts +1 -1
  19. package/lib/types/copilot-usage-remote.d.ts +1 -1
  20. package/lib/types/preview-provider.d.ts +0 -6
  21. package/lib/types/remote.d.ts +2 -2
  22. package/lib/types/session-accounts-host.d.ts +1 -1
  23. package/package.json +1 -4
  24. package/lib/diagnostics-analysis-io.js +0 -78
  25. package/lib/diagnostics-analysis.js +0 -429
  26. package/lib/diagnostics-types-o02ogaiI.js +0 -676
  27. package/lib/types/auto-allocation-diagnostics.d.ts +0 -126
  28. package/lib/types/diagnostics-analysis-io.d.ts +0 -23
  29. package/lib/types/diagnostics-analysis.d.ts +0 -312
  30. package/lib/types/diagnostics-card.d.ts +0 -12
  31. package/lib/types/diagnostics-client.d.ts +0 -13
  32. package/lib/types/diagnostics-collector.d.ts +0 -58
  33. package/lib/types/diagnostics-host.d.ts +0 -185
  34. package/lib/types/diagnostics-remote.d.ts +0 -121
  35. package/lib/types/diagnostics-types.d.ts +0 -924
  36. package/lib/types/native-diagnostics.d.ts +0 -5
  37. package/lib/types/request-diagnostics.d.ts +0 -278
  38. package/scripts/analyze-diagnostics.mjs +0 -91
package/AGENTS.md CHANGED
@@ -215,34 +215,12 @@ projection may diagnose concrete failed-zero or invalid-sample incidents; ordina
215
215
  request progress and absent fresh sampling stay quiet. Never filter shared native
216
216
  usage, replace Core's meter, infer current occupancy/percentages or rewrite history.
217
217
  See [quota boundaries](./docs/copilot-usage.md).
218
- 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).
219
-
220
- Auto aggregate assessment outcomes are fixed codes only; keep legacy missing reasons
221
- unrecorded and separate from new cohorts. Count decisions by selected/no-fit counts,
222
- not repeated candidate opportunities. Never change assessment policy, deadline or
223
- context safety merely to populate diagnostics; retain the shared storage/row bounds.
224
-
225
- Credential-change observations (#402) use the existing independent request
226
- consent: at most 128 fixed notification/commit rows and pending handles for 24
227
- hours within the shared 2 MiB cap. Derive reasons only from existing refresh
228
- checks, never new credential reads. No grant/record/identity/endpoint values or
229
- hashes; random change IDs join verdict phases only. Live-wire counts are not
230
- unique requests, retries or execution proof. Unknown source and missing legacy
231
- evidence stay unknown. Preserve #385 qualification/revocation; clear, pause,
232
- expiry and disposal fence later callbacks. Each diagnostic population, including
233
- Auto, is independently collapsed by default; opening it never enables collection.
234
-
235
- Native logical observations (#486) require a separate default-off
236
- `nativeDiagnosticsEnabled` CAS/readback consent. Observe only the public
237
- `llm/stream` waterfall and the plugin's native hosted-search operation, without
238
- changing chunks, transport, retries or Usage. Store fixed hourly counts, coarse
239
- duration buckets and terminal categories, never content, model/account/Session
240
- IDs or raw errors. Review purpose is not proof of reviewer identity; neither
241
- logical observation proves HTTP dispatch, supplier receipt, execution or
242
- billing. Clear/pause/disposal fence late and unconsumed streams. Native and
243
- account aggregates share the 14-day, 128-live and 2 MiB limits but remain
244
- separate in presentation and offline analysis. Older strict versions may reject
245
- new operation codes on rollback; never delete retained evidence to work around it.
218
+ 12. Local diagnostics is retired (#499): do not register its service, UI,
219
+ Remotes, storage or collectors. Preserve existing data and the four hidden
220
+ legacy settings without rewriting them; even true values do not enable
221
+ collection. Older releases may collect again if loaded with those settings.
222
+ Native Usage, context incident notices, immediate request errors and native
223
+ refresh qualification remain independent. See [retirement details](./docs/plugin-diagnostics.md).
246
224
 
247
225
  ## Session-policy compaction replay consent (#349, #352)
248
226
 
@@ -377,7 +355,7 @@ Alpha.25 admits native `subagent/descriptor` v3, already v3 in the retained rc.1
377
355
  - `src/response-error-body.ts`, `src/request-body-timeout.ts`, `src/request-upload-evidence.ts`: bounded clone-only HTTP error evidence and safe managed upload-timeout guidance. Request-scoped public Node diagnostic events supply numeric local body-write/header/ALPN evidence only after an exact verified `408/user_request_timeout`; absent events, multiple native requests and work limits stay explicit. Always dispose subscriptions when Fetch settles, without changing its arguments, Response/errors, dispatcher, proxy or retry owner. Local body-write completion is not upload duration, kernel ACK, supplier receipt or execution; its absence does not prove incomplete upload. Native failure classification/retry metadata stay unchanged; final JSON bytes are not tokens or a payload limit. A separate explicit opt-in compression setting is default-off and never activated by a 408; never infer overflow, auto-compact, trim history, switch models or add retries from a 408.
378
356
  - `src/responses-request-compression.ts`: asynchronous `node:zlib` gzip at `Z_BEST_SPEED` only for exact account-proven official Copilot HTTPS `/responses` JSON POSTs through the existing public Fetch seam. `github-copilot.responsesRequestCompression` defaults false; enforce the 256 KiB minimum, 32 MiB compression-work bound and both 5%/4 KiB savings thresholds. Skips retain the original request with a fixed reason, and cancellation/account/deadline fences run before dispatch. No custom Fetch, other protocol, explicit `auto`/WebSocket, DNS/proxy/dispatcher changes, context-admission or replay changes, resend after an encoding rejection, or new retry. Gzip is wire encoding, not compaction or proof of supplier receipt.
379
357
  - Verified 408 error correlation (#276) adds only validated model/protocol, UTC header-observation time and strictly formatted `x-github-request-id` / `x-request-id` response IDs. Missing/malformed IDs stay unavailable; no other header values or new persisted population. IDs do not prove receipt/execution, and zero/unknown image composition cannot justify image-budget guidance.
380
- - `src/request-body-evidence.ts`, `src/request-body-composition.ts`: bounded numeric original-JSON spans for verified 408s and separately consented request observations. Keep replay validation/recovery at 16 MiB; only diagnostic composition may use the 32 MiB cooperative scanner with 64 Ki-character yields, a two-second monotonic deadline and four scan slots. Do not build a full payload object graph or decode image/replay values. Conversation/tool definitions/top-level system/residual partition total bytes; structural image and opaque replay spans are disjoint conversation subsets. Unknown/limited/cancelled evidence stays explicit. Opted-in large scans start after Fetch invocation without delaying ordinary native delivery; retained numeric rows may update after settlement only behind consent/clear/retention/eviction fences. Retain source strings only for bounded in-flight counting, never in storage/logs. Fetch-to-header time excludes analysis and is not upload duration. With gzip, report original JSON and prepared HTTP-body bytes separately; neither establishes delivered bytes. No automatic mitigation, timeout/retry changes or supplier-limit claim.
358
+ - `src/request-body-evidence.ts`, `src/request-body-composition.ts`: bounded numeric original-JSON spans for verified 408 guidance only. Keep replay validation/recovery at 16 MiB; error composition may use the 32 MiB cooperative scanner with 64 Ki-character yields, a two-second monotonic deadline and four scan slots. Do not build a full payload object graph or decode image/replay values. Conversation/tool definitions/top-level system/residual partition total bytes; structural image and opaque replay spans are disjoint conversation subsets. Unknown/limited/cancelled evidence stays explicit. Retain source strings only for bounded in-flight counting, never in storage/logs. With gzip, report original JSON and prepared HTTP-body bytes separately; neither establishes delivered bytes. No automatic mitigation, timeout/retry changes or supplier-limit claim.
381
359
  - `src/copilot-stream-liveness.ts`: request-local HTTP/SSE byte-idle observation, paired with the public native adapter's bounded assistant-chunk deadline. Default five-minute byte idle and ten-minute semantic silence; no fake assistant output, private watchdog access, new retry or Core patch. Consumer think time is excluded; explicit WebSocket/auto stays native-only. `chatStreamLiveness: false` restores native-only timing. `chatMaxRequestImageBytes` retains Core's 20 MiB default; smaller explicit settings authorize only native image offload, not hidden history trimming or a guessed supplier limit. Synthetic heartbeat evidence is not production heartbeat proof.
382
360
  - `tests/`: unit and integration evidence; mirror the source area being changed.
383
361
  - `deployment-baseline.json`: declared machine-readable compatibility and capability evidence inventory.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ release tags do not update this file after publication. Check the exact
5
5
  [GitHub Release](https://github.com/cloga/dsh-github-copilot/releases) and npm
6
6
  version separately rather than treating an old `prepared` label as current status.
7
7
 
8
+ ## 0.1.0-alpha.17.dsh.0.2.2.rc.3 (prepared)
9
+
10
+ - Remove Local diagnostics collection, controls, storage access, Remotes and the offline analyzer (#499).
11
+ - Leave existing data and hidden legacy settings untouched; older releases may resume collection if their saved switches are enabled.
12
+ - Preserve native Usage, account and search behavior, credential-refresh safeguards and immediate request error guidance.
13
+
8
14
  ## 0.1.0-alpha.16.dsh.0.2.2.rc.3 (prepared)
9
15
 
10
16
  - Record native Copilot turn-account evidence only after an ordinary native stream chunk is yielded for the admitted account (#488).
package/README.md CHANGED
@@ -73,15 +73,15 @@ After the exact compatible release is available and verified, download its
73
73
  original asset and checksum in an empty directory:
74
74
 
75
75
  ```sh
76
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.16.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.16.dsh.0.2.2.rc.3.tgz
77
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.16.dsh.0.2.2.rc.3/SHA256SUMS
76
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.17.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.17.dsh.0.2.2.rc.3.tgz
77
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.17.dsh.0.2.2.rc.3/SHA256SUMS
78
78
  sha256sum --check SHA256SUMS
79
79
  ```
80
80
 
81
81
  For the `web` profile, install the same Release asset:
82
82
 
83
83
  ```sh
84
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.16.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.16.dsh.0.2.2.rc.3.tgz
84
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.17.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.17.dsh.0.2.2.rc.3.tgz
85
85
  ```
86
86
 
87
87
  Choose the intended profile explicitly. Then:
@@ -183,10 +183,9 @@ Evidence is Host-memory-only;
183
183
  older turns and turns missing after a restart or eviction remain unknown.
184
184
  Native context-incident diagnostics remain available without the optional
185
185
  managed continuation service; they do not replace DSH's context meter.
186
- Local diagnostics also offers separately opt-in, content-free logical
187
- observations for native Copilot streams and the optional Copilot search backend.
188
- They do not expose HTTP details or prove supplier receipt or execution.
189
- See [local diagnostics](./docs/plugin-diagnostics.md).
186
+ The Local diagnostics feature has been removed. Existing diagnostic data and
187
+ settings are left untouched; older plugin versions may resume collection if
188
+ their saved switches remain enabled. See [retirement details](./docs/plugin-diagnostics.md).
190
189
 
191
190
  ### Other optional capabilities
192
191
 
@@ -196,9 +195,8 @@ See [local diagnostics](./docs/plugin-diagnostics.md).
196
195
  enrolled, and enabling it never sends or retries a message.
197
196
  - [Segmented compaction recovery](./docs/manual-compaction-recovery.md) requires
198
197
  explicit engine selection; installing the plugin does not replace Core's engine.
199
- - [Local diagnostics](./docs/plugin-diagnostics.md) and managed Responses gzip
200
- are default-off; enabling diagnostics does not upload data. GitHub Enterprise
201
- Cloud tenant login is supported, while GHES and Enterprise quota are not.
198
+ - Managed Responses gzip is default-off. GitHub Enterprise Cloud tenant login
199
+ is supported, while GHES and Enterprise quota are not.
202
200
 
203
201
  ### Removing the enhancement
204
202
 
package/README.zh.md CHANGED
@@ -61,15 +61,15 @@ node scripts/select-core-release.mjs 0.2.2-rc.3
61
61
  精确兼容版本发布且通过验证后,在空目录下载原始制品并校验:
62
62
 
63
63
  ```sh
64
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.16.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.16.dsh.0.2.2.rc.3.tgz
65
- curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.16.dsh.0.2.2.rc.3/SHA256SUMS
64
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.17.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.17.dsh.0.2.2.rc.3.tgz
65
+ curl -fLO https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.17.dsh.0.2.2.rc.3/SHA256SUMS
66
66
  sha256sum --check SHA256SUMS
67
67
  ```
68
68
 
69
69
  例如安装到 `web` profile:
70
70
 
71
71
  ```sh
72
- dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.16.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.16.dsh.0.2.2.rc.3.tgz
72
+ dsh plugin --profile web add https://github.com/cloga/dsh-github-copilot/releases/download/v0.1.0-alpha.17.dsh.0.2.2.rc.3/dsh-github-copilot-0.1.0-alpha.17.dsh.0.2.2.rc.3.tgz
73
73
  ```
74
74
 
75
75
  请明确选择目标 profile,然后:
@@ -141,9 +141,8 @@ alpha.13 发布版本修复了该资格判断;实际运行状态仍需单独
141
141
  账号不匹配、原生路线无法确认,或返回数据前凭据发生变化时,账号证据显示未知。
142
142
  证据仅保留在 Host 内存中;更早的历史,以及重启或淘汰后缺失的记录仍显示未知。
143
143
  原生上下文异常诊断不依赖可选的托管续接服务,也不会替代 DSH 的上下文计量。
144
- Local diagnostics 可另行启用不含内容的原生 Copilot 逻辑流和可选 Copilot 搜索观察;
145
- 它不显示 HTTP 细节,也不证明供应商收到请求或执行成功。参见
146
- [本地诊断说明](./docs/plugin-diagnostics.md)。
144
+ Local diagnostics 已移除;现有诊断数据和设置均不改动。若旧版插件重新加载,且原有开关仍开启,
145
+ 它可能恢复采集。参见[功能退役说明](./docs/plugin-diagnostics.md)。
147
146
 
148
147
  ### 其他可选能力
149
148
 
@@ -152,8 +151,7 @@ Local diagnostics 可另行启用不含内容的原生 Copilot 逻辑流和可
152
151
  不会静默为已有 Session 开启,也不会自动发送或重试。
153
152
  - [分段压缩恢复](./docs/manual-compaction-recovery.md)需要明确选择对应引擎;
154
153
  安装插件不会替换 Core 的引擎。
155
- - [本地诊断](./docs/plugin-diagnostics.md)和托管 Responses gzip 默认关闭;
156
- 开启诊断不会上传数据。支持 GitHub Enterprise Cloud 租户登录,
154
+ - 托管 Responses gzip 默认关闭。支持 GitHub Enterprise Cloud 租户登录,
157
155
  不支持 GHES 和 Enterprise 额度查询。
158
156
 
159
157
  ### 移除增强
@@ -8,14 +8,14 @@
8
8
  },
9
9
  "package": {
10
10
  "name": "dsh-github-copilot",
11
- "version": "0.1.0-alpha.16.dsh.0.2.2.rc.3"
11
+ "version": "0.1.0-alpha.17.dsh.0.2.2.rc.3"
12
12
  },
13
13
  "releaseLines": [
14
14
  { "core": "0.2.0-rc.2", "version": "0.4.2-alpha.15", "status": "published" },
15
15
  { "core": "0.2.1-alpha.4", "version": "0.4.2-alpha.16", "status": "published" },
16
16
  { "core": "0.2.1-alpha.5", "version": "0.1.0-alpha.2.dsh.0.2.1.alpha.5", "status": "published" },
17
17
  { "core": "0.2.1-rc.3", "version": "0.1.0-alpha.5.dsh.0.2.1.rc.3", "status": "published" },
18
- { "core": "0.2.2-rc.3", "version": "0.1.0-alpha.16.dsh.0.2.2.rc.3", "status": "pending" }
18
+ { "core": "0.2.2-rc.3", "version": "0.1.0-alpha.17.dsh.0.2.2.rc.3", "status": "pending" }
19
19
  ],
20
20
  "evidence": {
21
21
  "kind": "source-and-synthetic-test-inventory",
@@ -256,7 +256,7 @@
256
256
  "desktopPackageSet": "not-materialized",
257
257
  "managedProviderValidation": "synthetic-tagged-source-runtime",
258
258
  "resolvedProfileDiagnostics": "plugin-owned-empty-modelErrors",
259
- "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
259
+ "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
260
260
  },
261
261
  {
262
262
  "release": "0.2.1-alpha.5",
@@ -282,7 +282,7 @@
282
282
  "desktopPackageSet": "not-materialized",
283
283
  "managedProviderValidation": "synthetic-tagged-source-runtime",
284
284
  "resolvedProfileDiagnostics": "plugin-owned-empty-modelErrors",
285
- "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
285
+ "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
286
286
  },
287
287
  {
288
288
  "release": "0.2.1-rc.3",
@@ -310,7 +310,7 @@
310
310
  "evidenceScope": "unchanged-tagged-source-target",
311
311
  "standaloneNpmArtifacts": "tested",
312
312
  "managedProviderValidation": "synthetic-tagged-source-and-published-artifact-runtime",
313
- "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
313
+ "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts"]
314
314
  },
315
315
  {
316
316
  "release": "0.2.2-rc.3",
@@ -337,7 +337,7 @@
337
337
  "evidenceScope": "unchanged-tagged-source-target",
338
338
  "standaloneNpmArtifacts": "not-tested",
339
339
  "managedProviderValidation": "not-verified",
340
- "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/diagnostics-storage-core.fixture.ts", "tests/fixtures/diagnostics-gateway-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts", "tests/native-web-composition.spec.ts", "tests/dual-model-host.spec.ts", "tests/fixtures/native-model-sync-core.fixture.ts"]
340
+ "runtimeTests": ["tests/preview-route.spec.ts", "tests/published-core.spec.ts", "tests/single-route.spec.ts", "tests/search-routing.spec.ts", "tests/routed-web.spec.ts", "tests/deepseek-search-fallback.spec.ts", "tests/tool-schema-compat.spec.ts", "tests/fixtures/alpha2-contracts-core.fixture.ts", "tests/fixtures/compaction-pressure-core.fixture.ts", "tests/remote-codec.spec.ts", "tests/dual-model-projection.spec.ts", "tests/fixtures/scoped-compaction-core.fixture.ts", "tests/fixtures/model-exclusions-core.fixture.ts", "tests/fixtures/turn-usage-core.fixture.ts", "tests/fixtures/copilot-accounts-persistence-core.fixture.ts", "tests/fixtures/copilot-accounts-host-core.fixture.ts", "tests/fixtures/copilot-accounts-gateway-core.fixture.ts", "tests/fixtures/copilot-accounts-request-core.fixture.ts", "tests/copilot-stream-liveness.spec.ts", "tests/copilot-stream-adapter.spec.ts", "tests/fixtures/auto-review-copilot-core.fixture.ts", "tests/fixtures/session-context-core.fixture.ts", "tests/fixtures/remote-core.fixture.ts", "tests/fixtures/alpha4-contracts-core.fixture.ts", "tests/fixtures/copilot-usage-selector-core.fixture.ts", "tests/loader-composition.spec.ts", "tests/native-web-composition.spec.ts", "tests/dual-model-host.spec.ts", "tests/fixtures/native-model-sync-core.fixture.ts"]
341
341
  }
342
342
  ],
343
343
  "packages": [
@@ -406,45 +406,24 @@
406
406
  {
407
407
  "id": "copilot-local-diagnostics",
408
408
  "required": true,
409
- "evidenceScope": "synthetic-collector-ui-native-gateway-storage-and-settings-not-live-reliability",
410
- "activation": "default-off-explicit-profile-local-enable",
409
+ "evidenceScope": "synthetic-retirement-settings-and-immediate-error-guidance-not-live-desktop",
410
+ "activation": "retired-no-collection",
411
411
  "sourceMarkers": [
412
- {"file": "src/diagnostics-types.ts", "marker": "DIAGNOSTICS_MAX_BYTES = 2 * 1024 * 1024"},
413
- {"file": "src/diagnostics-collector.ts", "marker": "noteClientGaps"},
414
- {"file": "src/auto-allocation-diagnostics.ts", "marker": "assessmentOutcome: assessmentOutcome.optional()"},
415
- {"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_MAX_ROWS = 128"},
416
- {"file": "src/request-diagnostics.ts", "marker": "CredentialChangeSchema"},
417
- {"file": "src/diagnostics-collector.ts", "marker": "beginCredentialChange"},
418
412
  {"file": "src/request-body-composition.ts", "marker": "bytes: 32 * 1024 * 1024"},
419
413
  {"file": "src/request-body-composition.ts", "marker": "concurrent: 4"},
420
- {"file": "src/request-diagnostics.ts", "marker": "REQUEST_DIAGNOSTICS_RETENTION_MS = 24 * 60 * 60 * 1000"},
414
+ {"file": "src/config.ts", "marker": "diagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
415
+ {"file": "src/config.ts", "marker": "autoAllocationDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
421
416
  {"file": "src/config.ts", "marker": "requestDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
422
417
  {"file": "src/config.ts", "marker": "nativeDiagnosticsEnabled: z.boolean().default(false).hidden().volatile()"},
423
- {"file": "src/native-diagnostics.ts", "marker": "observeNativeStream"},
424
- {"file": "src/diagnostics-host.ts", "marker": "diagnosticsDomainForProfile"},
425
- {"file": "src/diagnostics-client.ts", "marker": "createClientDiagnosticsScope"},
426
- {"file": "src/remote.ts", "marker": "...diagnosticsRemote.descriptors"},
427
- {"file": "src/config.ts", "marker": "diagnosticsEnabled:"},
428
- {"file": "AGENTS.md", "marker": "Default-off local account/Checking/compaction diagnostics"}
418
+ {"file": "AGENTS.md", "marker": "Local diagnostics is retired (#499)"}
429
419
  ],
430
420
  "tests": [
431
- {"file": "tests/diagnostics-collector.spec.ts", "name": "is disabled until enabled, records success denominators and settles once"},
432
- {"file": "tests/diagnostics-collector.spec.ts", "name": "requires independent native consent and fences paused or cleared native operations"},
433
- {"file": "tests/native-diagnostics.spec.ts", "name": "preserves chunks and records only fixed, content-free terminal evidence"},
434
- {"file": "tests/fixtures/diagnostics-native-core.fixture.ts", "name": "observes native and prepared streams through the published waterfall without affecting output"},
435
- {"file": "tests/auto-allocation-diagnostics.spec.ts", "name": "separates assessment outcomes without changing model opportunities or exposing errors"},
436
- {"file": "tests/auto-allocation-diagnostics.spec.ts", "name": "keeps legacy reasons unrecorded and captures no-fit and successful assessment outcomes"},
437
- {"file": "tests/request-diagnostics.spec.ts", "name": "requires independent consent, captures status/timing and never infers upload or retry count"},
438
- {"file": "tests/request-diagnostics.spec.ts", "name": "bounds credential evidence under request consent and fences late commit updates"},
439
- {"file": "tests/diagnostics-card.spec.ts", "name": "keeps every diagnostic population collapsed independently without changing collection"},
421
+ {"file": "tests/loader-composition.spec.ts", "name": "does not open local diagnostics or change previously enabled settings"},
422
+ {"file": "tests/client-search-inject.spec.ts", "name": "does not mount local diagnostics even when a legacy Remote is present"},
423
+ {"file": "tests/remote-codec.spec.ts", "name": "does not expose the retired local diagnostics namespace"},
440
424
  {"file": "tests/request-body-composition.spec.ts", "name": "partitions a 20.4 MiB request without parsing its payload object graph"},
441
- {"file": "tests/preview-transport-failures.spec.ts", "name": "does not wait for large-request composition before native success and updates the exact settled row"},
442
- {"file": "tests/request-diagnostics.spec.ts", "name": "updates only its own retained record after native settlement, never across clear/pause/eviction"},
443
- {"file": "tests/preview-transport-failures.spec.ts", "name": "records verified 408 once without changing the native error, serialized input or dispatch count"},
444
- {"file": "tests/diagnostics-client.spec.ts", "name": "rejects stale status responses and settles an unmounted Checking operation once"},
445
- {"file": "tests/diagnostics-card.spec.ts", "name": "requires a confirmed durable enable and a separate destructive clear confirmation"},
446
- {"file": "tests/fixtures/diagnostics-storage-core.fixture.ts", "name": "isolates profiles on the home-wide backend and preserves memory on a real publish failure"},
447
- {"file": "tests/fixtures/diagnostics-gateway-core.fixture.ts", "name": "binds diagnostics through actual strict Client and Host gateways with durable enable and clear fences"}
425
+ {"file": "tests/preview-transport-failures.spec.ts", "name": "preserves a large request and native success without local diagnostics"},
426
+ {"file": "tests/preview-transport-failures.spec.ts", "name": "preserves the native 408 error, serialized input and dispatch count"}
448
427
  ]
449
428
  },
450
429
  {
@@ -183,26 +183,12 @@ and eligibility windows. No-fit decisions have no fitting-pool distribution.
183
183
  Report category, assessment source, switching/continuity and marking state at
184
184
  decision time, never reconstructed from today's settings.
185
185
 
186
- The turn-selection dialog continues to expose bounded Host-lifetime evidence.
187
- Separately, default-off Local diagnostics persists daily profile-local
188
- allocation aggregates in the reviewed public storage domain when collection is
189
- enabled. It records plugin/policy version, target/selected category,
190
- demand/assessment source, model, high-cost/continuity flags, weight,
191
- opportunities, conditional expected selections, actual selections and no-fit
192
- counts. Retain at most 1,024 strata for 14 days under the shared 2 MiB snapshot
193
- limit; expose restart, expiration, drops and truncation. There are no
194
- Session/turn IDs, prompt/content, execution or task-outcome records, custom
195
- Core history events, automatic uploads or tuning. The shared Local diagnostics
196
- switch controls account/Checking and compaction aggregates; Auto allocation
197
- collection has its own hidden volatile, default-off setting and can be enabled
198
- without collecting those other populations. Missing history is unknown, not
199
- zero usage or success, and selection remains distinct from execution, quality
200
- and billing.
186
+ This section describes the retired plugin-owned Auto policy, not native Auto.
187
+ Local diagnostics and its persistent allocation aggregates have been removed;
188
+ previously stored data and settings are not deleted or rewritten.
201
189
 
202
- `autoAllocationEvidence: false` stops future Host-lifetime candidate captures
203
- without changing selection; it does not disable the separately controlled
204
- persistent Local diagnostics aggregates. The read-only exports perform no
205
- automatic file writes/upload.
190
+ Historical `autoAllocationEvidence` controlled only Host-lifetime candidate
191
+ captures; it did not establish execution, quality or billing.
206
192
 
207
193
  No prompt, answer, tool content, replay, credential, account name or raw Session
208
194
  ID belongs in an aggregate review. Keep evidence local; no automatic upload.
@@ -72,11 +72,8 @@ regressions exercise distinct contexts, isolated services, duplicate/missing/
72
72
  delayed notifications and failed/mismatched commits. This repairs qualification,
73
73
  not proof that a particular historical notification was a token refresh.
74
74
 
75
- Separately enabled request diagnostics may now record fixed qualification,
76
- notification and commit reasons plus bounded live-wire populations; see
77
- [credential-change decisions](./plugin-diagnostics.md#credential-change-decisions-402).
78
- Unknown notification source stays unknown. This observes the existing exception,
79
- not a broader permission to preserve requests or a reconstruction of past failures.
75
+ Local diagnostics no longer records credential-change observations. Unknown
76
+ notification source still fails the existing qualification and revokes work.
80
77
 
81
78
  Only a genuine native refresh through the plugin's public credential-store bridge
82
79
  may qualify: normalized account grant, model entitlements and official